Hello, Do we have any users of Postfix and DSpam here? If so, can you write me privately? I'm having a few issues fine tuning my configuration.
I'm running FC20, Postfix 2.10, and DSpam 3.10. Authentication is done via a Mysql database. I'm using DSpam as a content filter, this part is working fine with a question mark. When I get an email Postfix hands it off to DSpam and DSpam does it's analysis, then reinjects it back to Postfix on localhost 10026, which then hands it to Dovecot for delivery. The first problem is occurring if I get a false positive, I want to send that email to an alias address nots...@example.com which will then retrain DSpam. This is not working and I'm getting from DSpam the error that it can't find a valid signature in the database for the message, it's failing with an error -5 and the message is dropped and not retrained. If I move a message from inbox to Spam folder the Dovecot antispam plugin works and that message is retrained. What I'm wanting to figure out is why forwarding messages to nots...@example.com isn't working and also why sending a message to s...@example.com is also not working. If anyone can help please email me. Below are my relevant lines of configuration. Thanks. Dave. /etc/postfix/master.cf: smtp inet n - n - - smtpd ############################################################################ # DSPAM Specific Configuration # ############################################################################ ## DSPAM CONTENT FILTER BEGIN #dspam inet n - n - - smtpd -o content_filter=lmtp:unix:/var/run/dspam/dspam.sock ## DSPAM ->POSTFIX => REINJECTION localhost:10026 inet n - n - - smtpd -o content_filter= -o receive_override_options=no_address_mappings,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 ## DSPAM CONTENT FILTER END ## DSPAM RETRAIN BEGIN #handle dspam retrain ## This path is used when a user sends in a piece of mail and ## wants to classify it as SPAM dspam-spam unix - n n - - pipe flags=Rhq user=dspam argv=/usr/bin/dspam --mode=toe --user dspam --class=spam --client --source=error ${sender} --deliver=spam ## This path is used when a user sends in a piece of mail and ## wants to classify it as INNOCENT dspam-notspam unix - n n - - pipe flags=Rhq user=dspam argv=/usr/bin/dspam --mode=toe --user dspam --class=innocent --client --source=error ${sender} --deliver=innocent dovecot unix - n n - - pipe flags=DRhu user=vmail:vmail argv=/usr/libexec/dovecot/deliver -f ${sender} -d ${recipient} /etc/postfix/main.cf: # Transport for dspam transport_maps = hash:/etc/postfix/transport virtual_mailbox_maps = proxy:mysql:/etc/postfix/mysql-virtual-mailbox-maps.cf, hash:/etc/postfix/dspam_aliases dovecot_destination_recipient_limit = 1 /etc/postfix/transport: s...@example.com dspam-spam:{$1} nots...@example.com dspam-notspam:{$1} /etc/postfix/dspam_aliases: s...@example.com 2 nots...@example.com 6