block out e-mails

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

block out e-mails

Postby zgokan » Sat Aug 11, 2018 11:12 am

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: 25722
Joined: Fri Sep 12, 2014 9:56 pm

Re: block out e-mails

Postby phoenix » Sat Aug 11, 2018 11:18 am

Regards

Bill

Rspamd: A high performance spamassassin replacement

If you'd like to see this implemented in a future version of ZCS then please vote on Bugzilla entries 97706 & 108168
zgokan
Advanced member
Advanced member
Posts: 98
Joined: Sun Apr 17, 2016 8:58 am

Re: block out e-mails

Postby zgokan » Sat Aug 11, 2018 12:10 pm

Hello

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

Re: block out e-mails

Postby phoenix » Sat Aug 11, 2018 12:15 pm

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

If you'd like to see this implemented in a future version of ZCS then please vote on Bugzilla entries 97706 & 108168
zgokan
Advanced member
Advanced member
Posts: 98
Joined: Sun Apr 17, 2016 8:58 am

Re: block out e-mails

Postby zgokan » Sat Aug 11, 2018 2:37 pm

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

Return to “Administrators”

Who is online

Users browsing this forum: No registered users and 34 guests