SMTP Banner

General eFa discussion
Post Reply
Knorkator
Posts: 12
Joined: 06 Dec 2020 13:36

SMTP Banner

Post by Knorkator »

Hello,

I would like to know how to change the hostname in the SMTP banner.
The server for me has the local DNS name efa.realdomainname.tld

To receive mail I have a dyndns address which is as follows: realdomainname.dyndns.org

I would like EFA to report with the dyndns name.

I have already looked at the postfix documentation but could not figure out which setting is the correct one.
Are there any configuration files other than the main.cf here?

This is a private environment, I realize that dyndns is not good and I should also set a reverse DNS.
Postfix sends emails through a smarthost so the dyndns entry should not be relevant.

Thanks a lot!

Translated with www.DeepL.com/Translator (free version)
User avatar
shawniverson
Posts: 3650
Joined: 13 Jan 2014 23:30
Location: Indianapolis, Indiana USA
Contact:

Re: SMTP Banner

Post by shawniverson »

/etc/postfix/main.cf

Code: Select all

#smtpd_banner = $myhostname ESMTP $mail_name
You can change $myhostname here and uncomment this line
Knorkator
Posts: 12
Joined: 06 Dec 2020 13:36

Re: SMTP Banner

Post by Knorkator »

Helllo,

thanks for your reply!

I changed smtpd_banner and myhostname so the new Output looks like this:

220 realdomain.no-ip.org [447 ms]
EHLO keeper-us-east-1c.mxtoolbox.com
250-efa.realdomain.no-ip.org

Thank you!
Post Reply