Modifying Exim SMTP banner for multiple IP addresses

James2k

Verified User
Joined
Nov 28, 2012
Messages
18
Hi,

I was wondering if its possible to expand this code to include more than one additional IP address?


Code:
smtp_banner =\
 ${if and{\
           {def:interface_address}\
           {eq{${interface_address}}{1.2.3.4}}\
         } {mail.host1.com}{mail.host2.com}} ESMTP $tod_full

I have three dedicated IP addresses which have a different domain attached to each one, this means they have different PTR records to the Server Domain. The PTR's are setup correctly, its just the SMTP Reverse PTR is mismatched DNS wise. If its possible I'd appreciate if anyone can assist in how I can expand the conditional statement to include more than one additional IP address so I can get Exim to serve the correct domain in SMTP banner to resolve the DNS mismatch.

Thanks,

James
 
Last edited:
Hi,

Thanks for your reply and being so kind as to post the direct link to the thread. I followed the steps on page 3 and managed to get it working (see below however for the full story), domains on their own IP responded with the correct address so the lookups at MXtoolbox (http://www.mxtoolbox.com/) showed all green on PTR checks.

The problem however is this change to exim seemingly broke SMTP over TLS. It worked fine over plain unencrypted SMTP when I sent a couple of test emails to an external domain elsewhere (not on my VPS)

I should mention that I am running SMTP over TLS with multiple certs for different domains as described here:

http://www.directadmin.com/forum/showthread.php?t=45170&p=230923#post230923

The modifications to Exim for the SMTP banners seems to have broken it. My email client reported that TLS wasn't supported for the configured mail server, this is not the case as I have been running Dovecot and Exim with SSL for a while with no problems. Reverting the config to the backup I made prior to the modifications and everything was working again.

Is this is unavoidable side affect of messing with the SMTP banner causing SMTP over TLS to not work? I assume its because the variable $received_ip_address used is no longer used or assigned after the changes to the SMTP banner.

Thanks,

James
 
Last edited:
Back
Top