Re: [exim] Checking recipient and wildcard

トップ ページ
このメッセージを削除
このメッセージに返信
著者: Kirill Miazine
日付:  
To: Shaun R
CC: exim-users
題目: Re: [exim] Checking recipient and wildcard
* Kirill Miazine [2010-02-08 20:44]:
> * Shaun R [2010-02-08 09:38]:
> > I have a exim setup that is a redundant MX. The server accepts mail for
> > a list of domains and holds the mail until it can deliver it to the
> > primary server. The problem i'm having is that this server gets a ton
> > of spam because it's accepting mail for any recipient and then hammers
> > the primary server. I modified my check_recipient acl so that it has
> > the following
> >
> >    accept  domains = +relay_domains
> >    local_parts = lsearch;/etc/relaydomains/$domain
> >    verify = recipient

> >
> >
> > Before it only had
> >
> >    accept  domains = +relay_domains

> >
> > This works great as long as i keep /etc/relaydomains/$domain updates but
> > the problem comes with some domains that have catchall type aliases. On
> > the primary server the aliases file has a *: catchall@domain entry.
> > With the modifications above if i add * to the /etc/relaydomains/$domain
> > it does not accept mail for all recipients.
> >
> > Looking for ideas about what i need to do, thanks!
>
> Try
>
>     local_parts = search*;/etc/relaydomains/$domain


Sorry, a typo in the line above. I meant lsearch*; of course.

> (Haven't tried, but should work)


Well, if I tried, I'd notice the typo at least.

-- Kirill