| 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.
|  | | 
11-06-2009, 03:09 AM
| | | [SOLVED] Deferred, mail transport unavailable A couple of days ago the deferred queue started to grow.
Checking the /var/log/zimbra.log I found several records like this: Code: mail postfix/smtp[14875]: D15641A802A4: to=<info@domain.tld>, relay=none, delay=1198, delays=1198/0.02/0/0, dsn=4.4.1, status=deferred (connect to mail.server.com[127.0.0.1]: Connection refused)
mail postfix/qmgr[8273]: EE5371A80297: to=<info@domain.tld>, relay=none, delay=1200, delays=1199/0.48/0/0, dsn=4.3.0, status=deferred (mail transport unavailable) *All domain names and public ips replaced for privacy
I know these mails origins from another box with smtp mail function sent using a standard form.
I made sure I can telnet to port 25 on localhost and send mail and I've read others posts for hours and hours and I cant locate the problem. Code: postconf mynetworks
mynetworks = 127.0.0.0/8 10.10.10.64/26 10.10.10.64 is not the servers IP but instead the networks broadcast. Code: cat /etc/resolv.conf
options rotate
options timeout:3
search mail.server.com
nameserver 10.10.10.119 10.10.10.119 is the mail servers IP. I'm also running BIND and named is up and running. Code: cat /etc/hosts
127.0.0.1 localhost.localdomain localhost
10.10.10.119 mail.server.com mail Code: zmcontrol status
Host mail.server.com
antispam Running
antivirus Running
ldap Running
logger Running
mailbox Running
mta Running
snmp Running
stats Running Also, when viewing the tooltip information in Zimbra Webinterface I see this in the deferred mail row. Code: Sender: name@hotmail.com
From host: localhost.localdomain
From domain: hotmail.com
From IP: 127.0.0.1
Recipients: info@domain.tld
To domain: domain.tld
Content filter: undefined
Size: 4404
Reason: connect to mail.server.com[127.0.0.1]: connection refused Code: hostname
mail.server.com
Last edited by St.John; 11-06-2009 at 03:19 AM..
Reason: More information added
| 
11-06-2009, 04:11 AM
| | Zimbra Consultant & Moderator | |
Posts: 19,639
| | Is this a new install or an upgrade? What happened (or was updated) on your server the day this problem started? What errors do you see in the log files when you stop then start Zimbra? Post the output of the following (run on the Zimbra server): Code: cat /etc/hosts
cat /etc/resolv.conf
dig yourdomain.com mx
dig yourdomain.com any
host `hostname` <-- use that exact command with backticks not single quotes
__________________
Regards
Bill
| 
11-06-2009, 04:31 AM
| | | Hi phoenix,
This is a new install. The problem started a few days ago when some mails stopped being delivered and the queue accumulated. I don't recall making any changes to the webserver unless an automatic update was done.
I see no errors when stopping Zimbra but when starting I noticed this: Code: Nov 6 12:22:40 mail postfix/postfix-script[31135]: warning: not owned by root: /opt/zimbra/data/postfix/spool
Nov 6 12:22:41 mail postfix/postfix-script[31137]: warning: not owned by root: /opt/zimbra/postfix-2.4.7.5z/conf/main.cf
Nov 6 12:22:41 mail postfix/postfix-script[31138]: warning: not owned by root: /opt/zimbra/postfix-2.4.7.5z/conf/master.cf
Nov 6 12:22:41 mail postfix/postfix-script[31139]: warning: not owned by root: /opt/zimbra/postfix-2.4.7.5z/conf/master.cf.in Code: cat /etc/hosts
127.0.0.1 localhost.localdomain localhost
10.10.10.119 mail.server.com mail Code: cat /etc/resolv.conf
ptions rotate
options timeout:3
search mail.server.com
nameserver 10.10.10.119 I found a missing letter in row 1 in resolv.conf. This error is now fixed. Code: dig server.com mx
; <<>> DiG 9.3.6-P1-RedHat-9.3.6-4.P1.el5 <<>> server.com mx
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 38491
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 2, ADDITIONAL: 3
;; QUESTION SECTION:
;server.com. IN MX
;; ANSWER SECTION:
server.com. 19280 IN MX 100 mail.server.com.
;; AUTHORITY SECTION:
server.com. 19281 IN NS ns1.nameserverservice.de.
server.com. 19281 IN NS ns2.nameserverservice.de.
;; ADDITIONAL SECTION:
mail.server.com. 2592000 IN A 127.0.0.1
ns1.nameserverservice.de. 20248 IN A 217.172.176.222
ns2.nameserverservice.de. 20248 IN A 217.172.164.64
;; Query time: 0 msec
;; SERVER: 85.25.120.119#53(85.25.120.119)
;; WHEN: Fri Nov 6 12:27:13 2009
;; MSG SIZE rcvd: 152 Code: dig server.com any
; <<>> DiG 9.3.6-P1-RedHat-9.3.6-4.P1.el5 <<>> server.com any
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 56059
;; flags: qr rd ra; QUERY: 1, ANSWER: 4, AUTHORITY: 2, ADDITIONAL: 3
;; QUESTION SECTION:
;server.com. IN ANY
;; ANSWER SECTION:
server.com. 19228 IN NS ns1.nameserverservice.de.
server.com. 19228 IN NS ns2.nameserverservice.de.
server.com. 19227 IN MX 100 mail.server.com.
server.com. 19227 IN A 217.118.24.249
;; AUTHORITY SECTION:
server.com. 19228 IN NS ns2.nameserverservice.de.
server.com. 19228 IN NS ns1.nameserverservice.de.
;; ADDITIONAL SECTION:
ns1.nameserverservice.de. 20195 IN A 217.172.176.222
ns2.nameserverservice.de. 20195 IN A 217.172.164.64
mail.server.com. 2592000 IN A 127.0.0.1
;; Query time: 0 msec
;; SERVER: 85.25.120.119#53(85.25.120.119)
;; WHEN: Fri Nov 6 12:28:06 2009
;; MSG SIZE rcvd: 196 Code: host `hostname`
mail.server.com has address 127.0.0.1
mail.server.com mail is handled by 10 mail.server.com. | 
11-06-2009, 05:02 AM
| | Zimbra Consultant & Moderator | |
Posts: 19,639
| | Quote:
Originally Posted by St.John Code: host `hostname`
mail.server.com has address 127.0.0.1
mail.server.com mail is handled by 10 mail.server.com. | The problem is that, your DNS A record should point to the LAN IP addres not 127.0.0.1.
__________________
Regards
Bill
| 
11-06-2009, 05:26 AM
| | | Quote:
Originally Posted by phoenix The problem is that, your DNS A record should point to the LAN IP addres not 127.0.0.1. | I edited my db file and the command hostname returns this. Code: [root@mail ~]# host `hostname`
mail.server.com has address 10.10.10.119
mail.server.com mail is handled by 10 mail.server.com. I re-queued all mails originating from 127.0.0.1 and the /var/log/zimbra.log shows this: Code: Nov 6 13:28:26 mail postfix/qmgr[31157]: 38CE51A8029D: to=<info@domain.tld>, relay=none, delay=0.65, delays=0.54/0.11/0/0, dsn=4.4.1, status=deferred (delivery temporarily suspended: connect to mail.server.com[10.10.01.119]: Connection refused) I also tried to telnet to mail.server.com using port 25, 7025 and 10025. Connection to 10025 was refused.
Last edited by St.John; 11-06-2009 at 05:35 AM..
| 
11-06-2009, 05:29 AM
| | Zimbra Consultant & Moderator | |
Posts: 19,639
| | Restart Zimbra and see if the mail starts getting delivered.
__________________
Regards
Bill
| 
11-06-2009, 05:45 AM
| | | Quote:
Originally Posted by phoenix Restart Zimbra and see if the mail starts getting delivered. | Restarted Zimbra and there's still emails in the deferred tab with this error in the /var/log/zimbra.log. Code: Nov 6 13:39:55 mail postfix/qmgr[3506]: EF90A1A80282: to=<info@domain.tld>, relay=none, delay=0.33, delays=0.26/0.07/0/0, dsn=4.4.1, status=deferred (delivery temporarily suspended: connect to mail.server.com[10.10.10.119]: Connection refused) | 
11-06-2009, 05:51 AM
| | Zimbra Consultant & Moderator | |
Posts: 19,639
| | Is SElinux or the firewall enabled on this server? What other errors do you see when Zimbra started? Check your DNS configuration again with the commands I gave you earlier. What happens if you telnet to that port on the Zimbra server itself? I assume that all the Zimbra services are running?
__________________
Regards
Bill
| 
11-06-2009, 06:06 AM
| | | Quote:
Originally Posted by phoenix Is SElinux or the firewall enabled on this server? What other errors do you see when Zimbra started? Check your DNS configuration again with the commands I gave you earlier. What happens if you telnet to that port on the Zimbra server itself? I assume that all the Zimbra services are running? | Not SElinux or any firewall is enabled on the server. Only errors when starting Zimbra are these. Code: Nov 6 13:37:29 mail amavis[2851]: SpamControl: init_pre_chroot done
Nov 6 13:37:56 mail postfix/postfix-script[3484]: warning: not owned by root: /opt/zimbra/data/postfix/spool
Nov 6 13:37:56 mail postfix/postfix-script[3486]: warning: not owned by root: /opt/zimbra/postfix-2.4.7.5z/conf/main.cf
Nov 6 13:37:56 mail postfix/postfix-script[3487]: warning: not owned by root: /opt/zimbra/postfix-2.4.7.5z/conf/master.cf
Nov 6 13:37:56 mail postfix/postfix-script[3488]: warning: not owned by root: /opt/zimbra/postfix-2.4.7.5z/conf/master.cf.in Code: [root@mail ~]# dig server.com any
; <<>> DiG 9.3.6-P1-RedHat-9.3.6-4.P1.el5 <<>> server.com any
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 43244
;; flags: qr rd ra; QUERY: 1, ANSWER: 4, AUTHORITY: 2, ADDITIONAL: 3
;; QUESTION SECTION:
;server.com. IN ANY
;; ANSWER SECTION:
server.com. 84248 IN NS ns1.nameserverservice.de.
server.com. 84248 IN NS ns2.nameserverservice.de.
server.com. 84247 IN MX 100 mail.server.com.
server.com. 84247 IN A 217.118.24.249
;; AUTHORITY SECTION:
server.com. 84248 IN NS ns2.nameserverservice.de.
server.com. 84248 IN NS ns1.nameserverservice.de.
;; ADDITIONAL SECTION:
ns1.nameserverservice.de. 84243 IN A 217.172.176.222
ns2.nameserverservice.de. 84243 IN A 217.172.164.64
mail.server.com. 2592000 IN A 10.10.10.119
;; Query time: 0 msec
;; SERVER: 10.10.10.119#53(10.10.10.119)
;; WHEN: Fri Nov 6 14:03:35 2009
;; MSG SIZE rcvd: 196
[root@mail ~]# dig server.com mx
; <<>> DiG 9.3.6-P1-RedHat-9.3.6-4.P1.el5 <<>> server.com mx
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 9163
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 2, ADDITIONAL: 3
;; QUESTION SECTION:
;server.com. IN MX
;; ANSWER SECTION:
server.com. 84237 IN MX 100 mail.server.com.
;; AUTHORITY SECTION:
server.com. 84238 IN NS ns1.nameserverservice.de.
server.com. 84238 IN NS ns2.nameserverservice.de.
;; ADDITIONAL SECTION:
mail.server.com. 2592000 IN A 10.10.10.119
ns1.nameserverservice.de. 84233 IN A 217.172.176.222
ns2.nameserverservice.de. 84233 IN A 217.172.164.64
;; Query time: 0 msec
;; SERVER: 10.10.10.119#53(10.10.10.119)
;; WHEN: Fri Nov 6 14:03:45 2009
;; MSG SIZE rcvd: 152 I can telnet on port 25 and 7025 on the server itself, but not on port 10025. Code: antispam Running
antivirus Running
ldap Running
logger Running
mailbox Running
mta Running
snmp Running
stats Running All Zimbra services are running. | 
11-06-2009, 08:26 AM
| | | I was thinking of my MTA settings since many of the mails in the deferred queue originates from a box on another network. Right know my postconfig mynetworks returns
"127.0.0.0/8 10.10.10.64/26"
10.10.10.64 is the mail servers broadcast. 10.10.10.119 is its actual IP.
but I guess I would also need to add a half C-class like this 11.11.11.128-255.
Sadly, I'm not sure howto and I can't find any resources that explains it. Outgoing Mail Problems - Zimbra :: Wiki
After some digging I think I added the external subnet correctly.
Running zmprov gs `zmhostname` | grep zimbraMtaMyNetworks now returns
zimbraMtaMyNetworks: 127.0.0.0/8 10.10.10.64/26 11.11.11.128/25 Code: Nov 6 16:37:20 mail zimbramon[14253]: 14253:info: zmmtaconfig: Skipping Global system configuration update.
Nov 6 16:37:20 mail zimbramon[14253]: 14253:info: zmmtaconfig: gacf ERROR: service.FAILURE (system failure: ZimbraLdapContext) (cause: javax.naming.CommunicationException mail.server.com:389) Well, that didnt work. I removed the last subnet mask from the zimbraMtaMyNetworks.
Last edited by St.John; 11-06-2009 at 08:40 AM..
Reason: Privacy editing
| | Thread Tools | Search this Thread | | | | | Display Modes | Linear Mode | | Why Join? Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.  |