Re: [exim] Restrict sending to hotmail from non network addr…

Etusivu
Poista viesti
Vastaa
Lähettäjä: Stephen Gran
Päiväys:  
Vastaanottaja: exim-users
Aihe: Re: [exim] Restrict sending to hotmail from non network address
On Sun, Jun 21, 2009 at 06:25:44PM -0400, Frank DeChellis said:
> >  deny    message       = Cannot send mail from IAW server to certain domains
> if you are not connected to IAW Network IAW-Error-991
> >            domains       = +picky_domains
> >            hosts         = !+relay_from_hosts

> >
> > Picky_domains being a file that has hotmail.com listed in it.
> >
> > Relay_from_hosts being a list of IPs permitted to use my SMTP
> >
>
> When I implement the script above, I get the following in my
> /var/log/exim/main:
>
> 2009-06-21 11:48:56 1MIPHs-0001ql-9O H=snt0-omc2-s35.snt0.hotmail.com
> [65.55.90.110] F=<xxxxxx@???> temporarily rejected after DATA:
> cannot test domains condition in DATA ACL


Consider the following SMTP transaction:

MAIL FROM:<me@???>
RCPT TO:<you@picky_domain>
RCPT TO:<someone@???>

This is why the domains condition isn't valid in the DATA acl. There's
a lot of notes out there about how to handle this, but basically, you'll
want to implement some sort of profile setup and only handle one profile
type at a time. Then you can use the profile condition in the DATA acl.

There are some of these geared towards spamassassin that should be easy
enough to adapt for what you want.

Cheers,
--
--------------------------------------------------------------------------
|  Stephen Gran                  | Today is the first day of the rest of   |
|  steve@???             | your life.                              |
|  http://www.lobefin.net/~steve |                                         |

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