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

Thread: postfix is not running

  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
    Oct 2005
    Location
    Thatcher, AZ
    Posts
    5,606
    Rep Power
    21

    Default

    Quote Originally Posted by aapthorp View Post
    Thanks for pointing me at the other post. Unfortunately the suggested fix doesn't appear to help. Did you have any luck?
    Can you please post your logs?

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

    Default

    Problem solved. It seems that deinstalling exim4 with apt-get remove does not actually eradicate exim4!!!

    So the sequence of events was something like this:

    1) Problem with running postfix
    2) Realise exim4 is still running. Stop exim4 and remove or so I thought
    3) Problem as originally posted
    4) Determine that the cause is the nsswitch bdb problem highlighted above. Reconfigure nsswitch.conf. Reboot.
    5) Postfix still not running
    6) Eventually spot that exim4 is still installed and of course restarted on reboot

    Having done some hunting around it appears that exim4 is notoriously difficult to remove and the best recommendation is to disable it with:

    update-rc.d -f exim4 remove

    See Permanently getting rid of exim! | debianHELP

    I think a note on this needs to be added to install guide.

  9. #9
    Join Date
    May 2006
    Location
    England.
    Posts
    927
    Rep Power
    10

    Default

    The sysv-rc-conf tool is great for this kind of thing. install with 'aptitude install sysv-rc-conf' and you're good to go.

    This will allow easy control over what services start in each runlevel. Stopping exim in runlevel 2 will be sufficient as that's what Debian runs in as standard.

  10. #10
    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!

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
  •