[nylug-talk] problem with mail alias

Henning Follmann
Fri May 12 06:59:18 EDT 2006


luke at chipcity.com.au wrote:
> Hi.
> 
> Maybe a little off topic but forgive me:
> 
> I need some help with an alias in relation to 2 mailservers.
>

What MTA?


> I have a mail alias set up on one mail server (mailserver1) that sends mail for 'jobs at foo' to 'employment at foo'
> 
> When I send an email to 'employment at foo' 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 'jobs at foo' I see the mail being received in the logs (on mailserver2) but not replied to.
> 
> /etc/mail/aliases on mailserver1 shows
> jobs:          employment
> 
> /etc/mail/aliases on mailserver2 shows
> employment:        user1
> 


Rebuild the alias DB?

> user1's /home/user1/.procmailrc (on mailserver2 machine) has an entry for
> employment which as I said above works when directly mailed to, but not when
> indirectly mailed to by 'jobs at foo'
> 
> 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 'jobs at foo' processed correctly?

An alias does not change the To: header.

Henning

-- 
Henning Follmann           | hfollmann at itcfollmann.com
it consultant              | www.itcfollmann.com


More information about the nylug-talk mailing list