Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Zimbra Collaboration Suite > Installation

Welcome to the Zimbra :: Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 05-01-2008, 06:07 AM
Member
 
Posts: 10
Default [SOLVED] Howto Change Postfix HELO?

I need to change my smtp HELO so that it matches my MX record. I tried changing it in my "main.cf" postifx file, but when I restarted the zimbra services it overwrote it to my servers hostname again. I did find this bug post, but I couldn't follow where to change zimbraMtaMyHostname. Any help would be appreciated!! Thanks!
Reply With Quote
  #2 (permalink)  
Old 05-01-2008, 06:37 AM
Moderator
 
Posts: 7,928
Default

Welcome to the forums

Search is your friend [SOLVED] Problem With zmlocalconfig -e and Postfix smtpd_banner Variable
__________________
Reply With Quote
  #3 (permalink)  
Old 05-01-2008, 12:08 PM
Member
 
Posts: 10
Default

Thanks, uxbod, for the link but the commands listed in the link above didn't work for me. When I telnet to my server it still shows up as
"220 zimbraserver.domain.local ESMTP Postfix"
Reply With Quote
  #4 (permalink)  
Old 05-02-2008, 10:52 AM
Member
 
Posts: 10
Default

One other thing, and I could easily be getting this wrong (I haven't been operating MTAs for decades so...), but I don't think the banner is the same thing the MTA sends when acting as an SMTP client. When it (the local, sending MTA) is sending a message to a remote mail server, it receives the remote MTAs banner when it connects, and the local MTA then has to say HELO (or EHLO) and it's FQDN

so

EHLO mail.realdomainthatwouldhavebeenvalid[DOT]com

which I don't think is the same thing as the banner.

And I believe the FQDN that I provide is what the remote server checks to see if it really is a FQDN (fully qualified domain name) and that the FQDN exists (ie: is resolvable). .loc and .local TLD (top level domains) aren't likely to ever be globally resolvable.
Reply With Quote
  #5 (permalink)  
Old 05-04-2008, 11:56 AM
Moderator
 
Posts: 1,209
Default

Hi Dan,

You are not obligated to use the "$mydomain" variable in the banner string; you can replace it with something literal, like:

Code:
zmlocalconfig -e postfix_smtpd_banner="mail.mydomain.com NO UCE ESMTP"
postconf -e smtpd_banner="mail.mydomain.com NO UCE ESMTP"
zmmtactl reload
And just to confirm, the Postfix variable smtpd_banner is indeed what Postfix uses to HELO other mail clients.

Hope that helps,
Mark
__________________
___________________________________
L. Mark Stone, CIO


"Uptime. All the time."

477 Congress Street | Portland, ME 04101-3431 | (207) 772-5678

proactive maintenance and monitoring | technology consulting
Zimbra groupware | EMR implementations | private cloud hosting
Reply With Quote
  #6 (permalink)  
Old 05-05-2008, 06:49 AM
Member
 
Posts: 10
Default

I ran the commands posted above. It did indeed change my smtpd_banner.

"telnet mail.REDACTED.net 25"

220 mail.REDACTED.net ESMTP Postfix
ehlo smtp1
250-zimbraserver.REDACTED.local

As you can see, changing the smtpd_banner did not change what the mail server says HELO/EHLO as.

Here is what yahoo records show in their received header from the MTA after the proposed change was made and the daemons restarted

Received: from zimbraserver.REDACTED.local (rrcs-XX-XXX-73-145.central.biz.rr.com [XX.XXX.73.145])
by flpi119.prodigy.net (8.13.8 inb regex/8.13.8) with ESMTP id m451if19028913
for ; Sun, 4 May 2008 18:44:46 -0700

As you can see, it records the HELO (which is not what is in the banner) and the reverse DNS. Again, I'm pretty sure that when the MTA is acting as an SMTP client, the banner has nothing to do with the HELO/EHLO of the server. The header recorded by Yahoo seems to agree with that.

From Chapter 3, Pg. 19 of "The Book Of Postfix" by Ralf Hildebrandt and Patrick Koetter
(This is nested inside the "Setting the Hostname in the smtpd Banner" section)

"CAUTION - When Postfix transports messages to other mail servers, it acts as a mail client. While introducing itself to the mail server, it uses the MYHOSTNAME paramater as the HELO name by default. Some mail servers are configured to reject mail if the HELO name and the reverse-resolvable FQDN of the server do not match. Either make sure that the hostname you set for Postfix matches the hostname of your server's IP, or set SMTP_helo_name to match your official FQDN in the DNS namespace."
Reply With Quote
  #7 (permalink)  
Old 05-06-2008, 07:25 PM
Starter Member
 
Posts: 2
Default Here's what I did

I had the same problem. My host was zimbra.corp.city.mydomain.com and I wanted the helo to say it was mail.mydomain.com

I eventually found this :

Bug 17794 - add global config values for postfix myhostname and myorigin to ldap

Which lead me to eventually do this :

zmprov mcf zimbraMtaMyHostname mail.mydomain.com
zmcontrol stop && zmcontrol start

And the helo used when talking to outside mailservers is now using mail.mydomain.com
Reply With Quote
  #8 (permalink)  
Old 05-07-2008, 04:35 AM
Member
 
Posts: 10
Default

Thanks cyberdex! That was exactly what I was looking for, I really appreciate it!!
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

blog.zimbra.com




 

SEO by vBSEO ©2011, Crawlability, Inc.