Change helo name and banner

Discuss your pilot or production implementation with other Zimbra admins or our engineers.
Post Reply
yellowhousejake
Advanced member
Advanced member
Posts: 133
Joined: Tue Sep 09, 2014 9:57 am
ZCS/ZD Version: Release 10.0.1.GA.4518.UBUNTU20_64

Change helo name and banner

Post by yellowhousejake »

Release 8.8.9.GA.3019.UBUNTU16.64 UBUNTU16_64 NETWORK edition, Patch 8.8.9_P8.

A new install migrated from 8.0.7GA NE using zmig. Migration went well, a few things we had modified and forgotten about. But, mail is up and accounts are working fine.

One issue is that the helo name is my localhost name and I would like to change it. My current install has a hostname of zimbra2 and I had changed it years ago when we switched from Exchange to zimbra to use the helo name of webmail, matching our DNS. Previously I used zmlocalconfig. However, on 8.8.9 zmlocalconfig no longer has the attribute for the following.

postfix_smtp_helo_name
postfix_smtpd_banner

I could change them in the main.cf but I wanted to make sure that zimbra will not overwrite those changes the next time it reloads. I did not see a main.cf.in file in /opt/zimbra/common/conf.

What is the preferred way to change only my helo name and banner in Zimbra 8.8.9?

Thanks,

DAve
User avatar
pup_seba
Outstanding Member
Outstanding Member
Posts: 687
Joined: Sat Sep 13, 2014 2:43 am
Location: Tarragona - Spain
Contact:

Re: Change helo name and banner

Post by pup_seba »

Hi,

Run these two commands and verify if this is what you are looking for.
zmprov desc -a zimbraMtaSmtpdBanner
zmprov desc -a zimbraMtaMyHostname
zmprov desc -a zimbraMtaSmtpHeloName
yellowhousejake
Advanced member
Advanced member
Posts: 133
Joined: Tue Sep 09, 2014 9:57 am
ZCS/ZD Version: Release 10.0.1.GA.4518.UBUNTU20_64

Re: Change helo name and banner

Post by yellowhousejake »

I believe so yes.

zimbra@zimbra2:~$ zmprov desc -a zimbraMtaSmtpdBanner
zimbraMtaSmtpdBanner
Value for postconf smtpd_banner

type : string
value :
callback :
immutable : false
cardinality : single
requiredIn :
optionalIn : server,globalConfig
flags : serverInherited
defaults : $myhostname ESMTP $mail_name
min :
max :
id : 1532
requiresRestart :
since : 8.5.0
deprecatedSince :

zimbra@zimbra2:~$ zmprov desc -a zimbraMtaMyHostname
zimbraMtaMyHostname
value of postfix myhostname

type : astring
value :
callback :
immutable : false
cardinality : single
requiredIn :
optionalIn : server,globalConfig
flags : serverInherited
defaults :
min :
max : 256
id : 509
requiresRestart : mta
since :
deprecatedSince :

zimbra@zimbra2:~$ zmprov desc -a zimbraMtaSmtpHeloName
zimbraMtaSmtpHeloName
Value for postconf smtp_helo_name

type : string
value :
callback :
immutable : false
cardinality : single
requiredIn :
optionalIn : server,globalConfig
flags : serverInherited
defaults : $myhostname
min :
max :
id : 1525
requiresRestart :
since : 8.5.0
deprecatedSince :

zimbra@zimbra2:~$

I have been administering Zimbra over five years and sadly, did not know about "desc" with zmprov. I would guess these can be changed safely as so?
zmprov mcf zimbraMtaSmtpHeloName webmail
zmprov mcf zimbraMtaSmptdBanner webmail.<MY DOMAIN> ESMTP

DAve
User avatar
pup_seba
Outstanding Member
Outstanding Member
Posts: 687
Joined: Sat Sep 13, 2014 2:43 am
Location: Tarragona - Spain
Contact:

Re: Change helo name and banner

Post by pup_seba »

It is safe yes. Quite a few configurations migrated from local configs (zmlocalconfig) to ldap ones, and these are 2 of them. So you may want to check the "configuration guide" under Zimbra Documentation page, that will let you search the "old" attribute.

The desc command let's you know about required restarts, although I remember that not being fully accurate for all cases. You'll have to find out. As you are changing global configs, you'll want to make sure the server inherited the configuration correctly after the required restarts (zmprov gs `zmhostname` configyouwanttocheck).

I love this desc thing :) I hope you enjoy it too!

good luck
yellowhousejake
Advanced member
Advanced member
Posts: 133
Joined: Tue Sep 09, 2014 9:57 am
ZCS/ZD Version: Release 10.0.1.GA.4518.UBUNTU20_64

[SOLVED] Re: Change helo name and banner

Post by yellowhousejake »

Worked perfectly, thank you.

DAve
Post Reply