Juan Miscaro wrote:
> --- mouss <[EMAIL PROTECTED]> wrote:
>
>
>> Juan Miscaro wrote:
>>
>>> --- mouss <[EMAIL PROTECTED]> wrote:
>>>
>>>
>>>
>>>> Juan Miscaro wrote:
>>>>
>>>>
>>>>> Thank you.
>>>>>
>>>>> I added the -D flag to master.cf. Things seem to work but I am
>>>>> noticing some curious errors:
>>>>>
>>>>> postfix/pipe[11675]: DB84AC4501: to=<[EMAIL PROTECTED]>,
>>>>>
>>>>>
>>>> relay=maildrop,
>>>>
>>>>
>>>>> delay=19551, delays=19551/0.01/0/0.04, dsn=4.3.0, status=deferred
>>>>> (temporary failure. Command output: /usr/local/bin/maildrop:
>>>>>
>> Unable
>>
>>>>>
>>>>>
>>>> to
>>>>
>>>>
>>>>> open mailbox. )
>>>>>
>>>>> When opening the message DB84AC4501 I notice it has been tagged
>>>>>
>> as
>>
>>>>> spam. This is the same (so far) for all tagged SPAM. This tells
>>>>>
>>>>>
>>>> me
>>>>
>>>>
>>>>> that the maildrop redirection (to the spam folder is not
>>>>>
>> working).
>>
>>>>> This is my complete maildroprc file:
>>>>>
>>>>> /^Delivered-To:\s*.+/
>>>>> RECIPIENT=getaddr ${MATCH}
>>>>>
>>>>> # split the recipient into user and domain parts
>>>>> USER=""
>>>>> DOMAIN=""
>>>>> if ( ${RECIPIENT} =~ /(.*)@([EMAIL PROTECTED])/ )
>>>>> {
>>>>> 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/example.com/$USER/Maildir"
>>>>>
>>>>> if (/^X-Spam-Status: Yes/)
>>>>> {
>>>>> to $MAILDIR/.Polluriel/
>>>>> }
>>>>>
>>>>>
>>>>>
>>>>>
>>>> Does $MAILDIR/.Polluriel/ exist? If not, you should either create
>>>>
>> it
>>
>>>> ahead of time, or do
>>>>
>>>>
>>>
>>> Yes, it exists.
>>>
>>>
>> run maildrop manually with a sample message:
>> # maildrop -V 4 -d SOMERECIPIENT < message.eml
>> and see what it says. SOMERECIPIENT should be in the same format as
>> what
>> is used by postfix (either a user or an email address. this depends
>> on
>> your maildrop configuration).
>>
>
>
> $ maildrop -V 4 -d [EMAIL PROTECTED] < /etc/hosts
>
> maildrop: Changing to /var/spool/virtual_mailboxes/
> Message start at 0 bytes, envelope [EMAIL PROTECTED]
> /etc/maildroprc(1): Opening logfile /var/log/maildrop
> Matching /^Delivered-To:\s*.+/ against 127.0.0.1 localhost.example.com
> localhost
> Not matched.
> /etc/maildroprc(3): Search of ^Delivered-To:\s*.+ = 0
> /etc/maildroprc(4): RECIPIENT=""
> /etc/maildroprc(7): USER=""
> /etc/maildroprc(8): DOMAIN=""
> /etc/maildroprc(9): Evaluating IF condition.
> Matching /(.*)@([EMAIL PROTECTED])/ against
> /etc/maildroprc(9): Search of (.*)@([EMAIL PROTECTED]) = 0
> /etc/maildroprc(9): IF evaluated, result=0
> /etc/maildroprc(17): USER=""
> /etc/maildroprc(22): EXTENSION=""
> /etc/maildroprc(23): Evaluating IF condition.
> Matching /([^\+]+)\+(.*)/ against
> /etc/maildroprc(23): Search of ([^\+]+)\+(.*) = 0
> /etc/maildroprc(23): IF evaluated, result=0
> /etc/maildroprc(30):
> MAILDIR="/var/spool/virtual_mailboxes/example.com//Maildir"
> /etc/maildroprc(32): Evaluating IF condition.
> Matching /^X-Spam-Status: Yes/ against 127.0.0.1 localhost.example.com
> localhost
> Not matched.
> /etc/maildroprc(32): Search of ^X-Spam-Status: Yes = 0
> /etc/maildroprc(32): IF evaluated, result=0
> maildrop: Attempting .mailfilter
>
>
I forgot: try with a spam message. or put the X-Spam-Status header
manually in a dummy message. use -V 6 for more output.
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Courier-imap mailing list
[email protected]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-imap