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

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 08-19-2008, 09:58 PM
Loyal Member
 
Posts: 95
Default Trust IP for receiving but not relaying

I've got a couple of IPs that I need to receive mail for, but they are blacklisted on several RBL lists which I use and want to keep active.

I can add them as trusted MTAs, and can receive mail, but I'm a bit reluctanct to do this as I don't want them to be able to relay mail, just send mail without being blocked because of RBL.

I've done some searching and found the that problem lies with Postfix, and not Spamassasin as it is being rejected completely before being received. Some more searching has lead me to a good solution How To Whitelist Hosts/IP Addresses In Postfix | HowtoForge - Linux Howtos and Tutorials which involves creating a whitelist file and modifying the main.cf file to read the whitelist file.

Problem is, modifying the main.cf file seems to be not recommended and instead needs to be done with zmprov. What I'd like to do is add something similar to
Code:
check_client_access hash:/etc/postfix/rbl_override,
to smtpd_recipient_restrictions.

Is this good idea or even supported?
__________________
Mark Hawkins

Medalist
Reply With Quote
  #2 (permalink)  
Old 08-19-2008, 10:46 PM
Zimbra Consultant & Moderator
 
Posts: 20,316
Default

Quote:
Originally Posted by gtr33m View Post
I can add them as trusted MTAs, and can receive mail, but I'm a bit reluctanct to do this as I don't want them to be able to relay mail, just send mail without being blocked because of RBL.
Do NOT add them to the Trusted MTA field, that's not what it's for. Search the wiki for 'whitelist' for details on how to whitelist an IP or email address.
__________________
Regards


Bill
Reply With Quote
  #3 (permalink)  
Old 11-11-2008, 09:48 AM
Intermediate Member
 
Posts: 16
Default

Add to /opt/zimbra/conf/postfix_recipient_restrictions.cf, before the RBL entries:
Code:
check_client_access hash:/opt/zimbra/conf/rbl_override
Edit the file with the IPs you need to whitelist, postmap it and postfix reload as the zimbra user.

Works for me, but be aware that the postfix_recipient_restrictions.cf file will probably be overwritten on zimbra upgrades, so keep a backup copy.
Reply With Quote
  #4 (permalink)  
Old 11-11-2008, 11:12 AM
Moderator
 
Posts: 7,928
Default

nice hint, did not really know about the RBL override. thanks and kudos
__________________
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.