Results 1 to 4 of 4

Thread: /opt/zimbra/postfix/conf/main.cf mynetworks, changes are not permanent

  1. #1
    Join Date
    Jun 2010
    Location
    Lima - Peru
    Posts
    20
    Rep Power
    5

    Default /opt/zimbra/postfix/conf/main.cf mynetworks, changes are not permanent

    Hi Forun

    When I do (as root and as zimbra) some changes in the file
    /opt/zimbra/postfix/conf/main.cf
    and add My Public IP (pub.lic.Ip.add/32)

    mynetworks = 127.0.0.0/8 192.168.0.0/24 pub.lic.Ip.add/32
    After, I do (only as zimbra user)
    zmcontrol stop && zmcontrol start

    but when I see after the file the file takes your initial state. do not appear my public IP..
    I can't send a mail using a client being out of the network or from the internet using zimbra client or other client.


    What Should I do?


    Best Regards

  2. #2
    Join Date
    Nov 2007
    Location
    AZ, USA
    Posts
    205
    Rep Power
    8

    Default

    the file /opt/zimbra/postfix/conf/main.cf is recreated on each restart of zimbra.

    Try changing it through the ADMIN interface.

    or
    Code:
    /opt/zimbra/bin/zmprov modifyserver $ServerName zimbraMtaMyNetworks '127.0.0.0/8 192.168.0.0/24 pub.lic.Ip.add/32'

  3. #3
    phoenix is offline Zimbra Consultant & Moderator
    Join Date
    Sep 2005
    Location
    Vannes, France
    Posts
    23,587
    Rep Power
    58

    Default

    Quote Originally Posted by eduardo.mejia View Post
    When I do (as root and as zimbra) some changes in the file
    and add My Public IP (pub.lic.Ip.add/32)
    Do not add your public IP address in the mynetworks setting, it's not necessary and you're setting yourself up for a security problem.

    You can relay mails from an external IP address if the clients Authenticate against your Zimbra server and use port 587 (the correct Submission port) to submit mail. There are many threads that cover this in the forums if you search for them.
    Regards


    Bill


    Acompli: A new adventure for Co-Founder KevinH.

  4. #4
    Join Date
    Jun 2010
    Location
    Lima - Peru
    Posts
    20
    Rep Power
    5

    Default

    Hi Forum.
    I could do the changes using the web interface in the section MTA.
    But finally my problem of RELAY ACCESS DENIED be solved when I change the Public DNS and PTR to my Server Public IP.
    Because when I send a mail to an internal account the mail arrieve without problems.


    Thank You Very Much.
    Best Regards/

Similar Threads

  1. Replies: 11
    Last Post: 07-31-2011, 01:10 PM
  2. Permanent Autoresponder
    By julioc8a in forum Users
    Replies: 5
    Last Post: 06-05-2008, 09:46 AM
  3. Replies: 9
    Last Post: 10-11-2007, 05:22 AM
  4. postfix mynetworks
    By msf004 in forum Installation
    Replies: 0
    Last Post: 08-04-2007, 11:09 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
  •