Postfix discarding Zarafa's autoresponder

October 11, 2011 by Mike   Comments (1)

, ,

If you somehow get the request of "Out-of-Office"-Mails _not_ to be sent to the outer world (just internally - yeah, I had to laugh too), then you can do it this way with postfix (please notice this should only be done on "outer systems" - like outbound mailrelay systems):
header_checks = pcre:/etc/postfix/header_checks

/^X-Zarafa-Vacation: autorespond/ DISCARD

With this, postfix will silently discard any Zarafa autoresponder Mails, so that no mail loops will be generated. Do NOT think of DUNNO or REJECT or so. You will suffer mailloops as there will be notifier mails back to the mailbox with autoresponder active, therefore resulting in another autoresponder (and the mailq will grow every day).

Just reload your postfix, and there are no autoresponder-Mails anymore (to external mails)

You will see a notice in you maillog with:

Oct 11 18:14:16 SERVER postfix/cleanup[26980]: AE372C18438: discard: header X-Zarafa-Vacation: autorespond from someserver.internal[]; from=<[email protected]> to=<[email protected]> proto=ESMTP helo=<someserver.internal>

Have fun!

- mike

great tip, thanks!

Remon van Gijn 3291 days ago