Issues when try block incoming domains

Discuss your pilot or production implementation with other Zimbra admins or our engineers.
Post Reply
User avatar
pablo.canales
Posts: 4
Joined: Tue Aug 08, 2017 10:21 pm

Issues when try block incoming domains

Post by pablo.canales »

Hi, y follow this tutorial https://blog.zimbra.com/2017/09/block-i ... s-domains/ to block domain 'qq.com' in my Zimbra Server but doesn't work.
I created the file /opt/zimbra/common/conf/postfix_reject_sender and in the file enter this:

Code: Select all

qq.com REJECT
I saved the file and execute the command:

Code: Select all

zmprov ms 'mail.mydomain.com' +zimbraMtaSmtpdSenderRestrictions "check_sender_access lmdb:/opt/zimbra/common/conf/postfix_reject_sender"
and postmap it

Code: Select all

/opt/zimbra/common/sbin/postmap /opt/zimbra/common/conf/postfix_reject_sender
I wait some minute to do this:

Code: Select all

zmmtactl restart

Code: Select all

Rewriting configuration files...done.
Stopping saslauthd...done.
Starting saslauthd...done.
/postfix-script: refreshing the Postfix mail system
But doesn't work
I tried to do again the process but when do:

Code: Select all

zmprov ms 'mail.mydomain.com' +zimbraMtaSmtpdSenderRestrictions "check_sender_access lmdb:/opt/zimbra/common/conf/postfix_reject_sender"
The server tell me this:

Code: Select all

ERROR: account.INVALID_ATTR_VALUE (invalid attr value: invalid attr value - unable to modify attributes: ldap host=mail.mydomain.com:389: attribute 'zimbraMtaSmtpdSenderRestrictions' cannot have multiple values
I'm stuck :? Someone can help me?
DennisT
Posts: 37
Joined: Fri May 19, 2017 11:07 pm

Re: Issues when try block incoming domains

Post by DennisT »

I'm stuck with the same issue. Google isn't helping.
DennisT
Posts: 37
Joined: Fri May 19, 2017 11:07 pm

Re: Issues when try block incoming domains

Post by DennisT »

I was able to work around this issue another way. See this thread:
viewtopic.php?f=15&t=67078&p=293731#p293731
Post Reply