See where emails start from with sendmail PHP
Posted: Mon Jun 15, 2015 10:17 pm
Hello,
I noticed that emails sent trough PHP sendmail haven't -f set.
So if I've an user on my vesta with some domain. Ex.:
server name: myserver.com
username: user1
and user1 have domains
domain1.tld
domain2.tld
domain3.tld
into /var/log/exim4/mainlog I will see all mail send from
[email protected]
instead I think that is useful to force something as [email protected], [email protected], etc... (one for each domain)
so if a wordpress being hacked on domain1.tld, trough logs we can see from where start mailbombing
it seems a working solution to put
into vhost of each domain, but is not an elegant method.
Someone has an idea?
thanks and sorry for my english
I noticed that emails sent trough PHP sendmail haven't -f set.
So if I've an user on my vesta with some domain. Ex.:
server name: myserver.com
username: user1
and user1 have domains
domain1.tld
domain2.tld
domain3.tld
into /var/log/exim4/mainlog I will see all mail send from
[email protected]
instead I think that is useful to force something as [email protected], [email protected], etc... (one for each domain)
so if a wordpress being hacked on domain1.tld, trough logs we can see from where start mailbombing
it seems a working solution to put
Code: Select all
php_admin_value sendmail_path "/usr/sbin/sendmail [email protected] -t -i"
Someone has an idea?
thanks and sorry for my english