T
T
TOParh2018-08-22 21:39:38
Mail server
TOParh, 2018-08-22 21:39:38

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

1 answer(s)
O
O3EPCK, 2018-12-22
@Berezoff

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

In general, you should think about connecting an external anti-spam filter. Built-in Zimbra - Amavis + Spamassasin + ClamAV - requires too much attention and fine tuning :)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question