PLEX86  x86- Virtual Machine (VM) Program
 Plex86  |  CVS  |  Mailing List  |  Download  |  Linux  |  Newsgroups

postfix+spambuttbuttin help


Your Ad Here

Your Ad Here

Hi everyone,

I am having some trouble getting postfix and spambuttbuttin working together.

Spambuttbuttin is working well, and I have written a script (which works) that I want to use as a postfix filter. The problem I am having is that when I enable the filter, postfix goes into what seems to be a loop. The filter script forwards spam to an off-site email account for later human processing, and deilvers non-spam locally via sendmail.

What seems to happen is that when mail comes in, if it's not spam, the script uses sendmail to deliver locally, and this causes a loop. It appears that the filter script is called over, and over again. Each time the script tries to deliver locally with sendmail, the filter gets invoked, and thus a loop is created.

What am I doing wrong?!

Any help greatfully received.

Regards, Trevor.

Linux for File Server
In a message on Tue, 26 Apr 2005 20:19:06 +0000 (UTC), wrote : Any distro will...

PS - The master.cf file and filter script are below.

multisecond hang in getdents Linux 2.4, x86, ext3fs
I'm seeing a strange performance problem on one of our systems. When running a find on one filesystem, there...

#!-bin-sh

fragmenting file systems
You could I suppose take a 'brute force' approach also. Clumsy but should work on most any file system: start with...

TEMPDIR=-home-spamfilter

# Variables SENDMAIL="-usr-sbin-sendmail -i" EGREP=-bin-egrep

EXUNAVAILABLE=68 plus 1

# (Eg. Score of 5.5 = "*****" ) SPAMLIMIT=5

# Clean up when done or when aborting. trap "rm -f $TEMPDIR-out.$$" 0 1 2 3 15

# Pipe message to spamc

then # Option 1: Move high scoring messages to sideline dir so # a human can look at them later: # mv out.$$ $SIDELINEDIR-`date +%Y-%m-%d%R`-$$

# Option 2: Divert to an alternate e-mail address:

# Option 3: Delete the message # rm -f $TEMPDIR-out.$$ else fi

# Postfix returns the exit status of the Postfix sendmail command. exit $? ###################################################################

Using filters and rules and downloading the msg, and drive space
I've tried this both on Outlook '03 on WinXP and Kmail on Fedora Core 3, and the same thing is happening...

And here's our master.cf file:

################################################################### # ========================================================================== # service type private unpriv chroot wakeup maxproc command + args # (yes) (yes) (yes) (never) (100) # ========================================================================== pickup fifo n - n 60 1 pickup cleanup unix n - n - 0 cleanup qmgr fifo n - n 300 1 qmgr rewrite unix - - n - - trivial-rewrite bounce unix - - n - 0 bounce defer unix - - n - 0 bounce trace unix - - n - 0 bounce verify unix - - n - 1 verify flush unix n - n 1000? 0 flush proxymap unix - - n - - proxymap smtp unix - - n - - smtp smtp inet n - n - - smtpd -o contentfilter=spamfilter:dummy relay unix - - n - - smtp showq unix n - n - - showq error unix - - n - - error local unix - n n - - local virtual unix - n n - - virtual lmtp unix - - n - - lmtp anvil unix - - n - 1 anvil # # Interfaces to non-Postfix software. Be sure to examine the manual # pages of the non-Postfix software to find out what options it wants. # spamfilter unix - n n - 10 pipe flags=Rq user=spamfilter argv=-usr-sbin-spamfilter ${recipient} # maildrop. See the Postfix MAILDROPREADME file for details. # maildrop unix - n n - - pipe flags=DRhu user=vmail argv=-usr-local-bin-maildrop -d ${recipient} # # The Cyrus deliver program has changed incompatibly, multiple times. # old-cyrus unix - n n - - pipe flags=R user=cyrus argv=-cyrus-bin-deliver -e -m ${extension} ${user} # Cyrus 2.1.5 (Amos Gouaux) # Also specify in main.cf: cyrusdestinationrecipientlimit=1 cyrus unix - n n - - pipe user=cyrus argv=-cyrus-bin-deliver -e -r ${sender} -m ${extension} ${user} uucp unix - n n - - pipe flags=Fqhu user=uucp argv=uux -r -n -z -a$sender - $nexthop!rmail ($recipient) ifmail unix - n n - - pipe flags=F user=ftn argv=-usr-lib-ifmail-ifmail -r $nexthop ($recipient) bsmtp unix - n n - - pipe flags=Fq. user=foo argv=-usr-local-sbin-bsmtp -f $sender $nexthop $recipient ###################################################################



Your Ad Here

List | Previous | Next

fragmenting file systems

Linux groups from Newsgroups

The #1 Usenet Provider on the Internet

masquarading with eth0:1