Re: [exim] How to defer (ie deliberately delay) delivery

Αρχική Σελίδα
Delete this message
Reply to this message
Συντάκτης: Odhiambo Washington
Ημερομηνία:  
Προς: owen
Υ/ο: exim-users
Αντικείμενο: Re: [exim] How to defer (ie deliberately delay) delivery
On Oct 30, 2007 8:23 PM, <owen@???> wrote:
> For the record, the solution I came up with was as follows:
>
> # This router checks mails for a "Delivery-Age" header. If it exists
> # and the actual message age is less than that specified in the
> # header, mails are deferred until the next queue run, when they are
> # tested again. When the condition is finally met, mails pass through
> # to the smarthost router.
> delay_until_delivery_age:
>    driver = redirect
>    domains = ! +local_domains
>    condition = ${if < {$message_age}{$header_delivery-age:}{yes}{no}}
>    allow_defer
>    data = :defer: Age now: $message_age Deliver at: $header_delivery-age:
>    no_verify

>
> # All mails are routed to the Corporate mail-server for final delivery
> smarthost:
>    driver = manualroute
>    domains = ! +local_domains
>    transport = remote_smtp
>    route_list = * 192.168.1.1 bydns
>    errors_to = $header_sender

>
> Thanks again to the list and the Wiki
> (http://wiki.exim.org/FAQ/Configuration_cookbook/Q9807)
>
> Rgds,
>
> Owen Boyle
>
>
> --
> ## List details at http://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/
>


Hello Owen,

Having relied on
(http://wiki.exim.org/FAQ/Configuration_cookbook/Q9807 as the
reference, did you end up setting up a suitable retry rule as
recommended or does it just work automagically when the first queue
run is fired?
I intend to use the following modification to delay messages from some
users for 10 minutes:

delay_outgoing:
driver = redirect
domains = !+local_domains : !+relay_to_domains
senders = ! : lsearch;/usr/local/etc/exim/delayed_senders
condition = ${if < {$message_age}{360}{yes}{no}}
allow_defer
data = :defer: message not old enough
no_verify

I have been asked to implement this to allow my bosses to recall mail
(i.e. ask me to delete it from the queue to stop it from being sent if
they change their mind after hitting "Send/Receive" in Outlook:-)

In my situation, since Exim runs with "-bd -q30m", I am thinking I
need to craft a special retry rule. However, I must admit I am not
sure what form the rule should take, but I do believe that running
Exim with "-bd -q15m" perhaps eliminates the need for crafting a
special retry rule.

Hi list members , please advise.


--
Best regards,
Odhiambo WASHINGTON,
Nairobi,KE
+254733744121/+254722743223
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

"Oh My God! They killed init! You Bastards!"
                        --from a /. post