Sendmail.mc: alias all incoming e-mails to one account

Posted by Angus on Server Fault See other posts from Server Fault or by Angus
Published on 2014-06-03T15:06:18Z Indexed on 2014/06/03 15:29 UTC
Read the original article Hit count: 276

Filed under:
|
|
|
|

I need to alias all mail coming from another SMTP server to this one account "myinbox". The system in question is to receive all e-mail on the domain, if that's any help. http://william.shallum.net/random-notes/sendmailredirectallmailfordevelopment is a template for the beginning of a solution, but that routes everything (including outgoing and internal mail) to that one account, and trying to understand how these R rules work is making my head spin. I think the answer is in sendmail.mc rather than any Procmail configuration. So I think what I generally don't want the filter to do is:

  • Interfere w/any outgoing e-mail
  • Interfere w/any internal e-mail Sometimes some cron job causes "root" to mail to "root". I don't want these to go to myinbox.
  • Cause infinite loops Who does? Bounce messages and any DSNs come to mind. I'm running Sendmail 8.13.1 and Procmail 3.22.

© Server Fault or respective owner

Related posts about smtp

Related posts about redirect