On 5/12/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
Hi.
Bit off topic but here goes:
It is?
[..snip..]
I have a mail alias set up on one mail server (mailserver1) that sends mail for
'[EMAIL PROTECTED]' to '[EMAIL PROTECTED]'
When I send an email to '[EMAIL PROTECTED]' directly I get the right stuff
happening on mailserver2, namely in the maillog (on mailserver2) I see the mail
is received and replied to (autoreply functionality)
However when I send to '[EMAIL PROTECTED]' I see the mail being received in the
logs (on mailserver2) but not replied to.
[..snipped some more..]
The recipe for employment in the mentioned .procmailrc (on mailserver2) looks
like this:
:0:
* ^TO_employment |/usr/local/foo/bin/progThatResponds
Why isn't the mail to '[EMAIL PROTECTED]' processed correctly?
"TO_" looks at Original-, Resent-, To/Cc/Bcc, X-Envelope and
Apparently(-Resent)-To containing a specific address. I think the
problem here is that the To address is still [EMAIL PROTECTED] and therefore
doesn't match. What the mail server does is deliver the mail exactly
as is to its new recipient "employment". You probably want to have
something like:
:0:
* ^TO_employment|jobs
| /usr/local/foo/bin/progThatResponds
Actually, come to think of it, try this and see if it works:
:0:
* ^TO employment
| /usr/local/foo/bin/progThatResponds
(note the removal of the underscore after TO).
Let me know if that works. The difference between ^TO and ^TO_ is that
^TO_ looks at specific addresses, while ^TO looks at words.
Hope this helps.
Cheers,
Gonzalo.
--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html