Skip to content

Instantly share code, notes, and snippets.

@lukapaunovic
Last active May 22, 2025 22:38
Show Gist options
  • Save lukapaunovic/7d57fdfc3a4b051fa5ace41fe70e8742 to your computer and use it in GitHub Desktop.
Save lukapaunovic/7d57fdfc3a4b051fa5ace41fe70e8742 to your computer and use it in GitHub Desktop.
smtp_active_hostname = ${lookup{$interface_address}lsearch{/etc/exim4/virtual/helo_data}{$value}}
...
remote_smtp:
driver = smtp
interface = ${lookup{$sender_address_domain}lsearch{/etc/exim4/virtual/interfaces}{$value}}
helo_data = ${lookup{$sender_address_domain}lsearch*@{/etc/exim4/virtual/helo_domains}{$value}}
root@my-vps:/var/log/exim4# cat /etc/exim4/virtual/helo_domains
andiamoconnect.com: server.andiamoconnect.com
andiamo-group.ai: server.andiamo-group.ai
andiamo-connect.com: server.andiamo-connect.com
team-andiamo.com: server.team-andiamo.com
root@my-vps:/var/log/exim4# cat /etc/exim4/virtual/helo_data
66.179.82.53: server.andiamoconnect.com
74.208.75.30: server.andiamo-group.ai
66.179.94.45: server.andiamo-connect.com
74.208.194.73: server.team-andiamo.com
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment