diff --git a/.env.dist b/.env.dist index add937bd..d365eb75 100644 --- a/.env.dist +++ b/.env.dist @@ -73,6 +73,10 @@ RELAYHOST= # Fetchmail delay FETCHMAIL_DELAY=600 +# Recipient delimiter, character used to delimiter localpart from custom address part +# e.g. localpart+custom@domain;tld +RECIPIENT_DELIMITER=+ + ################################### # Nginx settings ################################### diff --git a/dovecot/conf/dovecot.conf b/dovecot/conf/dovecot.conf index 0f4b04d8..928b4d3e 100644 --- a/dovecot/conf/dovecot.conf +++ b/dovecot/conf/dovecot.conf @@ -127,7 +127,7 @@ service imap-login { protocol lmtp { mail_plugins = $mail_plugins sieve - recipient_delimiter = + + recipient_delimiter = {{ RECIPIENT_DELIMITER }} } service lmtp { diff --git a/postfix/conf/main.cf b/postfix/conf/main.cf index 6cd514e8..b806a46f 100644 --- a/postfix/conf/main.cf +++ b/postfix/conf/main.cf @@ -28,6 +28,9 @@ mydestination = # Relayhost if any is configured relayhost = {{ RELAYHOST }} +# Recipient delimiter for extended addresses +recipient_delimiter = {{ RECIPIENT_DELIMITER }} + ############### # TLS ###############