[exim-dev] Two questions about Exim functionality

Startseite
Nachricht löschen
Nachricht beantworten
Autor: Yuri Shirchkov
Datum:  
To: exim-dev
Betreff: [exim-dev] Two questions about Exim functionality
Dear Sirs!



I have 2 questions about Exim functionality:



1) I want to use condition* **verify = reverse_host_lookup*

For example: What come of with HP.COM? Which result I'll get?

Name:    smtpx.hp.com


Addresses: 15.45.89.155, 15.45.89.156, 15.45.89.157, 15.81.168.20

          15.81.168.21, 15.81.176.20, 15.81.176.21, 15.45.89.154


Each lookups I get other order of addresses.



2) Why I can't get a lookup as A0208: pgsql;SELECT ...?

-----------------------------------------------------------------------------

http://exim.directnet.ru/exim-html-4.50/doc/html/FAQ_2.html

Q0208: <http://exim.directnet.ru/exim-html-4.50/doc/html/FAQ.html#TOC122> I
can't get a lookup to work in a domain list. I'm trying this:

domainlist local_domains = @:localhost:${lookup pgsql{SELECT ...

A0208: Does the lookup return a colon separated list of domains? If not,
you are using the wrong kind of lookup. The most common way of using a
lookup in a domain list is something like this:

domainlist local_domains = @:localhost:pgsql;SELECT ...

Using that syntax, if the query succeeds, the domain is considered to be in
the list. The value that is returned is not relevant.

------------------------------------------------------------------------------

I get empty list if use "pgsql;SELECT…"

Instead "pgsql;SELECT ..." I get successes lookup with another way like:

hostlist h_list = ${tr ${lookup pgsql{SELECT ... {\n}{:}}

and

domainlist d_list = ${expand: ${tr ${lookup pgsql{SELECT ... {\n}{:}}



What do you mean? "Using that syntax, if the query succeeds, the domain is
considered to be in the list. *The value that is returned is not relevant."*

What is my mistake that "pgsql;SELECT…" doesn't work?




Best regards

Shirchkov Yuri, Moscow, Russia