Re: [Exim] relay_to_domains based on MX in dnslookup?

Pàgina inicial
Delete this message
Reply to this message
Autor: Odhiambo G. Washington
Data:  
A: Andrew Nelson
CC: exim-users
Assumpte: Re: [Exim] relay_to_domains based on MX in dnslookup?
* Andrew Nelson <andrew__nelson@???> [20031028 08:27]: wrote:
> Hi,
>
> How do I get Exim accepting mail for relaying if my server is listed as
> one of the recipient's MXs ?
>
> I'm trying to replace sendmail with Exim. All is going well, except
> I have a lot of domains that I don't keep track of (and don't want
> to at this stage). Sendmail does DNS lookups to see if the recipient's
> domain has an MX with us in it, and accepts the mail for relaying if
> it does..
>
> I know that a domain could SPAM through us by setting themself
> up with a MX, but I can live with that for now. Can anyone help?
>
> I tried the dnslookup router with self = pass, but I think that only
> works for verifyuing sending domains ?


Start from here:


help mx_any | less
In the Exim Specification document:

In chapter:
               10. DOMAIN, HOST, ADDRESS, AND LOCAL PART LISTS


 .   If a pattern consists of the string "@mx_any" it matches any domain that
     has an MX record pointing to the local host or to any host that is listed
     in "hosts_treat_as_local". The items "@mx_primary" and "@mx_secondary"
     are similar, except that the first matches only when a primary MX target
     is the local host, and the second only when no primary MX target is the
     local host, but a secondary MX target is. 'Primary' means an MX record
     with the lowest preference value - there may of course be more than one
     of them.


If a local part list is indirected to a file (see section 10.3), comments are
handled in the same way as address lists - they are recognized only if the #
is preceded by white space or the start of the line. Otherwise, local part
lists are matched in the same way as domain lists, except that the special
items that refer to the local host ("@", "@[]", "@mx_any", "@mx_primary", and
"@mx_secondary") are not recognized. Refer to section 10.7 for details of the
other available item types.


In chapter:
                            13. MAIN CONFIGURATION


    If this option is set, any host names that match the domain list are
    treated as if they were the local host when Exim is scanning host lists
    obtained from MX records. This option also applies when Exim is matching
    the special items "@mx_any", "@mx_primary", and "@mx_secondary" in a
    domain list (see section 10.7), and when checking the "hosts" option in
    the smtp transport for the local host (see the "allow_localhost" option in
    that transport).


In the Exim Filter Specification document:
There are no matches
In the Exim FAQ document:
There are no matches



        cheers
       - wash
+----------------------------------+-----------------------------------------+
Odhiambo Washington                     . WANANCHI ONLINE LTD (Nairobi, KE)  |
<wash at wananchi dot com>              . 1ere Etage, Loita Hse, Loita St.,  |
GSM: (+254) 722 743 223                 . # 10286, 00100 NAIROBI             |
GSM: (+254) 733 744 121                 . (+254) 020 313 985 - 9             |
+---------------------------------+------------------------------------------+
"Oh My God! They killed init! You Bastards!"
                         --from a /. post