Hello everyone,
I have tried to find solutions to my problem in many places, but I
can't find anything that applies directly to what I need to do.
Basically, I am integrating DSPAM into an existing postfix SMTP relay
server -- it does not store any mail locally, it only relays it to a
single internal Exchange server. By following the instructions in
doc/relay.txt and doc/postfix.txt I have been able to make it work,
but I had to disable the existing content filter in postfix's
master.cf -- unfortunately I need to have both content filters active.
Here is how the existing lines in master.cf looked:
smtp inet n - n - - smtpd
-o content_filter=filter:dummy
-o cleanup_service_name:pre-cleanup
where filter is fined like this in the file:
filter unix - n n - - pipe
flags=Rq user=filter argv=/usr/bin/procmail -Y -m
/etc/procmailrcs/master.rc ${sender} ${recipient}
Now, in order to get DSPAM to work, I had to disable this line and add
a new content filter for DSPAM like this:
smtp inet n - n - - smtpd
-o content_filter=lmtp:unix:/tmp/dspam.sock
With the following lines related to that:
localhost:10026 inet n - n - - smtpd
-o content_filter=
-o receive_override_options=no_unknown_recipient_checks,no_header_body_checks
-o smtpd_helo_restrictions=
-o smtpd_client_restrictions=
-o smtpd_sender_restrictions=
-o smtpd_recipient_restrictions=permit_mynetworks,reject
-o mynetworks=127.0.0.0/8
-o smtpd_authorized_xforward_hosts=127.0.0.0/8
Basically, I would like to pipe all messages through the existing
content filter 'filter' first, and then send them through DSPAM, and
then back on their way. I am sure this is possible somehow, I just
can't find a way yet. If anyone has any ideas, I would be very
greatful.
Thank you,
katsu