LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Sendmail not listening on any ports (https://www.linuxquestions.org/questions/linux-server-73/sendmail-not-listening-on-any-ports-585185/)

SorC 09-16-2007 10:06 PM

Sendmail not listening on any ports
 
Hi,

I have a fresh build of the latest sendmail release on a Fedora Core 7 box.

I have had no problems, compiling, installing and putting everything in place. However, after running sendmail I've found that it isn't listening for any incoming smtp connections what so ever. I've kept my sendmail.mc file down to the bare minimum and it follows:

Quote:

VERSIONID(`$Id: generic-linux.mc,v 8.1 1999/09/24 22:48:05 gshapiro Exp $')dnl
OSTYPE(linux)dnl
DOMAIN(generic)dnl
define(`DATABASE_MAP_TYPE', `hash')dnl
FEATURE(`virtusertable', `hash /etc/mail/virtusertable')dnl
MAILER(local)dnl
MAILER(smtp)dnl
The above worked to generate a cf file that got sendmail working perfectly on my previous RedHat 9 box. I have rebuilt and reinstalled the .cf files at least a dozen times with various minor changes, restarting sendmail every time.

I have tried using various recommendations of the DAEMON_OPTIONS definition none of which have made any difference.

The reason I know sendmail isn't listening is that when I run:

Quote:

netstat -a | grep LISTEN
I get:

Quote:

tcp 0 0 *:mysql *:* LISTEN
tcp 0 0 *:ftp *:* LISTEN
tcp 0 0 localhost.localdom:postgres *:* LISTEN
tcp 0 0 *:pop3 *:* LISTEN
tcp 0 0 *:http *:* LISTEN
tcp 0 0 *:ssh *:* LISTEN
tcp 0 0 *:telnet *:* LISTEN
unix 2 [ ACC ] STREAM LISTENING 6649 /tmp/.s.PGSQL.5432
unix 2 [ ACC ] STREAM LISTENING 6557 /var/lib/mysql/mysql.sock
unix 2 [ ACC ] STREAM LISTENING 6264 /var/run/dbus/system_bus_socket
unix 2 [ ACC ] STREAM LISTENING 6936 @/var/run/hald/dbus-fi0qSqDJgZ
unix 2 [ ACC ] STREAM LISTENING 6939 @/var/run/hald/dbus-Q4EGBjjoWD
The sendmail processes running when I restart sendmail are:

Quote:

3510 ? Ss 0:00 sendmail: Queue runner@01:00:00 for /var/spool/mqueue
3517 ? Ss 0:00 sendmail: Queue runner@01:00:00 for /var/spool/clientmqueue

Right now I'm at a loss. From everything I've read about configuring sendmail so far my config should work.

Any help would be much appreciated. Thankyou for your responses in advance.

digen 09-18-2007 10:14 AM

What is the output of telnet localhost 25 ?

Also `lsof -i :25`

Anything peculiar you notice in /var/log/maillog immediately after you restart the sendmail daemon ?

SorC 09-18-2007 08:20 PM

Thankyou for the reply. Below are the results of the questions you've asked.

Quote:

What is the output of telnet localhost 25 ?
[root@server cf]# telnet server.domain.com 25
Trying [ipaddress]...
telnet: connect to address [ipaddress]: Connection refused

where [ipaddress] is the address of the external ethernet connection (i.e direct connection to the internet).

Quote:

Also `lsof -i :25`
There is no output when running the above command.

Quote:

Anything peculiar you notice in /var/log/maillog immediately after you restart the sendmail daemon ?
Sep 19 11:05:25 server sendmail[30037]: alias database /etc/mail/aliases rebuilt by simon
Sep 19 11:05:25 server sendmail[30037]: /etc/mail/aliases: 1 aliases, longest 5 bytes, 10 bytes total
Sep 19 11:05:25 obiwan sendmail[30044]: starting daemon (8.14.1): queueing@01:00:00
Sep 19 11:05:25 server sm-msp-queue[30051]: starting daemon (8.14.1): queueing@01:00:00
Sep 19 11:05:25 server sm-msp-queue[30052]: l8I6tQgb026691: to=root, delay=18:09:59, xdelay=00:00:00, mailer=relay, pri=211353, relay=[127.0.0.1] [127.0.0.1], dsn=4.0.0, stat=Deferred: Connection refused by [127.0.0.1]

This is what I get in the maillog immeadiately after restarting sendmail. There are several more messages like the last that state "connection refused by [127.0.0.1]". Other than that there are no error messages.

[Edit 1]
I have now tried several more approaches.
First, I tried building an older version of sendmail on my FC7 box. This version of sendmail is one I had successfully compiled and run on a Redhat 9 box. This yielded the same results as above.
Second, I scratch built a second FC7 box with an older machine. With this I kept the absolute most basic generic linux configs that come with the sendmail source. This also yielded the same result as above.
Third, I used the sendmail 8.14.1 source to build sendmail on an FC5 box, both with and without Berkeley db. Both builds worked first time without a problem.
After this I'm of the strong opinion that there is an issue between sendmail and FC7 that I'm unaware of. I will continue working on this problem as best I can. I still have very little clue of what I'm looking for.
[/Edit 1]


Cheers,
SorC

durino13 07-19-2008 05:56 PM

Quote:

Originally Posted by SorC (Post 2896350)
Thankyou for the reply. Below are the results of the questions you've asked.



[root@server cf]# telnet server.domain.com 25
Trying [ipaddress]...
telnet: connect to address [ipaddress]: Connection refused

where [ipaddress] is the address of the external ethernet connection (i.e direct connection to the internet).



There is no output when running the above command.



Sep 19 11:05:25 server sendmail[30037]: alias database /etc/mail/aliases rebuilt by simon
Sep 19 11:05:25 server sendmail[30037]: /etc/mail/aliases: 1 aliases, longest 5 bytes, 10 bytes total
Sep 19 11:05:25 obiwan sendmail[30044]: starting daemon (8.14.1): queueing@01:00:00
Sep 19 11:05:25 server sm-msp-queue[30051]: starting daemon (8.14.1): queueing@01:00:00
Sep 19 11:05:25 server sm-msp-queue[30052]: l8I6tQgb026691: to=root, delay=18:09:59, xdelay=00:00:00, mailer=relay, pri=211353, relay=[127.0.0.1] [127.0.0.1], dsn=4.0.0, stat=Deferred: Connection refused by [127.0.0.1]

This is what I get in the maillog immeadiately after restarting sendmail. There are several more messages like the last that state "connection refused by [127.0.0.1]". Other than that there are no error messages.

[Edit 1]
I have now tried several more approaches.
First, I tried building an older version of sendmail on my FC7 box. This version of sendmail is one I had successfully compiled and run on a Redhat 9 box. This yielded the same results as above.
Second, I scratch built a second FC7 box with an older machine. With this I kept the absolute most basic generic linux configs that come with the sendmail source. This also yielded the same result as above.
Third, I used the sendmail 8.14.1 source to build sendmail on an FC5 box, both with and without Berkeley db. Both builds worked first time without a problem.
After this I'm of the strong opinion that there is an issue between sendmail and FC7 that I'm unaware of. I will continue working on this problem as best I can. I still have very little clue of what I'm looking for.
[/Edit 1]


Cheers,
SorC

I have the same problem now on my debian box. Have you ever track this problem down?

Please let me know if so ..

Juraj

aasami 11-04-2011 06:47 AM

I have the same problem.
Why don't you guys post a sollution or at least tell us, that you gave up.

deep27ak 11-04-2011 09:00 AM

Quote:

Originally Posted by aasami (Post 4515644)
I have the same problem.
Why don't you guys post a sollution or at least tell us, that you gave up.

what is the error you are getting?
post your sendmail.mc configuration file?
and provide with all related details

aasami 11-08-2011 07:01 AM

Thanks for your interrest deep27ak.

My problem was, that the only sendmail proces that was running, has been
Code:

# ps -ef|grep send
smmsp    2442    1  0 Oct26 ?        00:00:00 sendmail: Queue runner@01:00:00 for /var/spool/clientmqueue

And therefore sendmail wasn't listening
Code:

# netstat -tulpn|grep sendmail
#

A fiend of mine, figured out, that I need to create a ssl certificate for sendmail ro run it.
Without it, it won't start.
Now it is running in whole
Code:

# ps -ef|grep send
root      2434    1  0 Oct26 ?        00:00:25 sendmail: accepting connections
smmsp    2442    1  0 Oct26 ?        00:00:00 sendmail: Queue runner@01:00:00 for /var/spool/clientmqueue
root    28770 27129  0 13:53 pts/0    00:00:00 grep --color=auto send

And listening as expected
Code:

# netstat -tulpn|grep sendmail
tcp        0      0 0.0.0.0:25                  0.0.0.0:*                  LISTEN      2434/sendmail: acce
tcp        0      0 0.0.0.0:587                0.0.0.0:*                  LISTEN      2434/sendmail: acce

I hope this helps someone.

deep27ak 11-08-2011 07:28 AM

Quote:

Originally Posted by aasami (Post 4518763)


Code:

# netstat -tulpn|grep sendmail
tcp        0      0 0.0.0.0:25                  0.0.0.0:*                  LISTEN      2434/sendmail: acce
tcp        0      0 0.0.0.0:587                0.0.0.0:*                  LISTEN      2434/sendmail: acce


I don't find any issue in port for sendmail as it is listening to 25 nd 587
your machine is properly listening to smtp ports

I would like to know the steps which you followed for configuring sendmail

and the error logs of your machine
Code:

#cat /var/log/maillog
and as far as I know there is no requirement for ssl to successfully send mails using sendmail



Code:

and I don't think its proper to use others thread I would advise you to create your own thread with all the details I have asked you

MrAwanish 11-09-2011 08:49 AM

Hello Everyone

I am Awanish Kumar and learning process is running on so there is a problem to understand the Sendmail configuration.
So I need help and step by step process and also sample configuration view.

Thanks
Awanish Kumar

deep27ak 11-09-2011 08:57 AM

Quote:

Originally Posted by MrAwanish (Post 4519720)
Hello Everyone

I am Awanish Kumar and learning process is running on so there is a problem to understand the Sendmail configuration.
So I need help and step by step process and also sample configuration view.

Thanks
Awanish Kumar

I think you should start a new thread for any of your queries from next time :)

check this

http://www.linuxquestions.org/questi...ep27ak-609264/

best of luck

MrAwanish 11-09-2011 10:10 AM

Thank You

I'll check it.


All times are GMT -5. The time now is 04:07 PM.