Results 1 to 10 of 12

Thread: postfix is not running

Hybrid View

  1. #1
    Join Date
    Oct 2007
    Location
    Czech Republic
    Posts
    8
    Rep Power
    8

    Default postfix is not running

    I've just installed Zimbra on Debian 4.0 and have a problem getting postfix running. I've looked at the various threads and taken care of competing MTAs. Exim 4 was running, but is now deinstalled.

    zmcontrol gives me

    mta Stopped
    postfix is not running
    saslauthd is running with pid 12551
    snmp Running

    The zimbra log shows:

    Oct 21 13:53:53 localhost postfix/postfix-script[12523]: warning: not owned by root: /opt/zimbra/postfix-2.4.3.3/conf/main.cf
    Oct 21 13:53:53 localhost postfix/postfix-script[12537]: starting the Postfix mail system
    ...snip...
    Oct 21 13:54:30 localhost postfix/postqueue[12976]: fatal: Queue report unavailable - mail system is down

    sh -x bin/zmmtactl status indicates that it is indeed postfix that is failing.

    If I try connecting to port 25 I get connection refused.

    Any thoughts, as far as I can tell /etc/hosts and DNS is configured correctly

    thanks

    Adrian

  2. #2
    Join Date
    Oct 2007
    Posts
    88
    Rep Power
    8

    Default

    I'm seeing the same thing with Debian 4.0 and 5.0RC1.

    Starting postfix by hand under strace appears to show it crashing:

    --- SIGSEGV (Segmentation fault) @ 0 (0) ---
    Process 18205 detached

  3. #3
    Join Date
    Oct 2007
    Posts
    88
    Rep Power
    8

    Default

    Here's the last bit of the output of strace:

    24704 munmap(0x40020000, 4096) = 0
    24704 open("/var/lib/misc/services.db", O_RDWR|O_LARGEFILE) = -1 ENOENT (No such file or directory)
    24704 open("/var/lib/misc/services.db", O_RDWR|O_LARGEFILE) = -1 ENOENT (No such file or directory)
    24704 open("/var/lib/misc/services.db", O_RDWR|O_LARGEFILE) = -1 ENOENT (No such file or directory)
    24704 --- SIGSEGV (Segmentation fault) @ 0 (0) ---


    I'm not sure if the failure to find /var/lib/misc/services.db is critical or not.

  4. #4
    Join Date
    Oct 2007
    Posts
    88
    Rep Power
    8

    Default

    I finally found the core file (in postfix/spool):

    Core was generated by `/opt/zimbra/postfix-2.4.3.3/libexec/master'.
    Program terminated with signal 11, Segmentation fault.
    #0 0x080d5219 in __db_close_pp (dbp=0x811c1b8, flags=0) at ../dist/../db/db_iface.c:245
    245 ../dist/../db/db_iface.c: No such file or directory.
    in ../dist/../db/db_iface.c
    (gdb) bt
    #0 0x080d5219 in __db_close_pp (dbp=0x811c1b8, flags=0) at ../dist/../db/db_iface.c:245
    #1 0x406a977f in ?? () from /usr/lib/libnss_db.so.2
    #2 0x0811c1b8 in ?? ()
    #3 0x00000000 in ?? ()

  5. #5
    Join Date
    Oct 2007
    Posts
    88
    Rep Power
    8

    Default

    seems to be the same problem described here:

    http://www.zimbra.com/forums/install...ebug-info.html

  6. #6
    Join Date
    Oct 2007
    Location
    Czech Republic
    Posts
    8
    Rep Power
    8

    Default

    Thanks for pointing me at the other post. Unfortunately the suggested fix doesn't appear to help. Did you have any luck?

  7. #7
    Join Date
    Feb 2012
    Posts
    2
    Rep Power
    3

    Default Another suggestion..

    I am posting because I tend to forget solutions later and I hope this helps the next person.

    I changed the hostname for our server and rebooted. I thought this was the problem so I spent quite a bit of time trying to figure out why the hostname would prevent the MTA from starting. After some further investigation I found postfix had been completely uninstalled (which really means I did something stupid some time ago and the problem did not rear its ugly head until I unloaded the running postfix service.)

    Here are the steps I went through on CentOS to fix the problem:

    //realized postfix was not loaded by checking to see what was installed
    rpm -qa | grep postfix

    //installed postfix
    yum install postfix

    //postfix would load then exit because sendmail was already using port 25
    chkconfig --level 345 sendmail off
    chkconfig --level 345 postfix on
    /etc/init.d/sendmail stop
    /etc/init.d/postfix start

    //confirmed postfix was loaded
    telnet localhost 25


    This all went well until 'su zimbra && zmcontrol status && "MTA not loaded"'. I knew for sure Postfix was loaded and working but for some reason Zimbra would not recognize this. I figured out that you have to stop Postfix, su zimbra then restart zimbra. If Zimbra loads postfix then everything will be fine but loading Postfix as root is not so good.

    //do this as root
    /etc/init.d/zimbra stop

    //switch user to zimbra
    su zimbra

    //restart zimbra
    zmcontrol restart

    //wait patiently
    zmcontrol status

    //you should see the following:
    mta Running


    This obviously won't help everyone but understanding that Postfix cannot be loaded as root but needs to be loaded as user zimbra was interesting and fixed my problem.

    Have a good night!

  8. #8
    phoenix is offline Zimbra Consultant & Moderator
    Join Date
    Sep 2005
    Location
    Vannes, France
    Posts
    23,587
    Rep Power
    58

    Default

    Quote Originally Posted by dogatemycomputer View Post
    This obviously won't help everyone but understanding that Postfix cannot be loaded as root but needs to be loaded as user zimbra was interesting and fixed my problem.
    I'm somewhat confused by your post and it is slightly misleading.

    Zimbra does not require Postfix to be installed in your operating system, ZCS has all the components it needs when you install it and that includes a copy of postfix. The steps you've described above are not required, all you've done there is install a copy of postfix then start it then restart Zimbra which won't run because postfix (the operating system version) is installed and running. You then stop the o/s version of postfix, switch to the zimbra user and start ZCS (which includes it's own copy of postfix) and that works - you simply didn't need to install postfix.
    Regards


    Bill


    Acompli: A new adventure for Co-Founder KevinH.

  9. #9
    Join Date
    Feb 2012
    Posts
    2
    Rep Power
    3

    Talking

    Quote Originally Posted by phoenix View Post
    I'm somewhat confused by your post and it is slightly misleading.

    Zimbra does not require Postfix to be installed in your operating system, ZCS has all the components it needs when you install it and that includes a copy of postfix. The steps you've described above are not required, all you've done there is install a copy of postfix then start it then restart Zimbra which won't run because postfix (the operating system version) is installed and running.
    As I said.. this solution is not for everyone. I made it clear the OS version of Postfix was disabled, Sendmail was disabled and restarting Zimbra would not load Zimbra's copy of Postfix. I needed to get the mail server up and running. Disabling sendmail and restarting Zimbra did not help but installing a fresh copy of Postfix resolved the problem. In light of your comment I may still go back and try to understand why Zimbra would not start Postifx and why installing a fresh copy fixed the problem or try reinstalling Zimbra's bundled version.

    In any case I will concede that a less experienced tech may be in serious trouble if they have a broken copy of Postfix installed so they try installing a second copy which could make things worse.

Similar Threads

  1. Replies: 21
    Last Post: 02-04-2010, 10:06 AM
  2. Error loading on Mac OS X 10.4.10 server PPC
    By qprcanada in forum Installation
    Replies: 7
    Last Post: 10-26-2007, 07:25 AM
  3. tomcat not running / postfix/postqueue errors
    By seravitae in forum Installation
    Replies: 7
    Last Post: 03-10-2007, 08:18 PM
  4. Post instsallation problems
    By Assaf in forum Installation
    Replies: 14
    Last Post: 01-29-2007, 11:38 AM
  5. Trouble sending mail from Outlook
    By czaveri in forum Users
    Replies: 15
    Last Post: 07-24-2006, 12:01 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
  •