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)
SMTP Banner
- shawniverson
- Posts: 3650
- Joined: 13 Jan 2014 23:30
- Location: Indianapolis, Indiana USA
- Contact:
Re: SMTP Banner
/etc/postfix/main.cf
You can change $myhostname here and uncomment this line
Code: Select all
#smtpd_banner = $myhostname ESMTP $mail_name
Re: SMTP Banner
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!
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!