

![]() | 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: |
3 messages in net.sourceforge.lists.courier-maildropRe: [maildropl] error: Unable to open...| From | Sent On | Attachments |
|---|---|---|
| Juan Miscaro | Feb 16, 2008 8:12 pm | |
| Leandro Mendes | Feb 18, 2008 1:35 pm | |
| Leandro Mendes | Feb 20, 2008 8:51 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] error: Unable to open mailbox (why?) | Actions... |
|---|---|---|
| From: | Leandro Mendes (thef...@gmail.com) | |
| Date: | Feb 20, 2008 8:51:08 am | |
| List: | net.sourceforge.lists.courier-maildrop | |
Juan,
You can deliver the message and filter it to the spam folder without rewrite the maildir. Just put the entire path of maildir for each user on BD and use in you maildroprc file the rule to move to spamdir.
Such as:
if (/^X-Spam-Status: Yes/) { to $MAILDIR/.Spam/ }
The variable $MAILDIR already exists on the enviroment with the value found on BD.
On Feb 20, 2008 1:34 PM, Juan Miscaro <scry...@yahoo.ca> wrote:
Leandro,
I use the filter file to drop spam automatically in a folder and I will be doing other stuff with it later on as well.
/juan
--- Leandro Mendes <thef...@gmail.com> wrote:
Juan,
Wasn't it easier you put all the maildir path in the mail field of yoiur BD? You don't need to use maildroprc to rewrite something that you already have.
[]s
On Feb 17, 2008 1:12 AM, Juan Miscaro <scry...@yahoo.ca> wrote:
I'm having a hell of a time getting postfix with virtual mailboxes via mysql backend to work. I've checked permissions and configurations over and over and can't find why i'm getting the error. I'm running maildrop 2.0.2 on OpenBSD 4.2.
$ maildrop -V 3 -d pebb...@example.com
maildrop: authlib: groupid=3100 maildrop: authlib: userid=3100 maildrop: authlib: logname=pebb...@example.com, home=/var/spool/virtual_mailboxes/, mail=example.com/pebbles/ maildrop: Changing to /var/spool/virtual_mailboxes/ rrr Message start at 0 bytes, envelope sender=pebb...@example.com Matching /^Delivered-To:\s*.+/ against rrr Not matched. Matching /(.*)@([^@])/ against Matching /([^\+]+)\+(.*)/ against Matching /^X-Spam-Status: Yes/ against rrr Not matched. maildrop: Attempting .mailfilter maildrop: Delivering to example.com/pebbles/ maildrop: Unable to open mailbox.
My /etc/courier/maildroprc file:
/^Delivered-To:\s*.+/ RECIPIENT=getaddr ${MATCH}
# split the recipient into user and domain parts USER="" DOMAIN="" if ( ${RECIPIENT} =~ /(.*)@([^@])/ ) { USER=${MATCH1} DOMAIN=${MATCH2} } else { #no domain part USER=${RECIPIENT} }
# extract extension from user-part # we assume '+' is the delimiter. if you use another char, adjust.. EXTENSION="" if ( ${USER} =~ /([^\+]+)\+(.*)/ ) { #extension found USER=${MATCH1} EXTENSION=${MATCH2} }
MAILDIR="/var/spool/virtual_mailboxes/$DOMAIN/$USER/Maildir"
if (/^X-Spam-Status: Yes/) { to $MAILDIR/.Spam/ }
Thanks in advance,
/miscara
Looking for the perfect gift? Give the gift of Flickr!
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________ Courier-maildrop mailing list Cour...@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/courier-maildrop
Looking for the perfect gift? Give the gift of Flickr!







