Have you used filterctl?

Idézem/Quoting Jérôme Blion <jerome.bl...@free.fr>:

> Le 2015-03-02 17:17, Jean-Christophe Boggio a écrit :
>> Hello,
>>
>> I am trying to install pythonfilter 1.8 on a working 0.68.2 (debian)
>> instance of courier-mta.
>>
>> I have read and applied the install instructions carefully several
>> times but the filters never seem to start and I don't know where to
>> search next.
>>
>> /var/lib/pythonfilter permissions seem ok :
>>
>> # ls /var/lib/pythonfilter -ld
>> drwxr-xr-x 2 daemon daemon 4096 janv. 15 03:28 /var/lib/pythonfilter
>>
>> # grep 'MAIL.*=' /etc/courier/esmtpd
>> MAILUSER=daemon
>> MAILGROUP=daemon
>>
>> # ls -l /etc/courier/filters/active
>> lrwxrwxrwx 1 root root 37 mars   2 16:11 pythonfilter ->
>> /usr/lib/courier/filters/pythonfilter
>>
>> # ls -l /usr/lib/courier/filters/pythonfilter
>> lrwxrwxrwx 1 root root 27 janv. 15 00:38
>> /usr/lib/courier/filters/pythonfilter -> /usr/local/bin/pythonfilter
>>
>> If I start it manually, it looks ok :
>>
>> # sudo -u daemon /usr/local/bin/pythonfilter
>> Initialized the "debug" python filter
>> Initialized the "log_aliases" python filter
>> Initialized the "noduplicates" python filter
>> Initialized the "auto_whitelist" python filter
>> Initialized the "whitelist_relayclients" python filter
>> Initialized the "whitelist_auth" python filter
>> Initialized the "whitelist_block" python filter
>> Initialized the "greylist" python filter
>> Initialized the ratelimit python filter
>>
>> Filtering seems activated :
>>
>> # cat /etc/courier/enablefiltering
>> esmtp
>>
>> # service courier-mta restart
>> Stopping Courier SMTP MSA server: done.
>> Stopping Courier SMTP server: done.
>> Stopping Courier mail filter: done.
>> Stopping Courier mail server: done.
>> Starting Courier mail server: done.
>> Starting Courier mail filter: done.
>> Starting Courier SMTP server: done.
>> Starting Courier SMTP MSA server: done.
>>
>> But I see no trace of filters in the logs :
>>
>> Mar  2 16:21:42 facteur courierd: Courier 0.68.2 Copyright 1999-2012
>> Double Precision, Inc.
>> Mar  2 16:21:42 facteur courierd: Installing [0/0]
>> Mar  2 16:21:42 facteur courierd: Installing uucp
>> Mar  2 16:21:42 facteur courierd: Installed: module.uucp - Courier
>> 0.68.2 Copyright 1999-2012 Double Precision, Inc.
>> Mar  2 16:21:42 facteur courierd: Installing local
>> Mar  2 16:21:42 facteur courierd: Installed: module.local - Courier
>> 0.68.2 Copyright 1999-2012 Double Precision, Inc.
>> Mar  2 16:21:42 facteur courierd: Installing fax
>> Mar  2 16:21:42 facteur courierd: Installed: module.fax - Courier
>> 0.68.2 Copyright 1999-2012 Double Precision, Inc.
>> Mar  2 16:21:42 facteur courierd: Installing esmtp
>> Mar  2 16:21:42 facteur courierd: Installed: module.esmtp - Courier
>> 0.68.2 Copyright 1999-2012 Double Precision, Inc.
>> Mar  2 16:21:42 facteur courierd: Installing dsn
>> Mar  2 16:21:42 facteur courierd: Installed: module.dsn - Courier
>> 0.68.2 Copyright 1999-2012 Double Precision, Inc.
>> Mar  2 16:21:42 facteur courierd: Initializing uucp
>> Mar  2 16:21:42 facteur courierd: Initializing local
>> Mar  2 16:21:42 facteur courierd: Initializing fax
>> Mar  2 16:21:42 facteur courierd: Initializing esmtp
>> Mar  2 16:21:42 facteur courierd: Initializing dsn
>> Mar  2 16:21:42 facteur courierd: Started ./courieruucp, pid=49727,
>> maxdels=4, maxhost=4, maxrcpt=16
>> Mar  2 16:21:42 facteur courierd: Started ./courierlocal, pid=49729,
>> maxdels=10, maxhost=4, maxrcpt=1
>> Mar  2 16:21:42 facteur courierd: Started ./courierfax, pid=49730,
>> maxdels=1, maxhost=1, maxrcpt=1
>> Mar  2 16:21:42 facteur courierd: Started ./courieresmtp, pid=49732,
>> maxdels=40, maxhost=4, maxrcpt=100
>> Mar  2 16:21:42 facteur courierd: Started ./courierdsn, pid=49733,
>> maxdels=4, maxhost=1, maxrcpt=1
>> Mar  2 16:21:42 facteur courierd: queuelo=200, queuehi=400
>> Mar  2 16:21:42 facteur courierd: Purging /var/lib/courier/msgq
>> Mar  2 16:21:42 facteur courierd: Purging /var/lib/courier/msgs
>> Mar  2 16:21:42 facteur courierd: Waiting.  shutdown time=Mon Mar  2
>> 17:21:41 2015, wakeup time=Mon Mar  2 16:42:36 2015,
>> queuedelivering=2, inprogress=0
>>
>> I'm expecting something like :
>>
>> Mar  2 16:21:42 facteur courierfilter: Starting pythonfilter
>>
>>
>> If I create this directory :
>>
>> # mkdir /var/lib/courier/allfilters/pythonfilter
>>
>> The logs show :
>>
>> Mar  2 16:43:17 facteur courieresmtpd:
>> started,ip=[::ffff:209.85.212.172]
>> Mar  2 16:43:17 facteur submit: Connection refused
>> Mar  2 16:43:17 facteur submit: Failed to connect to:
>> /var/lib/courier/allfilters/pythonfilter
>> Mar  2 16:43:17 facteur courieresmtpd:
>> error,relay=::ffff:209.85.212.172,from=<some...@gmail.com>: 432 Mail
>> filters temporarily unavailable.
>>
>> which is what I expect because it is not supposed to be a directory
>> but it shows that courier is trying to "talk" to the filter.
>>
>>
>> I am sure this is obvious but I don't see where to search next.
>>
>> Thanks for your help,
>>
>> JC
>>
>
> Hello,
>
> to enable the filter, did you type filterctl start pythonfilter ?
>
> Best regards.
> jerome Blion.
>
> ------------------------------------------------------------------------------
> Dive into the World of Parallel Programming The Go Parallel Website,  
> sponsored
> by Intel and developed in partnership with Slashdot Media, is your  
> hub for all
> things parallel software development, from weekly thought leadership blogs to
> news, videos, case studies, tutorials and more. Take a look and join the
> conversation now. http://goparallel.sourceforge.net/
> _______________________________________________
> courier-users mailing list
> courier-users@lists.sourceforge.net
> Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users


Szépe Viktor
-- 
+36-20-4242498  s...@szepe.net  skype: szepe.viktor
Budapest, XX. kerület





------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
courier-users mailing list
courier-users@lists.sourceforge.net
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users

Reply via email to