[SOLVED] Postfix won't start after upgrade to 7.1.3

Discuss your pilot or production implementation with other Zimbra admins or our engineers.
724DougR
Posts: 14
Joined: Sat Sep 13, 2014 1:39 am

[SOLVED] Postfix won't start after upgrade to 7.1.3

Postby 724DougR » Mon Oct 10, 2011 3:59 pm

After upgrading from 7.1.2 to 7.1.3 I get the error:
Starting mta...Failed.

postalias: fatal: bad string length 0
postfix failed to start


I've attempted to edit /opt/zimbra/postfix/conf/main.cf to add "all" after inet_protocols but every time I restart the server it removes my edits.
Any help would be appreciated!
Thanks,

Doug
Edit: I've also tried adding "ipv4" after inet_protocols = but that was overwritten as well.


724DougR
Posts: 14
Joined: Sat Sep 13, 2014 1:39 am

[SOLVED] Postfix won't start after upgrade to 7.1.3

Postby 724DougR » Mon Oct 10, 2011 6:00 pm

I submitted a ticket to support and they fixed the issue for me. Here was their response.
[QUOTE]Doug,
For reasons unknown, looks like you were missing the zimbraIPMode setting. I managed the set zimbraIPMode to ipv4 for the global and server settings.
Hope you don't mind, I noticed there were postfix binaries in /usr/sbin. I named the /usr/sbin/post* to OLD.post*, and I've added /opt/zimbra/postfix/sbin to root's $PATH. My reasoning was that I noticed in the /var/log/zimbra.log there were references to the "/etc/postfix/main.cf". To avoid any confusion in the future, it would be advantageous for root to find postfix's binaries in /opt/zimbra/postfix/sbin and not /usr/sbin.[/QUOTE]
Also it seems my server had multiple instances of postfix which they cleaned up.
Edit: How do I mark a thread as solved?
Edit 2: Nevermind, just did an advanced edit on first post.
camunai
Posts: 1
Joined: Sat Sep 13, 2014 2:17 am

[SOLVED] Postfix won't start after upgrade to 7.1.3

Postby camunai » Sat Oct 15, 2011 6:43 pm

1)
zmprov modifyserver mail.yourzimbra.com zimbraMtaMyNetworks '127.0.0.0/8

x.x.x.x/x [::1]/128 [xxxx:xxxx:xxxx::x]/48'
2)
edit conf/zmmta.cf in the mta section and add the line
POSTCONF inet_protocols all
like in the example below:
POSTCONF virtual_transport LOCAL postfix_virtual_transport

POSTCONF inet_protocols all

RESTART mta
3)

restart the mta:
zmmtactl restart
User avatar
altmas5
Posts: 7
Joined: Sat Sep 13, 2014 2:27 am
Contact:

[SOLVED] Postfix won't start after upgrade to 7.1.3

Postby altmas5 » Wed Feb 08, 2012 12:28 pm

Since I upgraded a while ago I have the same issue with the postfix conf file (main.cf):

Starting mta...Failed.

postalias: fatal: bad string length 0
postfix failed to start


I did what camunai suggested and now I got this on my zimbra.log when tried to start postfix manually

Feb  8 11:01:21 mail postfix/master[29724]: daemon started -- version 2.7.7, configuration /opt/zimbra/postfix-2.7.7.3z/conf

Feb 8 11:01:22 mail saslauthd[29732]: detach_tty : master pid is: 29732

Feb 8 11:01:22 mail saslauthd[29732]: ipc_init : listening on socket: /opt/zimbra/cyrus-sasl-2.1.23.3z/state/mux

Feb 8 11:01:22 mail zimbramon[27471]: 27471:info: Starting stats via zmcontrol

Feb 8 11:01:23 mail postfix/smtpd[29795]: fatal: host/service 127.0.0.1/None not found: Servname not supported for ai_socktype

Feb 8 11:01:24 mail postfix/master[29724]: warning: process /opt/zimbra/postfix/libexec/smtpd pid 29795 exit status 1

Feb 8 11:01:24 mail postfix/master[29724]: warning: /opt/zimbra/postfix/libexec/smtpd: bad command startup -- throttling
:(

I have googled a lot but i didn't find anything similar.

I did search for smtp in my /etc/services file and it's ok.

When i got this issue I manually edited my main.cf via vim or postconf and then started postfix via /opt/zimbra/postfix/sbin/postfix {start | reload} but this time is not working.

Then i mainly got this in my zimbra.log

Feb  8 11:02:25 mail postfix/master[29724]: warning: process /opt/zimbra/postfix/libexec/smtpd pid 31239 exit status 1

Feb 8 11:02:25 mail postfix/master[29724]: warning: process /opt/zimbra/postfix/libexec/smtpd pid 31240 exit status 1

Feb 8 11:02:25 mail postfix/master[29724]: warning: process /opt/zimbra/postfix/libexec/smtpd pid 31241 exit status 1


Is there anyone with the same problem?
phoenix
Ambassador
Ambassador
Posts: 25783
Joined: Fri Sep 12, 2014 9:56 pm

[SOLVED] Postfix won't start after upgrade to 7.1.3

Postby phoenix » Wed Feb 08, 2012 12:54 pm

The inet_protocols setting should be as noted below not set to "all":
inet_protocols = ipv4
Regards

Bill

Rspamd: A high performance spamassassin replacement

If you'd like to see this implemented in a future version of ZCS then please vote on Bugzilla entries 97706 & 108168
User avatar
altmas5
Posts: 7
Joined: Sat Sep 13, 2014 2:27 am
Contact:

[SOLVED] Postfix won't start after upgrade to 7.1.3

Postby altmas5 » Wed Feb 08, 2012 2:35 pm

Thanks for the reply phoenix, I already tried with ipv4 and the result is the same.

I found in some searches this kind of error in ntp configuration but this one is not showing which is the service. Any idea?
User avatar
altmas5
Posts: 7
Joined: Sat Sep 13, 2014 2:27 am
Contact:

[SOLVED] Postfix won't start after upgrade to 7.1.3

Postby altmas5 » Thu Feb 09, 2012 2:28 pm

I migrated my server into a new one and got the same mistake.

Feb  9 14:29:23 mail postfix/smtpd[17340]: fatal: host/service 127.0.0.1/None not found: Servname not supported for ai_socktype


Any idea? :confused:
adfacom
Posts: 1
Joined: Sat Sep 13, 2014 12:47 am

[SOLVED] Postfix won't start after upgrade to 7.1.3

Postby adfacom » Sat Feb 11, 2012 2:52 pm

same problem here with upgrading from 7.1.1 to 7.1.4
solved with camunai and phoenix suggestions:
zmprov modifyserver mail.yourzimbra.com zimbraMtaMyNetworks '127.0.0.0/8

192.168.1.0/24 '
edit conf/zmmta.cf

POSTCONF inet_protocols ipv4
dunno if the first is neeeded
malayo
Advanced member
Advanced member
Posts: 116
Joined: Sat Sep 13, 2014 1:59 am

[SOLVED] Postfix won't start after upgrade to 7.1.3

Postby malayo » Fri Mar 09, 2012 10:22 pm

from

POSTCONF inet_protocols				VAR zimbraPostconfProtocol

i changed it to

POSTCONF inet_protocols			ipv4

then mta service can be started again
i don't know what caused that since this is a fresh install

Return to “Administrators”

Who is online

Users browsing this forum: Google [Bot] and 14 guests