yunohost/conf/postfix
Chris Vogel 1c7e139c74
Update main.cf to allow aliases for sender addresses of apps
If an app registers the sender address _app@doma.in_ **and** a yunohost account configured an alias for the same address the app will not be able to send emails anymore.

postfix asks the first map defined in smtpd_sender_login_maps and finds that the address _app@doma.in_ can be used as a sender address by the yunohost account having configured the alias and **then stops and doesn't look up the second list** for registered apps.

The unionmap instructs postfix to join a list from both sources and then return the match from that joined list which would then contain _yunohost_account_having_registered_alias, appname_ for the lookup of _app@doma.in_.

This allows the yunohost account having registered the alias and the app being registered to use the sender address to send email using that sender **and makes it possible to receive replies to the emails going out from the app**.

Reference: https://serverfault.com/questions/948362/postfix-multiple-smtpd-sender-login-maps
2024-05-18 14:03:32 +02:00
..
plain postfix complains about unused parameter: exclude_internal=yes / search_timeout=30 2023-02-10 00:15:02 +01:00
main.cf Update main.cf to allow aliases for sender addresses of apps 2024-05-18 14:03:32 +02:00
postsrsd Yolorework the repo dir structure 2021-11-10 17:56:02 +01:00
sni postfix: fix edge case bug with the sni file when no domain has mail enabled 2023-12-26 17:42:11 +01:00