[xmail] Re: RCPT TO smtp filter.

2006-03-07 Thread John Kielkopf

Davide Libenzi wrote:

>Just don't ask me to call out filter for every input 
>char next time! :)
>
>  
>
Damn,  and I was just going to ask for that! ;)

-John


-
To unsubscribe from this list: send the line "unsubscribe xmail" in
the body of a message to [EMAIL PROTECTED]
For general help: send the line "help" in the body of a message to
[EMAIL PROTECTED]



[xmail] Re: RCPT TO smtp filter.

2006-03-07 Thread Davide Libenzi

On Mon, 6 Mar 2006, John Kielkopf wrote:

> How difficult would it be to add filters that are triggered for each
> RCPT TO, similar to smtp pre-data filters?  Does functionality like this
> already exist in Xmail?
>
> It would be helpful in the case of  greylist and blacklist filters to
> add more granularity than all or nothing when filtering mail with
> multiple rcpts.
>
> It would also be useful for custom relay domains, where the mailbox list
> resides outside of Xmail.

I'll look into this. Just don't ask me to call out filter for every input 
char next time! :)


- Davide


-
To unsubscribe from this list: send the line "unsubscribe xmail" in
the body of a message to [EMAIL PROTECTED]
For general help: send the line "help" in the body of a message to
[EMAIL PROTECTED]



[xmail] Re: RCPT TO smtp filter.

2006-03-07 Thread Tracy

Personally, I'd like to see the ability to call external filters at each 
stage of the process (connect, HELO/EHLO, MAIL FROM, RCPT TO (once for 
each recipient), DATA, and post-DATA). Ideally, these would be triggered 
once the command is accepted and parsed, but before the SMTP result code 
is returned to the remote server

I'm actually planning to modify a local copy of the Xmail source to let 
me do this - but with my poor C++ skills, I'm not planning on making the 
mods public.

But it would be really nice if this were an actual feature, rather than 
something I had to do locally...:)

John Kielkopf wrote:
> Yes, they are currently triggered once for all, hence my request ;)
> 
> I was trying to figure out of there's any way to handle it with external 
> auth, but couldn't come up with anything.
> 
> To make it somewhat compatible with current SMTP filters, it could just 
> keep appending the new address to the message file.  Your script would 
> just need to know the last address is the new one, although adding a 
> mail from and rcpt to macro might be just as easy, and less overhead for 
> the filter to deal with.  A helpful additional macro in either case 
> would be an error count, to track the number of bad addresses the MTA 
> has tried so far.
> 
> I don't know if you could do it in a "post data" filter, since there's 
> no option but to send a single rejection at that point. But after each 
> RCPT TO, you could opt. to accept or reject that address for any given 
> reason, where Xmail currently only does so based on mailbox size, or if 
> the mailbox exists, etc.
> 
> 
> CLEMENT Francis wrote:
> 
>> I think smtp filters are currently triggered once for all rcpt, not for each
>> rcpt ! 
>> If actual smtp filters are triggering "per rcpt", it could be a great option
>> here too to have per 'allrcpt'
>>
>> It should be a option on "per filter" (like "!eax" in smtp pre-data) to have
>> more granularity
>>
>> So it could be a good think to add options like 'allrcpt' or 'perrcpt' at
>> any filters level in xmail (smtp pre, post, in, ou, ...) with default value
>> depending of current xmail defaults (to be compatible with previous filters)
>>
>> Francis
>>
>>
>>  
>>
>>> -Message d'origine-
>>> De : [EMAIL PROTECTED]
>>> [mailto:[EMAIL PROTECTED] la part de John Kielkopf
>>> Envoyé : lundi 6 mars 2006 18:25
>>> À : xmail@xmailserver.org
>>> Objet : [xmail] RCPT TO smtp filter.
>>>
>>>
>>>
>>>
>>> Davide,
>>>
>>> How difficult would it be to add filters that are triggered for each 
>>> RCPT TO, similar to smtp pre-data filters?  Does functionality 
>>> like this 
>>> already exist in Xmail?
>>>
>>> It would be helpful in the case of  greylist and blacklist filters to 
>>> add more granularity than all or nothing when filtering mail with 
>>> multiple rcpts.
>>>
>>> It would also be useful for custom relay domains, where the 
>>> mailbox list 
>>> resides outside of Xmail.
>>>
>>>
>>>
>>
>>  
>>
> 
> -
> To unsubscribe from this list: send the line "unsubscribe xmail" in
> the body of a message to [EMAIL PROTECTED]
> For general help: send the line "help" in the body of a message to
> [EMAIL PROTECTED]
> 
> 

-
To unsubscribe from this list: send the line "unsubscribe xmail" in
the body of a message to [EMAIL PROTECTED]
For general help: send the line "help" in the body of a message to
[EMAIL PROTECTED]



[xmail] Re: RCPT TO smtp filter.

2006-03-07 Thread John Kielkopf

Yes, they are currently triggered once for all, hence my request ;)

I was trying to figure out of there's any way to handle it with external 
auth, but couldn't come up with anything.

To make it somewhat compatible with current SMTP filters, it could just 
keep appending the new address to the message file.  Your script would 
just need to know the last address is the new one, although adding a 
mail from and rcpt to macro might be just as easy, and less overhead for 
the filter to deal with.  A helpful additional macro in either case 
would be an error count, to track the number of bad addresses the MTA 
has tried so far.

I don't know if you could do it in a "post data" filter, since there's 
no option but to send a single rejection at that point. But after each 
RCPT TO, you could opt. to accept or reject that address for any given 
reason, where Xmail currently only does so based on mailbox size, or if 
the mailbox exists, etc.


CLEMENT Francis wrote:

>I think smtp filters are currently triggered once for all rcpt, not for each
>rcpt ! 
>If actual smtp filters are triggering "per rcpt", it could be a great option
>here too to have per 'allrcpt'
>
>It should be a option on "per filter" (like "!eax" in smtp pre-data) to have
>more granularity
>
>So it could be a good think to add options like 'allrcpt' or 'perrcpt' at
>any filters level in xmail (smtp pre, post, in, ou, ...) with default value
>depending of current xmail defaults (to be compatible with previous filters)
>
>Francis
>
>
>  
>
>>-Message d'origine-
>>De : [EMAIL PROTECTED]
>>[mailto:[EMAIL PROTECTED] la part de John Kielkopf
>>Envoyé : lundi 6 mars 2006 18:25
>>À : xmail@xmailserver.org
>>Objet : [xmail] RCPT TO smtp filter.
>>
>>
>>
>>
>>Davide,
>>
>>How difficult would it be to add filters that are triggered for each 
>>RCPT TO, similar to smtp pre-data filters?  Does functionality 
>>like this 
>>already exist in Xmail?
>>
>>It would be helpful in the case of  greylist and blacklist filters to 
>>add more granularity than all or nothing when filtering mail with 
>>multiple rcpts.
>>
>>It would also be useful for custom relay domains, where the 
>>mailbox list 
>>resides outside of Xmail.
>>
>>
>>
>
>
>  
>

-
To unsubscribe from this list: send the line "unsubscribe xmail" in
the body of a message to [EMAIL PROTECTED]
For general help: send the line "help" in the body of a message to
[EMAIL PROTECTED]



[xmail] Re: RCPT TO smtp filter.

2006-03-06 Thread CLEMENT Francis


I think smtp filters are currently triggered once for all rcpt, not for each
rcpt ! 
If actual smtp filters are triggering "per rcpt", it could be a great option
here too to have per 'allrcpt'

It should be a option on "per filter" (like "!eax" in smtp pre-data) to have
more granularity

So it could be a good think to add options like 'allrcpt' or 'perrcpt' at
any filters level in xmail (smtp pre, post, in, ou, ...) with default value
depending of current xmail defaults (to be compatible with previous filters)

Francis


>-Message d'origine-
>De : [EMAIL PROTECTED]
>[mailto:[EMAIL PROTECTED] la part de John Kielkopf
>Envoyé : lundi 6 mars 2006 18:25
>À : xmail@xmailserver.org
>Objet : [xmail] RCPT TO smtp filter.
>
>
>
>
>Davide,
>
>How difficult would it be to add filters that are triggered for each 
>RCPT TO, similar to smtp pre-data filters?  Does functionality 
>like this 
>already exist in Xmail?
>
>It would be helpful in the case of  greylist and blacklist filters to 
>add more granularity than all or nothing when filtering mail with 
>multiple rcpts.
>
>It would also be useful for custom relay domains, where the 
>mailbox list 
>resides outside of Xmail.
>
>-
>To unsubscribe from this list: send the line "unsubscribe xmail" in
>the body of a message to [EMAIL PROTECTED]
>For general help: send the line "help" in the body of a message to
>[EMAIL PROTECTED]
>
-
To unsubscribe from this list: send the line "unsubscribe xmail" in
the body of a message to [EMAIL PROTECTED]
For general help: send the line "help" in the body of a message to
[EMAIL PROTECTED]