On 13/03/14 20:55, Alan Chandler wrote:
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
I took the plunge and just tried it.
/etc/postfix/sender_bcc now has an entry for me
a...@chandlerfamily.org.uk alan+save...@save.save
with similar entries to others for whom I am going to save outgoing mail
/etc/postfix/transport now has an entry
save.save lmtp:unix:private/dovecot-lmtp
and this seems to work.
Looking at the headers of the mail I sent - the actual copy - which I
sent to another of my e-mail persona has the DSPAM headers, the saved
outgoing mail didn't
The only funny is thunderbird which when I asked it to show me the
message source for the saved outgoing produced a completely blank
window. I had to go into the maildir and cat the file out to look at it.
--
Alan Chandler
http://www.chandlerfamily.org.uk