Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: exim: users

mysql retry times

 

 

exim users RSS feed   Index | Next | Previous | View Threaded


thomas.kinghorn at gmail

Sep 3, 2009, 6:58 AM

Post #1 of 2 (490 views)
Permalink
mysql retry times

Afternoon All.

Is it possible to have a mysql query in the retry configuration
so that different domains have various different retry configurations?

something similar to:

begin retry



# Address or Domain Error Retries
# ----------------- ----- -------
*@+mysql_spool_domains * ${lookup
mysql{MYSQL_SPOOL_RETRY}}
* * F,2h,15m;
G,16h,1h,1.5; F,4d,6h

Thanks in advance.

regards

Tom
--
## 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/


eximX0902w at linuxwan

Sep 4, 2009, 12:02 AM

Post #2 of 2 (463 views)
Permalink
Re: mysql retry times [In reply to]

Thomas kinghorn wrote:
> Afternoon All.
>
> Is it possible to have a mysql query in the retry configuration
> so that different domains have various different retry configurations?

When doing exactly what you tried - Short answer, no. Only the first
part of the line expanded - the single part address list. The rest of
line has a specific format as specified in:

http://docs.exim.org/current/spec_html/ch32.html

However, you could make the a table that matched up every domain to the
retry rule you wanted. Maybe.

The following was produced at exactly 1 minute to 5 (end of work) when I
was thinking of beer and what I was going to do for the weekend.

ie a table like .
domain varchar
retryline int

a query like
MYSQLRETRY1=SELECT domain FROM domretry WHERE retryline = 1 AND domain =
${mysqlescapethingy{$domain}}
MYSQLRETRY2=SELECT domain FROM domretry WHERE retryline = 2 ....

and a retry table that looked
${lookup{mysql{MYSQLRETRY1}} * F,4d,6h
${lookup{mysql{MYSQLRETRY2}} * F,7d,2h

Maybe? I haven't really thought about this :P

--
## 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/

exim users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.