Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

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

I'm using zarafa with postfix. For privacy reasons I want to filter client internal IP-addresses and stuff like this. To do so I've added the following to

submission inet n - - - - smtpd [...] -o cleanup_service_name=subcleanup [...]

and further down the file:

subcleanup unix n - - - 0 cleanup -o header_checks=pcre:/etc/postfix/smtp_header_checks

which works perfectly for clients delivering their mail through the submission port. But my zarafa is of course not using the submission port to send mail, hence it doesn't hit the subcleanup routine and outgoing mails contain a very nice X-Mailer: Zarafa-exact_version header which is rather unsatisfying. Is there any way to make zarafa use the subcleanup routine?

Any help is much appreciated.

share|improve this question
up vote 3 down vote accepted

Try configuring Zarafa Spooler (spooler.cfg) to use the SMTP port you're running the 'submission' on.

Alternatively, configure your standard smtpd line in the to also hit the subcleanup routine like you've set up for 'submission' now. Then it will affect all mail passing the Postfix MTA on the standard port.

share|improve this answer
You sire, are a genius. Sometimes it's just too simple ;-) – olvrlrnz Oct 1 '12 at 10:25

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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