Как в Postfix настроить автоматическое удаление всех писем поступающих на ящик

zexis
На сайте с 09.08.2005
Offline
388
787

Подскажите, пожалуйста, как такое сделать в Postfix?

Что бы письма приходящие на заданный емейл сразу удалялись?

ОС Ubuntu.

Помню в Exim такая возможность была.

izbushka
На сайте с 08.06.2007
Offline
110
#1

Способов много. Можно сделать через smtpd_recшpient_restriction:

smtpd_recipient_restrictions = check_recipient_access regexp:$base/checks/recipient_access

И в recipient_access

Написать чтото вроде

/no-reply@your.domain.com/i DISCARD

DISCARD

DISCARD optional text...
Claim successful delivery and silently discard the
message. Log the optional text if specified, oth-
erwise log a generic message.

Note: this action currently affects all recipients
of the message. To discard only one recipient
without discarding the entire message, use the
transport(5) table to direct mail to the discard(8)
service.

Авторизуйтесь или зарегистрируйтесь, чтобы оставить комментарий