[Gllug] Sendmail gateway problem
Peter Adamson
peter.adamson at ktsplc.com
Mon May 12 08:34:53 UTC 2003
Well I've worked it out ;)
It turns out sendmail is looking at the aliases bit,
IE "| /usr/local/bin/php /home/peter/bin/gateway.php"
and sees test_support and person2 are the same alias.
So it only sends the email to the first one.
The secreat to getting this to work is:
test_support: "| /usr/local/bin/php /home/peter/bin/gateway.php foo"
person2: "| /usr/local/bin/php /home/peter/bin/gateway.php bar"
this creates a unique alias for each recipient, and so
the email is sent to all.
--Peter
-----Original Message-----
From: gllug-admin at linux.co.uk [mailto:gllug-admin at linux.co.uk]On Behalf
Of Peter Adamson
Sent: 07 May 2003 15:11
To: gllug at linux.co.uk
Subject: [Gllug] Sendmail gateway problem
Yep its that hated subject sendmail.
I've just added a program to process incoming mail.
So in /etc/aliases I've got:
test_support: "| /usr/local/bin/php /home/peter/bin/gateway.php"
person2: "| /usr/local/bin/php /home/peter/bin/gateway.php"
(I know I can -and will eventualy get rid of the call to php first but it
works).
Anyhow the gateway.php file gets an email & does it's stuff.
Sendmail is residing on foo.bar.com
When an email is sent to "test_support at foo.bar.com" everything is ok.
When an email is sent to "nonexistant at foo.bar.com" sendmail send back a user
doesn't exist message, which is ok.
When an email is sent to "test_support at foo.bar.com, person2 at foo.bar.com" the
gateway.php script is only called for test_support.
Why doesn't sendmail call the gateway.php for everyone on the "To:" / "Cc:"
"Bcc:" headers, that match in the aliases file?
Cheers,
Peter
--
Gllug mailing list - Gllug at linux.co.uk
http://list.ftech.net/mailman/listinfo/gllug
--
Gllug mailing list - Gllug at linux.co.uk
http://list.ftech.net/mailman/listinfo/gllug
More information about the GLLUG
mailing list