Thanks Dan. I think your last comment is where i should be looking to because it seems that Qmail is not using the from address that I am specifying in the script. It seems to be inserting 'anonymous@mydomain.com' when i send TO GMAIL and #@[] when i sent TO mydomain.com, which by the way is hosted on a mail server elsewhere. I have no idea why it would choose different from addresses depending on who i am sending to, but it would seem both would be resolved if the script were functioning correctly.
Can you give me any guidance on how i can fix this? I posted the code I am using in the PHP script.
Thanks,
Mark
Main Topics
Browse All Topics





by: it4sohoPosted on 2009-10-28 at 04:16:29ID: 25681918
The Sender-ID is not the same on the two:
6]: from=#@[] 6]: to=postmaster@mydomain.com
]: from=anonymous@mydomain.co m ]: to=myaddy@gmail.com
Oct 27 13:27:17 mydomain qmail-remote-handlers[2605
Oct 27 13:27:17 mydomain qmail-remote-handlers[2605
Oct 27 13:29:21 mydomain qmail-queue-handlers[30393
Oct 27 13:29:21 mydomain qmail-queue-handlers[30393
Also, the rejection of the message at mydomain.com is because of SPAM filtering. You may want to consider exempting your web server from SPAM filtering (it's probably just a change in your /etc/tcprules.d/tcp.smtp file). If the FROM was truly the same in the attempt to gmail.com, it may STILL have gone through -- gmail.com and mydomain.com probably use different SPAM filtering techniques!
I hope this explains the messages you're seeing!
Good luck!
Dan
IT4SOHO
(You should look at the /var/qmail/control folder's defaultdomain, defaulthost, and me entries to create better default "from" fields, or fix your php script to set a valid from ID)