[prev in list] [next in list] [prev in thread] [next in thread] 

List:       exim-users
Subject:    Re: [exim] Restrict sending to hotmail from non network address
From:       Stephen Gran <steve () lobefin ! net>
Date:       2009-06-22 1:15:40
Message-ID: 20090622011540.GA13920 () www ! lobefin ! net
[Download RAW message or body]

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@hotmail.com> temporarily rejected after DATA:
> cannot test domains condition in DATA ACL

Consider the following SMTP transaction:

MAIL FROM:<me@hotmail.com>
RCPT TO:<you@picky_domain>
RCPT TO:<someone@other.domain>

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@lobefin.net             | your life.                              |
|  http://www.lobefin.net/~steve |                                         |
 --------------------------------------------------------------------------

-- 
## List details at http://lists.exim.org/mailman/listinfo/exim-users 
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic