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 03-10-2006, 11:52 AM
Active Member
 
Posts: 49
Default SMTP Relay for particular ip's

Hi. I'm trying to allow smtp relay for one ip address. I've edited the main.cf file in /opt/zimbra/postfix/conf. Once i add the ip to mynetworks = and restart postfix, the zimbra webmail stops functioning. if i remove the mynetworks line from main.cf, the webmail works again.

Reading the forums, i used the following post as examples.
SMTP relay for localhost and RFC1918 subnets
smtp access to network

I tried the zmprov mcf zimbraMtaMyNetworks command which also stopped the webmail from functioning. I see the edit it makes in main.cf but when i remove the edit and restart postfix, the mynetworks edit reappears in main.cf.

So my question is two fold, 1. How do i undo my zmprov mcf zimbraMtaMyNetworks command, and 2. how can i allow relay from one public ip while keeping webmail functionality? Also, is it necessary to include the netmask with the ip, or can i just specify a single ip address? Thank you for any assistance.
Reply With Quote
  #2 (permalink)  
Old 03-10-2006, 11:53 AM
Zimbra Employee
 
Posts: 2,103
Default

Quote:
Originally Posted by DMRDave
Hi. I'm trying to allow smtp relay for one ip address. I've edited the main.cf file in /opt/zimbra/postfix/conf. Once i add the ip to mynetworks = and restart postfix, the zimbra webmail stops functioning. if i remove the mynetworks line from main.cf, the webmail works again.

Reading the forums, i used the following post as examples.
SMTP relay for localhost and RFC1918 subnets
smtp access to network

I tried the zmprov mcf zimbraMtaMyNetworks command which also stopped the webmail from functioning. I see the edit it makes in main.cf but when i remove the edit and restart postfix, the mynetworks edit reappears in main.cf.

So my question is two fold, 1. How do i undo my zmprov mcf zimbraMtaMyNetworks command, and 2. how can i allow relay from one public ip while keeping webmail functionality? Also, is it necessary to include the netmask with the ip, or can i just specify a single ip address? Thank you for any assistance.
1 - zmprov mcf zimbraMtaMyNetworks ''
2 - postconf mynetworks

Add new.network.ip.range to the end of the return value from the postconf command, and set zimbraMtaMyNetworks to that value
Reply With Quote
  #3 (permalink)  
Old 03-10-2006, 12:04 PM
Active Member
 
Posts: 49
Default

Is that one quote (") on the end of #1?
Reply With Quote
  #4 (permalink)  
Old 03-10-2006, 12:19 PM
Active Member
 
Posts: 49
Default

Doing #1 gives me this in my main.cf after a postfix reload.

mynetworks = ?

And the webmail doesn't work. I'm just trying to get back to where I started where my main.cf file had no mention of mynetworks. Thanks.
Reply With Quote
  #5 (permalink)  
Old 03-10-2006, 01:40 PM
Zimbra Employee
 
Posts: 2,103
Default

Actually, it's two single quotes.
Reply With Quote
  #6 (permalink)  
Old 03-10-2006, 01:41 PM
Zimbra Employee
 
Posts: 2,103
Default

Instead of clearing it, and requerying, you can get the default this way:

postconf -d mynetworks

Then append your network to that, reset the zimbraMtaMyNetworks attribute, and restart postfix.
Reply With Quote
  #7 (permalink)  
Old 03-10-2006, 02:21 PM
Active Member
 
Posts: 49
Default

Quote:
Originally Posted by marcmac
Then append your network to that, reset the zimbraMtaMyNetworks attribute, and restart postfix.
Sorry Marc, I'm new to postfix. What do you mean by append my network to the values given by postconf -d mynetworks and reset the zimbraMtaMyNetworks attribute?

zimbra@dmrmail01:~> postconf -d mynetworks
mynetworks = 127.0.0.0/8 69.28.108.0/27
Reply With Quote
  #8 (permalink)  
Old 03-10-2006, 02:54 PM
Zimbra Employee
 
Posts: 2,103
Default

What IP do you want to relay mail for?

If it's 1.2.3.4, set zimbraMtaMyNetworks:

zmprov mcf zimbraMtaMyNetworks "127.0.0.0/8 69.28.108.0/27 1.2.3.4/32"
Reply With Quote
  #9 (permalink)  
Old 03-10-2006, 03:09 PM
Active Member
 
Posts: 49
Default

Thanks alot Marc. I got things working with your help. 'preciate it much.
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.