# Проверка наличия почтового ящика и домена получателя в почтовом ящике отправителя ifelse(confCHECK_SENDER_MAILBOX, `REJECT', `dnl deny condition = ${if match{$sender_address_local_part}{\N(?i)^.*\N$local_part\N.*$\N}{yes}{no}} condition = ${if match{$sender_address_local_part}{\N(?i)^.*\N$domain\N.*$\N}{yes}{no}} message = Access denied. Sender unknown log_message = Invalid sender mailbox: there are recipient mailbox and domain in sender mailbox ')dnl ifelse(confCHECK_SENDER_MAILBOX, `WARN', `dnl warn condition = ${if match{$sender_address_local_part}{\N(?i)^.*\N$local_part\N.*$\N}{yes}{no}} condition = ${if match{$sender_address_local_part}{\N(?i)^.*\N$domain\N.*$\N}{yes}{no}} log_message = Invalid sender mailbox: there are recipient mailbox and domain in sender mailbox add_header = X-Warn-Sender-Mailbox: there are recipient mailbox and domain in sender mailbox ')dnl