RE: [qmailtoaster] How to not forward messages marked as spam

2008-05-23 Thread Tim Mancour
There is the following on the wiki - http://wiki.qmailtoaster.com/index.php/Simscan -Original Message- From: Eric Shubert [mailto:[EMAIL PROTECTED] Sent: Friday, May 23, 2008 11:56 AM To: qmailtoaster-list@qmailtoaster.com Subject: Re: [qmailtoaster] How to not forward messages marked

Re: [qmailtoaster] How to not forward messages marked as spam

2008-05-23 Thread Eric Shubert
You'd need to add a simcontrol record for each user that is forwarded externally. This would need to be done manually, and could be an administrative nightmare at an ISP level. I suppose you could modify qmailadmin to handle it automatically though. [EMAIL PROTECTED] wrote: > If I understand simsc

Re: [qmailtoaster] How to not forward messages marked as spam

2008-05-23 Thread curt . qt
If I understand simscan / simcontrol functions, you can only specify global, local domain, or specific user settings. There are many virtual domains hosted on the server, and I don't want to just specify spam dropping for any single domain - I want to be able to drop spam if any single account is

Re: [qmailtoaster] How to not forward messages marked as spam

2008-05-22 Thread Eric Shubert
You can specify only that domain in a separate record in simcontrol, with the appropriate value for spam_hits so they'll be rejected. [EMAIL PROTECTED] wrote: > I would like to completely dump messages tagged as spam, but only for > accounts set to forward to an external domain. Local spam should

Re: [qmailtoaster] How to not forward messages marked as spam

2008-05-22 Thread curt . qt
I would like to completely dump messages tagged as spam, but only for accounts set to forward to an external domain. Local spam should go to its normal .Spam folder. What is it you'd like to do with messages tagged as spam? If you want to reject them, simply bring down the value for spam_h

Re: [qmailtoaster] How to not forward messages marked as spam

2008-05-22 Thread Eric Shubert
[EMAIL PROTECTED] wrote: > I've been having problems with accounts which are set up to simply to external > addresses. For a standard account, the /home/vpopmail/[domain]/[user]/.qmail > file contains the following: > > |/var/qmail/bin/preline /usr/bin/maildrop -A 'Content-Filter: > maildrop-toas

Re: [qmailtoaster] How to not forward messages marked as spam

2008-02-26 Thread Eric "Shubes"
Wrong conclusion. maildrop is a shell script, so the exit command is built in, and takes a single optional argument, the exit status (aka return code). You'll need to find where/how the maildrop script is invoked to see what's happening there, and why delivery is terminated. I don't know off hand

Re: [qmailtoaster] How to not forward messages marked as spam

2008-02-26 Thread curt . qt
I just tried changing "exit" to "exit 99" - stopped delivery of everything completely... apparently, the exit command won't take arguments in this language === The .qmail file isn't a script, so you can't add logic there (that I'm aware of). Sorry about

Re: [qmailtoaster] How to not forward messages marked as spam

2008-02-25 Thread Eric "Shubes"
The .qmail file isn't a script, so you can't add logic there (that I'm aware of). Sorry about that bit. Have you tried exit 99 in the maildrop script? I don't see how the EXITCODE variable would be passed back to whatever's calling maildrop, unless maildrop is 'sourced'. I don't know off hand how

Re: [qmailtoaster] How to not forward messages marked as spam

2008-02-25 Thread Dan McAllister
Rather than using an & at the start of the line, I believe you can use a | and list an executable (bash or perl script) I have NOT tried this... I'm working purely from memory back when I was trying to do everything in QMail by myself (that is, before I found the Toaster!) I hope this helps.

Re: [qmailtoaster] How to not forward messages marked as spam

2008-02-25 Thread curt . qt
As I stated in the original request, there are apparently 0 options for a "forward" line in the .qmail file. An account is set up to either forward using &[address], or to not forward at all. How might I go about "adding logic" to a & line? (That's really the root of the whole question)

Re: [qmailtoaster] How to not forward messages marked as spam

2008-02-21 Thread Eric "Shubes"
Sounds like you'll need to add logic in .qmail to check the exit code from mailfilter, and only do the forward if the exit code is 0. [EMAIL PROTECTED] wrote: > I already tried modifying /etc/mail/mailfilter to get it to > dump local spam and TRY to abort the procedure. Here's what I inserted > d

Re: [qmailtoaster] How to not forward messages marked as spam

2008-02-20 Thread curt . qt
I already tried modifying /etc/mail/mailfilter to get it to dump local spam and TRY to abort the procedure. Here's what I inserted directly after reading in $VHOME/Maildir/.mailfilter. If the user's .mailfilter contains the line SPAMFORWARDDROP=1, the following executes: if((/^X-Spam-Status: Yes/:

Re: [qmailtoaster] How to not forward messages marked as spam

2008-02-20 Thread Eric "Shubes"
[EMAIL PROTECTED] wrote: > Still no luck on this one - there are apparently 0 options for a "forward" > line > in the .qmail file. An account is set up to either forward using &[address], > or > to not forward at all. > > Is there no way to forward ONLY IF the message meets certain criteria? (i.