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 06-24-2007, 03:18 PM
Member
 
Posts: 13
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.
Reply With Quote
  #2 (permalink)  
Old 06-24-2007, 06:19 PM
Moderator
 
Posts: 883
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.
Reply With Quote
  #3 (permalink)  
Old 06-24-2007, 07:06 PM
Member
 
Posts: 13
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? :\
Reply With Quote
  #4 (permalink)  
Old 06-24-2007, 11:00 PM
Zimbra Consultant & Moderator
 
Posts: 20,317
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
Reply With Quote
  #5 (permalink)  
Old 06-25-2007, 04:03 PM
Member
 
Posts: 13
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.
Reply With Quote
  #6 (permalink)  
Old 06-28-2007, 09:29 AM
Former Zimbran
 
Posts: 5,606
Default

Are DNS Lookups enabled? If not, then try enabling them.
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.