Results 1 to 6 of 6

Thread: Zimbra, DNS & Postfix \ MTA

  1. #1
    stillwell is offline Member
    Join Date
    Jun 2007
    Posts
    13
    Rep Power
    8

    Default Zimbra, DNS & Postfix \ MTA

    What in the World am I doing wrong here? I've been here for countless hours tinkering with these configurations. I can get the web interface for both admin and user to come up:

    as user zimbra,

    zmcontrol start

    Everything starts, I send an email - It bounces back from Postfix (and does not reach the desired email account)

    zmcontrol status

    Then says that MTA is stopped as well as postfix.

    ... I have 'chkconfig postfix stop', made sure that it isn't running and MTA will say that it is running when I check the status. Then I send an email, it bounces back from postfix and I have to kill -9 Zimbra's version of postfix to get it going again.


    --------------------------------------------------------------------------

    File: /etc/hosts

    # Do not remove the following line, or various programs
    # that require network functionality will fail.
    127.0.0.1 localhost.localdomain localhost mydomain.com
    74.53.2xx.226 mydomain.com
    74.53.2xx.226 mail.mydomain.com
    74.53.2xx.227 ns.mydomain.com
    74.53.2xx.238 ns2.mydomain.com
    74.53.2xx.239 ns3.mydomain.com

    --------------------------------------------------------------------------
    File: .../named/chroot/var/named/mydomain.com.zone Modified

    $TTL 3D @ IN SOA mail.mydomain.com. mail.mydomain.com. (

    2005110200
    8H ; refresh, seconds
    2H ; retry, seconds
    4W ; expire, seconds
    1D ) ; minimum, seconds
    NS mail ; Inet Address of name server
    MX 10 mail.mydomain.com ; Primary Mail Exchanger

    mail A 74.53.200.226

    mail IN CNAME mail

    --------------------------------------------------------------------------

    File: /etc/named.conf Modified

    //
    // named.conf for Red Hat caching-nameserver
    //

    options {
    directory "/var/named";
    dump-file "/var/named/data/cache_dump.db";
    statistics-file "/var/named/data/named_stats.txt";
    /*
    * If there is a firewall between you and nameservers you want
    * to talk to, you might need to uncomment the query-source
    * directive below. Previous versions of BIND always asked
    * questions using port 53, but BIND 8.1 uses an unprivileged
    * port by default.
    */
    // query-source address * port 53;
    };

    //


    //
    // a caching only nameserver config
    //
    controls {
    inet 127.0.0.1 allow { localhost; } keys { rndckey; rndc-key; };
    };

    zone "." IN {
    type hint;
    file "named.ca";
    };

    zone "localdomain" IN {
    type master;
    file "localdomain.zone";
    allow-update { none; };
    };

    };

    zone "localhost" IN {
    type master;
    file "localhost.zone";
    allow-update { none; };
    };

    zone "myhost.com" IN {
    type master;
    file "myhost.com.zone";
    allow-update { none; };
    };

    zone "0.0.127.in-addr.arpa" IN {
    type master;
    file "named.local";
    allow-update { none; };
    };

    allow-update { none; };
    };

    zone "0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0. 0.0.0.0.0.0.ip6.arpa" I$
    type master;
    file "named.ip6.local";
    allow-update { none; };
    };

    zone "255.in-addr.arpa" IN {
    type master;
    file "named.broadcast";
    allow-update { none; };
    };

    zone "0.in-addr.arpa" IN {
    type master;
    file "named.zero";
    allow-update { none; };

    file "named.zero";
    allow-update { none; };
    };

    include "/etc/rndc.key";
    key rndc-key {
    algorithm hmac-md5;
    secret "xxxxxxxxxxxxxxxxxxxxxxxxxxxx";
    };

    --------------------------------------------------------------------------

    Please respond ASAP-Hopefully there is a simple solution!

    Thanks, A.

  2. #2
    soxfan is offline Moderator
    Join Date
    Mar 2006
    Location
    Massachusetts
    Posts
    965
    Rep Power
    10

    Default

    Kind of hard to say what the problem is, at least for me. You really need to look at the system and Zimbra logs (/var/log/messages, /var/log/maillog, and /opt/zimbra/mailbox.log) for more info. Here's a few things I see in your configuration files that could be causing issues:

    1) You /etc/hosts files doesn't look right. I think you want to get rid of the "74.53.2xx.226 mydomain.com" line. Also, the "74.53.2xx.226 mydomain.com" should be "74.53.2xx.226 mail.mydomain.com mail".

    2) You modified a chroot zone file, but you're working on the /etc/named.conf file. If you really are running in a chroot environment make sure you /etc/named.conf file is a symbolic link to the chroot area.

    3) Not sure if this is due to some editing that you did to protect your actual environment, but you list the your zone file as mydomain.com.zone, yet your named.conf file refers to myhost.com.zone.

    Also, you didn't post it, but make sure you /etc/resolv.conf file is correct. If you haven't already done so, I would recommend reading the Wiki and Forums for information on setting up DNS with Zimbra.

    Hope this helps. Post back more detailed error information if you are still having problems.

  3. #3
    stillwell is offline Member
    Join Date
    Jun 2007
    Posts
    13
    Rep Power
    8

    Default

    1. I got rid of the 74.53.2xx.226 mydomain.com
    Also, the "74.53.2xx.226 mydomain.com" should be "74.53.2xx.226 mail.mydomain.com mail"

    2. The named.conf is a sym link to chrooted

    3. Have Pri and Secondary DNS servers in resolv.conf

    For some reason my bash prompt says

    [myusername@mail ~]$




    I did the changes and now when I log into the web interface I cannot receive or send emails, where before I was able to retrieve them and when I sent them I got a postfix bounce.

    Now when I try to send them I get this error:

    msg - system failure: MessagingException
    code - service.FAILURE
    method - ZmCsfeCommand.prototype.invoke
    detail - soap:Receiver


    Who knows? :\

  4. #4
    phoenix is online now Zimbra Consultant & Moderator
    Join Date
    Sep 2005
    Location
    Vannes, France
    Posts
    23,480
    Rep Power
    56

    Default

    If you search the forum or wiki or read the Quick Start Guide you will see that your /etc/hosts format is incorrect and you'll see how to check your DNS. Do these commands:

    Code:
    host `hostname`  <-- backticks not single quotes
    dig  yourdomain.com any
    dig  yourdomain.com mx
    Regards


    Bill


    Acompli: A new adventure for Co-Founder KevinH.

  5. #5
    stillwell is offline Member
    Join Date
    Jun 2007
    Posts
    13
    Rep Power
    8

    Red face Much closer than I was...

    Hello,

    I now I have Zimbra setup on one domain, where I eventually would like to have it host separate email accounts on different domains on the same server. I can currently receive email, but when I send it I get the postfix "Subject:Undelivered Mail Returned to Sender" message.

    I can access the user (obviously since I can receive email) and admin pages.
    I'm close, please help!

    Here is my /etc/hosts file:
    Code:
    127.0.0.1       localhost.localdomain localhost
    74.53.2xx.237   mail.mydomain.com mail
    74.53.2xx.237   ns.mydomain.com ns
    Code:
    //
    // named.conf for Red Hat caching-nameserver
    //
    
    options {
            directory "/var/named";
            dump-file "/var/named/data/cache_dump.db";
            statistics-file "/var/named/data/named_stats.txt";
            /*
             * If there is a firewall between you and nameservers you want
             * to talk to, you might need to uncomment the query-source
             * directive below.  Previous versions of BIND always asked
             * questions using port 53, but BIND 8.1 uses an unprivileged
             * port by default.
             */
             // query-source address * port 53;
    };
    
    //
    
    //
    // a caching only nameserver config
    //
    controls {
            inet 127.0.0.1 allow { localhost; } keys { rndckey; rndc-key; };
    };
    
    zone "." IN {
            type hint;
            file "named.ca";
    };
    
    zone "localdomain" IN {
            type master;
            file "localdomain.zone";
            allow-update { none; };
    };
    
    };
    
    zone "localhost" IN {
            type master;
            file "localhost.zone";
            allow-update { none; };
    };
    
    zone "mydomain.com" IN {
    type master;
    file "mydomain.com.zone";
    allow-update { none; };
    };
    
    zone "0.0.127.in-addr.arpa" IN {
            type master;
            file "named.local";
            allow-update { none; };
    };
            allow-update { none; };
    };
    
    zone "0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.ip6.arpa" I$
            type master;
            file "named.ip6.local";
            allow-update { none; };
    };
    
    zone "255.in-addr.arpa" IN {
            type master;
            file "named.broadcast";
            allow-update { none; };
    };
    
    zone "0.in-addr.arpa" IN {
            type master;
            file "named.zero";
            allow-update { none; };
            file "named.zero";
            allow-update { none; };
    };
    
    include "/etc/rndc.key";
    key rndc-key {
            algorithm hmac-md5;
            secret "GznWLTw3iUePdgvlLshEOw==";
            };

    This is my /var/named/chroot/var/named/mydomain.com.zone
    Code:
    @       IN      SOA     mail.mydomain.com. mail.mydomain.com. (
                            2005110201
                            8H
                            2H
                            4W
                            1D )
    @       IN NS   mail.mydomain.com
            IN MX 10 mail.mydomain.com
            IN A 74.53.2xx.237
    mail    IN A 74.53.2xx.237
    www     IN A 74.53.2xx.236
            NS mail ; Inet Address of name server
            MX 10 mail.mydomain.com ; Primary Mail Exchanger

    I'm thinking my Hello,

    I now I have Zimbra setup on one domain, where I eventually would like to have it host separate email accounts on different domains on the same server. I can currently receive email, but when I send it I get the postfix "Subject:
    Undelivered Mail Returned to Sender" message.


    Here is my /etc/hosts file:
    Code:
    127.0.0.1       localhost.localdomain localhost
    74.53.2xx.237   mail.mydomain.com mail
    74.53.2xx.237   ns.mydomain.com ns
    Code:
    //
    // named.conf for Red Hat caching-nameserver
    //
    
    options {
            directory "/var/named";
            dump-file "/var/named/data/cache_dump.db";
            statistics-file "/var/named/data/named_stats.txt";
            /*
             * If there is a firewall between you and nameservers you want
             * to talk to, you might need to uncomment the query-source
             * directive below.  Previous versions of BIND always asked
             * questions using port 53, but BIND 8.1 uses an unprivileged
             * port by default.
             */
             // query-source address * port 53;
    };
    
    //
    
    //
    // a caching only nameserver config
    //
    controls {
            inet 127.0.0.1 allow { localhost; } keys { rndckey; rndc-key; };
    };
    
    zone "." IN {
            type hint;
            file "named.ca";
    };
    
    zone "localdomain" IN {
            type master;
            file "localdomain.zone";
            allow-update { none; };
    };
    
    };
    
    zone "localhost" IN {
            type master;
            file "localhost.zone";
            allow-update { none; };
    };
    
    zone "mydomain.com" IN {
    type master;
    file "mydomain.com.zone";
    allow-update { none; };
    };
    
    zone "0.0.127.in-addr.arpa" IN {
            type master;
            file "named.local";
            allow-update { none; };
    };
            allow-update { none; };
    };
    
    zone "0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.ip6.arpa" I$
            type master;
            file "named.ip6.local";
            allow-update { none; };
    };
    
    zone "255.in-addr.arpa" IN {
            type master;
            file "named.broadcast";
            allow-update { none; };
    };
    
    zone "0.in-addr.arpa" IN {
            type master;
            file "named.zero";
            allow-update { none; };
            file "named.zero";
            allow-update { none; };
    };
    
    include "/etc/rndc.key";
    key rndc-key {
            algorithm hmac-md5;
            secret "GznWLTw3iUePdgvlLshEOw==";
            };

    This is my /var/named/chroot/var/named/mydomain.com.zone
    Code:
    @       IN      SOA     mail.mydomain.com. mail.mydomain.com. (
                            2005110201
                            8H
                            2H
                            4W
                            1D )
    @       IN NS   mail.mydomain.com
            IN MX 10 mail.mydomain.com
            IN A 74.53.2xx.237
    mail    IN A 74.53.2xx.237
    www     IN A 74.53.2xx.236
            NS mail ; Inet Address of name server
            MX 10 mail.mydomain.com ; Primary Mail Exchanger

    What is my next step? It would be nice to have everything configured with at least two domains setup by this weekend.

    Thank You,
    A.

  6. #6
    jholder's Avatar
    jholder is offline Former Zimbran
    Join Date
    Oct 2005
    Location
    Thatcher, AZ
    Posts
    5,606
    Rep Power
    20

    Default

    Are DNS Lookups enabled? If not, then try enabling them.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 21
    Last Post: 02-04-2010, 10:06 AM
  2. Replies: 8
    Last Post: 02-27-2007, 04:10 AM
  3. dspam logrotate errors
    By michaeln in forum Users
    Replies: 7
    Last Post: 02-19-2007, 12:45 PM
  4. Replies: 16
    Last Post: 09-07-2006, 06:39 AM
  5. Zimbra MTA and CentOS VPS on OpenVZ
    By czaveri in forum Installation
    Replies: 2
    Last Post: 03-20-2006, 09:42 AM

Posting Permissions

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