Honestly I only need/want to use the fullstop [.] delimiter but as it's not functional for sending purposes I've left the others in for now.
Modifications I've made are as follows:
1)
in /opt/iredapd/settings.py added line
ALLOWED_LOGIN_MISMATCH_LIST_MEMBER = True
2)
in /opt/iRedAPD-2.4/libs/default_settings.py
changed line to the following
RECIPIENT_DELIMITERS = ['+-.']
3)
in /etc/postfix/main.cf
changed line to the following
recipient_delimiter = +-.
4)
in /etc/postfix/main.cf
add line
propagate_unmatched_extensions = canonical, virtual, alias, forward, include
5)
in /etc/dovecot/dovecot.conf
changed the line to the following
recipient_delimiter = +-.
6)
in /opt/iRedAPD-2.4/libs/default_settings.py
changed line to the following
RECIPIENT_DELIMITERS = ['+-.']
7)
in /etc/postfix/recipient_canonical_maps
added line
/^(.+)[\+-.].+@(.*)/ ${1}@${2}
the error given from the roundcube UI is -
SMTP Error (554): Failed to add recipient "mailbox@example.com" (5.7.1 <mailbox@example.com>: Recipient address rejected: Sender is not same as SMTP authenticate username).
note that the SMTP in the error denotes the destination, not the sender. The error only presents when using a 'from' address containing a . fullstop, using a from address with a + or - will send fine.
if i'm to tail the /var/log/mail.log the error is much the same
Mar 12 00:17:43 mail roundcube: <2m7kgs10> SMTP Error: Failed to add recipient 'anywhere@test.com'. 5.7.1 <anywhere@test.com>: Recipient address rejected: Sender is not same as SMTP authenticate username (Code: 554) in /opt/www/roundcubemail-1.3.8/program/lib/Roundcube/rcube.php on line 1667 (POST /mail/?_task=mail&_unlock=loading1552349862610&_lang=en_US&_framed=1&_action=send)
Mar 12 00:17:43 mail postfix/submission/smtpd[2850]: disconnect from mail.myserver.com[127.0.0.1] ehlo=2 starttls=1 auth=1 mail=1 rcpt=0/1 rset=1 quit=1 commands=7/8