Oefenweb / ansible-postfix

Ansible role to set up postfix in Debian-like systems
MIT License
173 stars 82 forks source link

Add support for sender_canonical_maps #25

Closed e-alfred closed 7 years ago

e-alfred commented 8 years ago

Hello,

most mail providers don't let you send mails with a mail sender address not identical to the used account. Therefore one has to use sender_canonical_maps and create a file with the correct sender mail address for each existing user. It would be great if this could be implemented.

Basically this line in main.cf and the corresponding file followed by the correct commands to create a postfix database:

sender_canonical_maps = hash:/etc/postfix/sender_canonical

postmap /etc/postfix/sender_canonical
/etc/init.d/postfix restart

Thank you

tersmitten commented 8 years ago

Can you make a pull request?

e-alfred commented 8 years ago

Sorry, I did it manually at the moment, but I will look into it.

tersmitten commented 7 years ago

Closing this due to inactivity, feel free to reopen.