Page 1 of 2 12 LastLast
Results 1 to 10 of 16

Thread: [SOLVED] Help for MTA

  1. #1
    Join Date
    Feb 2009
    Posts
    13
    Rep Power
    6

    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?

  2. #2
    phoenix is offline Zimbra Consultant & Moderator
    Join Date
    Sep 2005
    Location
    Vannes, France
    Posts
    23,201
    Rep Power
    56

    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.
    Last edited by phoenix; 02-03-2009 at 01:16 AM.
    Regards


    Bill


    Acompli: A new adventure for Co-Founder KevinH.

  3. #3
    Join Date
    Feb 2009
    Posts
    13
    Rep Power
    6

    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?

  4. #4
    uxbod's Avatar
    uxbod is offline Moderator
    Join Date
    Nov 2006
    Location
    UK
    Posts
    8,016
    Rep Power
    24

    Default

    You do not need (dots) after the hostnames
    Code:
    10.10.0.152     mailx.example.com       mailx

  5. #5
    Join Date
    Feb 2009
    Posts
    13
    Rep Power
    6

    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.

  6. #6
    uxbod's Avatar
    uxbod is offline Moderator
    Join Date
    Nov 2006
    Location
    UK
    Posts
    8,016
    Rep Power
    24

    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`

  7. #7
    Join Date
    Feb 2009
    Posts
    13
    Rep Power
    6

    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

  8. #8
    Join Date
    Feb 2009
    Posts
    13
    Rep Power
    6

    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.

  9. #9
    uxbod's Avatar
    uxbod is offline Moderator
    Join Date
    Nov 2006
    Location
    UK
    Posts
    8,016
    Rep Power
    24

    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.

  10. #10
    Bill Brock is offline Outstanding Member
    Join Date
    May 2007
    Location
    Oklahoma
    Posts
    703
    Rep Power
    8

    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.

Page 1 of 2 12 LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •