Route email From: *.acm.org via Mailroute.

This commit is contained in:
Jim Hague 2024-05-10 08:36:37 +01:00
parent f8dff4d0b2
commit c766eddeda
3 changed files with 18 additions and 1 deletions

View File

@ -0,0 +1,9 @@
smtpauth:
smtpauth_passwd_client: |
# password file used when the local exim is authenticating to a remote
# host as a client.
#
# see exim4_passwd_client(5) for more documentation
#
# Example:
### target.mail.server.example:login:password

View File

@ -17,6 +17,14 @@ exim4_certs_group:
- addusers:
- Debian-exim
exim4_smtpauth_passwd:
file.managed:
- mode: 0640
- group: Debian-exim
- names:
- /etc/exim4/passwd.client:
- contents_pillar: smtpauth:smtpauth_passwd_client
exim4_dkim_private_keys:
file.managed:
- mode: 0640

View File

@ -23,7 +23,7 @@ dc_readhost=''
dc_relay_domains=''
dc_minimaldns='false'
dc_relay_nets=''
dc_smarthost='smtpout.mythic-beasts.com'
dc_smarthost='"${if match{${lc:$header_from:}}{.*acm.org}{smtpauth.mailroute.net::587}{smtpout.mythic-beasts.com}}"'
CFILEMODE='644'
dc_use_split_config='true'
dc_hide_mailname='false'