I originally had a setup that was
postfix -lmtp:unix-socket-> dovecot
but to improve my setup I changed it to be
postfix -lmtp:unix-socket->dspam->dovecot
However there is one downside to that approach - I copy messages for my
self (and other accounts) back to alan+save...@chandlerfamily.org.uk so
that a dovecot sieve script can save a copy in an outgoing mail file.
however if dspam incorrectly thinks they are spam - they get redirected
to alan+j...@chandlerfamily.org.uk - so the sieve script can put them in
the Junk folder
I am thinking I can bypass the dspam filter with a map. I am just not
sure exactly how.
I think the relevant entries in main.cf are these
sender_bcc_maps = hash:/etc/postfix/sender_bcc
transport_maps = hash:/etc/postfix/transport
virtual_transport = lmtp:unix:milter/dspam-lmtp
virtual_mailbox_domains =
chandlerfamily.org.uk
It is worth adding that I am using the transport maps to redirect mail
for spam retraining
/etc/postfix/transport
spam.spam dspam-retrain:spam
ham.ham dspam-retrain:innocent
SO I am thinking I could either
change virtual_transport line to a map as well, or add something like
save.save lmtp:unix:milter/dovecot-lmtp
to /etc/postfix/transport
But I am unsure of the syntax I should use with either approach.
virtual_transport is (as I have shown at the moment, a single variable)
can it become a map?
the documentation on transport maps say I need a service and next hop
which only has one colon. I am proposing two
I don't want to break my currently running system until I know what I am
about to do and have reasonable confidence it will work
Can someone give me the required voodoo.
Thanks
--
Alan Chandler
http://www.chandlerfamily.org.uk