Hi.

I got a special problem
I use /etc/courier/maildroprcs/rcptfilter and tried to use 
/etc/courier/maildroprcs/smtpfilter.

In rcptfilter I end with EXITCODE 99  and in most cases smtpfilter starts.

But: if there is as mail with almost one local hosted mailaddress and one on 
another mailserver I always got

You are whitelisted by this recipient ... Please try again later OR
You are whitelisted by this recipient ... Please try again later

and smtpfilter wasn't started.

The message depends if the first recipient is a local or a remote address.

I googled around for a couple of days and I think the problem is in submit.c

I'm no c-programmer - but for me it looks, as if the whole mail is classified 
as "whitelisted" = local recipient
and "not_whitelisted" = remote recipient.
The first check works fine and the second check with the second recipient 
results in an error.

As as workaround I don't use smtpfilter quite now - but if possible I would 
like to reject spam
instead of just mark it (and send it to my customers).

Any help available?

2434.     int    rc=handlerp.listcount == 1 ? handlerp.ret_code:
2435.            do_receipient_filter(&rwi, &riv, errmsg);
2436.
2437.        if (rc)
2438.        {
2439.            if (rc != 99)    return (errmsg);
2440.
2441.            /*
2442.            ** Return code 99 -- nonwhitelisted recipient subject
2443.            ** to spam filtering.
2444.            */
2445.            if (my_rcptinfo->whitelisted_only)
2446.            {
2447.                errmsg=you_are_not_whitelisted;
2448.                return (errmsg);
2449.            }
2450.            my_rcptinfo->nonwhitelisted_only=1;
2451.        }
2452.        else
2453.        {
2454.            /*
2455.            ** Return code 0 - whitelisted recipient.
2456.            */
2457.            if (my_rcptinfo->nonwhitelisted_only)
2458.            {
2459.                errmsg=you_are_whitelisted;
2460.                return (errmsg);
2461.            }
2462.            my_rcptinfo->whitelisted_only=1;
2463.        }
2464.
2465.        // Good address, but should we add it to the list of
2466.        // recipients?  Figure out what should be the key to check
2467.        // for a duplicate address.
2468.        //
2469.        // DSN: NEVER, use module<nl>host<nl>addr, should get rid
2470.        //      of the most number of duplicate addresses
2471.        //
2472.        // Every case, use module<nl>host<nl>addr<nl>orecipient.


Mit freundlichen Gruessen
DIC-Online Wolf & Co. KG

Harald Wolf

Geschaeftsfuehrer
Tel:+43/(0)512/341033-0<tel:+43/(0)512/341033-0>
Fax:+43/(0)512/341033-19
http://www.dic.at<http://www.dic.at/>
mailto:harald.w...@dic-online.eu
Register-Gericht: Innsbruck
Firmenbuch-Nr.: FN 146723 w
DVR-NR: 0865729

Anmerkung:
Diese Nachricht und alle Anhänge sind Eigentum von DIC-Online Wolf & Co. KG und 
nur für die angegebene Person oder Organisation bestimmt. Wenn Sie diese 
Nachricht irrtümlich erhalten, informieren Sie bitte den Absender per E-Mail 
und löschen Sie die Nachricht. Wenn Sie nicht der vorgesehene Empfänger sind, 
dürfen Sie diese Nachricht oder die Anhänge weder ganz noch teilweise 
verwenden, kopieren oder sonst wie weiterverbreiten.

Notice:
This message and any attachments are the property of DIC-Online Wolf & Co. KG 
and are intended solely for the named recipients or entity to whom this message 
is addressed. If you have received this message in error please inform the 
sender via e-mail and destroy the message. If you are not the intended 
recipient you are not allowed to use, copy or disclose the contents or 
attachments in whole or in part.

------------------------------------------------------------------------------
Slashdot TV.  
Video for Nerds.  Stuff that matters.
http://tv.slashdot.org/
_______________________________________________
courier-users mailing list
courier-users@lists.sourceforge.net
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users

Reply via email to