Jordi Espasa Clofent a écrit :
> Hi all,
> 
> I've a PHP script which is executed by 'www-data' (the httpd user) local
> user in Debian GNU/Linux box. I use this smtpd box as massive mailing
> remainder to all of our costumers.  Because of that I need to know  the
> costumers haven't could be contacted, so I want to redirect these
> bounces to dedicated mailbox.
> 
> That's easy:
> 
> www:        failed_deliv...@domain.com
> 
> in aliases and rebuild the aliases.
> 
> But the problem is local user 'www-data' executes a lof of scripts using
> smtpd and I don't want to redirecto all the bounces to mailbox
> failed_deliv...@domain.com.
> 
> ¿Is there any way to establish some pattern disctintion?
> 
> For example, let's to suppose that my massive mails are always generated
> with FROM: warni...@domain.com:
> 
> ¿Can I set up "www: failed_deliv...@domain.com" in alias when _ONLY_ the
> FROM is  warni...@domain.com?
> 
> Thanks in advance.

set the envelope sender. if your PHP calls sendmail, then see the "-f"
flag in the sendmail doc. if it uses SMTP, then use the "MAIL FROM" command.

don't play with headers. Headers are not to be used for mail routing.

Reply via email to