Home Forums OS X Server and Client Discussion Mail Postfix alias specifics

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #358734
    bubbleboy
    Participant

    hello, I apologize if this is simple stuff, but i can’t find any docs on it.

    Postfix documentation on forwarding alias only mentions that you can have a name/user sent to another user. so, ‘sales’ goes to ‘bob’ for instance.
    What if you host 6 sites that want a [email protected] address? Can you put in specific addresses like [email protected] goes to ‘bob’ and [email protected] goes to ‘ralph’.

    That would make my life so much easier.

    Thanks!

    Panther 10.3.4 Server/G4 450 graphite

    #358751
    honestpuck
    Participant

    Hi,

    Have you checked out ADRESS_REWRITING_README – I think you’ll find that you want to use canonical rewriting for your purpose, check out canonical(5) as well.

    Tony

    #358774
    bubbleboy
    Participant

    Thanks honestpuck.

    Yikes, I didn’t buy OSXServer so I could become a postfix guru. I would have stuck with X.

    How about something a little simpler anyone? Big Grin

    #358775
    bubbleboy
    Participant

    I found this on the apple server message boards.

    1. Create your “virtual.cf” file. I did this using Terminal. Open Terminal and navigate to Postfix (cd etc/postfix).
    Next open pico from the Terminal prompt. Type: sudo pico
    You will be prompted for your password and once you enter it, Pico will be open.
    Now set up your alias map.
    #website1.com
    [email protected] info_website1
    #website2.com
    [email protected] info_website2
    The “#” should appear before anything that you want to comment. I comment the domain name so that I can keep everything separate.
    The email addresses tell Postfix where to send everything.
    [email protected]” will be sent to a user named “info_website1” and the same thing with “info@website2.”
    Now then save the file. Control-O Save the file as “virtual.cf. Then you can exit Pico.
    2. Now you are ready to tell Postfix where to look for the virtual.cf file.
    You will need to access the “main.cf” file as the root. Type sudo pico main.cf. You will probably have to re-enter your password.
    Add this line to the main.cf file. I did it on a line just before “Trust and Relay Control.”
    virtual_alias_maps = hash:/etc/postfix/virtual.cf
    Save your main.cf and exit pico. Control-O and then Control-X
    3. Now then you need to do two more commands.
    sudo postfix reload
    sudo postmap /etc/postfix/virtual.cf
    This reloads Postfix with you mapping.
    4. Make sure that you have your users setup in “Workgroup Manager”
    Enter the user name: info website1
    then in the short name make it info_website1
    Finish with seting up the mail privileges and saving.

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.

Comments are closed