Results 1 to 1 of 1
I have Postfix set up to deliver email to virtual users (without accounts on the system), and this works fine. I'm trying to add DSPAM to filter spam, but run ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 04-18-2009 #1
- Join Date
- Apr 2009
Mail Loop in Postfix+DSPAM
I have Postfix set up to deliver email to virtual users (without accounts on the system), and this works fine.
I'm trying to add DSPAM to filter spam, but run into problems with mail loops when trying to get it to work.
I have DSPAM configured as a transport in Postfix with the following line in master.cf:
dspam unix - n n - 10 pipe
flags=Ru user=dspam argv=/usr/bin/dspam --deliver=innocent,spam --user $user -i -f $sender -- recipient
and the following in main.cf:
virtual_transport = dspam
dspam_destination_recipient_limit = 1
In dspam.conf I have:
When an email arrives, Postfix passes it off to dspam for filtering, and dspam passes it back to Postfix for final delivery. Instead of putting the mail in the virtual user's mailbox, it immediately passes it back to dspam. Eventually it detects this as a mail loop and gives up.
How do I get Postfix to recognize that the message as already been through dspam once already and deliver it to the user's mailbox rather than giving it back to dspam?
It seems I'm almost there with this configuration, but am missing a crucial step that prevents the loop...