Issue
SMTP Banner is Wrong
Hi Friends,
I just changed ISPs, and got a new static IP address, updated my A record, etc. After having the usual email rejection issues, and testing with MX Toolbox, etc, I found that my SMTP header is incorrect. It identifies as:
220 mobile-166-130-xxx-xxx.mycingular.net ESMTP Postfix (2.6.6) [813 ms]
(actual IP removed)
This is the IP for the ISP (AT&T mobile) I am no longer on, and not connected to. Where is postfix getting this? I even added a line to /var/postfix/main.cf:
smtpd_banner = $myhostname ESMTP $mail_name ($mail_version)
and restared the service. This seems to make no difference. Where is it getting the stale info, and how do I set it to my domain name to match my MX record?
Thanks!
Drew
I just changed ISPs, and got a new static IP address, updated my A record, etc. After having the usual email rejection issues, and testing with MX Toolbox, etc, I found that my SMTP header is incorrect. It identifies as:
220 mobile-166-130-xxx-xxx.mycingular.net ESMTP Postfix (2.6.6) [813 ms]
(actual IP removed)
This is the IP for the ISP (AT&T mobile) I am no longer on, and not connected to. Where is postfix getting this? I even added a line to /var/postfix/main.cf:
smtpd_banner = $myhostname ESMTP $mail_name ($mail_version)
and restared the service. This seems to make no difference. Where is it getting the stale info, and how do I set it to my domain name to match my MX record?
Thanks!
Drew
Share this post:
Responses (8)
-
Accepted Answer
-
Accepted Answer
-
Accepted Answer
Hi Drew and Nick,
Changing the Mail Hostname parameter in the SMTP Server app should have done the trick. That webconfig element maps to the myhostname parameter in /etc/postfix/main.cf. By default, this is set to the same hostname specified in the first boot installation wizard, but this can be changed in the SMTP Server app later on. Some administrators like their SMTP banner replying with something like "mail.example.com" instead of the generic hostname. -
Accepted Answer
I am very sketchy on mail, but I think the existence of a PTR record is the primary concern and not its contents! The fact that it exists allows it to pass certain validation checks, e.g. reject_unknown_client as one of the checks in main.cf (which I don't use)
In main.cf I am not sure why you have the smtp line like that. I believe the "-o ....." is used to overwrite the main.cf parameter, so in your case you are not permitting postfix from picking up "mydomain" from main.cf.
My equivalent line in master.cf is:# ==========================================================================
# service type private unpriv chroot wakeup maxproc command + args
# (yes) (yes) (yes) (never) (100)
# ==========================================================================
smtp inet n - n - - smtpd
...... and it looks so much better on the forum, when you put it between "code" tags. Then everything lines up beautifully. -
Accepted Answer
Nick,
I found it! Instead of looking in main.cf, I looked in master.cf. There was a line:
# ==========================================================================
# service type private unpriv chroot wakeup maxproc command + args
# (yes) (yes) (yes) (never) (100)
# ==========================================================================
smtp inet n - n - - smtpd -o myhostname=mail.mydomain.com
and it was still set to AT&T's internal ptr for their name for the IP. I changed it to my domain name and has the new ISP set a PTR, and I think it is normal now. We shall see if I get any more rejections.
MX Toolbox is still reporting this warning, though:
Reverse DNS Mismatch Reverse DNS does not contain the hostname
So I don't know what detail has it concerned. PTR does now report to mail.mydomain.com
Thanks,
Drew -
Accepted Answer
-
Accepted Answer
Please login to post a reply
You will need to be logged in to be able to post a reply. Login using the form on the right or register an account if you are new here.
Register Here »