ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: "Мерзляков Евгений Анатольевич" <hj@acoustics.ru>
To: ALT Linux Community <community@lists.altlinux.org>
Subject: Re: [Comm] bogofilter & postfix
Date: Thu, 30 Mar 2006 09:55:52 +0600
Message-ID: <20060330095552.2c70a407@hj.acoustics.ru> (raw)
In-Reply-To: <200603281732.08812.ashen@nsrz.ru>

On Tue, 28 Mar 2006 17:32:08 +0400
Шенцев Алексей Владимирович <ashen@nsrz.ru> wrote:

> В сообщении от 28 марта 2006 17:21 Мерзляков Евгений Анатольевич написал(a):
> > вот тут помочь не смогу, тк незнаю (я прямо на серваке тренировал)
> Во! Одна из проблем. А для чего скрипт, который предлагается в документации? 
> Та к и не пойму.

вот этот?
/home/bogofilter/postfix-filter.sh

        #!/bin/sh

        FILTER=/usr/bin/bogofilter
        FILTER_DIR=/var/spool/filter
        POSTFIX=/usr/sbin/sendmail
        export BOGOFILTER_DIR=/home/bogofilter

        # Exit codes from <sysexits.h>
        EX_TEMPFAIL=75
        EX_UNAVAILABLE=69

        cd $FILTER_DIR || \
            { echo $FILTER_DIR does not exist; exit $EX_TEMPFAIL; }

        # Clean up when done or when aborting.
        trap "rm -f msg.$$ ; exit $EX_TEMPFAIL" 0 1 2 3 15

        # bogofilter -e returns: 0 for OK, nonzero for error
        rm -f msg.$$ || exit $EX_TEMPFAIL
        $FILTER -p -u -e > msg.$$ || exit $EX_TEMPFAIL

        exec <msg.$$ || exit $EX_TEMPFAIL
        rm -f msg.$$ # safe, we hold the file descriptor
        exec $POSTFIX "$@"
        exit $EX_TEMPFAIL

-- 
ПКБ Акустика
Мерзляков Е.А.						icq #115657846


      reply	other threads:[~2006-03-30  3:55 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-03-28 12:11 Шенцев Алексей Владимирович
2006-03-28 12:37 ` Мерзляков Евгений Анатольевич
2006-03-28 12:45   ` Шенцев Алексей Владимирович
2006-03-28 13:04     ` Мерзляков Евгений Анатольевич
2006-03-28 13:14       ` Шенцев Алексей Владимирович
2006-03-28 13:21         ` Мерзляков Евгений Анатольевич
2006-03-28 13:32           ` Шенцев Алексей Владимирович
2006-03-30  3:55             ` Мерзляков Евгений Анатольевич [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20060330095552.2c70a407@hj.acoustics.ru \
    --to=hj@acoustics.ru \
    --cc=community@lists.altlinux.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux Community general discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
		mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
	public-inbox-index community

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.community


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git