How to enable Postfix filter on OS X server (Lion) without getting overwritten?
Posted
by
mjbraun
on Server Fault
See other posts from Server Fault
or by mjbraun
Published on 2012-12-05T22:33:40Z
Indexed on
2012/12/05
23:06 UTC
Read the original article
Hit count: 170
postfix
|macosxserver
I have a Postfix after-queue content filter that works fine on stock Ubuntu Postfix install. However, on a OS X Lion Server I'm testing out, I see this "auto-generated" language in the master.cf file:
# ==== Begin auto-generated section ========================================
# This section of the master.cf file is auto-generated by the Server Admin
# Mail backend plugin whenever mails settings are modified.
smtp inet n - n - 1 postscreen
smtpd pass - - n - - smtpd -o receive_override_options=no_address_mappings
The problem is, to enable the filter the same area of the master.cf file has to be changed to have an entry like this:
smtp inet n - - - - smtpd -o content_filter=mytest_filter:dummy
So, it looks like the line would be blown away every I make a change in Server Admin. Is there a better place for me to put the call to the filter such that it's persistent?
I appreciate any assistance and/or guidance!
© Server Fault or respective owner