Page 1 of 1

block out e-mails

Posted: Sat Aug 11, 2018 11:12 am
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

Re: block out e-mails

Posted: Sat Aug 11, 2018 11:18 am
by phoenix

Re: block out e-mails

Posted: Sat Aug 11, 2018 12:10 pm
by zgokan
Hello

I want to block outgoing e-mails, not incoming e-mails.

Re: block out e-mails

Posted: Sat Aug 11, 2018 12:15 pm
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

Re: block out e-mails

Posted: Sat Aug 11, 2018 2:37 pm
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