Re: [exim] expanding domain lists to log file

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: Tony Finch
Dátum:  
Címzett: Pat Hastings
CC: exim-users
Tárgy: Re: [exim] expanding domain lists to log file
On Tue, 2 May 2006, Pat Hastings wrote:
>
> Is there anyway of displaying the contents of a domain list to the mainlog
> when processing an ACL check?


No: lists can be defined in ways that aren't listable. For example, they
might contain wildcard entries. However in your specific case you could
add a logwrite ACL modifier. For example:

LDAP_VIRTUAL_DOMAINS = ${lookup ldapm {ldap://LDAPSERVER/LDAPBASE?o?one?(objectclass=organization)} }

domainlist virtual_domains = LDAP_VIRTUAL_DOMAINS

# ...

warn logwrite = Virtual domains: LDAP_VIRTUAL_DOMAINS

Or you could just run exim -be '${lookup ... }'

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}}