smtpd[21307]: warning: valid_hostname: misplaced delimiter: .

Issues related to applications and software problems
Post Reply
zahn-martin
Posts: 35
Joined: 2020/05/05 19:44:15

smtpd[21307]: warning: valid_hostname: misplaced delimiter: .

Post by zahn-martin » 2022/09/29 09:43:00

I get the above warning in /var/log/messages - but only from time to time.
Our hostname is chogolisa.akadia.com and correctly added to main.cf
Does anybody knows what the message is. Besides this Postfix works correctly.

User avatar
TrevorH
Site Admin
Posts: 33191
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: smtpd[21307]: warning: valid_hostname: misplaced delimiter: .

Post by TrevorH » 2022/09/29 10:17:39

Show us the log line in question along with a few lines on either side of it for context.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

zahn-martin
Posts: 35
Joined: 2020/05/05 19:44:15

Re: smtpd[21307]: warning: valid_hostname: misplaced delimiter: .

Post by zahn-martin » 2022/09/29 14:33:01

Sep 29 16:23:22 chogolisa postfix/smtpd[15710]: timeout after RCPT from unknown[14.120.125.195]
Sep 29 16:23:22 chogolisa postfix/smtpd[15710]: disconnect from unknown[14.120.125.195] ehlo=1 mail=1 rcpt=0/1 commands=2/3
Sep 29 16:25:46 chogolisa postfix/submission/smtpd[16091]: connect from 187-25-225-215.3g.claro.net.br[187.25.225.215]
Sep 29 16:25:46 chogolisa postfix/submission/smtpd[16091]: disconnect from 187-25-225-215.3g.claro.net.br[187.25.225.215] ehlo=1 auth=0/1 quit=1 commands=2/3
Sep 29 16:28:22 chogolisa postfix/anvil[15712]: statistics: max connection rate 1/60s for (smtp:14.120.125.195) at Sep 29 16:18:22
Sep 29 16:28:22 chogolisa postfix/anvil[15712]: statistics: max connection count 1 for (smtp:14.120.125.195) at Sep 29 16:18:22
Sep 29 16:28:22 chogolisa postfix/anvil[15712]: statistics: max cache size 1 at Sep 29 16:18:22
Sep 29 16:29:50 chogolisa postfix/smtpd[16293]: connect from unknown[219.133.248.6]
Sep 29 16:29:51 chogolisa postfix/smtpd[16293]: NOQUEUE: reject: RCPT from unknown[219.133.248.6]: 450 4.7.25 Client host rejected: cannot find your hostname, [219.133.248.6]; from=<sales02@tradepro5369.net> to=<christoph.gaechter@akadia.com> proto=ESMTP helo=<mail.port1029.com>
Sep 29 16:29:53 chogolisa postfix/smtpd[16302]: warning: valid_hostname: misplaced delimiter: .
Sep 29 16:29:53 chogolisa postfix/smtpd[16302]: connect from unknown[117.184.199.36]
Sep 29 16:29:54 chogolisa postfix/smtpd[16302]: NOQUEUE: reject: RCPT from unknown[117.184.199.36]: 450 4.7.25 Client host rejected: cannot find your hostname, [117.184.199.36]; from=<deputygov@resbank.co.za> to=<martin.zahn@akadia.com> proto=ESMTP helo=<mail.cntrust.info>

User avatar
TrevorH
Site Admin
Posts: 33191
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: smtpd[21307]: warning: valid_hostname: misplaced delimiter: .

Post by TrevorH » 2022/09/29 17:31:02

What doi you get from grep myhostname /etc/postfix/main.cf ?
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

zahn-martin
Posts: 35
Joined: 2020/05/05 19:44:15

Re: smtpd[21307]: warning: valid_hostname: misplaced delimiter: .

Post by zahn-martin » 2022/09/30 06:22:08

grep myhostname /usr/local/postfix/etc/main.cf

# The myhostname parameter specifies the internet hostname of this
# from gethostname(). $myhostname is used as a default value for many
# myhostname = host.domain.tld
# myhostname = virtual.domain.tld
myhostname = chogolisa.akadia.com
# The default is to use $myhostname minus the first component.
# mail appears to come from. The default is to append $myhostname,
# myorigin = $myhostname
# inet_interfaces = $myhostname
# inet_interfaces = $myhostname, localhost
# The default is $myhostname + localhost.$mydomain. On a mail domain
# mydestination = $myhostname, localhost.$mydomain, localhost
# mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain
# mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain,
mydestination = $myhostname, localhost.$mydomain, $mydomain
# You MUST specify $myhostname at the start of the text. That is an
# smtpd_banner = $myhostname ESMTP $mail_name
# smtpd_banner = $myhostname ESMTP $mail_name ($mail_version)

User avatar
TrevorH
Site Admin
Posts: 33191
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: smtpd[21307]: warning: valid_hostname: misplaced delimiter: .

Post by TrevorH » 2022/09/30 14:19:44

Got any entries in /etc/hosts other than the ones for localhost?
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

zahn-martin
Posts: 35
Joined: 2020/05/05 19:44:15

Re: smtpd[21307]: warning: valid_hostname: misplaced delimiter: .

Post by zahn-martin » 2022/10/01 07:00:00

root@chogolisa:/etc> cat hosts
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
84.253.50.195 chogolisa chogolisa.akadia.com
84.253.50.201 kamet kamet.akadia.com

User avatar
TrevorH
Site Admin
Posts: 33191
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: smtpd[21307]: warning: valid_hostname: misplaced delimiter: .

Post by TrevorH » 2022/10/01 10:49:42

I'm out of ideas though your hosts files entries seem to be the wrong way round. The lines are meant to be "ip.add.re.ss fqdn alias" and yours are "ip.add.re.ss alias fqdn". I doubt if that would make a difference but you never know.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

zahn-martin
Posts: 35
Joined: 2020/05/05 19:44:15

Re: smtpd[21307]: warning: valid_hostname: misplaced delimiter: .

Post by zahn-martin » 2022/10/01 13:17:55

Thank you TREVOR

I corrected the /etc/hosts file as follows:

127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
84.253.50.195 chogolisa.akadia.com chogolisa
84.253.50.201 kamet.akadia.com kamet
root@chogolisa:/var/log>

Post Reply