Results 1 to 9 of 9

Thread: SMTP Relay for particular ip's

  1. #1
    Join Date
    Feb 2006
    Location
    Southern California
    Posts
    49
    Rep Power
    9

    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.
    http://www.zimbra.com/forums/showthr...ighlight=relay
    http://www.zimbra.com/forums/showthr...ght=mynetworks

    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.

  2. #2
    Join Date
    Sep 2005
    Posts
    2,103
    Rep Power
    14

    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.
    http://www.zimbra.com/forums/showthr...ighlight=relay
    http://www.zimbra.com/forums/showthr...ght=mynetworks

    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

  3. #3
    Join Date
    Feb 2006
    Location
    Southern California
    Posts
    49
    Rep Power
    9

    Default

    Is that one quote (") on the end of #1?

  4. #4
    Join Date
    Feb 2006
    Location
    Southern California
    Posts
    49
    Rep Power
    9

    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.

  5. #5
    Join Date
    Sep 2005
    Posts
    2,103
    Rep Power
    14

    Default

    Actually, it's two single quotes.

  6. #6
    Join Date
    Sep 2005
    Posts
    2,103
    Rep Power
    14

    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.

  7. #7
    Join Date
    Feb 2006
    Location
    Southern California
    Posts
    49
    Rep Power
    9

    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

  8. #8
    Join Date
    Sep 2005
    Posts
    2,103
    Rep Power
    14

    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"

  9. #9
    Join Date
    Feb 2006
    Location
    Southern California
    Posts
    49
    Rep Power
    9

    Default

    Thanks alot Marc. I got things working with your help. 'preciate it much.

Similar Threads

  1. SMTP Relay
    By adarsh in forum Administrators
    Replies: 4
    Last Post: 11-11-2010, 03:36 AM
  2. need advice on configuring zimbra to work with fax server
    By pheonix1t in forum Administrators
    Replies: 0
    Last Post: 07-11-2007, 07:46 PM
  3. Open Relay Help & Telnet Security Issue
    By OfMacAndMen in forum Installation
    Replies: 17
    Last Post: 07-10-2007, 07:51 PM
  4. Replies: 2
    Last Post: 10-10-2006, 12:45 AM
  5. SMTP Relay
    By alohrer in forum Installation
    Replies: 28
    Last Post: 04-24-2006, 08:35 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •