View previous topic :: View next topic |
Author |
Message |
cpdsaorg Guru
Joined: 16 Oct 2003 Posts: 359
|
Posted: Mon Oct 09, 2006 12:14 pm Post subject: postfix wont start because another smtp is running [solved] |
|
|
Have I been hacked???
I don't see any other mail agents installed and I need to get postfix working again.
Is it possible that an improperly installed copy of PEAR libs is running some sort of mail agent??
Code: | # nmap localhost
Starting Nmap 4.01 ( http://www.insecure.org/nmap/ ) at 2006-10-09 13:49 GMT
Interesting ports on localhost (127.0.0.1):
(The 1668 ports scanned but not shown below are in state: closed)
PORT STATE SERVICE
22/tcp open ssh
25/tcp open smtp
443/tcp open https
|
Code: | # rc-status
Runlevel: default
local [ started ]
netmount [ started ]
postfix [ stopped ] |
as you can see postfix is not running but nmap still detects an open port on 25, wtf??? _________________ PentiumM 2.0 GHz, MSI 915GM Speedster-FA4, Seagate ST3500641AS SATA 400GB
Last edited by cpdsaorg on Mon Oct 09, 2006 1:04 pm; edited 1 time in total |
|
Back to top |
|
|
rasmussen Tux's lil' helper
Joined: 31 Aug 2002 Posts: 142 Location: .se
|
Posted: Mon Oct 09, 2006 12:28 pm Post subject: Re: postfix wont start because another smtp is running [hack |
|
|
cpdsaorg wrote: | as you can see postfix is not running but nmap still detects an open port on 25, wtf??? |
Try doing a
to see what's bound to port 25. If you haven't already installed lsof, first do a emerge sys-process/lsof.
HTH. _________________ When your thread is resolved, putting "[SOLVED]" in its title helps all Gentooers. |
|
Back to top |
|
|
cpdsaorg Guru
Joined: 16 Oct 2003 Posts: 359
|
Posted: Mon Oct 09, 2006 12:33 pm Post subject: |
|
|
Code: | # lsof -i :25
COMMAND PID USER FD TYPE DEVICE SIZE NODE NAME
master 4003 root 11u IPv4 5670 TCP *:smtp (LISTEN)
|
when I try to telnet to port 25 from another machine it just sits there and blinks at me.
when I try that on a working postfix server it tells me that postfix is running. _________________ PentiumM 2.0 GHz, MSI 915GM Speedster-FA4, Seagate ST3500641AS SATA 400GB |
|
Back to top |
|
|
cpdsaorg Guru
Joined: 16 Oct 2003 Posts: 359
|
Posted: Mon Oct 09, 2006 12:44 pm Post subject: |
|
|
thanks for the tip I killed the pid and restarted postfix.
it is possible some runnaway scripts are causing the problem. _________________ PentiumM 2.0 GHz, MSI 915GM Speedster-FA4, Seagate ST3500641AS SATA 400GB |
|
Back to top |
|
|
Janne Pikkarainen Veteran
Joined: 29 Jul 2003 Posts: 1143 Location: Helsinki, Finland
|
Posted: Mon Oct 09, 2006 12:44 pm Post subject: |
|
|
Seems like a Postfix to me. If you need to restart Postfix and it refuses to do so, try
Code: | killall -TERM master
/etc/init.d/postfix zap start |
Please be aware that if you have Cyrus IMAP server installed, it also has a master process called master, so killall -TERM master would kill it, too. And a second point to consider: if you have some configuration error in Postfix files and/or its init script, restarting won't help you in this case.
Edit: Oh, you replied while I was replying _________________ Yes, I'm the man. Now it's your turn to decide if I meant "Yes, I'm the male." or "Yes, I am the Unix Manual Page.". |
|
Back to top |
|
|
cpdsaorg Guru
Joined: 16 Oct 2003 Posts: 359
|
Posted: Mon Oct 09, 2006 12:47 pm Post subject: |
|
|
Thanks for the extra tip. I didn't know about "zap start" it sounds usefull.
you helped me in my last thread too. Thanks for looking out. _________________ PentiumM 2.0 GHz, MSI 915GM Speedster-FA4, Seagate ST3500641AS SATA 400GB |
|
Back to top |
|
|
|