On 09 Dec 2014, at 2:54 pm, Gordon Messmer <[email protected]> wrote:
> 
> IIRC, the gentoo ebuild for courier includes its own init script, and 
> people have complained about it repeatedly in the past.

As time goes on I consider more about abandoning Gentoo, since it has obviously 
fallen [even further] out of favour and support amongst virtual server 
providers.  I also would like to spend more time writing apps and less on 
uphill dev ops, so contending with this type of problem irritates me.

Here's an example of what drives me insane.

I find that spamassassin is simply not being invoked, for some reason or 
another, even though it and the filters are ostensibly running:

mintier ben # ps ax | grep spam
  983 pts/1    S+     0:00 grep --colour=auto spam
 4159 ?        Ss     0:59 /usr/sbin/spamd -d -r /var/run/spamd.pid -m 5 -c -H 
-u mail -q -x --socketpath=/var/run/spamd.sock
 4666 ?        S      0:02 /usr/sbin/couriertcpd 
-stderrlogger=/usr/sbin/courierlogger -noidentlookup -nodnslookup -user=mail 
-group=mail -block=zen.spamhaus.org,BLOCK,550 Rejected; see 
http://www.spamhaus.org/query/bl?ip=@ -access=/etc/courier/smtpaccess.dat 
-maxprocs=40 -maxperc=5 -maxperip=5 -pid=/var/run/courier/esmtpd.pid 
127.0.0.1.smtp,208.92.235.56.smtp /usr/sbin/courieresmtpd
 8876 ?        S      0:15 spamd child
25765 ?        S      0:02 spamd child

So, figuring that the responsible filter has taken a dump, I decide to cycle my 
filters:

mintier ben # courierfilter stop
Alarm clock

(I wait for awhile until it times out before issuing "alarm clock".)  Despite 
the output, it has sort of killed some things, but not others:

mintier ben # ps ax | grep filter
 1007 pts/1    R+     0:00 grep --colour=auto filter
 7417 ?        S      0:00 courierfilter start
 7419 ?        S      0:00 /usr/sbin/courierlogger courierfilter
 7420 ?        S      0:00 /usr/bin/perl 
/etc/courier/filters/active/courier-filter-perl

I am forced to pull out the heavy knives:

mintier ben # kill -TERM 7417 7419 7420
mintier ben # ps ax | grep filter
 1060 pts/1    S+     0:00 grep --colour=auto filter

After this I am able to restart the filters:

mintier ben # courierfilter start
mintier ben # ps ax | grep filter
 1075 ?        S      0:00 courierfilter start
 1077 ?        S      0:00 /usr/sbin/courierlogger courierfilter
 1080 ?        S      0:00 /usr/bin/perl 
/etc/courier/filters/active/courier-filter-perl
 1081 ?        Z      0:00 [perlfilter] <defunct>
 1082 ?        S      0:00 /usr/bin/python2.7 
/etc/courier/filters/active/pythonfilter
 1125 pts/1    R+     0:00 grep --colour=auto filter

But should I wish to cycle them again, 'courierfilter stop' once again doesn't 
help me.

b

--
Ben Kennedy, chief magician
Zygoat Creative Technical Services
http://www.zygoat.ca






------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
_______________________________________________
courier-users mailing list
[email protected]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users

Reply via email to