Re: [exim] RCPT ACL being ignored from php

Góra strony
Delete this message
Reply to this message
Autor: Jakob Hirsch
Data:  
Dla: Mike Packer, exim users
Temat: Re: [exim] RCPT ACL being ignored from php
Mike Packer, 2010-06-30 01:27:

> I have the following rule in my RCPT TO ACL: require recipients =
> lsearch*@;/etc/exim/rcptto
>
> it work great connecting to the server via SMTP but when php calls
> exim -ti top send mail it ignores this rule. I need this rule to
> apply to all mail being sent.


acl_smtp_rcpt is only used with smtp (as the name suggests). You can use
acl_not_smtp, but that won't help you much, because there is no way to
reject individual recipients, only the whole message.
I guess this is some spam prevention for a web mail form (it's always a
good idea to tell why you want something, btw). So you could just reject
the whole message if it contains unwanted recipients, e.g. with

reject
! condition = ${if forall{<, $recipients} {bool{ ${lookup {$item}
lsearch {/path/to/okuser} {yes}{no}}}} }
log_message = $recipients contains unwanted recipient(s)