Modify

Ticket #1756 (closed defect: fixed)

Opened 3 years ago

Last modified 3 years ago

postfix doesn't read /etc/mailname

Reported by: soulnet@… Owned by: javier.amor.garcia@…
Milestone: 1.4-maint Component: mail
Severity: normal Keywords: postfix mail
Cc:

Description

Ater receiving a lot of mail bounces from a specific server, I ran tcpdump and found this:

220 mail7.bbva.com_x1bbva-ent ESMTP
EHLO /etc/mailname
501 5.0.0 Invalid domain name
HELO /etc/mailname
501 5.0.0 Invalid domain name
QUIT
221 2.0.0 mail7.bbva.com closing connection

That's suposed to be a debian specific feature, as can be seen here:  http://irbs.net/internet/postfix/0303/0478.html

I found out this after a week, because lots of servers accept /etc/mailname as domain, as can be seen here:

220 mx.google.com ESMTP 11si8090670pwi.19
EHLO /etc/mailname
250-mx.google.com at your service, [213.96.171.165]
250-SIZE 35651584
250-8BITMIME
250-ENHANCEDSTATUSCODES
250 PIPELINING

I tried both commenting the line

myorigin = /etc/mailname

and setting it to the real domain name, and both solutions worked fine (postfix sent EHLO cosanofiscal.es).

I'm using ebox 1.4.3 up-to-date.

Attachments

Change History

comment:1 Changed 3 years ago by juruen@…

  • Milestone set to 1.4-maint

comment:2 Changed 3 years ago by javier.amor.garcia@…

  • Status changed from new to assigned

comment:3 Changed 3 years ago by javier.amor.garcia@…

Another option is to change "smtp_helo_name = $myoriginin" this setting controls the ehlo value and it seems that is not working as expected

I will try to look the issue tomorrow more deeply

comment:4 Changed 3 years ago by javier.amor.garcia@…

  • Status changed from assigned to closed
  • Resolution set to fixed

This is fixed in [16941] . I have changed the template so is passed the value of mailname by eBox and it is hardcoded in smtp_helo_name.

View

Add a comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
The resolution will be deleted. Next status will be 'reopened'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.