Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Possible Duplicate:
Assistance needed with a global procmailrc file
Creating a global procmailrc file that forwards to an Exchange server


Please close, as this now a duplicate


I'm new to procmail, so please be forgiving.

I have a postfix server on my network that (eventually) will receive a bounced message from our Sonicwall Spam Filter when a message attachment exceeds a certain size. The postfix server is configured to create mailboxes based on LDAP (using usernames from our Active Directory).

I need to create a global procmailrc file that saves the attachments to a folder, removes the attachments, then forwards the original message sans attachments to our Exchange server along with some additional text. I have the postfix server configured to handle our e-mail addresses (, as this is a requirement of the Sonicwall when it bounces.

I've been working on this for a few hours, and I haven't even gotten to the point where a message sent to my postfix server gets forwarded to the Exchange server.

Please let me know if I'm being clear on what I'm trying to accomplish. I'm more than happy to elaborate.

Also, let me know if I should move this to ServerFault.

share|improve this question

migrated from Oct 20 '11 at 14:07

This question came from our site for professional and enthusiast programmers.

marked as duplicate by mailq, Ward, the-wabbit, Iain, RobM Oct 24 '11 at 10:41

This question was marked as an exact duplicate of an existing question.

Your filtering problem should be a good fit here, but if you're having trouble getting mail forwarding to work first, that's better suited for ServerFault. – Michael Mior Oct 18 '11 at 20:08
Yes, should move to ServerFault. Vote to close. – jeha Oct 18 '11 at 20:08
Moved to SF. Thanks. – Larry G. Wapnitsky Oct 18 '11 at 20:36

share|improve this answer
seen most of these, but they're fairly generic and aim mostly towards user-based. I'm looking for a global solution. – Larry G. Wapnitsky Oct 18 '11 at 20:33
your question is a bit too generic - it would be good if you go more into detail what you tried, and where it's broken. – Tilo Oct 18 '11 at 22:28

Not the answer you're looking for? Browse other questions tagged or ask your own question.