procmail
[Top] [All Lists]

Re: fetchmail to procmail to smtp server

2007-01-13 09:28:10
Paul Goodyear wrote:
I have fetchmail collecting emails and procmail is putting them thru 
RazorSPAM, SA and ClamAV, then placed in the users mailbox.

I also have some other email acocunts and I would like to get them 
colelcted via the mail server using fetchmail, processed by procmail 
for the spam and av, then forwarded to a SMTP server on the same 
network (Kerio Mail Server).

Can I grab the emails for various POP3 accounts, process and SMTP 
forward to another server using procmail rules?

Yes, create a ~/.fetchmailrc file to poll your different POP3 etc mail 
accounts.
That will feed the messages through the SMTP server on the local machine.
Use procmail to redirect the appropriate message to other servers as 
required.

Note: You may want to add an X-Loop: header to such forwarded messages 
in case they find their way back to you...  one of your first recipes in 
procmail ought to be an "x-loop catcher" to terminate an infinite loop 
of sending/receiving the same e-mail message.

____________________________________________________________
procmail mailing list   Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

<Prev in Thread] Current Thread [Next in Thread>