php_admin_value sendmail_path

dannygoh

Verified User
Joined
Feb 9, 2004
Messages
368
Location
Malaysia
How can i make the email send by DA (backup complete, cron, service down) system using my specific email address.

php_admin_value sendmail_path '/usr/sbin/sendmail -t -i -f |USER|@|DOMAIN|'

to the virtualhost templates so that exim doesn't show the hostname of the sender address, but instead shows the domain of the user who's sending the mail. Useful for tracking spammers who abuse the php mail() function.
 
Actually, the latest version of DA will already do that. You might need to rewrite the httpd.conf files:

echo "action=rewrite&value=httpd" >> /usr/local/directadmin/data/task.queue

John
 
I'm having problems with this sendmail option, if I comment it out, the mail works but if I leave it uncommented a simple php mail script will not work.

Any idea why sending mails becomes unavailable with the php_admin_value sendmail_path uncommented?
 
for me, when sending from the cron it uses a wrong eveloppe from

from http: evelope-from <[email protected]>
from cron: evelope-from <[email protected]>

the directadminservername.com does not have mx records or is listed in the spf records and or is signed with the domain name
the customersdomain.com is working and has a valid mx,spf and dkim
 
Do you mean cronjobs set up from the DirectAdmin control panel? They should run as username.

You write [email protected]; by email do you mean the username? Or something else? If something else, what?

Jeff
 
Back
Top