Re: [Exim] Recipients verification on a relay server

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Odhiambo G. Washington
Date:  
À: exim-users
Sujet: Re: [Exim] Recipients verification on a relay server
* tdn@??? <tdn@???> [20040224 09:05]: wrote:
> Hi there,
>
> I have a server which is an incoming relay for a couple of domains, and
> would like to verify recipients of one of the domains against a flat
> file of valid recipients before accepting the mails. How would I go
> about this?


On a relay server, I think it would be a lot easier to do recipient
callouts in RCPT acl than having to haul a flatfile everytime you make
changes to the domain.

# This statement accepts the incoming recipient address if the domain is
# one of domains for which this host is a relay, but again, only if the address
# can be verified.

accept  domains     = +relay_to_domains
        endpass
        message     = Unrouteable address.
#       verify      = recipient
        verify      = recipient/defer_ok/callout=10s/callout_defer_ok



If that is not satisfactory, then you will have to craft a router (and a
transport to boot) with a suitable condition. Something like below comes
to mind, but untested!!

condition = ${lookup{$local_part}lsearch{/usr/local/etc/exim/$domain}{yes}{no}}




        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