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 10-10-2011, 01:59 PM
Member
 
Posts: 14
Default [SOLVED] Postfix won't start after upgrade to 7.1.3

After upgrading from 7.1.2 to 7.1.3 I get the error:

Code:
Starting mta...Failed.
postalias: fatal: bad string length 0 < 1: inet_protocols = 
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.

Last edited by DougR; 10-10-2011 at 04:06 PM..
Reply With Quote
  #2 (permalink)  
Old 10-10-2011, 04:00 PM
Member
 
Posts: 14
Default

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

Last edited by DougR; 10-10-2011 at 04:06 PM..
Reply With Quote
  #3 (permalink)  
Old 10-15-2011, 04:43 PM
Starter Member
 
Posts: 1
Default

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
Reply With Quote
  #4 (permalink)  
Old 02-08-2012, 10:28 AM
New Member
 
Posts: 3
Default Same issue

Since I upgraded a while ago I have the same issue with the postfix conf file (main.cf):
Code:
Starting mta...Failed.
postalias: fatal: bad string length 0 < 1: inet_protocols = 
postfix failed to start
I did what camunai suggested and now I got this on my zimbra.log when tried to start postfix manually
Code:
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
Code:
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?
Reply With Quote
  #5 (permalink)  
Old 02-08-2012, 10:54 AM
Zimbra Consultant & Moderator
 
Posts: 20,315
Default

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

Code:
inet_protocols = ipv4
__________________
Regards


Bill
Reply With Quote
  #6 (permalink)  
Old 02-08-2012, 12:35 PM
New Member
 
Posts: 3
Default Alrealdy tried

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?
Reply With Quote
  #7 (permalink)  
Old 02-09-2012, 12:28 PM
New Member
 
Posts: 3
Default again

I migrated my server into a new one and got the same mistake.
Code:
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?
Reply With Quote
  #8 (permalink)  
Old 02-11-2012, 12:52 PM
Starter Member
 
Posts: 1
Default

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
Reply With Quote
  #9 (permalink)  
Old 03-09-2012, 08:22 PM
Loyal Member
 
Posts: 99
Default

from
Code:
POSTCONF inet_protocols				VAR zimbraPostconfProtocol
i changed it to
Code:
POSTCONF inet_protocols			ipv4
then mta service can be started again

i don't know what caused that since this is a fresh install
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.