NethServer Version: 8
Module: Mail
Hi all,
the Mail module has the nice property that a recipient delimiter + is configured in postfix, which allows for a user user@domain.com to receive also emails in the form user+sometext@domain.com. This is nice. However, there are some webservices out there that do not accept E-Mail addresses with a +-sign in it. Hence, I wanted to change the recipient delimiter to +_, which would not only allow user+sometext@domain.com, but also user_sometext@domain.com as alternative E-Mail Adresses.
According to the documentation here GitHub - NethServer/ns8-mail: NS8 Mail module with SMTP, IMAP, Spam/Virus filter I executed
runagent -m mail1 podman exec -ti postfix vi /etc/postfix/main.cf.d/myoverride.cf
and entered recipient_delimiter = +_
, and saved the file. Then I executed
runagent -m mail1 systemctl --user reload postfix
and checked that the settings have been accepted with
runagent -m mail1 podman exec -ti postfix postconf -n | grep delimiter
This command outputs as expected:
postconf: warning: /etc/postfix/main.cf, line 143: overriding earlier entry: recipient_delimiter=+
recipient_delimiter = +_
However, mails to the address user_sometext@domain.com do get rejected with 550 5.1.1 : Recipient address rejected: undeliverable address: lookup failed
.
When I set recipient_delimiter = +_
on a postfix instance installed on plain Debian (no NS8), it is working as expected.
Why is it failing in Nethserver? Any hints how to fix it?