Код: Выделить всё
acl_not_smtp:
deny condition = ${if match{$recipients}{helloworld@example\.com}}К сожалению, после перезапуска exim и попытки отправить письмо из командной строки оно было исправно доставлено гуглу. Что можно сделать?
Модераторы: SLEDopit, Модераторы разделов
Код: Выделить всё
acl_not_smtp:
deny condition = ${if match{$recipients}{helloworld@example\.com}}Код: Выделить всё
deny
message = resticted address
condition = ${lookup {$local_part@$domain} lsearch {/etc/exim4/banned} {yes} {no} }acl_check_smtp ведь работает только когда с exim общаются по smtp
The non-SMTP ACLs apply to all non-interactive incoming messages, that is, they apply to batched SMTP as well as to non-SMTP messages. (Batched SMTP is not really SMTP.) Many of the ACL conditions (for example, host tests, and tests on the state of the SMTP connection such as encryption and authentication) are not relevant and are forbidden in these ACLs. However, the sender and recipients are known, so the senders and sender_domains conditions and the $sender_address and $recipients variables can be used. Variables such as $authenticated_sender are also available. You can specify added header lines in any of these ACLs.
The acl_not_smtp_start ACL is run right at the start of receiving a non-SMTP message, before any of the message has been read. (This is the analogue of the acl_smtp_predata ACL for SMTP input.) In the case of batched SMTP input, it runs after the DATA command has been reached. The result of this ACL is ignored; it cannot be used to reject a message. If you really need to, you could set a value in an ACL variable here and reject based on that in the acl_not_smtp ACL. However, this ACL can be used to set controls, and in particular, it can be used to set
The result of this ACL is ignored; it cannot be used to reject a message.