[Pkg-exim4-users] Setting HELO string with macro REMOTE_SMTP_HELO_DATA
Andreas Metzler
ametzler at bebt.de
Wed Aug 11 17:33:45 BST 2021
On 2021-08-11 u34 at net9.ga wrote:
> Paul Menzel <paulepanter at users.sourceforge.net> wrote:
[...]
>> REMOTE_SMTP_HELO_DATA = mail.gw90.de
>> But Exim still announces the hostname from `hostname -f` to the other
>> MTA and not the one from `000_localmacros`.
>>
>> `/etc/exim4/conf.d/transport/10_exim4-config_transport-macros` has:
>>
>> .ifdef REMOTE_SMTP_HELO_FROM_DNS
> Perhaps because REMOTE_SMTP_HELO_FROM_DNS is not defined?
>> .ifdef REMOTE_SMTP_HELO_DATA
>> REMOTE_SMTP_HELO_DATA==${lookup dnsdb {ptr=$sending_ip_address}{$value}{$primary_hostname}}
>> .else
>> REMOTE_SMTP_HELO_DATA=${lookup dnsdb {ptr=$sending_ip_address}{$value}{$primary_hostname}}
>> .endif
>> .endif
>>
>> `/etc/exim4/conf.d/transport/30_exim4-config_remote_smtp` has:
>>
>> .ifdef REMOTE_SMTP_HELO_DATA
>> helo_data=REMOTE_SMTP_HELO_DATA
>> .endif
>>
>> What am I missing? (As a workaround I changed the hostname, but that is
>> not wanted.)
Hello,
You are misparsing the logic, which essentially is
if REMOTE_SMTP_HELO_FROM_DNS is set then ignore any pre-defined setting of
REMOTE_SMTP_HELO_DATA and lookup the local host name in DNS instead.
Paul does not want to override/ignore his setting of
REMOTE_SMTP_HELO_DATA he wants exim to use it.
cu Andreas
--
`What a good friend you are to him, Dr. Maturin. His other friends are
so grateful to you.'
`I sew his ears on from time to time, sure'
More information about the Pkg-exim4-users
mailing list