exim4 socket bind() failed as single installed MTA

Discussion in 'Linux Networking' started by Olaf Petzold, Sep 2, 2006.

  1. Olaf Petzold

    Olaf Petzold Guest


    I'm using here debian/testing i386. The problem is related to exim4:

    $ cat /var/log/exim4/paniclog
    2006-08-30 17:32:05 socket bind() for address failed: Address
    already in use: daemon abandoned

    even if:

    $ netstat -lpn|grep :25
    tcp 0 0*
    LISTEN 5701/exim4

    The error message shows up on bootstrap also and the 'mta' needs time to
    start (I guess a timeout) and failed then.

    I did not configure exim4 (v4.62-4) by hand yet - only dpkg-reconfigure
    exim4-config to use local email. What is the relevant part of exim's
    config files here which I can post here (there a lot)?

    Using google I found a hint related to (x)inetd which isn't true for my

    $ grep -v "^#" /etc/inetd.conf
    ident stream tcp wait identd /usr/sbin/identd identd

    Maybe of interest is also:
    $ dpkg --get-selections |egrep '(exim4|mail|mta)'
    exim4 install
    exim4-base install
    exim4-config install
    exim4-daemon-light install
    libmailtools-perl install
    mailx install
    procmail install

    The interesting thing is that local mail transfer is working (not
    tested immediate after booting debian) but these error message is confusing.

    Olaf Petzold, Sep 2, 2006
    1. Advertisements

  2. It looks like exim is failing to start up because it's already running.
    Perhaps two different things are trying to start it. It may help to do
    something like:

    find /etc -type f -exec grep -H exim {} \;

    David Schwartz, Sep 2, 2006
    1. Advertisements

  3. Olaf Petzold

    Olaf Petzold Guest

    I've got of interest:


    # 'combined' - one daemon running queue and listening on SMTP port
    # 'no' - no daemon running the queue
    # 'separate' - two separate daemons
    # 'ppp' - only run queue with /etc/ppp/ip-up.d/exim4.
    # 'nodaemon' - no daemon is started at all.
    # 'queueonly' - only a queue running daemon is started, no SMTP
    # listener.
    # setting this to 'no' will also disable queueruns from
    # /etc/ppp/ip-up.d/exim4
    # how often should we run the queue
    # options common to quez-runner and listening daemon
    # more options for the daemon/process running the queue (applies to
    # the one
    # started in /etc/ppp/ip-up.d/exim4, too.
    # special flags given to exim directly after the -q. See exim(8)
    # options for daemon listening on port 25

    Thanks Olaf
    Olaf Petzold, Sep 2, 2006
  4. Olaf Petzold

    JoelKatz Guest

    What does the ip-up.d/exim4 script do?

    JoelKatz, Sep 2, 2006
  5. Olaf Petzold

    Olaf Petzold Guest

    $ find /etc -type f -exec grep -H exim {} \;
    $ cat /etc/ppp/ip-up.d/exim4

    if [ -n "$EX4DEBUG" ]; then
    echo "now debugging $0 [email protected]"
    set -x

    [ -x /usr/lib/exim4/exim4 ] || exit 0

    [ -f /etc/default/exim4 ] && . /etc/default/exim4

    if [ "x${QUEUERUNNER}" != "xno" ] ; then
    # Flush exim queue
    /usr/sbin/exim4 -qqf ${QUEUERUNNEROPTIONS} ${COMMONOPTIONS}


    is set in /etc/default/exim4. Further more my
    $ cat /etc/network/interfaces
    # The loopback network interface
    auto lo

    iface lo inet loopback

    # The first network card
    auto eth0

    mapping eth0
    script grep
    map eth0

    iface eth0 inet dhcp

    where no ppp is set.

    Olaf Petzold, Sep 3, 2006
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.