Of course, with something like that it should work:

acl_check_rcpt:

        accept
        hosts           = :
        endpass
        message         = Sending mails from $sender_address_domain is
not permitted
        sender_domains  = +local_domains

        accept
        authenticated   = *
        endpass
        message         = Sending mails from $sender_address_domain is
not permitted
        sender_domains  = +local_domains


Will Harrison wrote:
> Can we restrict mails sent from the local host to only be allowed to 
> have their sender/from address be from a valid domain in /etc/localdomains?
> 
> If a php script is used by a spammer he will usually set the from 
> address to something other than the real domain e.g. 
> [EMAIL PROTECTED] As paypal.com in not listed in localdomains can we 
> reject it?
> 
> I hope I am making sence. Thanks in advance.
> 
> Will
> 

-- 

.O.
..O
OOO

PGP key: http://www.llorien.org/gnupg/key.pub

Insanity: doing the same thing over and over again and expecting
different results.
  - Albert Einstein

Attachment: signature.asc
Description: OpenPGP digital signature

-- 
## List details at http://www.exim.org/mailman/listinfo/exim-users 
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://www.exim.org/eximwiki/

Reply via email to