Re: [Exim] socket bind() to port 25 for address (any IPv4) f…

Top Page
Delete this message
Reply to this message
Author: prince
Date:  
To: exim-users
Subject: Re: [Exim] socket bind() to port 25 for address (any IPv4) failed: Address already in use: waiting before trying again
Thanks Derrik for the response.

There was a smtp_psa under the xinetd.d and I disabled it.
Now, I can start the exim fine. When I start the exim, I get one process as
defunct. Is it normal, if not how do I fix it?

ps -auxw | grep exim
mail     13526  0.0  0.1  3440 1128 ?        S    11:09
0:00 /var/exim/bin/exim -bd -q1h
root     13527  0.0  0.0     0    0 ?        Z    11:09   0:00 [exim
<defunct>]


Also,
When I test the exim, I get the following error.


% telnet localhost smtp
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
220 localhost ESMTP Exim 4.30 Fri, 23 Jan 2004 11:10:08 -0800
mail from: princedada@???
250 OK
rcpt to: prince@???
550 unknown user



I used the exim.config from http://www.tty1.net/stuff/exim4.conf-vdomains and
created the tables from http://www.tty1.net/stuff/exim4.create.sql.

Note: I have the "passwd" table created as "users" and the column "email"
is
called "id".

mysql> describe users ;
+---------+------------------+------+-----+---------+-------+
| Field   | Type             | Null | Key | Default | Extra |

+---------+------------------+------+-----+---------+-------+
| id      | char(128)        |      | MUL |         |       |
| crypt   | char(128)        |      |     |         |       |
| clear   | char(128)        |      |     |         |       |
| name    | char(128)        |      |     |         |       |
| uid     | int(10) unsigned |      |65534|         |       |
| gid     | int(10) unsigned |      |65534|         |       |
| home    | char(255)        |      |     |         |       |
| maildir | char(255)        |      |     |         |       |
| quota   | char(255)        |      |     |         |       |

+---------+------------------+------+-----+---------+-------+
9 rows in set (0.00 sec)

mysql> select * from users ;
+-------------------+------+--------+-----+-----+--------------+--------------
---+
| id                 xxx  |name     uid | gid | home         |

maildir         |
+--------------------------+--------+-----+-----+--------------+--------------
---+


+----------------+-----+--------+-----+-----+--------------+---------------
--+
| prince@??? | xxx | Prince | 8 | 12
| /home/dom/yyy.com/users/prince | /home/dom/yyy.com/users/prince/Maildir/

+----------------+-----+--------+-----+-----+--------------+---------------
--+

mysql> select * from domains ;
+---------+-------+------------+
| domain type relay_host |

+---------+-------+------------+
| yyy.com | local |

+---------+-------+------------+


Where does exim verify that the user is defined or not? I have the user
defined in the "users" table. then, why am I getting "550 unknown user"?

Thanks,
Prince.

On Fri, 23 Jan 2004 11:03:44 -0800 (PST), Derrick wrote
> check to see if xinetd is strting up a mail process
>
> On Fri, 23 Jan 2004, prince wrote:
>
> > I am trying to test exim wth the help of documentation present at
> > http://www.tty1.net/virtual_domains_en.html.
> >
> > I see the following error message in the /var/spool/exim/log/mainlog file.
> >
> > socket bind() to port 25 for address (any IPv4) failed: Address already in
> > use: waiting before trying again
> >
> > sudo netstat -natep | grep 25
> >
> > tcp        0      0 0.0.0.0:25              0.0.0.0:*
> > LISTEN      0          2852       2734/xinetd

> >
> > How do I get rid of the xinetd from listening on port 25. I have qmail
> > installed on the system. But I stopped qmail, before stopping exim.
> >
> > Thanks,
> > Prince.
> >
> >
> > --
> >
> > ## List details at http://www.exim.org/mailman/listinfo/exim-users Exim

details at http://www.exim.org/ ##
> >
> >
>
> Derrick MacPherson
> derrick@???