mta stopped postfix is not running

Discuss your pilot or production implementation with other Zimbra admins or our engineers.
Post Reply
marcosjost
Posts: 3
Joined: Sat Sep 13, 2014 3:18 am

mta stopped postfix is not running

Post by marcosjost »

Hello, I have a production server, which worked fine until stop sending and receiving messages today.

zimbra@mail selinux]$ zmcontrol -v

Release 6.0.10_GA_2692.RHEL5_64_20101215170845 CentOS5_64 FOSS edition.
[zimbra@mail root]$ zmcontrol status

Host mail.dominio.com.br

antispam Running

antivirus Running

ldap Running

logger Running

mailbox Running

mta Stopped

postfix is not running

snmp Running

spell Running

stats Running

[zimbra@mail root]$

The logs: /var/log/zimbra.log:

Aug 15 09:22:02 mail postfix/postfix-script[15669]: fatal: Postfix integrity check failed!

Aug 15 09:22:25 mail postfix/postfix-script[17444]: fatal: the Postfix mail system is not running

Aug 15 09:23:30 mail postfix/postfix-script[18165]: warning: not owned by postfix: /opt/zimbra/data/postfix/./spool/pid/inet.465

Aug 15 09:23:30 mail postfix/postfix-script[18166]: warning: not owned by postfix: /opt/zimbra/data/postfix/./spool/pid/unix.trace

Aug 15 09:23:30 mail postfix/postfix-script[18167]: warning: not owned by postfix: /opt/zimbra/data/postfix/./spool/pid/inet.submission

Aug 15 09:23:30 mail postfix/postfix-script[18168]: warning: not owned by postfix: /opt/zimbra/data/postfix/./spool/pid/unix.retry

Aug 15 09:23:30 mail postfix/postfix-script[18169]: warning: not owned by postfix: /opt/zimbra/data/postfix/./spool/pid/unix.error

Aug 15 12:30:13 mail postfix/postqueue[12518]: fatal: Queue report unavailable - mail system is down

Aug 15 12:40:02 mail postfix/postqueue[26209]: fatal: Queue report unavailable - mail system is down

Aug 15 09:47:01 mail postfix/postfix-script[6309]: fatal: Postfix integrity check failed!
The permissions on the folders:

/opt/zimbra/data/postfix

[root@mail selinux]# ll /opt/zimbra/data/postfix/

total 12

-rw------- 1 postfix postfix 33 Jul 19 16:02 master.lock

-rw------- 1 postfix postfix 1024 Ago 15 08:29 prng_exch

drwxr-xr-x 16 postfix postfix 4096 Jan 6 2011 spool

[root@mail selinux]#

/zimbra/data

[root@mail selinux]# ll /opt/zimbra/data/

total 28

drwxr-xr-x 2 zimbra zimbra 4096 Jan 6 2011 altermime

drwxr-xr-x 7 zimbra zimbra 4096 Ago 15 09:29 amavisd

drwxr-xr-x 3 zimbra zimbra 4096 Jan 6 2011 clamav

drwxr-xr-x 2 zimbra zimbra 4096 Jan 6 2011 dspam

drwxr-xr-x 4 zimbra zimbra 4096 Jan 14 2011 ldap

drwxr-xr-x 3 postfix zimbra 4096 Jan 6 2011 postfix

drwxr-xr-x 9 zimbra zimbra 4096 Ago 15 10:02 tmp

[root@mail selinux]#
I saw several threads here in the forum, but still could not solve the problem. Thank you.
phoenix
Ambassador
Ambassador
Posts: 27278
Joined: Fri Sep 12, 2014 9:56 pm
Location: Liverpool, England

mta stopped postfix is not running

Post by phoenix »

Have you checked if your certificates have expired (renew them if they have) or looked at any of the other forum threads & solutions on this topic?
Regards

Bill

Rspamd: A high performance spamassassin replacement

Per ardua ad astra
marcosjost
Posts: 3
Joined: Sat Sep 13, 2014 3:18 am

mta stopped postfix is not running

Post by marcosjost »

10330phoenix wrote:Have you checked if your certificates have expired (renew them if they have) or looked at any of the other forum threads & solutions on this topic?
Thanks phoenix.

The certificate is valid until Jun 2023 (self-genereted).

I trie this:

su - zimbra

zmcontrol stop

zmcontrol status

logout

as a root: /opt/zimbra/libexec/zmfixperms --verbose --extended
and when try zmcontrol start ( as a zimbra user)

Host mail.dominio.com.br

Starting ldap...Done.

Starting logger...Done.

Starting mailbox...Done.

Starting antispam...Done.

Starting antivirus...Done.

Starting snmp...Done.

Starting spell...Done.

Starting mta...Failed.

Starting zmmtaconfig...zmmtaconfig is already running.

postsuper: fatal: scan_dir_push: open directory defer: Permission denied

postfix failed to start

Starting saslauthd...done.
Starting stats...Done.
the zimbra.log:

Aug 15 14:57:43 mail postfix/postsuper[15843]: fatal: scan_dir_push: open directory defer: Permission denied

Aug 15 14:57:44 mail postfix/postfix-script[15844]: fatal: Postfix integrity check failed!

Aug 15 17:58:00 mail postfix/postqueue[16666]: fatal: Queue report unavailable - mail system is down
After, i try the option: chown -R postfix:postfix /opt/zimbra/data/postfix/spool ( is a my "queue_directory " in main.cf), and has the same error.
Have NO iptables, SELinux or another mail server running on this server....
marcosjost
Posts: 3
Joined: Sat Sep 13, 2014 3:18 am

mta stopped postfix is not running

Post by marcosjost »

Well, after 3 days of research. The cause of the whole problem was: spool directory corrupted. The solution at the moment: system reinstallation.
uxbod
Ambassador
Ambassador
Posts: 7811
Joined: Fri Sep 12, 2014 10:21 pm

mta stopped postfix is not running

Post by uxbod »

Why not just recreate the spool directory ? unless your underlying hardware is having issues.
iwebhosting
Posts: 12
Joined: Sat Oct 11, 2014 4:22 pm

mta stopped postfix is not running

Post by iwebhosting »

Nov 30 11:20:02 zimbra postfix/qmgr[853]: F37CFA14223: removed

Nov 30 11:20:04 zimbra slapd[17540]: slap_queue_csn: queing 0x7ef8f9405140 20151130112004.183490Z#000000#000#000000

Nov 30 11:20:04 zimbra slapd[17540]: slap_graduate_commit_csn: removing 0x5413830 20151130112004.183490Z#000000#000#000000

Nov 30 11:20:28 zimbra zmconfigd[17638]: Fetching All configs

Nov 30 11:20:28 zimbra zmconfigd[17638]: All configs fetched in 0.05 seconds

Nov 30 11:20:29 zimbra zmconfigd[17638]: Executed: /opt/zimbra/bin/zmmtactl status norewrite returned 1 (23 - 13) (0.08 sec)

Nov 30 11:20:29 zimbra zmconfigd[17638]: Tracking service mta

Nov 30 11:20:30 zimbra zmconfigd[17638]: Watchdog: service antivirus status is OK.

Nov 30 11:20:30 zimbra zmconfigd[17638]: All rewrite threads completed in 0.00 sec

Nov 30 11:20:30 zimbra zmconfigd[17638]: All restarts completed in 0.00 sec

Nov 30 11:20:30 zimbra postfix/postqueue[12214]: fatal: Queue report unavailable - mail system is down
iwebhosting
Posts: 12
Joined: Sat Oct 11, 2014 4:22 pm

mta stopped postfix is not running

Post by iwebhosting »

system reinstallation? I have many customers as emails so make backups of all clients and emails?
dsheoran89
Posts: 1
Joined: Thu Jan 11, 2018 7:07 pm

Re: mta stopped postfix is not running

Post by dsheoran89 »

check zimbra logs if you found port conflict error log
or
check 25 port by
# netstat -tulpn

if other program using 25 port then note PID of that program and kill
# kill -9 1285

----------------------------------------------------------------------------
My logs:

[root@zmail ~]# netstat -tulpn
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 0.0.0.0:7072 0.0.0.0:* LISTEN 32374/java
tcp 0 0 127.0.0.1:23232 0.0.0.0:* LISTEN 26241/perl
tcp 0 0 0.0.0.0:993 0.0.0.0:* LISTEN 32374/java
tcp 0 0 127.0.0.1:23233 0.0.0.0:* LISTEN 26243/perl
tcp 0 0 0.0.0.0:995 0.0.0.0:* LISTEN 32374/java
tcp 0 0 127.0.0.1:7171 0.0.0.0:* LISTEN 25059/java
tcp 0 0 192.168.100.141:389 0.0.0.0:* LISTEN 24810/slapd
tcp 0 0 127.0.0.1:10663 0.0.0.0:* LISTEN 25740/zmlogger: zmr
tcp 0 0 127.0.0.1:10024 0.0.0.0:* LISTEN 26314/amavisd (mast
tcp 0 0 127.0.0.1:10026 0.0.0.0:* LISTEN 26314/amavisd (mast
tcp 0 0 127.0.0.1:7306 0.0.0.0:* LISTEN 26012/mysqld
tcp 0 0 0.0.0.0:110 0.0.0.0:* LISTEN 32374/java
tcp 0 0 127.0.0.1:3310 0.0.0.0:* LISTEN 26514/clamd
tcp 0 0 0.0.0.0:143 0.0.0.0:* LISTEN 32374/java
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 32374/java
tcp 0 0 127.0.0.1:10032 0.0.0.0:* LISTEN 26314/amavisd (mast
tcp 0 0 0.0.0.0:7025 0.0.0.0:* LISTEN 32374/java
tcp 0 0 127.0.0.1:8465 0.0.0.0:* LISTEN 26548/opendkim
tcp 0 0 127.0.0.1:53 0.0.0.0:* LISTEN 25565/unbound
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 1204/sshd
tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN 1285/master
tcp 0 0 0.0.0.0:443 0.0.0.0:* LISTEN 32374/java
tcp 0 0 0.0.0.0:7071 0.0.0.0:* LISTEN 32374/java
tcp 0 0 :::7780 :::* LISTEN 26573/httpd
tcp 0 0 ::1:10024 :::* LISTEN 26314/amavisd (mast
tcp 0 0 ::1:10026 :::* LISTEN 26314/amavisd (mast
tcp 0 0 ::1:3310 :::* LISTEN 26514/clamd
tcp 0 0 ::1:10032 :::* LISTEN 26314/amavisd (mast
tcp 0 0 :::22 :::* LISTEN 1204/sshd
tcp 0 0 ::1:25 :::* LISTEN 1285/master
udp 0 0 127.0.0.1:53 0.0.0.0:* 25565/unbound
udp 0 0 0.0.0.0:60986 0.0.0.0:* 25059/java
-----------------------------------------------------------------------------------------------------------------------

after killing PID 1285 run
# zmcontrol start
mta service start normally at my end :lol: :lol:
Post Reply