Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
postfix wont start because another smtp is running [solved]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
cpdsaorg
Guru
Guru


Joined: 16 Oct 2003
Posts: 359

PostPosted: Mon Oct 09, 2006 12:14 pm    Post subject: postfix wont start because another smtp is running [solved] Reply with quote

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
View user's profile Send private message
rasmussen
Tux's lil' helper
Tux's lil' helper


Joined: 31 Aug 2002
Posts: 142
Location: .se

PostPosted: Mon Oct 09, 2006 12:28 pm    Post subject: Re: postfix wont start because another smtp is running [hack Reply with quote

cpdsaorg wrote:
as you can see postfix is not running but nmap still detects an open port on 25, wtf???


Try doing a

Code:
lsof -i :25


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
View user's profile Send private message
cpdsaorg
Guru
Guru


Joined: 16 Oct 2003
Posts: 359

PostPosted: Mon Oct 09, 2006 12:33 pm    Post subject: Reply with quote

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
View user's profile Send private message
cpdsaorg
Guru
Guru


Joined: 16 Oct 2003
Posts: 359

PostPosted: Mon Oct 09, 2006 12:44 pm    Post subject: Reply with quote

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
View user's profile Send private message
Janne Pikkarainen
Veteran
Veteran


Joined: 29 Jul 2003
Posts: 1143
Location: Helsinki, Finland

PostPosted: Mon Oct 09, 2006 12:44 pm    Post subject: Reply with quote

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 :D
_________________
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
View user's profile Send private message
cpdsaorg
Guru
Guru


Joined: 16 Oct 2003
Posts: 359

PostPosted: Mon Oct 09, 2006 12:47 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum