Re: [exim] Is there a way to forcably disconnect remote session using tempfail 4xx code

2023-02-21 Thread Viktor Dukhovni via Exim-users
On Tue, Feb 21, 2023 at 09:30:41AM +, Jeremy Harris via Exim-users wrote:

> On 21/02/2023 03:14, Matt Bryant via Exim-users wrote:
> > Is there anyway in exim to force a disconnect but with a temporary
> > 4xx failure rather than a hard deny and 5xx error ???. I can see
> > 'drop' does the latter case but there seem no equivalent action/verb
> > or command to issue a tempfail and then disconnect.
> 
> No; that's a further departure from standards than Exim is coded to
> do.  You could raise an RFE if you have a convincing case for it.

FWIW, Postfix does drop connectiosn when the user-specified reject code
is 421 or 521.  Yes, server-initiated connection termination was not
part of the original design of SMTP ~50 years back when the Internet
was a kinder/gentler place.

-- 
Viktor.

-- 
## List details at https://lists.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/


Re: [exim] Is there a way to forcably disconnect remote session using tempfail 4xx code

2023-02-21 Thread Jeremy Harris via Exim-users

On 21/02/2023 03:14, Matt Bryant via Exim-users wrote:

Is there anyway in exim to force a disconnect but with a temporary 4xx failure 
rather than a hard deny and 5xx error ???. I can see 'drop' does the latter 
case but there seem no equivalent action/verb or command to issue a tempfail 
and then disconnect.


No; that's a further departure from standards than Exim is coded to do.
You could raise an RFE if you have a convincing case for it.
--
Cheers,
  Jeremy


--
## List details at https://lists.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/


Re: [exim] Is there a way to forcably disconnect remote session using tempfail 4xx code

2023-02-20 Thread Matt Bryant via Exim-users
Shame although the 421 code sent the connection is not dropped which is 
a shame .. would have been a nice solution ..


On 21/2/2023 4:40 pm, Matt Bryant via Exim-users wrote:

No I havent .. didnt think of that will give it a go .. thx

On 21/2/2023 4:19 pm, Viktor Dukhovni via Exim-users wrote:
On Tue, Feb 21, 2023 at 01:14:55PM +1000, Matt Bryant via Exim-users 
wrote:



Is there anyway in exim to force a disconnect but with a temporary 4xx
failure rather than a hard deny and 5xx error ???. I can see 'drop' 
does

the latter case but there seem no equivalent action/verb or command to
issue a tempfail and then disconnect.

Have you tried configuring the reject code to "421".  The Exim SMTP
server should ideally take note of that and also disconnect.





--
## List details at https://lists.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/


Re: [exim] Is there a way to forcably disconnect remote session using tempfail 4xx code

2023-02-20 Thread Matt Bryant via Exim-users

No I havent .. didnt think of that will give it a go .. thx

On 21/2/2023 4:19 pm, Viktor Dukhovni via Exim-users wrote:

On Tue, Feb 21, 2023 at 01:14:55PM +1000, Matt Bryant via Exim-users wrote:


Is there anyway in exim to force a disconnect but with a temporary 4xx
failure rather than a hard deny and 5xx error ???. I can see 'drop' does
the latter case but there seem no equivalent action/verb or command to
issue a tempfail and then disconnect.

Have you tried configuring the reject code to "421".  The Exim SMTP
server should ideally take note of that and also disconnect.



--
## List details at https://lists.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/


Re: [exim] Is there a way to forcably disconnect remote session using tempfail 4xx code

2023-02-20 Thread Viktor Dukhovni via Exim-users
On Tue, Feb 21, 2023 at 01:14:55PM +1000, Matt Bryant via Exim-users wrote:

> Is there anyway in exim to force a disconnect but with a temporary 4xx 
> failure rather than a hard deny and 5xx error ???. I can see 'drop' does 
> the latter case but there seem no equivalent action/verb or command to 
> issue a tempfail and then disconnect.

Have you tried configuring the reject code to "421".  The Exim SMTP
server should ideally take note of that and also disconnect.

-- 
Viktor.

-- 
## List details at https://lists.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/