Hello Team,
Is it possible to restrict sending mails to the gmail for all users zimbra. Except Gmail we need to send emails to other domains.
Restict Outgoing Mails
Re: Restict Outgoing Mails
you can blacklist gmail domains
-
- Posts: 41
- Joined: Sat Sep 13, 2014 3:54 am
- Location: Indonesia
- Contact:
Re: Restict Outgoing Mails
These following steps is for blocking gmail.com as recipient.
(run as zimbra user)
- Edit recipient restriction file
- Add this line before permit_sasl_authenticated
note: you may change lmdb with hash if you are using old zimbra version
- Edit reject list file with domain/user that you want to block as recipient
- create db file for reject list file
- Reload zimbra mta service
(run as zimbra user)
- Edit recipient restriction file
Code: Select all
vim /opt/zimbra/conf/zmconfigd/smtpd_recipient_restrictions.cf
Code: Select all
check_recipient_access lmdb:/opt/zimbra/conf/reject_list
- Edit reject list file with domain/user that you want to block as recipient
Code: Select all
vim /opt/zimbra/conf/reject_list
Code: Select all
gmail.com REJECT
Code: Select all
postmap /opt/zimbra/conf/reject_list
Code: Select all
zmmtactl reload