[Pkg-exim4-users] multiple copies of exim4 running

Maarten Bezemer mcbexim at robuust.nl
Tue Jan 13 09:35:20 UTC 2009


Maybe this is related to an issue I had with exim3. It's a regexp error in 
/usr/sbin/exiwhat. It matches processes with either "/exim " or "/exim$" 
($ being end of line). The exim init script starts exim processes as 
exim4; only after a reload (SIGHUP) exim respawns itself as exim without 
the 4.

Try changing /usr/sbin/exiwhat: change the line
egrep_arg='/exim( |$)'
into
egrep_arg='/exim( |$|4 |4$)'

and then try running it again.

HTH,
  Maarten


On Tue, 13 Jan 2009, Gerard Hooton wrote:

> when I run exiwhat I get :-
>
> scoil:~# exiwhat
> 1877 daemon: -q30m, listening for SMTP on [87.33.113.4]:25
>
> When I dp ps I get :-
>
> scoil:~# ps -elf |grep exim
> 5 S 102       1877     1  0  80   0 -  3493 -      Jan12 ?        00:00:01
> /usr/sbin/exim4 -bd -q30m
> 1 S 102       4691  1877  0  80   0 -  3495 -      Jan12 ?        00:00:00
> /usr/sbin/exim4 -bd -q30m
> 1 S 102       5301  1877  0  80   0 -  3495 -      Jan12 ?        00:00:00
> /usr/sbin/exim4 -bd -q30m
> 1 S 102       5308  1877  0  80   0 -  3495 -      Jan12 ?        00:00:00
> /usr/sbin/exim4 -bd -q30m
> 1 S 102       5310  1877  0  80   0 -  3495 -      Jan12 ?        00:00:00
> /usr/sbin/exim4 -bd -q30m
> 1 S 102       5311  1877  0  80   0 -  3495 -      Jan12 ?        00:00:00
> /usr/sbin/exim4 -bd -q30m
> 1 S 102       5804  1877  0  80   0 -  3495 -      Jan12 ?        00:00:00
> /usr/sbin/exim4 -bd -q30m
> 1 S 102       6305  1877  0  80   0 -  3495 -      Jan12 ?        00:00:00
> /usr/sbin/exim4 -bd -q30m
> 1 S 102       6310  1877  0  80   0 -  3495 -      Jan12 ?        00:00:00
> /usr/sbin/exim4 -bd -q30m
> 1 S 102       6312  1877  0  80   0 -  3495 -      Jan12 ?        00:00:00
> /usr/sbin/exim4 -bd -q30m
> 1 S 102       6319  1877  0  80   0 -  3495 -      Jan12 ?        00:00:00
> /usr/sbin/exim4 -bd -q30m
> 1 S 102       6365  1877  0  80   0 -  3495 -      Jan12 ?        00:00:00
> /usr/sbin/exim4 -bd -q30m
> 1 S 102       6382  1877  0  80   0 -  3495 -      Jan12 ?        00:00:00
> /usr/sbin/exim4 -bd -q30m
> 1 S 102       6815  1877  0  80   0 -  3495 -      Jan12 ?        00:00:00
> /usr/sbin/exim4 -bd -q30m
> 1 S 102       7095  1877  0  80   0 -  3495 -      Jan12 ?        00:00:00
> /usr/sbin/exim4 -bd -q30m
> 1 S 102       7099  1877  0  80   0 -  3495 -      Jan12 ?        00:00:00
> /usr/sbin/exim4 -bd -q30m
> 1 S 102       7100  1877  0  80   0 -  3495 -      Jan12 ?        00:00:00
> /usr/sbin/exim4 -bd -q30m
> 1 S 102       7101  1877  0  80   0 -  3495 -      Jan12 ?        00:00:00
> /usr/sbin/exim4 -bd -q30m
> 1 S 102       7913  1877  0  80   0 -  3495 -      00:47 ?        00:00:00
> /usr/sbin/exim4 -bd -q30m
> 1 S 102       7917  1877  0  80   0 -  3495 -      00:48 ?        00:00:00
> /usr/sbin/exim4 -bd -q30m
> 1 S 102       7918  1877  0  80   0 -  3495 -      00:48 ?        00:00:00
> /usr/sbin/exim4 -bd -q30m
> 1 S 102       7919  1877  0  80   0 -  3495 -      00:48 ?        00:00:00
> /usr/sbin/exim4 -bd -q30m
> 1 S 102       9351  1877  0  80   0 -  3495 -      04:47 ?        00:00:00
> /usr/sbin/exim4 -bd -q30m
> 1 S 102       9354  1877  0  80   0 -  3495 -      04:48 ?        00:00:00
> /usr/sbin/exim4 -bd -q30m
> 1 S 102       9517  1877  0  80   0 -  3495 -      05:12 ?        00:00:00
> /usr/sbin/exim4 -bd -q30m
> 1 S 102       9520  1877  0  80   0 -  3495 -      05:12 ?        00:00:00
> /usr/sbin/exim4 -bd -q30m
> 1 S 102       9521  1877  0  80   0 -  3495 -      05:12 ?        00:00:00
> /usr/sbin/exim4 -bd -q30m
> 1 S 102       9527  1877  0  80   0 -  3495 -      05:14 ?        00:00:00
> /usr/sbin/exim4 -bd -q30m
> 0 S root     27157 27079  0  80   0 -   546 -      08:58 pts/0    00:00:00
> grep exim
>
>
>
>
> "Johann Spies" <jspies at sun.ac.za> wrote:
>> On Mon, Jan 12, 2009 at 10:35:08AM +0000, Gerard Hooton wrote:
>>> Thanks Johann for you reply,
>>> My understanding is that for each connection a new exim4 process is
> started.
>>> When the connection is dropped (completed the delivery of a message to
> the
>>> server for example) then
>>> that process should die ?? It would appear that on my system the process
>>> remains after the connection drops.
>>> Is my understanding on this correct?
>>
>> You will see separate processes of exim like this:
>>
>> 2287 ?        S      0:00  \_ /usr/sbin/exim4 -bd -q1m
>>  2289 ?        S      0:00  \_ /usr/sbin/exim4 -bd -q1m
>>  2291 ?        S      0:00  \_ /usr/sbin/exim4 -bd -q1m
>>  2296 ttyp2    S+     0:00  |   \_ grep exim
>> 29446 ?        S      0:00 /usr/sbin/exim4 -Mc 1LMLKK-0007es-NQ
>> 30092 ?        S      0:00  \_ /usr/sbin/exim4 -Mc 1LMLKK-0007es-NQ
>>  2147 ?        S      0:00 /usr/sbin/exim4 -Mc 1LMLP9-0000YV-Ma
>>  2150 ?        S      0:00  \_ /usr/sbin/exim4 -Mc 1LMLP9-0000YV-Ma
>>
>> The ones with the -bd -q1m are the daemons.  The others are instances
>> handling specific messages.  You can see what exim is doing running
>> 'exiwhat'.
>>
>>>
>>> Also, where do specify how many connections I want to allow?
>>> I have split config files on my debian server.
>>
>> Search Exim's spec.txt.gz for smtp_accept_max and you will find your
>> answers.
>>
>> Regards
>> Johann
>>
>> --
>> Johann Spies          Telefoon: 021-808 4036
>> Informasietegnologie, Universiteit van Stellenbosch
>>
>>      "For the LORD is good; his mercy is everlasting; and
>>       his truth endureth to all generations."
>>                                      Psalms 100:5
>>
>> _______________________________________________
>> Pkg-exim4-users mailing list
>> Pkg-exim4-users at lists.alioth.debian.org
>> http://lists.alioth.debian.org/mailman/listinfo/pkg-exim4-users
>>
>
> --
> Gerard Hooton
>
>
> Systems Administrator
>
>
> Blarney Boy's National School,
>
>
> Blarney.
>
>
> Co. Cork
>
>
>
>
> _______________________________________________
> Pkg-exim4-users mailing list
> Pkg-exim4-users at lists.alioth.debian.org
> http://lists.alioth.debian.org/mailman/listinfo/pkg-exim4-users
>



More information about the Pkg-exim4-users mailing list