And while we're at it, is there (anywhere) an example of an "advanced content
filter" as described at http://www.postfix.org/FILTER_README.html
<http://www.postfix.org/FILTER_README.html>?
The page says:
The job of the content filter is to either bounce mail with a suitable
diagnostic, or to feed the mail back into Postfix through a dedicated listener
on port localhost 10026.
The simplest content filter just copies SMTP commands and data between its
inputs and outputs. If it has a problem, all it has to do is to reply to an
input of `.' from Postfix with `550 content rejected', and to disconnect
without sending `.' on the connection that injects mail back into Postfix.
The master.cf configuration implies that the content filter takes at least 2
arguments:
argv=/path/to/filter localhost 10026
An example of a content filter showing how it uses those arguments would be...
useful.
- Vicki
I have upgraded my mail "toaster" to use OS X Server. Yippee.
I would like to have more control over the Spam filtering process than X Server
offers by default.
I have a script (which I hope won't return a "malformed response now) that I
would like to insert.
I am attempting to understand "http://www.postfix.org/FILTER_README.html
<http://www.postfix.org/FILTER_README.html>"
Instructions for a "Simple"content filter suggest adding
-o content_filter=filter:dummy
to the master.cf entry that defines the Postfix SMTP server.
I'm unsure what I should use here, especially given that Apple says these lines
are all auto-generated and should not be modified:
# ==== 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
# -o content_filter=filter:dummy
smtpd pass - - n - - smtpd
dnsblog unix - - n - 0 dnsblog
tlsproxy unix - - n - 0 tlsproxy
submission inet n - n - - smtpd
-o smtpd_tls_security_level=encrypt
smtp unix - - n - - smtp
# === End auto-generated section ===========================================
Alternatively, I could use the Advanced content filter. Iff I understand what
I'm reading correctly, this appears to be relatively simple to plug into
master.cf, and it's what APple would use if I turned on their Spam checking
with amavis,
Does anyone use OS X Server? Have you implemented your own content filter?
Before anyone asks: Wy not just use the Spam Checking Apple includes in Server,
the answer is: I want more control than just 'tag and deliver'.
-- Vicki Brown
cfcl.com/vlb <http://cfcl.com/vlb>