I need to forward all messages received on one server to another server (Exchange box). I know how to forward for an individual, but I am unable to forward for all addresses to their respective destination. The usernames are all the same, as is the domain name.
I've seen tons of documentation online for user-based procmail files, but global procmailrc documentation is scarce.
Again, this is for a GLOBAL procmailrc file that will affect all users. None of the recipients have home directories on the Linux box for which I would create individual procmail files (which is also an administrative nightmare).
EDIT:
To sum up - how do I create a global procmailrc that forwards mail for all users?
Edit 2 (Environment): Debian Squeeze Postfix Microsoft Exchange 2003
Oh now I see. That's an easy one. Reading the manual of procmail it states:
And in that
/etc/procmailrc
you forward mails as in every procmailrc:Do you need the messages delivered on the Linux host in the first place? If not, you could set up your MTA so it would simply forward all mail to the Exchange box without trying to deliver it locally, hence without any need for local forwarding via procmail.