X-Git-Url: https://git.ralfj.de/ansible.git/blobdiff_plain/e103cc2f91aa9efc164969bdc146ff87f8cff276..1eafda5361195d887ba73c0a88f033c91aa4ad23:/roles/email/templates/main.cf?ds=sidebyside diff --git a/roles/email/templates/main.cf b/roles/email/templates/main.cf index 97f07bd..dc72a19 100644 --- a/roles/email/templates/main.cf +++ b/roles/email/templates/main.cf @@ -107,11 +107,12 @@ proxy_read_maps = $virtual_alias_maps $virtual_mailbox_maps $smtpd_sender_login_ # setup mail routes for virtual mail: all mail ends up being forwarded somewhere virtual_transport = error -transport_maps = hash:/etc/postfix/transport_map +transport_maps = hash:$config_directory/transport_map mailman_destination_recipient_limit = 1 {% endif %} {% if postfix.smtp_outgoing is defined %} +# send mail via specific IP default_transport = {{ postfix.default_smtp_outgoing }} sender_dependent_default_transport_maps = hash:$config_directory/sender_transport_map {% endif %}