| 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.
|  | | 
07-18-2007, 10:10 PM
| | Special Member | |
Posts: 108
| | FQ Hostname Not Set We've been running our new Zimbra system for a few days and things seem OK. However, I got a returned email today with this error message:
The Postfix program
... host mxi2s.craigslist.org[66.150.243.2] said:
504 : Helo command rejected: need fully-qualified hostname (in
reply to RCPT TO command)
If I look in /opt/zimbra/conf and look at main.cf, indeed
myhostname = mail-01
Where is this being set from? Shouldn't the domain name be appended to mail-01 at this point? In the admin GUI, my Service host name is mail-01.
Our email is getting through, but maybe few are checking for the FQ hostname. Even though, I'd like it to be set correctly.
Thx in advance! | 
07-18-2007, 10:16 PM
| | Former Zimbran | |
Posts: 5,606
| | Try Code: su - zimbra
postconf -e myhostname=mail.domain.com Also, make sure your hostnames are correct in zmlocalconfig.
Goodluck,
john | 
07-19-2007, 06:54 AM
| | Special Member | |
Posts: 108
| | Thanks for the quick reply. I looked in zmlocalconfig and don't see any reference to a hostname. Should there be?
Do I need to restart after making the postfix config change? Is there anywhere else I need to check?
Thx again! | 
07-19-2007, 07:11 AM
| | Zimbra Consultant & Moderator | |
Posts: 20,316
| | List them with 'zmlocalconfig | grep host' you should have an entry for: Code: zimbra_server_hostname = FQDN_of_your_host
__________________
Regards
Bill
| 
07-19-2007, 07:25 AM
| | Special Member | |
Posts: 108
| | Thanks for the reply. The hostname I get from that command is:
zimbra_server_hostname = mail-01
Which is correct, it's the server's hostname. Does it have to match the myhostname in postfix? In past postfix setups I have had the server's name and the postfix hostname (resolvable MX record name) be different. Do I need to make them the same in Zimbra?
Thx! | 
07-19-2007, 07:33 AM
| | Zimbra Consultant & Moderator | |
Posts: 20,316
| | No, that isn't correct. It should be the FQDN (Fully Qualified Domain Name) of your server i.e. mail-01.yourdomain.com
What's in your hosts file and are ther DNS A & MX records set? You can check with the following (run on the zimbra server): Code: host `hostname` <-- backticks not single quotes
dig yourdomain.com any
dig yourdomain.com mx
__________________
Regards
Bill
| 
07-19-2007, 08:01 AM
| | Special Member | |
Posts: 108
| | Bill -
Nothing in my hosts file but the loopback. MX records are set with our ISP. Here's the output you asked for:
mailman@mail-01:/etc$ host `hostname`
mail-01.emerson-school.org has address 10.10.10.18
mailman@mail-01:/etc$
That's the internal DNS name of our Zimbra server.
I used the dig commands to query our ISP's DNS servers. I did not include all the repatative output.
mailman@mail-01:/etc$ dig @216.165.129.157 emerson-school.org mx
; <<>> DiG 9.3.2 <<>> @216.165.129.157 emerson-school.org mx
; (1 server found)
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 39629
;; flags: qr rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 7, ADDITIONAL: 8
;; QUESTION SECTION:
;emerson-school.org. IN MX
;; ANSWER SECTION:
emerson-school.org. 43000 IN MX 10 mail.emerson-school.org.
emerson-school.org. 43000 IN MX 20 backupmx.tds.net.
;; AUTHORITY SECTION:
emerson-school.org. 8289 IN NS c.dns.tds.net.
emerson-school.org. 8289 IN NS d.dns.tds.net.
**************
mailman@mail-01:/etc$ dig @216.165.129.157 emerson-school.org any
; <<>> DiG 9.3.2 <<>> @216.165.129.157 emerson-school.org any
; (1 server found)
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 60101
;; flags: qr rd ra; QUERY: 1, ANSWER: 7, AUTHORITY: 7, ADDITIONAL: 7
;; QUESTION SECTION:
;emerson-school.org. IN ANY
;; ANSWER SECTION:
emerson-school.org. 8336 IN NS ns.tds.net.
emerson-school.org. 8336 IN NS a.dns.tds.net.
emerson-school.org. 8336 IN NS b.dns.tds.net.
***************
mailman@mail-01:/etc$ dig @216.165.129.157 mail.emerson-school.org
; <<>> DiG 9.3.2 <<>> @216.165.129.157 mail.emerson-school.org
; (1 server found)
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 42146
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 7, ADDITIONAL: 7
;; QUESTION SECTION:
;mail.emerson-school.org. IN A
;; ANSWER SECTION:
mail.emerson-school.org. 7402 IN A 69.128.82.114 | 
07-19-2007, 08:11 AM
| | Zimbra Consultant & Moderator | |
Posts: 20,316
| | Quote:
Originally Posted by swu Bill -
Nothing in my hosts file but the loopback. MX records are set with our ISP. Here's the output you asked for: | That's the first problem. Quote:
Originally Posted by swu I used the dig commands to query our ISP's DNS servers. I did not include all the repatative output. | That's the second problem.
You need to modify the /etc/hosts file to contain the correct information, please check the Quick Start Guide on the Documentation page. As you are behind a NAT device you need to have a local DNS server with correct A & MX records pointing to your Zimbra server, please check the wiki for Split Domain.
Once you've corrected those two problems installation should be a doddle.
__________________
Regards
Bill
| 
07-19-2007, 09:57 AM
| | Special Member | |
Posts: 108
| | Bill -
I looked through the wiki regarding split domains and I'm not seeing how they pertain to my issue. It seems split domains are for having an old and new server in the mix.
It may be a stupid question but I'll ask it, why do I need an internal MX record defined on my DNS server? Queries for our MX record will be out on the internet and those queries will be to our ISP. External mail is coming in fine.
My /etc/hosts file should have an entry for my internal FQDN of my zimbra server?
10.10.10.18 mail-01.emerson-school.org
Thx again! | 
07-19-2007, 12:30 PM
| | Special Member | |
Posts: 108
| | I overlooked my hosts file. It had two entries:
127.0.0.1 localhost localhost
127.0.1.1 mail-01.emerson-school.org mail-01
I changed the loopback per the Quick Start doc and added the FQDN entry:
# 127.0.0.1 localhost localhost
127.0.0.1 localhost.emerson-school.org localhost
127.0.1.1 mail-01.emerson-school.org mail-01
10.10.10.18 mail-01.emerson-school.org
I saved the file and within a minute, no one could access the server via the webclient. After remarking the changes and saving the host file, they still could not. I had to restart the server to get access via the weblient again. SSH access still worked.
I don't know where the 127.0.1.1 entry came from. Any advice would be greatly appreciated. Thx! | | Thread Tools | Search this Thread | | | | | Display Modes | Linear Mode | | Why Join? Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.  |