On Sun, Dec 10, 2017 at 11:23:34AM -0800, Kenneth Porter wrote:
--On Sunday, December 10, 2017 7:05 PM +0000 André Rodier <andre@rodier.me> wrote:
This is so far what I have achieved:
How about MIMEDefang, ClamAV, and SpamAssassin? I'm currently running MD+Clam from sendmail and SA from procmail, but I'm open to seeing the equivalent solution with Postfix and the Dovecot LDA.
(One thing that keeps me from switching to Postfix is the need to accept "plussed" addresses using both the plus sign and the dot (for websites that refuse "+" in an email address).)
That's relatively easy. I use the following:
In main.cf: recipient_delimiter = + canonical_maps = pcre:/etc/postfix/canonical
In /etc/postfix/canonical: /^([^\.]+)\.([^\.]+)@(darac\.org\.uk)$/ ${1}+${2}@${3}
The regex can probably be simplified a lot, but to me that's clear that foo.bar@darac.org.uk gets mapped to foo+bar@darac.org.uk.
That means that I can use plus addressing where it's supported and dot addressing where it isn't. From the server's point of view, it's all plus-addressed, but I've not yet come across a domain that doesn't like (SMTP) mail with a + in the from field (it's usually just the web forms that complain).
-- For more information, please reread.