Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
  #1 (permalink)  
Old 06-24-2007, 03:18 PM
stillwell stillwell is offline
Member
 
Join Date: Jun 2007
Posts: 13
stillwell is on a distinguished road
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
soxfan soxfan is offline
Moderator
 
Join Date: Mar 2006
Location: Massachusetts
ZCS Version: Release 5.0.6_GA_2313.RHEL4_20080522102400 CentOS4 FOSS edition
Posts: 458
soxfan is on a distinguished road
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
stillwell stillwell is offline
Member
 
Join Date: Jun 2007
Posts: 13
stillwell is on a distinguished road
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
phoenix phoenix is offline
Zimbra Employee
 
Join Date: Sep 2005
Location: Vannes, France
Posts: 7,406
phoenix is on a distinguished road
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
stillwell stillwell is offline
Member
 
Join Date: Jun 2007
Posts: 13
stillwell is on a distinguished road
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
jholder's Avatar
jholder jholder is offline
Zimbra Employee
 
Join Date: Oct 2005
Location: San Mateo, CA
ZCS Version: 5.0.5 RHEL4 64-bit GA
Posts: 5,409
jholder is on a distinguished road
Send a message via Yahoo to jholder
Default

Are DNS Lookups enabled? If not, then try enabling them.
__________________
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem - Queue report unavailable - mail system is down ptithomme Installation 8 02-27-2007 03:10 AM
dspam logrotate errors michaeln Users 7 02-19-2007 11:45 AM
Installation succesfful! But problem with zmcontrol start mansuper Installation 16 09-07-2006 06:39 AM
Zimbra MTA and CentOS VPS on OpenVZ czaveri Installation 2 03-20-2006 08:42 AM
Kickstart for automated installation and disaster recovery mubley Installation 19 01-10-2006 02:45 PM


freshmeat.net sourceforge.net The best Java IDE



 

Search Engine Optimization by vBSEO 3.0.0