Re: [exim] Immediate and queued SMTP delivery.

Pàgina inicial
Delete this message
Reply to this message
Autor: Tony Finch
Data:  
A: Adam Funk
CC: exim-users
Assumpte: Re: [exim] Immediate and queued SMTP delivery.
On Thu, 6 Oct 2005, Adam Funk wrote:
>
> "queue_domains = example.org" and "queue_smtp_domains = example.org"
> have the same effect *unless* there is a possibility of delivering a
> message to something@??? by other means than SMTP -- right?


That's what the documentation says.

> (1)
> > > Also, is this
> > > queue_domains = /path/to/domains.list
> > > valid if the file is a newline-delimited list of domains?
>
> I was thinking of "10.3 File names in lists": it's easy to have lines
> like the following in the external file.
>
> example.org
> *.example.org


You can do that with partial lookups as well as with out-of-line lists.

9.6 Partial matching in single-key lookups

The normal operation of a single-key lookup is to search the file for an exact
match with the given key. However, in a number of situations where domains are
being looked up, it is useful to be able to do partial matching. In this case,
information in the file that has a key starting with '*.'

> (2)
> > You probably mean
> > queue_domains = lsearch;/path/to/domains.list
>
> Whereas "10.4 An lsearch file is not an out-of-line list" says that
> lsearch treats the file contents as fixed strings.
>
> I would also expect (1) to be slightly more efficient than (2)?


No significant difference. However if you use a lookup, then you can turn
an lsearch into a faster database (e.g. cdb) if the list gets long.

Tony.
--
<fanf@???> <dot@???> http://dotat.at/ ${sg{\N${sg{\
N\}{([^N]*)(.)(.)(.*)}{\$1\$3\$2\$1\$3\n\$2\$3\$4\$3\n\$3\$2\$4}}\
\N}{([^N]*)(.)(.)(.*)}{\$1\$3\$2\$1\$3\n\$2\$3\$4\$3\n\$3\$2\$4}}