[SOLVED] Problem with main.cf

Discussion in 'Mail Gateway: Installation and configuration' started by TT5776, Jul 27, 2018.

  1. TT5776

    TT5776 New Member

    Joined:
    Jul 27, 2018
    Messages:
    4
    Likes Received:
    0
    Hello,
    I'm using Proxmox Mail Gateway and i have a problem, i need a rewriting address.
    Im using the postfix for this.

    I just need to add in main.cf the line :
    Code:
    recipient_canonical_maps = hash:/etc/postfix/recipient_canonical
    and create the file
    Code:
    /etc/postfix/recipient_canonical
    In this files i put my rewriting like :
    Code:
    exemple@domain.com exemple2@domain.com
    Actually its work very well, BUT

    When i restart Proxmox, the line i've add in main.cf actually drop.
    Any idea ? ( /etc/postfix/recipient_canonical stay here its actually just the line in main.cf who's delete at restart. )

    Thanks.
     
  2. dietmar

    dietmar Proxmox Staff Member
    Staff Member

    Joined:
    Apr 28, 2005
    Messages:
    16,123
    Likes Received:
    264
    You need to modify the configuration template file for main.cf instead (see docs).
     
  3. TT5776

    TT5776 New Member

    Joined:
    Jul 27, 2018
    Messages:
    4
    Likes Received:
    0
    Oh nice, sorry i've skip this part of the docs.
    Thanks a lot.
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice