Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Zimbra Collaboration Suite > Administrators

Welcome to the Zimbra :: Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 09-22-2009, 04:58 AM
Member
 
Posts: 11
Lightbulb Restrict Postfix Recipients

Hi
I was looking for some process I can restrict senders to send mails to some distribution list except allowed ones. I found this link
RestrictPostfixRecipients - Zimbra :: Wiki

I am using zimbra 5.0.2
Release 5.0.2_GA_1975.RHEL5_20080130221917 RHEL5 FOSS edition

The steps mentioned in the wiki is not working. Whenever I follow the steps zimbra stops sending mails shows "451 4.3.5 Server configuration error"
Any suggestions how to make the restriction happen.

Thank you in anticipation
Reply With Quote
  #2 (permalink)  
Old 09-22-2009, 05:09 AM
Zimbra Consultant & Moderator
 
Posts: 20,313
Default

Quote:
Originally Posted by kaushik209 View Post
The steps mentioned in the wiki is not working. Whenever I follow the steps zimbra stops sending mails shows "451 4.3.5 Server configuration error"
Any suggestions how to make the restriction happen.
The wiki article does work, you probably have made some error - recheck your implementation of those instructions. You could also search the forums for some further details.
__________________
Regards


Bill
Reply With Quote
  #3 (permalink)  
Old 09-22-2009, 05:13 AM
Member
 
Posts: 11
Default

Thanks Bill......but I have done it 8 times..checked every line...............I have then implemented it on another zimbra...but the results are same.
Reply With Quote
  #4 (permalink)  
Old 09-22-2009, 05:21 AM
Zimbra Consultant & Moderator
 
Posts: 20,313
Default

Quote:
Originally Posted by kaushik209 View Post
Thanks Bill......but I have done it 8 times..checked every line...............I have then implemented it on another zimbra...but the results are same.
Well, it works for other people on the forums. You'd better post some more information about what, exactly, you've done including examples and some further details from the log files.
__________________
Regards


Bill
Reply With Quote
  #5 (permalink)  
Old 09-22-2009, 06:10 AM
Member
 
Posts: 11
Default

Well..firstly I created /opt/zimbra/postfix/conf/permitted_senders and made below entry
localhost OK
abc.com OK
zimbra.abc.com OK

Then I created /opt/zimbra/postfix/conf/protected_recipients and made below entries
xyz@abc.com permitted_senders_list

Then I made a bash script in /opt/zimbra/postfix/conf/update_protected_recipients with below entries
#!/bin/bash
echo "rebuild permitted_senders"
postmap /opt/zimbra/postfix/conf/permitted_senders
echo "rebuild protected_recipients"
postmap /opt/zimbra/postfix/conf/protected_recipients

And made this script executable by chmod 755
and executed which made two files under /opt/zimbra/postfix/conf
1)permitted_recipients.db
2)protected_recipients.db

Then I made below entries in /opt/zimbra/conf/main.cf
permitted_senders_list = check_sender_access hash:/opt/zimbra/postfix/conf/permitted_senders, reject
smtpd_restriction_classes = permitted_senders_list

Then edited /opt/zimbra/conf/postfix_recipient_restrictions.cf and made first line entry
check_recipient_access hash:/opt/zimbra/postfix/conf/protected_recipients

Then I restarted postfix by
postfix reload

After this I tried to send mail from webmail of any user of abc.com to the distribution list but everytime it showed one error msg of

"The following recipient(s) cannot be reached:

'xyz@abc.com' on 22/09/2009 10:34 AM

451 4.3.5 Server configuration error"
Please check If i have done anything wrong.
Reply With Quote
  #6 (permalink)  
Old 09-22-2009, 06:27 AM
Member
 
Posts: 11
Default

Sep 22 03:30:26 zimbraxxx postfix/smtp[8059]: 5A2B414A50CD: to=<xyz@abc.com>, relay=zimbrax.abc.com[xxx.xxx.xxx.xxx]:25, delay=73490, delays=73489/0.96/0.05/0.04, dsn=4.3.5, status=deferred (host zimbrax.abc.com[xxx.xxx.xxx.xxx] said: 451 4.3.5 Server configuration error (in reply to RCPT TO command))

This is what I received from logs
Reply With Quote
  #7 (permalink)  
Old 05-04-2010, 03:09 AM
Starter Member
 
Posts: 1
Default

In version 6 is this the only way to do this? It's not possible to limit the senders within the UI?
Reply With Quote
  #8 (permalink)  
Old 07-27-2010, 04:42 PM
Active Member
 
Posts: 26
Default Hi!

I have this setup working in my network, more precisely 12 Zimbra servers, both open source and network edition but, I'll review the entire procedure to help you guys...
Reply With Quote
  #9 (permalink)  
Old 07-27-2010, 11:17 PM
Active Member
 
Posts: 26
Default Hi!

Guys, this procedure have some problems with the new versions of the Zimbra, me and my expert in Postfix's man are working to fix it immediatly.
Reply With Quote
  #10 (permalink)  
Old 07-27-2010, 11:18 PM
Active Member
 
Posts: 26
Default Oops!

Wrong post!! Sorry!
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

blog.zimbra.com




 

SEO by vBSEO ©2011, Crawlability, Inc.