Exim doesn't work

davecl

Verified User
Joined
Jan 12, 2011
Messages
12
Exim doesn't work [SOLVED]

Hello,

I have I problem on my server (CentOS + DirectAdmin).
I can't send or recieve e-mails, not with webmail (RoundCube, Squirrelmail) and not with outlook.

These are my error logs:

Exim Mainlog - /var/log/exim/mainlog
2011-10-12 00:49:31 socket bind() to port 25 for address (any IPv6) failed: Address already in use: daemon abandoned
2011-10-12 00:50:02 socket bind() to port 25 for address (any IPv6) failed: Address already in use: waiting 30s before trying again (9 more tries)
2011-10-12 00:50:32 socket bind() to port 25 for address (any IPv6) failed: Address already in use: waiting 30s before trying again (8 more tries)
2011-10-12 00:51:02 socket bind() to port 25 for address (any IPv6) failed: Address already in use: waiting 30s before trying again (7 more tries)
2011-10-12 00:51:32 socket bind() to port 25 for address (any IPv6) failed: Address already in use: waiting 30s before trying again (6 more tries)
2011-10-12 00:52:02 socket bind() to port 25 for address (any IPv6) failed: Address already in use: waiting 30s before trying again (5 more tries)
2011-10-12 00:52:32 socket bind() to port 25 for address (any IPv6) failed: Address already in use: waiting 30s before trying again (4 more tries)
2011-10-12 00:53:02 socket bind() to port 25 for address (any IPv6) failed: Address already in use: waiting 30s before trying again (3 more tries)
2011-10-12 00:53:32 socket bind() to port 25 for address (any IPv6) failed: Address already in use: waiting 30s before trying again (2 more tries)
2011-10-12 00:54:02 socket bind() to port 25 for address (any IPv6) failed: Address already in use: waiting 30s before trying again (1 more try)
(And so on...(Every 5 minutes))

System Mail Log - /var/log/maillog
Oct 12 01:07:48 3AG4 postfix/master[4792]: warning: process /usr/libexec/postfix/pickup pid 18138 exit status 1
Oct 12 01:07:48 3AG4 postfix/master[4792]: warning: /usr/libexec/postfix/pickup: bad command startup -- throttling
Oct 12 01:08:46 3AG4 master[18141]: fatal: master_spawn: exec /usr/libexec/postfix/qmgr: No such file or directory
(And so on... (Every minute 2 times))

I've been searcing for 2 days on the internet but can't find a solution.

Things I found:
The directory /usr/libexec/postfix doesn't excists

Can someone help me with this problem?
 
Last edited:
It looks like you might have postfix running on port 25, then exim is not able to listen on the port.

What happens if you do:
Code:
service postfix stop
Code:
chkconfig --list |grep postfix
Code:
service exim restart
 
It looks like you might have postfix running on port 25, then exim is not able to listen on the port.

What happens if you do:
Code:
service postfix stop
Code:
chkconfig --list |grep postfix
Code:
service exim restart

I've tried this, but I get the error:
postfix: unrecognized service
 
Something is calling postfix (and postfix isn't there) and something is running on port 25.

Maybe you can try to find what is running on port 25:
netstat -o -n -a | findstr 0.0:25
or
netstat -aon
And see what is listening on port 25.
 
I've tried the following command:
netstat -aon | grep 25
and it returns:

tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN off (0.00/0/0)
tcp 0 0 ::1:25 :::* LISTEN off (0.00/0/0)
unix 2 [ ACC ] STREAM LISTENING 11251 /var/run/abrt/abrt.socket
unix 3 [ ] STREAM CONNECTED 561225 /var/run/dovecot/login/login
unix 3 [ ] STREAM CONNECTED 24025
unix 3 [ ] STREAM CONNECTED 11254 /var/run/dbus/system_bus_socket
unix 3 [ ] STREAM CONNECTED 11253

And netstat -tulpn | grep 25 returns:
tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN 4792/master
tcp 0 0 :::21 :::* LISTEN 22525/proftpd: (acc
tcp 0 0 ::1:25 :::* LISTEN 4792/master

I think it has something to do with the master process, but what's the 'master' process?
 
The file postfix doesn't excists.
And it's a new server (1week), the mail has never worked on the server...

Is it save to stop de proces master? Or isn't this a process?
 
When trying to remove, the server gives me this error:
CRITICAL:yum.cli:Config Error: Error accessing file for config file:///etc/yum.conf
 
It's not installed, yum works again (thanks!:)) but I got this message while removing postfix

Loaded plugins: fastestmirror
Setting up Remove Process
No Match for argument: postfix
Loading mirror speeds from cached hostfile
* base: mirror.nl.leaseweb.net
* extras: mirror.nl.leaseweb.net
* updates: mirror.nl.leaseweb.net
base | 3.7 kB 00:00
extras | 3.0 kB 00:00
updates | 3.5 kB 00:00
Package(s) postfix available, but not installed.
No Packages marked for removal
 
Actually ive no more ideas cause master process seems to be a postfix process... i dont understand how you can have postfix on a clean box where you installed directadmin....

what result for

Code:
rpm -q postfix*

Regards
 
It's very strange, because with this command my output is:

package postfix* is not installed

Is it possible that postfix is bound to port 25 while it isn't installed?
I think this must be the case, and that from somewhere something is trying to start postfix.

The only thing that changed on my server is that soap was installed. But I don't think this shoud be a problem?
 
Dont know, but if postfix isnt installed should not be running.. or.. if has been removed while running so a reboot should kill all process and dont let it start again.. did you tryed to reboot the box?

Regards
 
Can I just reboot from DirectAdmin?
Or is there a better way to reboot?
(Services->Reboot)
 
That just solved the problem, just some simple thing which I haven't tried!
Thank you very much!
 
Back
Top