Answer the question
In order to leave comments, you need to log in
How to block receiving emails from a specific mailbox in Zimbra?
Good afternoon. There is an email address that sends spam, is it possible to block it without blocking the entire domain?
Answer the question
In order to leave comments, you need to log in
Blocking emails from a specific address is easy.
There are three ways:
1) block in postfix settings (Zimbra is based on postfix)
2) block in spamassasin settings (Zimbra uses Spamassasin if antispam is enabled)
3) block in specific user settings (create a filter by logging in to the web interface)
Path # 1 most radical:
### команды нужно выполнять из пользователя zimbra
su - zimbra
### создадим файл если его нет, или добавим строчку
echo "[email protected] REJECT" >> /opt/zimbra/conf/postfix_reject_sender
postmap /opt/zimbra/conf/postfix_reject_sender
### добавим в настройки Zimbra Postfix проверку smtpd_sender_restrictions
zmprov ms $(hostname) zimbraMtaSmtpdSenderRestrictions "check_sender_access lmdb:/opt/zimbra/conf/postfix_reject_sender"
### можем подождать 1-2 минуты, пока zmconfigd применит настройку, либо перезапустить Postfix
zmmtactl restart
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question