User postfix refuses to run sa-learn

Martin Wickman martin.wickman at xms.se
Sun Sep 16 21:26:19 IST 2007


Glenn Steen wrote:
> On 16/09/2007, Martin Wickman <martin.wickman at xms.se> wrote:
>> Glenn Steen wrote:
>>> On 16/09/2007, Martin Wickman <martin.wickman at xms.se> wrote:
>>>> Glenn Steen wrote:

[..]

>> Yeah I thought about that, but the problem is still there (I think?).
>> Only the postfix user can update the bayes data and it wont help much
>> having procmail do it.
>>
> ... run in gw-mode, as the PF user...?

gw-mode? Huh, you lost me there i think :)

>> Do you think it is possible to change MailScanner.conf in some way, ie
>> to have a separate SA-user which is not 'postfix'? As it is now "Run As
>> User" is postfix and maybe it's possible to change something here, akin
>> to "Quarantine User"?
> 
> You could use another Run As Group, I guess.... Like for clamav (and a
> little like one does for MailWatch... apache group, in that case...
> Then specify a user:group accordingly... I think pipe will fall back
> to the group...).

Ok thanks, I'll keep that in mind. I'm currently messing with the
bayes-sql stuff. We'll see how that turns out.

>>> Or running a cronjob that "plunders" the spam mailbox (which would
>>> need be a real mailbox) and run the script on the messages... should
>>> be fairly easy too. I'm sure there are others that have done something
>>> like that before, perhaps even documented it (haven't checked the
>>> wiki)...
>> Thought of that too, but there is the issue with forwarded spammails.
>> That is, attached mails needs to be splitted into single mails before
>> se-learn can grok them correctly. Also, having to run sa-learn on the
>> whole corpus all the time seems wasteful.
>>
> Don't you have that problem anyway?

Yes, sorta. Only that it is easier to split mails on-the-fly instead of
having to split them to fil before running sa-learn (ie giving sa-learn
the Maildir as input).

>>>> Btw, the setup is taken from
>>>> http://www.jousset.org/pub/sa-postfix.en.html if you want de details.
>>>> Thats site is off-line or something, but google has working cache:
>>>> http://www.google.com/search?q=cache:S0-FoGYZSHwJ:www.jousset.org/pub/sa-postfix.en.html+http://www.jousset.org/pub/sa-postfix.en.html&hl=en&ct=clnk&cd=1&gl=se&client=firefox-a
>>>>
>>> Too tired to go look, perhaps tomorrow:).
>> Please do :-)
>>
> Tomorrow... Morgonstund har guld i mun(d):-):-).

Heh. Sant. :)

/Thanks


More information about the MailScanner mailing list