Answer the question
In order to leave comments, you need to log in
How to configure HELO in EXIM?
Help set up dynamic HELO in EXIM for multiple domains/IPs I
use the following regular expressions:
interface = ${if exists {/etc/mailips}{${lookup{$original_domain}lsearch{/etc/mailips}{$value}{${lookup{$sender_address_domain}lsearch{/etc/mailips}{$value}{${lookup{${perl{get_sender_from_uid}}}lsearch*{/etc/mailips}{$value}{}}}}}}}}
helo_data = ${if exists {/etc/mailhelo}{${lookup{$original_domain}lsearch{/etc/mailhelo}{$value}{${lookup{$sender_address_domain}lsearch{/etc/mailhelo}{$value}{${lookup{${perl{get_sender_from_uid}}}lsearch*{/etc/mailhelo}{$value}{$primary_hostname}}}}}}}{$primary_hostname}}
10.10.10.10: domain1.com
10.10.10.11: domain2.com
*: domain3.com
domain1.com: 10.10.10.10
domain2.com: 10.10.10.11
*: 10.10.10.13
2016-10-31 21:26:31 1c1JA7-0000eJ-RL <= [email protected] H=localhost [127.0.0.1] P=esmtp S=8049
2016-10-31 21:26:32 1c1JA7-0000eJ-RL failed to expand helo_data: A setting of perl_startup is needed when using the Perl interpreter
2016-10-31 21:26:32 1c1JA7-0000eJ-RL alt1.gmail-smtp-in.l.google.com [2a00:1450:4010:c08::1b] Network is unreachable
2016-10-31 21:26:32 1c1JA7-0000eJ-RL failed to expand helo_data: A setting of perl_startup is needed when using the Perl interpreter
2016-10-31 21:26:32 1c1JA7-0000eJ-RL alt2.gmail-smtp-in.l.google.com [2404:6800:4003:c01::1b] Network is unreachable
2016-10-31 21:26:33 1c1JA7-0000eJ-RL failed to expand helo_data: A setting of perl_startup is needed when using the Perl interpreter
2016-10-31 21:26:33 1c1JA7-0000eJ-RL alt3.gmail-smtp-in.l.google.com [2404:6800:4008:c03::1b] Network is unreachable
2016-10-31 21:26:33 1c1JA7-0000eJ-RL alt4.gmail-smtp-in.l.google.com [2607:f8b0:400e:c03::1a] Network is unreachable
2016-10-31 21:26:33 1c1JA7-0000eJ-RL == [email protected] R=dnslookup T=remote_smtp defer (101): Network is unreachable
Answer the question
In order to leave comments, you need to log in
solution:
interface = ${if exists {/etc/exim4/mailips}{${lookup{$sender_address_domain}lsearch{/etc/exim4/mailips}{$value}{}}}{}}
helo_data = ${lookup dnsdb {ptr=$sending_ip_address}{$value}{$primary_hostname}}
and no Perl ))
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question