Page 1 of 1

SMTP Banner

Posted: 22 Dec 2020 07:05
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)

Re: SMTP Banner

Posted: 22 Dec 2020 22:23
by shawniverson
/etc/postfix/main.cf

Code: Select all

#smtpd_banner = $myhostname ESMTP $mail_name
You can change $myhostname here and uncomment this line

Re: SMTP Banner

Posted: 23 Dec 2020 05:41
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!