

![]() | Start a set with this search |
![]() | Include this search in one of my sets |
![]() | Exclude this search from one of my sets |
![]() | Permalink to these results Paste this link in email or IM: |
| Atom feed for tracking future search results Paste this URL into your reader: |
43 messages in net.sourceforge.lists.courier-maildropRe: [maildropl] Help with /etc/maildr...| From | Sent On | Attachments |
|---|---|---|
| Courier | Dec 29, 2005 5:46 pm | |
| Sam Varshavchik | Dec 29, 2005 6:25 pm | |
| Truong Tan Son | Dec 29, 2005 7:03 pm | |
| Courier | Dec 29, 2005 8:07 pm | |
| Truong Tan Son | Dec 29, 2005 8:18 pm | |
| Courier | Dec 29, 2005 8:50 pm | |
| Thorsten Haude | Dec 30, 2005 1:28 am | |
| Courier | Dec 30, 2005 9:08 am | |
| Thorsten Haude | Dec 30, 2005 9:34 am | |
| Courier | Dec 30, 2005 2:35 pm | |
| Todd Lyons | Dec 30, 2005 2:56 pm | |
| Courier | Dec 30, 2005 3:38 pm | |
| Todd Lyons | Jan 2, 2006 1:21 pm | |
| Courier | Jan 3, 2006 2:40 pm | |
| Devin Rubia | Jan 4, 2006 7:03 am | |
| Todd Lyons | Jan 4, 2006 8:07 am | |
| Courier | Jan 4, 2006 1:56 pm | |
| Todd Lyons | Jan 4, 2006 2:54 pm | |
| Courier | Jan 4, 2006 6:28 pm | |
| Devin Rubia | Jan 5, 2006 6:11 am | |
| Courier | Jan 5, 2006 11:28 am | |
| Devin Rubia | Jan 5, 2006 11:46 am | |
| Courier | Jan 5, 2006 1:01 pm | |
| Todd Lyons | Jan 5, 2006 1:20 pm | |
| Devin Rubia | Jan 5, 2006 1:21 pm | |
| Courier | Jan 5, 2006 3:06 pm | |
| Devin Rubia | Jan 6, 2006 6:23 am | |
| Courier | Jan 6, 2006 1:29 pm | |
| Devin Rubia | Jan 9, 2006 7:13 am | |
| Courier | Jan 9, 2006 2:08 pm | |
| Todd Lyons | Jan 9, 2006 3:54 pm | |
| Courier | Jan 9, 2006 4:32 pm | |
| Devin Rubia | Jan 10, 2006 9:02 am | |
| Courier | Jan 10, 2006 10:36 am | |
| Devin Rubia | Jan 10, 2006 11:46 am | |
| Courier | Jan 10, 2006 12:10 pm | |
| Devin Rubia | Jan 10, 2006 1:01 pm | |
| Courier | Jan 10, 2006 1:11 pm | |
| Devin Rubia | Jan 10, 2006 1:29 pm | |
| Courier | Jan 10, 2006 1:56 pm | |
| Devin Rubia | Jan 11, 2006 6:52 am | |
| Courier | Jan 11, 2006 7:29 am | |
| Devin Rubia | Jan 11, 2006 7:52 am |

![]() | Permalink for this message Paste this link in email or IM: |
![]() | Permalink for this thread Paste this link in email or IM: |
| Atom feed for this thread Paste this URL into your reader: |
| Subject: | Re: [maildropl] Help with /etc/maildroprc file | Actions... |
|---|---|---|
| From: | Courier (Cour...@light-hall.com) | |
| Date: | Dec 29, 2005 8:50:38 pm | |
| List: | net.sourceforge.lists.courier-maildrop | |
Now, simplify to test your /etc/maildroprc with only one command:
to "/home/vmail/user/Maildir/"
Does it work Ok ?
Send to us log file.
-snip-
Remove the spurious leading whitespace after the if.
#if (/^X-Spam-Flag: *YES/) # { # exception { # to "$HOME/$DEFAULT/.Spam" # } #} #else { exception { to "$HOME/$DEFAULT" } }
Thanks for the reply Sam...
I get the same results... that section now reads:
if (/^X-Spam-Flag: *YES/) { exception { to "$HOME/$DEFAULT/.Spam" } } else { exception { to "$HOME/$DEFAULT" } }
Where is the "spurious leading whitespace" that you are pointing out ??
Truong -
Would you please quit top posting.
I do NOT need a 1-line debug...This does NOT work:
## ## /etc/maildroprc ## ## Global maildrop filter file ##
SHELL="/bin/bash" DEFAULT = "$HOME/Maildir" MAILDIR = "$HOME/Maildir"
logfile "/var/log/maildrop.log" VERBOSE="4" `echo SHELL=$SHELL >> /var/log/maildrop.log` `echo HOME=$HOME >> /var/log/maildrop.log` `echo DEFAULT=$DEFAULT >> /var/log/maildrop.log` `echo MAILDIR=$MAILDIR >> /var/log/maildrop.log` `echo SIZE=$SIZE >> /var/log/maildrop.log` log "==========" if ( $SIZE < 26144 ) { exception { xfilter "/usr/bin/spamassassin" } }
if (/^X-Spam-Flag: *YES/) { exception { to "$HOME/$DEFAULT/.Spam" } } else { exception { to "$HOME/$DEFAULT" } }
AND...this DOES work ...
## ## /etc/maildroprc ## ## Global maildrop filter file ##
SHELL="/bin/bash" DEFAULT = "$HOME/Maildir" MAILDIR = "$HOME/Maildir"
logfile "/var/log/maildrop.log" VERBOSE="4" `echo SHELL=$SHELL >> /var/log/maildrop.log` `echo HOME=$HOME >> /var/log/maildrop.log` `echo DEFAULT=$DEFAULT >> /var/log/maildrop.log` `echo MAILDIR=$MAILDIR >> /var/log/maildrop.log` `echo SIZE=$SIZE >> /var/log/maildrop.log` log "==========" if ( $SIZE < 26144 ) { exception { xfilter "/usr/bin/spamassassin" } }
#if (/^X-Spam-Flag: *YES/) #{ # exception { # to "$HOME/$DEFAULT/.Spam" # } #} #else { exception { to "$HOME/$DEFAULT" } }
This is the log of the failure...
Dec 29 20:32:19 xxxxx postfix/pipe[20076]: D7C575A03D2: to=<user...@domain-name.com>, relay=maildrop, delay=1, status=deferred (temporary failure. Command output: /etc/maildroprc(32): Syntax error. )
This is the log of it working....
Dec 29 20:35:30 xxxxx postfix/pipe[20105]: 695635A03D7: to=<user...@domain-name.com>, relay=maildrop, delay=2, status=sent (domain-name.com) Dec 29 20:35:30 xxxxx postfix/qmgr[20090]: 695635A03D7: removed
As Sam said, the problem lies in the "IF statement" but I don't see it. I comment out 7 lines and it "works" albeit not the way I would like it to (I want to "dump" spam directly to the user's .Spam subdirectory), I think that sort of narrows it down...
I am subscribed to the list...there is no need to reply separately.







