Page 1 of 2 12 LastLast
Results 1 to 10 of 19

Thread: Install on Ubuntu Edgy - postfix not running

  1. #1
    mowen is offline Intermediate Member
    Join Date
    Apr 2007
    Location
    Shropshire, UK
    Posts
    23
    Rep Power
    8

    Default Install on Ubuntu Edgy - postfix not running

    I've just installed Zimbra (v4.5.2) on a new, freshly installed Ubuntu 6.10 (Edgy) server box, following the guide on http://www.howtoforge.com/installing...uite_on_ubuntu

    DNS has been setup correctly from a previously working Ubuntu 6.06/Zimbra box.
    Installation appears to complete, but a 'zmcontrol status' shows the MTA as stopped, postfix not running. For masochistic pleasure, reformatted and repeated - just in case I missed something out - with the same result.

    Any help would be appreciated. Thanks

    Mark

  2. #2
    jholder's Avatar
    jholder is offline Former Zimbran
    Join Date
    Oct 2005
    Location
    Thatcher, AZ
    Posts
    5,606
    Rep Power
    20

    Default

    Let's take a look at the
    /var/log/zimbra.log

    That's the postfix log, so if there's anything wrong, it'll be in there.

    If you can, look at it, and post anything you see wrong.

  3. #3
    mowen is offline Intermediate Member
    Join Date
    Apr 2007
    Location
    Shropshire, UK
    Posts
    23
    Rep Power
    8

    Default postfix not running - zimbra.log

    Since other services seemed to be OK, I attempted to start postfix manually. The system seemed to accept this, so I then took the following from the /var/log/zimbra.log:

    Apr 26 08:22:01 zimbra CRON[22152]: (pam_unix) session opened for user zimbra by (uid=0)
    Apr 26 08:22:03 zimbra zmtomcatmgr[22249]: status requested
    Apr 26 08:22:03 zimbra zmtomcatmgr[22249]: status OK
    Apr 26 08:22:03 zimbra postfix/postqueue[22263]: fatal: Connect to the Postfix showq service: Permission denied
    Apr 26 08:22:04 zimbra zimbramon[22153]: 22153:info: 2007-04-26 08:22:01, STATUS: zimbra.wnsc.ac.uk: antispam: Running
    Apr 26 08:22:04 zimbra zimbramon[22153]: 22153:info: 2007-04-26 08:22:01, STATUS: zimbra.wnsc.ac.uk: antivirus: Running
    Apr 26 08:22:04 zimbra zimbramon[22153]: 22153:info: 2007-04-26 08:22:01, STATUS: zimbra.wnsc.ac.uk: ldap: Running
    Apr 26 08:22:04 zimbra zimbramon[22153]: 22153:info: 2007-04-26 08:22:01, STATUS: zimbra.wnsc.ac.uk: logger: Running
    Apr 26 08:22:04 zimbra zimbramon[22153]: 22153:info: 2007-04-26 08:22:01, STATUS: zimbra.wnsc.ac.uk: mailbox: Running
    Apr 26 08:22:04 zimbra zimbramon[22153]: 22153:info: 2007-04-26 08:22:01, STATUS: zimbra.wnsc.ac.uk: mta: Stopped
    Apr 26 08:22:04 zimbra zimbramon[22153]: 22153:info: 2007-04-26 08:22:01, STATUS: zimbra.wnsc.ac.uk: snmp: Running
    Apr 26 08:22:04 zimbra zimbramon[22153]: 22153:info: 2007-04-26 08:22:01, STATUS: zimbra.wnsc.ac.uk: spell: Running
    Apr 26 08:22:04 zimbra CRON[22152]: (pam_unix) session closed for user zimbra

    After reading some posts & seeing the 'permissions denied, I tried (as user zimbra) to fix the permissions to see if that helped: /opt/zimbra/libexec/zmfixperms & then stopped & started postfix -
    Same results in the log.

    --
    Mark

  4. #4
    mowen is offline Intermediate Member
    Join Date
    Apr 2007
    Location
    Shropshire, UK
    Posts
    23
    Rep Power
    8

    Default

    After a bit of fiddling, managed to mess things up so uninstalled zimbra (since it is a fresh install system), cleared the zimbra.log and re-installed. Once complete, logged into the admin GUI and server status showed mta stopped.
    zimbra.log runs to about 370 lines, so will show snippets:

    . . .
    Apr 26 23:47:38 zimbra clamd[7597]: Self checking every 1800 seconds.
    Apr 26 23:47:38 zimbra postfix/postqueue[7608]: fatal: Connect to the Postfix showq service: Permission denied
    Apr 26 23:47:39 zimbra amavis[7556]: starting. /opt/zimbra/amavisd/sbin/amavisd at zimbra.wnsc.ac.uk amavisd-new-2.4.3 (20060930), Unicode aware, LANG=C
    Apr 26 23:47:39 zimbra amavis[7556]: user=1001, EUID: 1001 (1001); group=, EGID: 1001 1002 1001 5 4 (1001 1002 1001 5 4); log_level=1
    Apr 26 23:47:39 zimbra amavis[7556]: Perl version 5.008008
    Apr 26 23:47:40 zimbra postfix/postfix-script: warning: not owned by root: /opt/zimbra/postfix-2.2.9/conf/main.cf
    Apr 26 23:47:40 zimbra amavis[7556]: SpamControl: init_pre_chroot done
    Apr 26 23:47:40 zimbra amavis[7650]: Net::Server: Process Backgrounded
    Apr 26 23:47:40 zimbra amavis[7650]: Net::Server: 2007/04/26-23:47:40 Amavis (type Net::Server::PreForkSimple) starting! pid(7650)
    Apr 26 23:47:40 zimbra amavis[7650]: Net::Server: Binding to UNIX socket file /opt/zimbra/amavisd/amavisd.sock using SOCK_STREAM
    Apr 26 23:47:40 zimbra amavis[7650]: Net::Server: Binding to TCP port 10024 on host 127.0.0.1
    Apr 26 23:47:40 zimbra amavis[7650]: Net::Server: Group Not Defined. Defaulting to EGID '1001 1002 1001 5 4'
    Apr 26 23:47:40 zimbra amavis[7650]: Net::Server: User Not Defined. Defaulting to EUID '1001'

    . . .

    Apr 26 23:47:40 zimbra postfix/postfix-script: starting the Postfix mail system
    Apr 26 23:47:40 zimbra postfix/master[7660]: daemon started -- version 2.2.9, configuration /opt/zimbra/postfix-2.2.9/conf
    Apr 26 23:47:40 zimbra su[7125]: (pam_unix) session closed for user zimbra
    Apr 26 23:47:40 zimbra saslauthd[7672]: detach_tty : master pid is: 7672
    Apr 26 23:47:40 zimbra saslauthd[7672]: ipc_init : listening on socket: /opt/zimbra/cyrus-sasl-2.1.21.ZIMBRA/state/mux
    Apr 26 23:47:40 zimbra su[7673]: (pam_unix) session opened for user zimbra by (uid=0)
    Apr 26 23:47:40 zimbra amavis[7650]: SpamControl: initializing Mail::SpamAssassin
    Apr 26 23:47:41 zimbra amavis[7650]: SpamControl: init_pre_fork done
    Apr 26 23:47:42 zimbra zmtomcatmgr[7783]: status requested
    Apr 26 23:47:42 zimbra zmtomcatmgr[7783]: status OK
    Apr 26 23:47:42 zimbra postfix/postqueue[7797]: fatal: Connect to the Postfix showq service: Permission denied
    Apr 26 23:47:44 zimbra su[7673]: (pam_unix) session closed for user zimbra

    . . .

    Apr 26 23:48:03 zimbra zmtomcatmgr[8378]: status OK
    Apr 26 23:48:04 zimbra postfix/postqueue[8392]: fatal: Connect to the Postfix showq service: Permission denied
    Apr 26 23:48:04 zimbra su[8292]: (pam_unix) session closed for user zimbra
    Apr 26 23:48:04 zimbra su[8396]: (pam_unix) session opened for user zimbra by (uid=0)
    Apr 26 23:48:05 zimbra zimbramon[8255]: 8255:info: 2007-04-26 23:48:01, STATUS: zimbra.wnsc.ac.uk: antispam: Running
    Apr 26 23:48:05 zimbra zimbramon[8255]: 8255:info: 2007-04-26 23:48:01, STATUS: zimbra.wnsc.ac.uk: antivirus: Running
    Apr 26 23:48:05 zimbra zimbramon[8255]: 8255:info: 2007-04-26 23:48:01, STATUS: zimbra.wnsc.ac.uk: ldap: Running
    Apr 26 23:48:05 zimbra zimbramon[8255]: 8255:info: 2007-04-26 23:48:01, STATUS: zimbra.wnsc.ac.uk: logger: Running
    Apr 26 23:48:05 zimbra zimbramon[8255]: 8255:info: 2007-04-26 23:48:01, STATUS: zimbra.wnsc.ac.uk: mailbox: Running
    Apr 26 23:48:05 zimbra zimbramon[8255]: 8255:info: 2007-04-26 23:48:01, STATUS: zimbra.wnsc.ac.uk: mta: Stopped
    Apr 26 23:48:05 zimbra zimbramon[8255]: 8255:info: 2007-04-26 23:48:01, STATUS: zimbra.wnsc.ac.uk: snmp: Running
    Apr 26 23:48:05 zimbra zimbramon[8255]: 8255:info: 2007-04-26 23:48:01, STATUS: zimbra.wnsc.ac.uk: spell: Running
    Apr 26 23:48:05 zimbra CRON[8254]: (pam_unix) session closed for user zimbra

    There were some similar sections with these 'permissions denied' lines.

  5. #5
    jholder's Avatar
    jholder is offline Former Zimbran
    Join Date
    Oct 2005
    Location
    Thatcher, AZ
    Posts
    5,606
    Rep Power
    20

    Default

    Well,
    You should probably check to see if you have something running on port 25. If you don't think so, check again.

    Then look to see if you have iptables/nat/ or any sort of network service routing going.

    Permission denied doesn't only mean that you don't have privledges. . .it can simply mean that it can't bind. Misleading, I know

  6. #6
    mowen is offline Intermediate Member
    Join Date
    Apr 2007
    Location
    Shropshire, UK
    Posts
    23
    Rep Power
    8

    Default checking port 25 & iptables

    OK - with zimbra stopped (zmcontrol stop), netstat -a produced nothing for port 25. Telnetting to port 25 produced no connection. Using 'iptables -L' produced nothing. What should I look for to check NAT rules?

    Restarted zimbra & checked again.

    netstat -an | grep 25 produced
    tcp 0 0 127.0.0.1:10025 0.0.0.0:* LISTEN
    tcp 0 0 0.0.0.0:25 0.0.0.0:* LISTEN
    tcp6 0 0 :::7025 :::* LISTEN
    unix 2 [ ACC ] STREAM LISTENING 112125 public/cleanup
    unix 2 [ ] DGRAM 112257

    so something is listening on port 25. Telnetted to port 25 (telnet localhost 25) and got the following output:
    Trying 127.0.0.1...
    Connected to localhost.
    Escape character is '^]'.
    220 zimbra.wnsc.ac.uk ESMTP Postfix

    So, I presume postfix is listening - still showing as stopped on the Admin GUI


    --
    Mark

  7. #7
    jholder's Avatar
    jholder is offline Former Zimbran
    Join Date
    Oct 2005
    Location
    Thatcher, AZ
    Posts
    5,606
    Rep Power
    20

    Default

    What about SELinux?

    Try a service iptables stop
    zmcontrol start

  8. #8
    mowen is offline Intermediate Member
    Join Date
    Apr 2007
    Location
    Shropshire, UK
    Posts
    23
    Rep Power
    8

    Default

    The server is using Ubuntu - I haven't installed SELinux (& couldn't find an indication that it's there)

    Not sure how to stop iptables in ubuntu - tried iptables -F to flush any rules.
    Will do some more research after tea.

    --
    Mark

  9. #9
    mowen is offline Intermediate Member
    Join Date
    Apr 2007
    Location
    Shropshire, UK
    Posts
    23
    Rep Power
    8

    Default

    OK - apparently, the equivalent to Fedora's 'service iptables stop' for Ubuntu is

    iptables -F
    iptables -X
    iptables -t nat -F
    iptables -t nat -X
    iptables -t mangle -F
    iptables -t mangle -X
    iptables -P INPUT ACCEPT
    iptables -P FORWARD ACCEPT
    iptables -P OUTPUT ACCEPT

    not quite as concise

    I've done that, followed by zmcontrol start - mta still stopped!

    --
    Mark

  10. #10
    anotherseed is offline New Member
    Join Date
    Apr 2007
    Posts
    3
    Rep Power
    8

    Default

    Hi,
    Debian uses init.d service scripts (well, Ubuntu uses Upstart but it's compatible). So you should be able to do,

    sudo /etc/init.d/iptables restart | stop | start

    or other things like

    sudo /etc/init.d/alsa-utils force-reload

    to start and stop services

Page 1 of 2 12 LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. tomcat not running / postfix/postqueue errors
    By seravitae in forum Installation
    Replies: 7
    Last Post: 03-10-2007, 08:18 PM
  2. Post instsallation problems
    By Assaf in forum Installation
    Replies: 14
    Last Post: 01-29-2007, 11:38 AM
  3. Getting problems in FC4 while instalation
    By kitty_bhoo in forum Installation
    Replies: 13
    Last Post: 09-12-2006, 10:34 PM
  4. Trouble sending mail from Outlook
    By czaveri in forum Users
    Replies: 15
    Last Post: 07-24-2006, 11:01 AM
  5. Fedora Core 3, Clean Install - Not working!
    By pcjackson in forum Installation
    Replies: 17
    Last Post: 03-05-2006, 07:38 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •