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 06-08-2011, 02:32 AM
Elite Member
 
Posts: 469
Default How to limit connections to known senders

At present all of our email goes through external spam filters before delivery to us. So I know the 3 possible ip addresses that will connect to our server to deliver emails.

We have a new requirement for SSL verified email from a few clients. I am adding a new sub-domain MX record for these people to allow them to send email directly to us.

What I want to do is to limit incoming connections on port 25 to a known list of senders - either by IP address or domain name - whichever is easiest and most efficient to manage.

What is the best way to go about this ?

Is there a Postfix lookup I can setup ?

Or should I use iptables ?

Or something different ?

Thanks in advance.
Reply With Quote
  #2 (permalink)  
Old 06-08-2011, 03:11 AM
Zimbra Consultant & Moderator
 
Posts: 20,314
Default

As your Zimbra server is only receiving mail from your spam filters I would have thought that a firewall would be the easiest thing to use (and not cause any upgrade problems). Is the Zimbra server not behind a firewall already?
__________________
Regards


Bill
Reply With Quote
  #3 (permalink)  
Old 06-08-2011, 03:40 AM
Elite Member
 
Posts: 469
Default

Quote:
Originally Posted by phoenix View Post
As your Zimbra server is only receiving mail from your spam filters I would have thought that a firewall would be the easiest thing to use (and not cause any upgrade problems). Is the Zimbra server not behind a firewall already?
That is the current situation.

But the new requirement is for up to 20 companies to send mail directly to us bypassing the spam filters - as they need to see a validated SSL certificate for our domain.

so mx for mydomain.xy will point to the remote spam filters, and
mx for direct.mydomain.xy will point directly to our server.

So, in future there could be up to 40-60 mail servers connecting directly to us
Reply With Quote
  #4 (permalink)  
Old 06-08-2011, 04:56 AM
Zimbra Consultant & Moderator
 
Posts: 20,314
Default

I'm assuming that mail from the external server will be from specific domains so what about Restrict Postfix Recipients, I also assume you'll be adding the smtpd_reject_unlisted_recipient (if you don't already have it)?
__________________
Regards


Bill
Reply With Quote
  #5 (permalink)  
Old 06-08-2011, 05:44 AM
Elite Member
 
Posts: 469
Default

Bill,

Thanks. That is very useful for further restricting the access. Just set it up and tested it for a few users, and it works great.

If I understand it rightly, these adjustments to main.cf have to be re-added any time I upgrade. Is that correct ?

Is it safe to have the recipients/senders/tls files in the zimbra directory structure ? Will they not get blown away by an upgrade ? I had placed my tls_polity_table file in /etc as I was afraid it would get deleted during an upgrade.

At a basic level - would I be best to add iptables rules to allow only the 40-60 known IP addresses connect to the server. Or, is there also a postfix lookup for allowed sending hosts I could use ?

Thanks again.
Reply With Quote
  #6 (permalink)  
Old 06-09-2011, 05:14 AM
Moderator
 
Posts: 2,207
Default

Hi Vincent,

Quote:
Originally Posted by liverpoolfcfan View Post
If I understand it rightly, these adjustments to main.cf have to be re-added any time I upgrade. Is that correct ?
Yes.

Quote:
Originally Posted by liverpoolfcfan View Post
Is it safe to have the recipients/senders/tls files in the zimbra directory structure ? Will they not get blown away by an upgrade ? I had placed my tls_polity_table file in /etc as I was afraid it would get deleted during an upgrade.
I guess if you create a new folder in /opt/zimbra and put everything in it, it won't be deleted.
But (I've learnt the hard way) if you put something in /opt/zimbra/jetty/whatever for example, it gets deleted on update...

Quote:
Originally Posted by liverpoolfcfan View Post
At a basic level - would I be best to add iptables rules to allow only the 40-60 known IP addresses connect to the server. Or, is there also a postfix lookup for allowed sending hosts I could use ?
You can add them to "mynetworks"?
ZimbraMtaMyNetworks - Zimbra :: Wiki
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.