hosting emails at home

Darac Marjal mailinglist at darac.org.uk
Mon Dec 11 15:06:07 EET 2017


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 at 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 at darac.org.uk gets mapped to foo+bar at 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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 906 bytes
Desc: not available
URL: <https://dovecot.org/pipermail/dovecot/attachments/20171211/728f40b1/attachment.sig>


More information about the dovecot mailing list