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.... someone!
Dan
Daniel McAllister, President
IT4SOHO, LLC
224 - 13th Avenue N
St. Petersburg, FL 33701
877-IT4SOHO: Toll Free
727-647-7646 In Pinellas
813-464-2093 In Hillsborough
727-507-9435 Fax Only
"When did you do your last backup?"
Ask me about unattended offsite backup solutions...
to protect your business, not just your data!
[EMAIL PROTECTED] wrote:
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)
===============================================
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
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/:h) && ($SPAMFORWARDDROP == 1))
{
log "Message deleted as specified by .mailfilter\n"
exception {
to "/home/vpopmail/domains/[the
domain]/postmaster/Maildir/.Spam/"
}
log "=== END ===\n"
EXITCODE=1
exit
}
This works perfectly without having to modify the smtp delivery pipe, but the
next line in .qmail which contains the forward (&[address]) still executes.
I've also tried setting EXITCODE=99 - no difference.
=====================================
I'd look into customizing the /etc/mail/mailfilter script. It's part of the
maildrop-toaster package, so if you change it, be sure to keep a backup copy
handy because any changes would probably be clobbered by an upgrade of that
package.
--
-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.e.
$subject !~/\*\*\* SPAM \*\*\*/)
This has become a huge issue, particularly for blackberry users.
--
-Eric 'shubes'
---------------------------------------------------------------------
QmailToaster hosted by: VR Hosted <http://www.vr.org>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
QmailToaster hosted by: VR Hosted <http://www.vr.org>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]