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

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
  #11 (permalink)  
Old 04-28-2007, 12:12 AM
Intermediate Member
 
Posts: 23
Default

Thanks for the suggestion, anotherseed. I've checked in /etc/init.d and there is no script for iptables (although there is for alsa-utils). I guess Ubuntu changed things for iptables.
Reply With Quote
  #12 (permalink)  
Old 04-28-2007, 12:33 AM
Zimbra Consultant & Moderator
 
Posts: 20,317
Default

There's an init script for Ubuntu/IPTABLES near the end of this thread if you want to try using that.

When you try to start Zimbra what error messahges do you get in the logs?
__________________
Regards


Bill
Reply With Quote
  #13 (permalink)  
Old 04-28-2007, 01:06 AM
Intermediate Member
 
Posts: 23
Default

phoenix, which logs do you want me to check - /var/log/zimbra.log? This one is about 370 lines - too big for the forum?
Reply With Quote
  #14 (permalink)  
Old 04-28-2007, 02:48 AM
OpenSource Builder & Moderator
 
Posts: 1,166
Default

check your sudo entries are correct in /etc/sudoers, and try running the postqueue command by hand, as zimbra user.
Reply With Quote
  #15 (permalink)  
Old 04-28-2007, 04:09 AM
Intermediate Member
 
Posts: 23
Default

I removed zimbra, tried installing the newest Ubuntu4.5.4 version and noted that it detected that the dependancy libstdc++5 was missing. Ubuntu4.5.2 didn't detect that. Installed it, then continued to install zimbra4.5.4 - mta still not running. Damn, thought I had it there!!

Anyway, to answer dijichi2:

/etc/sudoers contains:

***********************************
. . .
# Defaults

Defaults !lecture,tty_tickets,!fqdn

# User privilege specification
root ALL=(ALL) ALL

# Members of the admin group may gain root privileges
%admin ALL=(ALL) ALL
%zimbra ALL=NOPASSWD:/opt/zimbra/openldap/libexec/slapd
%zimbra ALL=NOPASSWD:/opt/zimbra/postfix-2.2.9/sbin/postfix, /opt/zimbra/postfix-2.2.9/sbin/postalias, /opt/zimbra/postfix-2.2.9/sbin/qshape.pl, /opt/zimbra/postfix-2.2.9/sbin/postconf,/opt/zimbra/postfix-2.2.9/sbin/postsuper
%zimbra ALL=NOPASSWD:/opt/zimbra/libexec/zmqstat
%zimbra ALL=NOPASSWD:/opt/zimbra/libexec/zmtomcatmgr
%zimbra ALL=NOPASSWD:/opt/zimbra/perdition/sbin/perdition

**********************************
I assume this means that postfix should be able to run under the zimbra user

Running the postqueue by hand:

zimbra@zimbra:~/postfix-2.2.9/sbin$ ./postqueue -v -f
postqueue: dict_eval: const mail
postqueue: dict_eval: const ipv4
postqueue: name_mask: ipv4
postqueue: dict_eval: const zimbra.wnsc.ac.uk
postqueue: dict_eval: const wnsc.ac.uk
postqueue: dict_eval: const Postfix
postqueue: dict_eval: const postfix
postqueue: dict_eval: const postfix
postqueue: dict_eval: const postdrop
postqueue: dict_eval: expand $myhostname, localhost.$mydomain, localhost -> zimbra.wnsc.ac.uk, localhost.wnsc.ac.uk, localhost
postqueue: dict_eval: expand $myhostname -> zimbra.wnsc.ac.uk
postqueue: dict_eval: const
postqueue: dict_eval: const /opt/zimbra/postfix-2.2.9/libexec
postqueue: dict_eval: const /opt/zimbra/postfix-2.2.9/sbin
postqueue: dict_eval: const /opt/zimbra/postfix-2.2.9/spool
postqueue: dict_eval: const pid
postqueue: dict_eval: const all
postqueue: dict_eval: const
postqueue: dict_eval: const double-bounce
postqueue: dict_eval: const nobody
postqueue: dict_eval: const hash:/etc/aliases
postqueue: dict_eval: const 20060221
postqueue: dict_eval: const 2.2.9
postqueue: dict_eval: const hash
postqueue: dict_eval: const deferred, defer
postqueue: dict_eval: const
postqueue: dict_eval: expand $mydestination -> zimbra.wnsc.ac.uk, localhost.wnsc.ac.uk, localhost
postqueue: dict_eval: expand $relay_domains -> zimbra.wnsc.ac.uk, localhost.wnsc.ac.uk, localhost
postqueue: dict_eval: const TZ MAIL_CONFIG
postqueue: dict_eval: const MAIL_CONFIG MAIL_DEBUG MAIL_LOGTAG TZ XAUTHORITY DISPLAY
postqueue: dict_eval: const subnet
postqueue: dict_eval: const
postqueue: dict_eval: const +=
postqueue: dict_eval: const -=+
postqueue: dict_eval: const debug_peer_list,fast_flush_domains,mynetworks,perm it_mx_backup_networks,qmqpd_authorized_clients,rel ay_domains,smtpd_access_maps
postqueue: dict_eval: const
postqueue: dict_eval: const bounce
postqueue: dict_eval: const cleanup
postqueue: dict_eval: const defer
postqueue: dict_eval: const pickup
postqueue: dict_eval: const qmgr
postqueue: dict_eval: const rewrite
postqueue: dict_eval: const showq
postqueue: dict_eval: const error
postqueue: dict_eval: const flush
postqueue: dict_eval: const verify
postqueue: dict_eval: const trace
postqueue: dict_eval: expand ${config_directory}/prng_exch -> /opt/zimbra/postfix-2.2.9/conf/prng_exch
postqueue: dict_eval: const /opt/zimbra/conf/smtpd.crt
postqueue: dict_eval: const /opt/zimbra/conf/smtpd.key
postqueue: dict_eval: const
postqueue: dict_eval: expand $smtpd_tls_dcert_file ->
postqueue: dict_eval: const
postqueue: dict_eval: const
postqueue: dict_eval: const
postqueue: dict_eval: const
postqueue: dict_eval: const
postqueue: dict_eval: const
postqueue: dict_eval: const
postqueue: dict_eval: expand $smtp_tls_cert_file ->
postqueue: dict_eval: const
postqueue: dict_eval: expand $smtp_tls_dcert_file ->
postqueue: dict_eval: const
postqueue: dict_eval: const
postqueue: dict_eval: const
postqueue: dict_eval: const
postqueue: dict_eval: const 10240000
postqueue: dict_eval: const 1
postqueue: dict_eval: const no
postqueue: dict_eval: const 100s
postqueue: dict_eval: const 100s
postqueue: dict_eval: const 100s
postqueue: dict_eval: const 100s
postqueue: dict_eval: const 3600s
postqueue: dict_eval: const 3600s
postqueue: dict_eval: const 100s
postqueue: dict_eval: const 100s
postqueue: dict_eval: const 1000s
postqueue: dict_eval: const 1000s
postqueue: dict_eval: const 10s
postqueue: dict_eval: const 10s
postqueue: dict_eval: const 1s
postqueue: dict_eval: const 1s
postqueue: dict_eval: const 1s
postqueue: dict_eval: const 1s
postqueue: dict_eval: const 500s
postqueue: dict_eval: const 500s
postqueue: dict_eval: const 3600s
postqueue: dict_eval: const 3600s
postqueue: dict_eval: const 3600s
postqueue: dict_eval: const 3600s
postqueue: dict_eval: const 18000s
postqueue: dict_eval: const 18000s
postqueue: dict_eval: const 1s
postqueue: dict_eval: const 1s
postqueue: name_mask: subnet
postqueue: inet_addr_local: configured 2 IPv4 addresses
postqueue: been_here: 127.0.0.0/8: 0
postqueue: been_here: 194.81.36.0/27: 0
postqueue: mynetworks: 127.0.0.0/8 194.81.36.0/27
postqueue: dict_eval: const 127.0.0.0/8 194.81.36.0/27
postqueue: dict_eval: const static:anyone
postqueue: dict_eval: const static:anyone
postqueue: warning: unable to look up public/qmgr: Permission denied
postqueue: fatal: Cannot flush mail queue - mail system is down
zimbra@zimbra:~/postfix-2.2.9/sbin$

Last edited by mowen; 04-28-2007 at 04:12 AM..
Reply With Quote
  #16 (permalink)  
Old 04-28-2007, 07:18 AM
OpenSource Builder & Moderator
 
Posts: 1,166
Default

do:
ls -l /opt/zimbra/postfix-2.2.9/sbin/postqueue
if it doesn't have sgid (rwxr-xr-x, should be rwxr-sr-x), set it (as root):
chmod g+s /opt/zimbra/postfix-2.2.9/sbin/postqueue

and try the postfixqueue -v -f again as zimbra user

out of interest, before you do this, do 'ps -ef |grep postfix' and see if postfix is actually running - the postqueue is just reporting status back to zimbra
Reply With Quote
  #17 (permalink)  
Old 04-28-2007, 07:40 AM
Intermediate Member
 
Posts: 23
Default

With zmcontrol stop (as zimbra):

root@zimbra:/home/mowen# ps -ef|grep postfix
root 30372 29956 0 15:23 pts/0 00:00:00 grep postfix


With zmcontrol start (as zimbra):

root@zimbra:/home/mowen# ps -ef|grep postfix
root 30942 1 0 15:24 ? 00:00:00 /opt/zimbra/postfix-2.2.9/libexec/master
postfix 30943 30942 0 15:24 ? 00:00:00 pickup -l -t fifo -u
postfix 30944 30942 0 15:24 ? 00:00:00 qmgr -l -t fifo -u
root 31128 29956 0 15:24 pts/0 00:00:00 grep postfix
root@zimbra:/home/mowen#

OK, now for the postqueue

root@zimbra:/home/mowen# ls -l /opt/zimbra/postfix-2.2.9/sbin/postqueue
-rwxr-sr-x 1 root postdrop 1443665 2007-03-12 18:51 /opt/zimbra/postfix-2.2.9/sbin/postqueue

That looks OK

Did the chmod anyway & then the postqueue -v -f - no change.
Reply With Quote
  #18 (permalink)  
Old 04-28-2007, 07:45 AM
OpenSource Builder & Moderator
 
Posts: 1,166
Default

you dont have funny mount options for /opt/zimbra partition do you? in particular nosuid (which is usually a good idea) will also block sgid from being honoured, leading to this error

Last edited by dijichi2; 04-28-2007 at 07:48 AM..
Reply With Quote
  #19 (permalink)  
Old 04-28-2007, 09:17 AM
Intermediate Member
 
Posts: 23
Default

Spot on - I'd added a 500G SATA drive for use by Zimbra, following instructions found online. /etc/fstab had been amended with

/dev/sdb1 /opt ext3 nodev,nosuid 0 2

Oh, well done!

I just changed the line to
/dev/sdb1 /opt ext3 defaults 0 0

cleared out /opt, rebooted and started again.

I now have an mta that is running. Time for a beer, I think!

Many thanks again for all your help.

Last edited by mowen; 04-28-2007 at 09:24 AM..
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.