I set up Falko's autoresponder
on a centos server running the postfix mail install provided by iRedMail.
It works great, so thanks alot Falko.
I have one problem though which I hope you might be able to help me with. It relates to the way jobserve.com sends mail (but I'm sure they are not the only ones). I've set up a system whereby adverts I place on jobserve.com, have a mailbox associated with them which should autoreply each applicant with further instructions/information about the roles I advertise there.
Although your script works fine in ALL other tests, it fails to respond to mails generated from jobserve. I've examined the header coming from jobserve emails and think I've spotted the problem (see below - email details changed):
Received: from xss15.mail.jobserve.com (HELO xss15.mail.jobserve.com) (193.xx.xx.xxx)
by server-11.tower-149.messagelabs.com with SMTP; 20 Jun 2010 22:59:59 -0000
Date: Sun, 20 Jun 2010 22:59:58 +0100
FROM: "firstname.lastname@example.org" <email@example.com>
TO: "firstname.lastname@example.org" <email@example.com>
Reply-To: "firstname.lastname@example.org" <email@example.com>
In the above, the applicant was a firstname.lastname@example.org
, but that was only sent as a display name of the sender (whereas the real FROM email address is the generic email@example.com
Using a mail client (i.e. manually replying to the mail above) works fine presumably becuase the mail client uses the "reply-to" value (firstname.lastname@example.org) value, whereas I'm guessing your autoresponse script uses the FROM email address value (email@example.com)
Any ideas on how I could get your script to use the Reply-to address instead of the FROM?
Have been pulling my hair out trying to find a solution, so any help would be appreciated.
And thanks for your script - it works a treat, and your documentation is great.