[Pkg-exim4-users] www-data

Maarten Bezemer mcbexim at robuust.nl
Sat Jun 20 10:41:50 UTC 2009


On Sat, 20 Jun 2009, Francois Sauterey wrote:

>> The mail acl is only executed for e-mail submitted by SMTP. The php
>> scripts are probably using usr/sbin/sendmail instead.
>> cu andreas
>
> So, if I understand correctly, I  need to write an ac in the
> acl_not_smtp section.
> But there is not many samples on use it :-(
> senders seems to not be testable, now all mails are refused !

Do you want to disable php scripts from sending mail, or just not have 
them send mail with www-data as sender address?
What you can also do, is adjust the sendmail path in the php.ini config or 
in the apache config (e.g. in a vhost definition) :

php_admin_value sendmail_path '/usr/sbin/sendmail -t -i -f realaddress at domain'

Or, of course, if you don't want it to send mail, tell it to use another 
program for sending mail, or disable the mail functions using the 
appropriate php configuration directives.

Furthermore, you could use exim rewrite rules to translate 
www-data at hostname to realaddress at realdomein on the fly.

HTH,
  Maarten



More information about the Pkg-exim4-users mailing list