On Tuesday 21 April 2009 19:52:38 Jerry Gardner wrote: > On Mon, Apr 20, 2009 at 4:32 PM, mouss <mo...@ml.netoyen.net> wrote: > > to filter mail, use content_filter, not virtual_transport. and if your > > filter needs to run sendmail to deliver mail, then you need to disable > > filtering for the sendmail command (pickup in master.cf). > > > > do yourself and us a favour and run dspam in relay mode. > > Can you point me to a description of how to set this up? I'd like Postfix > to use dspam to filter all mail arriving via the smtp daemon and then > deliver the filtered mail to virtual Maildir mailboxes.
It's in the dspam readme, but here's the relevant stuff: virtual_transport = dovecot # or virtual master.cf: smtp inet n - n - - smtpd -o content_filter=lmtp:unix:/var/run/dspam.sock 127.0.0.1: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_send_restrictions= -o smtpd_recipient_restrictions=permit_mynetworks,reject -o mynetworks=127.0.0.1/32 -o smtpd_authorized_xforward_hosts=127.0.0.1/32 dspam.conf: ServerDomainSocketPath "/var/run/dspam.sock" DeliveryHost 127.0.0.1 DeliveryPort 10026 DeliveryIdent dspam.example.com DeliveryProto SMTP -- Melvyn Sopacua