Mailing List Archive

Fwd: Can I tell exim to accept messages and queue them rather than send them on?
Hi, folks,

The man page wasn't helpful for this.

I'm going to be replacing our mail nodes over the next few weeks and
I've been sequencing events in the move. It would be very handy if it were
possible to tell one of my nodes to keep accepting mail but to stop trying
to deliver it. Can this be done? If so, how? I suspect the answer is no,
but I'll gladly be told otherwise.

Thanks,

John A

--
John Adams
Senior Linux/Middleware Administrator | Information Technology Services
+1-501-916-3010 | jxadams@ualr.edu | http://ualr.edu/itservices
*UA Little Rock*

Reminder: IT Services will never ask for your password over the phone or
in an email. Always be suspicious of requests for personal information that
come via email, even from known contacts. For more information or to
report suspicious email, visit IT Security
<http://ualr.edu/itservices/security/>.

--
## subscription configuration (requires account):
## https://lists.exim.org/mailman3/postorius/lists/exim-users.lists.exim.org/
## unsubscribe (doesn't require an account):
## exim-users-unsubscribe@lists.exim.org
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/
Re: Fwd: Can I tell exim to accept messages and queue them rather than send them on? [ In reply to ]
> The man page wasn't helpful for this.
>
> I'm going to be replacing our mail nodes over the next few weeks and
> I've been sequencing events in the move. It would be very handy if it were
> possible to tell one of my nodes to keep accepting mail but to stop trying
> to deliver it. Can this be done? If so, how? I suspect the answer is no,
> but I'll gladly be told otherwise.

This is entirely possible. You want a router that acts very early on and
looks something like this:

defer_user:
driver = redirect
allow_defer
data = :defer:delivery temporarily stalled
no_verify
no_expn
condition = ${if match_address{$local_part@$domain}{/etc/exim4/exim-addr-defer}}

Then at the appropriate time, add '*@*' to /etc/exim4/exim-addr-defer
and enjoy absolutely everything being stalled. Because this router is
set to no_verify, it will not stop a RCPT TO address being verified and
thus accepted. (Or even a MAIL FROM address.)

- cks

--
## subscription configuration (requires account):
## https://lists.exim.org/mailman3/postorius/lists/exim-users.lists.exim.org/
## unsubscribe (doesn't require an account):
## exim-users-unsubscribe@lists.exim.org
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/
Re: Fwd: Can I tell exim to accept messages and queue them rather than send them on? [ In reply to ]
On 2024-02-09 Johnnie W Adams via Exim-users <exim-users@lists.exim.org> wrote:
> Hi, folks,

> The man page wasn't helpful for this.

Good Morning,

take a look at the full documentation (spec.(txt|pdf|html) instead and
find ...

> I'm going to be replacing our mail nodes over the next few weeks and
> I've been sequencing events in the move. It would be very handy if it were
> possible to tell one of my nodes to keep accepting mail but to stop trying
> to deliver it. Can this be done? If so, how? I suspect the answer is no,
> but I'll gladly be told otherwise.

... queue_only and queue_only_file.

cu Andreas

--
## subscription configuration (requires account):
## https://lists.exim.org/mailman3/postorius/lists/exim-users.lists.exim.org/
## unsubscribe (doesn't require an account):
## exim-users-unsubscribe@lists.exim.org
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/
Re: Fwd: Can I tell exim to accept messages and queue them rather than send them on? [ In reply to ]
On 10/02/2024 05:58, Andreas Metzler via Exim-users wrote:
>> I'm going to be replacing our mail nodes over the next few weeks and
>> I've been sequencing events in the move. It would be very handy if it were
>> possible to tell one of my nodes to keep accepting mail but to stop trying
>> to deliver it. Can this be done? If so, how? I suspect the answer is no,
>> but I'll gladly be told otherwise.
>
> ... queue_only and queue_only_file.

You'd have to also stop your queue-runners (probably, modify the daemon
startup cmdline to lose the "-q5m" or similar).

--
Cheers,
Jeremy


--
## subscription configuration (requires account):
## https://lists.exim.org/mailman3/postorius/lists/exim-users.lists.exim.org/
## unsubscribe (doesn't require an account):
## exim-users-unsubscribe@lists.exim.org
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/