Re: [exim] expanding domain lists to log file

Top Page
Delete this message
Reply to this message
Author: Pat Hastings
Date:  
To: exim-users
Subject: Re: [exim] expanding domain lists to log file
HI Tony,

Thanks for the very quick reply. Your suggestion works perfectly which now
leads me to my next question:

In the log I am seeing
2006-05-02 11:19:16 Virtual domains: gwenissia.co.uk\ngwenissia.com

To create a domain list the values need to be : separated. Is the problem
that the when the domainlist is created it is excluding gwenissia.com as it
is not been separated with a :?

Regards,

Pat

-----Original Message-----
From: exim-users-bounces@??? [mailto:exim-users-bounces@exim.org] On
Behalf Of Tony Finch
Sent: 02 May 2006 11:15
To: Pat Hastings
Cc: exim-users@???
Subject: 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}}

--
## List details at http://www.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://www.exim.org/eximwiki/
---
[This E-mail has been scanned for viruses but it is your responsibility
to maintain up to date anti virus software on the device that you are
currently using to read this email. ]


---
[This E-mail has been scanned for viruses but it is your responsibility
to maintain up to date anti virus software on the device that you are
currently using to read this email. ]