Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Zimbra Collaboration Suite > Administrators

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 04-08-2010, 08:10 AM
Intermediate Member
 
Posts: 16
Default [SOLVED] problem with local emails

Hello,

I've installed new zimbra 6.x and after a few days I've noticed that local emails won't work. All of these emails are stored in mailq.

[root@andromeda log]# mailq | grep Requests
postqueue: warning: Mail system is down -- accessing queue directly
-- 81 Kbytes in 120 Requests.

zimbra seems to start correctly:
[zimbra@andromeda ~]$ zmcontrol status
Host andromeda.xxx.xxx
antispam Running
antivirus Running
ldap Running
logger Running
mailbox Running
mta Running
snmp Running
spell Running
stats Running

in /var/log/zimbra.log I have:
Apr 8 10:20:16 andromeda zimbramon[2304]: 2304:info: Starting mta via zmcontrol
Apr 8 10:20:38 andromeda postfix/postfix-script[7537]: warning: not owned by root: /opt/zimbra/data/postfix/spool
Apr 8 10:20:38 andromeda postfix/postfix-script[7544]: warning: not owned by root: /opt/zimbra/postfix-2.6.5.2z/conf/main.cf
Apr 8 10:20:39 andromeda postfix/postfix-script[7545]: warning: not owned by root: /opt/zimbra/postfix-2.6.5.2z/conf/master.cf
Apr 8 10:20:39 andromeda postfix/postfix-script[7546]: warning: not owned by root: /opt/zimbra/postfix-2.6.5.2z/conf/master.cf.in
Apr 8 10:20:39 andromeda postfix/postfix-script[7561]: starting the Postfix mail system
Apr 8 10:20:39 andromeda postfix/master[7562]: daemon started -- version 2.6.5, configuration /opt/zimbra/postfix-2.6.5.2z/conf

Do you have any ideas how to fix it?

Thanks
Barth
Reply With Quote
  #2 (permalink)  
Old 04-08-2010, 08:27 AM
Moderator
 
Posts: 7,928
Default

Those messages are fine. If you wish to look at the queue you need to do
Code:
su - zimbra
postqueue -p
__________________
Reply With Quote
  #3 (permalink)  
Old 04-08-2010, 08:55 AM
Intermediate Member
 
Posts: 16
Default

In Zimbra mailq is empty but the problem is :
I send email to local user and it goes to #mailq and zimbra never gets it.
Reply With Quote
  #4 (permalink)  
Old 04-08-2010, 09:05 AM
Moderator
 
Posts: 7,928
Default

Code:
cat /etc/hosts
cat /etc/resolv.conf
dig yourdomain mx
dig yourdomain any
host `hostname` <- note backticks and not single quotes
When you send a email locally please check /var/log/zimbra.log and post the SMTP transaction here please.
__________________
Reply With Quote
  #5 (permalink)  
Old 04-08-2010, 09:20 AM
Intermediate Member
 
Posts: 16
Default

# cat /etc/hosts

# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost.localdomain localhost
xxx.xxx.xxx.xxx andromeda.domain.xx andromeda

cat /etc/resolv.conf
search domain.xx
nameserver 150.254.173.3
nameserver 150.254.173.2

[root@andromeda log]# dig domain.xx mx

; <<>> DiG 9.3.6-P1-RedHat-9.3.6-4.P1.el5_4.2 <<>> domain.xx mx
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 13669
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 2, ADDITIONAL: 2

;; QUESTION SECTION:
;domain.xx. IN MX

;; ANSWER SECTION:
domain.xx. 560 IN MX 0 mail.domain.xx.

;; AUTHORITY SECTION:
domain.xx. 455 IN NS fns1.sgh.waw.pl.
domain.xx. 455 IN NS fns2.sgh.waw.pl.

;; ADDITIONAL SECTION:
fns1.sgh.waw.pl. 62398 IN A 194.145.96.21
fns2.sgh.waw.pl. 62414 IN A 193.111.27.194

;; Query time: 1 msec
;; SERVER: 150.254.173.3#53(150.254.173.3)
;; WHEN: Thu Apr 8 18:13:05 2010
;; MSG SIZE rcvd: 127

[root@andromeda log]# dig domain.xx any

; <<>> DiG 9.3.6-P1-RedHat-9.3.6-4.P1.el5_4.2 <<>> domain.xx any
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 33417
;; flags: qr rd ra; QUERY: 1, ANSWER: 4, AUTHORITY: 2, ADDITIONAL: 2

;; QUESTION SECTION:
;domain.xx. IN ANY

;; ANSWER SECTION:
domain.xx. 511 IN MX 0 mail.domain.xx.
domain.xx. 406 IN A xxx.xxx.xxx.xxx
domain.xx. 406 IN NS fns1.sgh.waw.pl.
domain.xx. 406 IN NS fns2.sgh.waw.pl.

;; AUTHORITY SECTION:
domain.xx. 406 IN NS fns1.sgh.waw.pl.
domain.xx. 406 IN NS fns2.sgh.waw.pl.

;; ADDITIONAL SECTION:
fns1.sgh.waw.pl. 62349 IN A 194.145.96.21
fns2.sgh.waw.pl. 62365 IN A 193.111.27.194

;; Query time: 2 msec
;; SERVER: 150.254.173.3#53(150.254.173.3)
;; WHEN: Thu Apr 8 18:13:54 2010
;; MSG SIZE rcvd: 171

[root@andromeda log]# host `hostname`
andromeda.domain.xx is an alias for domain.xx.
domain.xx has address xxx.xxx.xxx.xxx
domain.xx mail is handled by 0 mail.domain.xx.

If I send email directly from console it goes directly to #mailq and nothing happens in /var/log/zimbra.log

Thank you for your help
Reply With Quote
  #6 (permalink)  
Old 04-08-2010, 09:33 AM
Zimbra Consultant & Moderator
 
Posts: 20,313
Default

You have an invalid DNS A aecord, it should be in the format:

Code:
andromeda.domain.xx. 560 IN A xx.xx.xx.xx
__________________
Regards


Bill
Reply With Quote
  #7 (permalink)  
Old 04-11-2010, 02:00 PM
Intermediate Member
 
Posts: 16
Default

I've updated dns now there is :
;; ANSWER SECTION:
andromeda.domain.xx. 128 IN A xxx.xxx.xxx.xxx

but still mailq shows me :
[root@andromeda ~]# mailq | grep down
postqueue: warning: Mail system is down -- accessing queue directly

in zimbra log:
[zimbra@andromeda ~]$ tail -f /var/log/zimbra.log
Apr 11 20:23:24 andromeda postfix/postqueue[13535]: warning: Mail system is down -- accessing queue directly
Apr 11 20:23:30 andromeda postfix/postqueue[13545]: warning: Mail system is down -- accessing queue directly

and emails send to local users are not delivered

Thanks
Barth
Reply With Quote
  #8 (permalink)  
Old 04-11-2010, 11:12 PM
Zimbra Consultant & Moderator
 
Posts: 20,313
Default

I assume you also pointed the MX record to that IP address as well and that it points to the valid IP address of the Zimbra server? Is this behind a NAT router? Is the IP address the valid LAN IP address of the server?
__________________
Regards


Bill
Reply With Quote
  #9 (permalink)  
Old 04-12-2010, 12:26 AM
Intermediate Member
 
Posts: 16
Default

Hello,

All of xxx.xxx.xxx.xxx is the same ip number. It is server with public ip, just one ethernet card, no routing and there is no nat.
Reply With Quote
  #10 (permalink)  
Old 04-12-2010, 02:53 AM
Zimbra Consultant & Moderator
 
Posts: 20,313
Default

Quote:
Originally Posted by barth View Post
In Zimbra mailq is empty but the problem is :
I send email to local user and it goes to #mailq and zimbra never gets it.
How are you actually sending an email to a 'local user'?
__________________
Regards


Bill
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.