Happy New Year to everyone. I have the need to impose a 24-hr delay on emails from john...@johndoe.com to a local recipient. I have found this config snippet: https://github.com/Exim/exim/blob/master/doc/doc-src/FAQ.src#L6892 So I created a router as suggested:
delay_incoming: driver = redirect domains = mydomain.name local_parts = the_local_part senders = sender@some_domain_name condition = ${if < {$message_age}{86400}{yes}{no}} allow_defer data = :defer: message not old enough no_verify I tested the router and the email from sender@some_domain_name stayed in the queue for some time, then it got delivered, I suppose on the next queue run. The FAQ says one may want to set a special retry rule, so I figured out I must create a specific rule for this sender and the recipient. Looking at the Exim spec, I am missing something on the form this rule is supposed to take. I have: the_local_p...@mydomain.name * sender@some_domain_name F,24h,1m But Exim gives the error below. Line 2245 contains the above retry rule. Jan 22 13:26:56 FQDN exim4[503251]: Starting MTA: Jan 22 13:26:56 FQDN exim4[503256]: 2025-01-22 13:26:56 cwd=/ 2 args: /usr/sbin/exim4 -bV Jan 22 13:26:56 FQDN exim4[503256]: 2025-01-22 13:26:56 Exim configuration error in line 2245 of /etc/exim4/exim4.conf: Jan 22 13:26:56 FQDN exim4[503256]: comma expected Jan 22 13:26:56 FQDN exim4[503251]: Warning! Invalid configuration file for exim4. Exiting....failed. Jan 22 13:26:56 FQDN systemd[1]: exim4.service: Control process exited, code=exited, status=1/FAILURE Kindly advise on where the mistake it. -- Best regards, Odhiambo WASHINGTON, Nairobi,KE +254 7 3200 0004/+254 7 2274 3223 In an Internet failure case, the #1 suspect is a constant: DNS. "Oh, the cruft.", egrep -v '^$|^.*#' ¯\_(ツ)_/¯ :-) [How to ask smart questions: http://www.catb.org/~esr/faqs/smart-questions.html] -- ## subscription configuration (requires account): ## https://lists.exim.org/mailman3/postorius/lists/exim-users.lists.exim.org/ ## unsubscribe (doesn't require an account): ## exim-users-unsubscr...@lists.exim.org ## Exim details at http://www.exim.org/ ## Please use the Wiki with this list - http://wiki.exim.org/