Стоит postfix. К нему прикручен procmail. Что нужно написать в procmail чтобы почта для определенного ящика проходила через spamassassin
и если он считает что это спам сохранялось на диске(в каком нибудь файле), а если нет отправлялась в этот почтовый ящик.
Ну, честное слово...
http://spamassassin.org/dist/procmailrc.example
http://spamassassin.taint.org/faq/index.cgi?query=procmail&q...
man procmail
>Ну, честное слово...
>http://spamassassin.org/dist/procmailrc.example
>http://spamassassin.taint.org/faq/index.cgi?query=procmail&q...
>man procmail
А примерчик как это реализовать можно?
А первая ссылка - это не оно?
>>Ну, честное слово...
>>http://spamassassin.org/dist/procmailrc.example
>>http://spamassassin.taint.org/faq/index.cgi?query=procmail&q...
>>man procmail
>
>
>А примерчик как это реализовать можно?Не совсем...
Может объяснишь как работает блок :0fw: spamassassin.lock
| spamassassin
Он после прохода через spamassassin возвращает письмо к следующему блоку,
но уже с добавленными X-Spam.. ??
man procmailrc:
...
f Consider the pipe as a filter.
...
w Wait for the filter or program to finish and check
its exitcode (normally ignored); if the filter is
unsuccessful, then the text will not have been fil-
tered.
...
>man procmailrc:
>...
>f Consider the pipe as a filter.
>...
>w Wait for the filter or
>program to finish and check
> its exitcode (normally ignored); if
>the filter is
> unsuccessful, then the text will
>not have been fil-
> tered.
>...Что значит: f - Рассматривет канал как фильтр
>>man procmailrc:
>>...
>>f Consider the pipe as a filter.
>>...
>>w Wait for the filter or
>>program to finish and check
>> its exitcode (normally ignored); if
>>the filter is
>> unsuccessful, then the text will
>>not have been fil-
>> tered.
>>...
>
>Что значит: f - Рассматривет канал как фильтр
Спасибо. Вроде заработало как надо.