The Return Path variable on one of the qmail mail servers I manage was improperly set.
New newsletter mails initiated by the php scripts on the mail server had the improper return path set in the mail headers, like so:
Return-Path: <anonymous@mail.mymailserver.com>
Therefore many mail servers dropped messages as the set Return Path variable in the headers was incorrectly set to the domain mail.mymailserver.com
Thus to change the Return Path to the correct one that should have been mymailserver.com I had to include mymailserver.com in qmail's control file /var/qmail/control/bouncehost, e.g.
root@qmail:~# echo 'mymailserver.com' > /var/qmail/control/bouncehost
root@qmail:~# echo 'mymailserver.com' > /var/qmail/control/doublebouncehost
By the way the return path in qmail is set by:
> qmail-inject and qmail-send
There seems to be also some way to ovewrite the default set return-path variable with some php variables but I have never tried this one.
Cheers
Related Posts
Tags: anonymous mail, Auto, bouncehost, Cheers, com, control, default, domain, domain mail, doublebouncehost, Draft, file, lt, mail, mail headers, mail server, mail servers, mymailserver, newsletter, ovewrite, Path, php, php scripts, php variables, Qmail, Return, return path, root, server, var, way




on
on 
If php cli is used to send some emails for a newsletter the return path username can be configured via the bash shell variable $USER and $USERNAME.
For example by changing $USER and $USERNAME (export USER=’user1′, export USERNAME=’user1′)
the Return-Path of user@mymail.com will change to user1mymail.com
Awesome web-site you have here. Astonished you find time to keep it so up to date. I always have trouble with my personal