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 02-03-2009, 12:09 AM
Member
 
Posts: 13
Default [SOLVED] Help for MTA

Hello,

I can't seem to get the MTA to start and the MX to resolve.

Checking the MX via the zimbra console gives me:

Code:
Domain is configured to use SMTP host: mailx.example.com.. None of the MX records match this name. Found the following MX records:
10 mailx.example.com.
Doing a dig MX example.com gives me

Code:
; <<>> DiG 9.3.4-P1 <<>> mx example.com
;; global options:  printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 2394
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 1

;; QUESTION SECTION:
;example.com.            IN      MX

;; ANSWER SECTION:
example.com.     2592000 IN      MX      10 mailx.example.com.

;; AUTHORITY SECTION:
example.com.     2592000 IN      NS      10.10.0.152.example.com.

;; ADDITIONAL SECTION:
mailx.example.com. 2592000 IN    A       10.10.0.152

;; Query time: 0 msec
;; SERVER: 10.10.0.152#53(10.10.0.152)
;; WHEN: Tue Feb  3 08:22:21 2009
;; MSG SIZE  rcvd: 100
I'm running bind chroot, and my config is:

/etc/named.conf

Code:
// Default named.conf generated by install of bind-9.2.4-2
options {
       directory "/var/named";
       dump-file "/var/named/data/cache_dump.db";
       statistics-file "/var/named/data/named_stats.txt";
forwarders { 10.10.0.140 ; };
};
include "/etc/rndc.key";
// We are the master server for example.com
zone "example.com" {
    type master;
    file "db.example.com";
};

zone "mailx.example.com" {
        type master;
        file "db.mailx.example.com";
};
Zone Files are:

db.example.com

Code:
;
;       Addresses and other host information.
;
@       IN      SOA     example.com. hostmaster.example.com. (
                               10118      ; Serial
                               43200      ; Refresh
                               3600       ; Retry
                               3600000    ; Expire
                               2592000 )  ; Minimum
;       Define the nameservers and the mail servers
               IN      NS      10.10.0.152
               IN      A       10.10.0.152
               IN      MX      10 mailx.example.com.
db.mailx.example.com

Code:
;
;       Addresses and other host information.
;
@       IN      SOA     mailx.example.com. hostmaster.example.com. (
                               10118      ; Serial
                               43200      ; Refresh
                               3600       ; Retry
                               3600000    ; Expire
                               2592000 )  ; Minimum
;       Define the nameservers and the mail servers
               IN      NS      10.10.0.152
               IN      A       10.10.0.152

Can anyone tell me what's wrong?
Reply With Quote
  #2 (permalink)  
Old 02-03-2009, 12:14 AM
Zimbra Consultant & Moderator
 
Posts: 20,316
Default

Please update your forum profile with the output of the following:

Code:
zmcontrol -v
What's the output of the following (run on the Zimbra server):

Code:
cat /etc/hosts
cat /etc/resolv.conf
host `hostname`  <-- use backticks not single quotes

zmcontrol status
You should also look in the log files and see what errors there are.
__________________
Regards


Bill

Last edited by phoenix; 02-03-2009 at 12:16 AM..
Reply With Quote
  #3 (permalink)  
Old 02-03-2009, 12:37 AM
Member
 
Posts: 13
Default Thank you for the quick reply

Quote:
Originally Posted by phoenix View Post
Please update your forum profile with the output of the following:

Code:
zmcontrol -v
What's the output of the following (run on the Zimbra server):

Code:
cat /etc/hosts
cat /etc/resolv.conf
host `hostname`  <-- use backticks not single quotes

zmcontrol status
You should also look in the log files and see what errors there are.


I've updated the profile as you asked.

host `hostname` gives me:

Code:
;; connection timed out; no servers could be reached
/etc/hosts is

Code:
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1       localhost.localdomain   localhost
::1     localhost6.localdomain6 localhost6
10.10.0.152     mailx.example.com.       mailx.
10.10.0.140     ds.example.com.  ds.
/etc/resolv.conf is

Code:
search example.com
nameserver 10.10.0.152
nameserver 10.10.0.140
10.10.0.140 is the AD server, so I plan to shift it to primary, as a previous issue would not let me authenticate via AD if I did not do this.

The logs show me this useful info:

Code:
Feb  3 13:56:00 mailx postfix/postqueue[14423]: warning: valid_hostname: misplaced delimiter: mailx.example.com.
Feb  3 13:56:00 mailx postfix/postqueue[14423]: fatal: file /opt/zimbra/postfix-2.4.7.5z/conf/main.cf: parameter myhostname: bad parameter value: mailx.example.com.
Feb  3 08:56:05 mailx zmmailboxdmgr[14650]: status requested
Feb  3 08:56:05 mailx zmmailboxdmgr[14650]: status OK
Feb  3 08:56:07 mailx zimbramon[14426]: 14426:info: 2009-02-03 08:56:01, STATUS: mailx.example.com.: antispam: Stopped
Feb  3 08:56:07 mailx zimbramon[14426]: 14426:info: 2009-02-03 08:56:01, STATUS: mailx.example.com.: antivirus: Stopped
Feb  3 08:56:07 mailx zimbramon[14426]: 14426:info: 2009-02-03 08:56:01, STATUS: mailx.example.com.: ldap: Running
Feb  3 08:56:07 mailx zimbramon[14426]: 14426:info: 2009-02-03 08:56:01, STATUS: mailx.example.com.: logger: Running
Feb  3 08:56:07 mailx zimbramon[14426]: 14426:info: 2009-02-03 08:56:01, STATUS: mailx.example.com.: mailbox: Running
Feb  3 08:56:07 mailx zimbramon[14426]: 14426:info: 2009-02-03 08:56:01, STATUS: mailx.example.com.: mta: Stopped
Feb  3 08:56:07 mailx zimbramon[14426]: 14426:info: 2009-02-03 08:56:01, STATUS: mailx.example.com.: saslauthd: is running with pid 6059
Feb  3 08:56:07 mailx zimbramon[14426]: 14426:info: 2009-02-03 08:56:01, STATUS: mailx.example.com.: snmp: Running
Feb  3 08:56:07 mailx zimbramon[14426]: 14426:info: 2009-02-03 08:56:01, STATUS: mailx.example.com.: spell: Running
Feb  3 08:56:07 mailx zimbramon[14426]: 14426:info: 2009-02-03 08:56:01, STATUS: mailx.example.com.: stats: Running
This seems to point at a hostname problem. How can I fix it?
Reply With Quote
  #4 (permalink)  
Old 02-03-2009, 12:38 AM
Moderator
 
Posts: 7,928
Default

You do not need (dots) after the hostnames
Code:
10.10.0.152     mailx.example.com       mailx
__________________
Reply With Quote
  #5 (permalink)  
Old 02-03-2009, 01:11 AM
Member
 
Posts: 13
Default Thank you for the quick reply

I changed /etc/hosts/ to remove the dots from the names. This is what i see after this:

Code:
 zmcontrol start
Host mailx.krayonpictures.com.
        Starting logger...FAILED
mysqld_safe already running with pid 6401


        Starting mailbox...Done.
        Starting antispam...Done.
        Starting antivirus...Done.
        Starting snmp...FAILED


        Starting spell...Done.
        Starting mta...FAILED
postmap: warning: valid_hostname: misplaced delimiter: mailx.krayonpictures.com.
postmap: fatal: file /opt/zimbra/postfix-2.4.7.5z/conf/main.cf: parameter myhostname: bad parameter value: mailx.krayonpictures.com.
postalias: warning: valid_hostname: misplaced delimiter: mailx.krayonpictures.com.
postalias: fatal: file /opt/zimbra/postfix-2.4.7.5z/conf/main.cf: parameter myhostname: bad parameter value: mailx.krayonpictures.com.
postfix failed to start


        Starting stats...Done.
Reply With Quote
  #6 (permalink)  
Old 02-03-2009, 01:28 AM
Moderator
 
Posts: 7,928
Default

Now you have made the changes please post the output again from
Code:
cat /etc/hosts
cat /etc/resolv.conf
dig yourdomain mx
dig yourdomain any
host `hostname` <- note backticks and not single quotes
I believe when you installed Zimbra reported that you had a error with your DNS setup though you continued with the installation ? So I suspect you have some incorrect information in your Zimbra configuration now. So, check how your server is setup using
Code:
su - zimbra
zmlocalconfig | grep krayonpictures
zmprov gs `zmhostname`
__________________
Reply With Quote
  #7 (permalink)  
Old 02-03-2009, 05:18 AM
Member
 
Posts: 13
Default Here we are

Quote:
Originally Posted by uxbod View Post
Now you have made the changes please post the output again from
Code:
cat /etc/hosts
cat /etc/resolv.conf
dig yourdomain mx
dig yourdomain any
host `hostname` <- note backticks and not single quotes
I believe when you installed Zimbra reported that you had a error with your DNS setup though you continued with the installation ? So I suspect you have some incorrect information in your Zimbra configuration now. So, check how your server is setup using
Code:
su - zimbra
zmlocalconfig | grep example
zmprov gs `zmhostname`
Wow, you guys are quick!
Here are the outputs :

cat /etc/hosts

Code:
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1       localhost.localdomain   localhost
::1     localhost6.localdomain6 localhost6
10.10.0.152     mailx.example.com        mailx
10.10.0.140     ds.example.com   ds
cat /etc/resolv.conf

Code:
; generated by /sbin/dhclient-script
search example.com
nameserver 10.10.0.152
nameserver 10.10.0.140
dig example.com mx

Code:
; <<>> DiG 9.3.4-P1 <<>> example.com mx
;; global options:  printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 13368
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 1

;; QUESTION SECTION:
;example.com.            IN      MX

;; ANSWER SECTION:
example.com.     2592000 IN      MX      10 mailx.example.com.

;; AUTHORITY SECTION:
example.com.     2592000 IN      NS      10.10.0.152.example.com.

;; ADDITIONAL SECTION:
mailx.example.com. 2592000 IN    A       10.10.0.152

;; Query time: 1 msec
;; SERVER: 10.10.0.152#53(10.10.0.152)
;; WHEN: Tue Feb  3 13:41:21 2009
;; MSG SIZE  rcvd: 100
dig example.com any

Code:
; <<>> DiG 9.3.4-P1 <<>> example.com any
;; global options:  printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 38139
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 4, AUTHORITY: 0, ADDITIONAL: 1

;; QUESTION SECTION:
;example.com.            IN      ANY

;; ANSWER SECTION:
example.com.     2592000 IN      SOA     example.com. hostmaster.example.com. 10118 43200 3600 3600000 2592000
example.com.     2592000 IN      NS      10.10.0.152.example.com.
example.com.     2592000 IN      A       10.10.0.152
example.com.     2592000 IN      MX      10 mailx.example.com.

;; ADDITIONAL SECTION:
mailx.example.com. 2592000 IN    A       10.10.0.152

;; Query time: 1 msec
;; SERVER: 10.10.0.152#53(10.10.0.152)
;; WHEN: Tue Feb  3 13:42:02 2009
;; MSG SIZE  rcvd: 163
host `hostname`

Code:
mailx.example.com has address 10.10.0.152
Reply With Quote
  #8 (permalink)  
Old 02-03-2009, 05:26 AM
Member
 
Posts: 13
Default Perhaps this could help in diagnosing the problem

issuing a ' zmcontrol start ' as the zimbra user gives:

Code:
Host mailx.example.com.
        Starting logger...FAILED
mysqld_safe already running with pid 6401


        Starting mailbox...Done.
        Starting antispam...Done.
        Starting antivirus...Done.
        Starting snmp...FAILED


        Starting spell...Done.
        Starting mta...FAILED
postmap: warning: valid_hostname: misplaced delimiter: mailx.example.com.
postmap: fatal: file /opt/zimbra/postfix-2.4.7.5z/conf/main.cf: parameter myhostname: bad parameter value: mailx.example.com.
postalias: warning: valid_hostname: misplaced delimiter: mailx.example.com.
postalias: fatal: file /opt/zimbra/postfix-2.4.7.5z/conf/main.cf: parameter myhostname: bad parameter value: mailx.example.com.
postfix failed to start


        Starting stats...Done.
I really have a strong feeling this could be root cause. I tried editing the offending line in /opt/zimbra/postfix-2.4.7.5z/conf/main.cf, removing the dot at the end, but the name somehow gets reset to the previous value each time I visit the file.
Reply With Quote
  #9 (permalink)  
Old 02-03-2009, 05:35 AM
Moderator
 
Posts: 7,928
Default

You need to make the change in /opt/zimbra/conf/main.conf.in. The .conf gets re-written everytime the services are restarted. Also run the zmlocalconfig command I provided aswell.
__________________
Reply With Quote
  #10 (permalink)  
Old 02-03-2009, 01:35 PM
Outstanding Member
 
Posts: 684
Default Not sure it makes a difference, but...

I would use a FQDN for your NS record instead of the IP + domain name. It could be mailx.domain.com.
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


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.