Skip to main content

SMTP Banner on Exim sending from account IP

Comments

6 comments

  • Pietro Leone

    Hello Marie,

    i want to put this in smtp_banner: 

    "${smtp_active_hostname} ESMTP Exim ${version_number} \#${compile_number} ${tod_full} \nWe do not authorize the use of this system to transport unsolicited, \nand/or bulk e-mail."

    this is not empty.
    this variable ${smtp_active_hostname} i think is the hostname in use...
    i not understand the purpose of custom file ( /etc/custom_smtp_banner )
    thanks

    0
  • cPRex Jurassic Moderator

    Pietro Leone - what you said you want to put should be the default on the server.  Are you seeing a problem with the current SMTP banner on the machine?

    0
  • Pietro Leone

    thanks,

    actually i have:

    "${primary_hostname} ESMTP Exim ${version_number}  \#${compile_number} ${tod_full} \n     We do not authorize the use of this system to transport unsolicited, \n     and/or bulk e-mail."

    and i want to change it with:

    "${smtp_active_hostname} ESMTP Exim ${version_number} \#${compile_number} ${tod_full} \nWe do not authorize the use of this system to transport unsolicited, \nand/or bulk e-mail."

    i want Reverse DNS match with SMTP Banner:

    [root@myserver user]# dig -x 51.89.XXX.XXX

    ;; ANSWER SECTION:
    XXX.XXX.89.51.in-addr.arpa. 21600  IN      PTR     ipXXX.ip-51-89-XXX.eu.

     

    but now.:

    Connecting to 51.89.XXX.XXX
    220-[HERE ACTUALLY I HAVE PRIMARY SERVER HOSTNAME] ESMTP Exim 4.98 #2 Wed, 29 Jan 2025 10:01:30 +0100
    220-We do not authorize the use of this system to transport unsolicited,
    220 and/or bulk e-mail. [193 ms]
    EHLO keeper-us-east-1d.xxxxxxx.com
    250-[HERE ACTUALLY I HAVE PRIMARY SERVER HOSTNAME] Hello keeper-us-east-1d.xxxxxxx.com [18.209.XXX.XXX]

    0
  • cPRex Jurassic Moderator

    Thanks for the details - and you have confirmed the reverse DNS is set properly at your hosting provider?

    0
  • Pietro Leone

    yes,

    if you read the first message that is the initial premise otherwise it would all be useless, even without the correct rDNS I would have had big problems with email but everything works fine.

    What I want to do is to modify the smtp_banner so that even if I send with the account IPs my server respects the rule of having the hostname equal to the reverse hostname in the smtp banner

    is it clear ?

    thanks a lot

    0
  • cPRex Jurassic Moderator

    Sure, that all makes sense.  You only need the custom_smtp_banner file if you want certain IP addresses to have certain PTR records.  If you're making this change globally on the server you wouldn't need to perform those steps.

    0

Please sign in to leave a comment.