block out e-mails

Discuss your pilot or production implementation with other Zimbra admins or our engineers.
Post Reply
zgokan
Advanced member
Advanced member
Posts: 171
Joined: Sun Apr 17, 2016 8:58 am

block out e-mails

Post by zgokan »

Hello

I want to block out e-mails. I will only do this for certain email addresses.
such as: xxx@gmail.com , yy@hotmial.com
phoenix
Ambassador
Ambassador
Posts: 27272
Joined: Fri Sep 12, 2014 9:56 pm
Location: Liverpool, England

Re: block out e-mails

Post by phoenix »

Regards

Bill

Rspamd: A high performance spamassassin replacement

Per ardua ad astra
zgokan
Advanced member
Advanced member
Posts: 171
Joined: Sun Apr 17, 2016 8:58 am

Re: block out e-mails

Post by zgokan »

Hello

I want to block outgoing e-mails, not incoming e-mails.
phoenix
Ambassador
Ambassador
Posts: 27272
Joined: Fri Sep 12, 2014 9:56 pm
Location: Liverpool, England

Re: block out e-mails

Post by phoenix »

zgokan wrote:Hello

I want to block outgoing e-mails, not incoming e-mails.
Then you should have said that in the first place but the question I asked earlier is still valid. Is the search function of the internet broken? Try doing some research on these forums and the internet as most questions asked here have already been answered.

https://www.startpage.com/do/dsearch?qu ... ge=english
Regards

Bill

Rspamd: A high performance spamassassin replacement

Per ardua ad astra
zgokan
Advanced member
Advanced member
Posts: 171
Joined: Sun Apr 17, 2016 8:58 am

Re: block out e-mails

Post by zgokan »

Hello

This method is not working.

Mydomain: a.com
Restictdomain: b.com

Code: Select all

echo "aaa@a.com" restrict_sender" > /opt/zimbra/postfix/conf/restict_senders 
postmap /opt/zimbra/postfix/conf/restict_senders

touch /opt/zimbra/postfix/conf/restrict_recipients 
postmap /opt/zimbra/postfix/conf/restrict_recipients 

vim /opt/zimbra/conf/zmconfigd.cf
POSTCONF smtpd_restriction_classes restrict_sender 
POSTCONF restrict_sender FILE postfix_restrict_sender.cf 

vim  /opt/zimbra/conf/zmconfigd/smtpd_sender_restrictions.cf
check_sender_access lmdb:/opt/zimbra/postfix/conf/restict_senders

vim /opt/zimbra/conf/sender_recipients
bbb@b.com

vim /opt/zimbra/common/conf/main.cf
smtpd_restriction_classes = restrict_sender 
restrict_sender = check_recipient_access lmdb:/opt/zimbra/conf/sender_recipients, reject 

cd /opt/zimbra/conf 
echo "check_recipient_access lmdb:/opt/zimbra/conf/sender_recipients, reject" >> postfix_restrict_sender.cf 

zmmtactl restart

Code: Select all

zmcontrol -v
Release 8.7.0_GA_1659.RHEL7_64_20160628202714 RHEL7_64 FOSS edition.
Article ID: https://wiki.zimbra.com/index.php?title ... ll_domains
Post Reply