Modify

Ticket #3421 (new enhancement)

Opened 19 months ago

Last modified 18 months ago

Mail Server mailname only used on outgoing connections, not incoming.

Reported by: it@… Owned by: jamor@…
Milestone: nice to have someday Component: base
Severity: normal Keywords:
Cc:

Description

When changing the postfix Server mailname under Mail server options, it only changes /etc/mailname and smtp_helo_name used for outgoing connections.

For incoming connections it still identifies itself with the internal hostname on both the smtpd_banner and the helo response:

Example with Server mailname set to mail.domain.com:

telnet localhost 25 Connected to localhost. Escape character is ']'. 220 mail.domain.lan ESMTP Postfix (Ubuntu) helo test.test.com 250 mail.domain.lan

Attachments

Change History

comment:1 Changed 19 months ago by jamor@…

Hello it and thanks for your report,

I am afraid this is the expected behaviour, postfix documentation says:

smtpd_banner (default: $myhostname  ESMTP $mail_name)

    The text that follows the 220 status code in the SMTP greeting banner. Some people like to see the mail version advertised. By default, Postfix shows no version.

    You MUST specify $myhostname at the start of the text. This is required by the SMTP protocol.

I am missing something?

comment:2 Changed 19 months ago by it@…

I'm not talking about the smtpd_banner option itself, but about what settings/values are set in the postfix main.cf if the Zentyal GUI Option "Mail servername" is set to a custom hostname (not the default "FQDN hostname").

But i guess it depends on what Zentyal thinks the scope of the option "Server mailname" should be.

The option is now called: "Server mailname". But it's setting is only used as mailname on outgoing connections. If you want to leave it as it is now i suggest to at least change the option label to something like "Server mailname (outgoing)" or "Outgoing Server name". As it might imply that it's also used for incoming identification. (This is what seemed logical to me, but ymmv).

Another option is to use the "Server mailname" to set $myhostname as well. And use the "Server mailname" for identification on both incoming and outgoing connections. (It's probably not needed to set smtp_helo_name if you set myhostname, but i'm not sure/untested).

Or even another option would be to change smtpd_banner to: $smtp_helo_name ESMTP $mail_name But this would only set the "Server mailname" in the smtpd banner, not in the helo response.

comment:3 Changed 18 months ago by jacalvo@…

  • Owner changed from jacalvo@… to jamor@…

comment:4 Changed 18 months ago by jamor@…

  • Milestone changed from 2.2.X to nice to have someday
View

Add a comment

Modify Ticket

Change Properties
<Author field>
Action
as new
as The resolution will be set. Next status will be 'closed'
The owner will be changed from jamor@…. Next status will be 'new'
Next status will be 'accepted'
Author


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

 
Note: See TracTickets for help on using tickets.