Συντάκτης: Patrick Boutilier Ημερομηνία: Προς: exim users Αντικείμενο: Re: [exim] exim listens on http port
John Jetmore wrote: > On Tue, 7 Feb 2006, Peter Bowyer wrote:
>
>> On 07/02/06, Juhasz Peter Karoly <stone@???> wrote:
>>> today when i restarted my apache it couldn't bint to https and http ports,
>>> i found out that exim listens on that ports, after i killed the process i
>>> could start apache and everything worked fine. but is still don't know
>>> what was it. i found a thread on exim-users about the same thing but
>>> didn't found the cause / solution.
>> Exim *could* do that if you told it to in the config
>> (daemon_smtp_ports) or on the command line (-oX nn). But it wouldn't
>> do it otherwise.
>>
>> On some OSs there's a option in netstat to tell you what process is
>> listening on a port - I suggest you have a go with that. Smart money
>> says it's not Exim getting in the way of Apache.
>>
>> netstat -pan springs to mind, please check your docs.
>
> I'm not sure it's an exim problem, but this really does happen. Try to
> restart apache, it doesn't come back up because something else is bound to
> port 80. Use lsof -i TCP:25 and find sendmail procs bound to port 80 (I
> don't think you can actually initiate an smtp transaction on 80, but it's
> bound to nonetheless). I believe this is from sending mail from apache
> using /usr/sbin/sendmail directly. I've definitely seen it on a mod_perl
> enabled apache, unsure about plain, which may be part of the issue.
>
> My circumstances are such that it doesn't bother me that much (I don't
> restart apache very often, and it's a backend box so restarting sendmail
> when I also restart apache doesn't cause any problems), but I did want to
> note that what the OP describes really can happen.
I used to have the problem of exim "listening" on port 80 as well in the
past but it has been a long time (at least a couple of years) since it
happened to me.