Mailing List CGatePro@mail.stalker.com Message #96813
From: Nicolas Hatier <nicolas.hatier@niversoft.com>
Subject: Re: External message filter commands
Date: Tue, 02 Dec 2008 18:41:17 -0500
To: CommuniGate Pro Discussions <CGatePro@mail.stalker.com>
I just tried it:

In sync rules mode, CGP rejects the SMTP transaction with a 451 code when the REJECTED command is issued by an external filter. However, it does not use the message associated with the REJECTED command, it always use "internal system error":

MAIL FROM:test@example.com
RCPT TO:postmaster
DATA
<msg data>
.
451 38400835 internal system error

Regards,
Nicolas Hatier

John Rudd wrote:
"temporary reject" can mean that it's being held in the internal
queue, depending upon how you look at it.

On Tue, Dec 2, 2008 at 14:22, Bret Miller <bret.miller@wcg.org> wrote:
  
Perhaps it didn't. The documentation says it issues a temporary reject, and
4xx is the only way to do that synchronously. Of course, the documentation
could be flat out wrong. It wouldn't be the first time.

Bret

On 12/2/2008 2:14 PM, John Rudd wrote:

Do you know when that behavior started?  1 year ago, REJECTED didn't
do a 4xx.  It held the message internally to try to re-process it
later (since REJECTED was intended to cover internal license failures,
not external things).  At that time, support said that there wasn't a
way to invoke a 4xx.  I suggested the 4xx option to them (for
REJECTED, when using synchronous rules), and they said they'd look
into that option, but I never heard that it got changed.

On Tue, Dec 2, 2008 at 12:17, Bret Miller <bret.miller@wcg.org> wrote:


If I recall correctly, REJECTED does give a 4xx reject if rules are run
synchronously (that is, during the SMTP conversation). Async rules is the
default method and at that point the message has already been accepted by
your server.

Bret

On 12/2/2008 6:37 AM, Jeff Wark wrote:


I was wondering if there was any method of giving a 4## message rejection
using the external message filters.

>From what I can see in the responses:
OK - message is good
ADDHEADER - simply add a header to the message
ERROR - reject the message with what I assume is a 5## permanent error
code
DISCARD - drop the message
REJECTED - postpone the message, but does it stay on the server or does it
stay on the sending server for another attempt [I'm have a little hope for
this command]
FAILURE - failed to process, but treat as okay.

So, the REJECTED command seems to have the most promise, but it seems that
the ERROR command actually rejects the messages and the REJECT command
postpones the message, but where it is postponed, I don't know.



#############################################################
This message is sent to you because you are subscribed to
 the mailing list <CGatePro@mail.stalker.com>.
To unsubscribe, E-mail to: <CGatePro-off@mail.stalker.com>
To switch to the DIGEST mode, E-mail to <CGatePro-digest@mail.stalker.com>
To switch to the INDEX mode, E-mail to <CGatePro-index@mail.stalker.com>
Send administrative queries to  <CGatePro-request@mail.stalker.com>



#############################################################
This message is sent to you because you are subscribed to
  the mailing list <CGatePro@mail.stalker.com>.
To unsubscribe, E-mail to: <CGatePro-off@mail.stalker.com>
To switch to the DIGEST mode, E-mail to <CGatePro-digest@mail.stalker.com>
To switch to the INDEX mode, E-mail to <CGatePro-index@mail.stalker.com>
Send administrative queries to  <CGatePro-request@mail.stalker.com>


#############################################################

This message is sent to you because you are subscribed to

  the mailing list <CGatePro@mail.stalker.com>.

To unsubscribe, E-mail to: <CGatePro-off@mail.stalker.com>

To switch to the DIGEST mode, E-mail to <CGatePro-digest@mail.stalker.com>

To switch to the INDEX mode, E-mail to <CGatePro-index@mail.stalker.com>

Send administrative queries to  <CGatePro-request@mail.stalker.com>
    
#############################################################
This message is sent to you because you are subscribed to
  the mailing list <CGatePro@mail.stalker.com>.
To unsubscribe, E-mail to: <CGatePro-off@mail.stalker.com>
To switch to the DIGEST mode, E-mail to <CGatePro-digest@mail.stalker.com>
To switch to the INDEX mode, E-mail to <CGatePro-index@mail.stalker.com>
Send administrative queries to  <CGatePro-request@mail.stalker.com>
  

--

Nicolas Hatier <nicolas.hatier@niversoft.com>
Niversoft idées logicielles - http://www.niversoft.com

Subscribe (FEED) Subscribe (DIGEST) Subscribe (INDEX) Unsubscribe Mail to Listmaster