Networking Forums

Networking Forums > Computer Networking > Linux Networking > exim4 socket bind() failed as single installed MTA

Reply
Thread Tools Display Modes

exim4 socket bind() failed as single installed MTA

 
 
Olaf Petzold
Guest
Posts: n/a

 
      09-02-2006, 07:40 AM
Hi,

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 127.0.0.1 failed: Address
already in use: daemon abandoned

even if:

$ netstat -lpn|grep :25
tcp 0 0 127.0.0.1:25 0.0.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
case:

$ 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.

Thanks
Olaf

 
Reply With Quote
 
 
 
 
David Schwartz
Guest
Posts: n/a

 
      09-02-2006, 09:50 AM

Olaf Petzold wrote:

> 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 127.0.0.1 failed: Address
> already in use: daemon abandoned
>
> even if:
>
> $ netstat -lpn|grep :25
> tcp 0 0 127.0.0.1:25 0.0.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.


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 {} \;

DS

 
Reply With Quote
 
Olaf Petzold
Guest
Posts: n/a

 
      09-02-2006, 03:58 PM

>> 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 127.0.0.1 failed: Address
>> already in use: daemon abandoned
>>
>> even if:
>>
>> $ netstat -lpn|grep :25
>> tcp 0 0 127.0.0.1:25 0.0.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.

>
> 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 {} \;


I've got of interest:

/etc/default/exim4:
----8<----
EX4DEF_VERSION=''

# '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
QUEUERUNNER='combined'
# how often should we run the queue
QUEUEINTERVAL='30m'
# options common to quez-runner and listening daemon
COMMONOPTIONS=''
# more options for the daemon/process running the queue (applies to
# the one
# started in /etc/ppp/ip-up.d/exim4, too.
QUEUERUNNEROPTIONS=''
# special flags given to exim directly after the -q. See exim(8)
QFLAGS=''
# options for daemon listening on port 25
SMTPLISTENEROPTIONS=''
---->8-----
/etc/logrotate.d/exim4-base
/etc/cron.daily/exim4-base
/etc/init.d/exim4
/etc/exim4/*
/etc/ppp/ip-up.d/exim4

Thanks Olaf
 
Reply With Quote
 
JoelKatz
Guest
Posts: n/a

 
      09-02-2006, 07:27 PM

Olaf Petzold wrote:

> /etc/logrotate.d/exim4-base
> /etc/cron.daily/exim4-base
> /etc/init.d/exim4
> /etc/exim4/*
> /etc/ppp/ip-up.d/exim4


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

DS

 
Reply With Quote
 
Olaf Petzold
Guest
Posts: n/a

 
      09-03-2006, 09:44 AM
$ find /etc -type f -exec grep -H exim {} \;

>> /etc/logrotate.d/exim4-base
>> /etc/cron.daily/exim4-base
>> /etc/init.d/exim4
>> /etc/exim4/*
>> /etc/ppp/ip-up.d/exim4

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


$ cat /etc/ppp/ip-up.d/exim4
#!/bin/sh

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

[ -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}
fi
----8<--------

QUEUERUNNER='combined'
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
----8<--------

where no ppp is set.

Thanks
Olaf
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: Bind to port 22 on 0.0.0.0 failed: Address already in use Pascal Hambourg Linux Networking 2 03-01-2010 12:00 PM
detecting tcp/udp socket bind in kernel module hari_kannan@hotmail.com Linux Networking 0 03-21-2007 05:34 PM
[WinXP] How to Bind Multiple IP Addresses to Single NIC - Via DHCP? E11 Windows Networking 1 01-25-2007 01:59 PM
Cannot bind name to socket! : Address already in use Ravi Linux Networking 1 12-01-2003 04:52 PM
[LISa] NetManager::prepare: bind (TCP) failed, errno: 98 Carsten Grewe Linux Networking 0 08-13-2003 05:50 PM



1 2 3 4 5 6 7 8 9 10 11