LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 09-16-2007, 10:06 PM   #1
SorC
LQ Newbie
 
Registered: Sep 2007
Posts: 2

Rep: Reputation: 0
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.

Last edited by SorC; 09-17-2007 at 06:38 PM.
 
Old 09-18-2007, 10:14 AM   #2
digen
Member
 
Registered: Dec 2005
Location: India
Distribution: Ubuntu Feisty Fawn
Posts: 107

Rep: Reputation: 15
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 ?
 
Old 09-18-2007, 08:20 PM   #3
SorC
LQ Newbie
 
Registered: Sep 2007
Posts: 2

Original Poster
Rep: Reputation: 0
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

Last edited by SorC; 09-18-2007 at 10:34 PM. Reason: Update
 
Old 07-19-2008, 05:56 PM   #4
durino13
LQ Newbie
 
Registered: Jul 2008
Posts: 7

Rep: Reputation: 0
Quote:
Originally Posted by SorC View Post
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
 
Old 11-04-2011, 06:47 AM   #5
aasami
LQ Newbie
 
Registered: Apr 2011
Posts: 17

Rep: Reputation: 0
I have the same problem.
Why don't you guys post a sollution or at least tell us, that you gave up.
 
Old 11-04-2011, 09:00 AM   #6
deep27ak
Senior Member
 
Registered: Aug 2011
Location: Bangalore, India
Distribution: rhel 5x,6.0,6.2, centOS 5x,6.0,6.2
Posts: 1,188
Blog Entries: 4

Rep: Reputation: 219Reputation: 219Reputation: 219
Quote:
Originally Posted by aasami View Post
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
 
Old 11-08-2011, 07:01 AM   #7
aasami
LQ Newbie
 
Registered: Apr 2011
Posts: 17

Rep: Reputation: 0
Lightbulb

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.
 
Old 11-08-2011, 07:28 AM   #8
deep27ak
Senior Member
 
Registered: Aug 2011
Location: Bangalore, India
Distribution: rhel 5x,6.0,6.2, centOS 5x,6.0,6.2
Posts: 1,188
Blog Entries: 4

Rep: Reputation: 219Reputation: 219Reputation: 219
Quote:
Originally Posted by aasami View Post


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

Last edited by deep27ak; 11-08-2011 at 07:33 AM.
 
Old 11-09-2011, 08:49 AM   #9
MrAwanish
LQ Newbie
 
Registered: Nov 2011
Posts: 6

Rep: Reputation: Disabled
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
 
Old 11-09-2011, 08:57 AM   #10
deep27ak
Senior Member
 
Registered: Aug 2011
Location: Bangalore, India
Distribution: rhel 5x,6.0,6.2, centOS 5x,6.0,6.2
Posts: 1,188
Blog Entries: 4

Rep: Reputation: 219Reputation: 219Reputation: 219
Quote:
Originally Posted by MrAwanish View Post
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
 
Old 11-09-2011, 10:10 AM   #11
MrAwanish
LQ Newbie
 
Registered: Nov 2011
Posts: 6

Rep: Reputation: Disabled
Thank You

I'll check it.
 
  


Reply

Tags
connections, listening, sendmail


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Ctorrent listening ports manolakis Linux - Networking 1 01-19-2007 09:35 AM
I have too much active/listening ports... Xeratul Linux - Networking 1 12-17-2006 01:06 AM
how to minimize listening ports johnnydangerous Fedora 19 02-13-2005 03:15 PM
Ports listening? dareino Linux - Networking 2 03-31-2004 08:40 AM
XDM listening to ports tarballedtux Linux - Security 7 04-28-2002 05:25 AM


All times are GMT -5. The time now is 08:50 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration