Home › Forums › OS X Server and Client Discussion › Mail › Postfix alias specifics
- This topic has 3 replies, 2 voices, and was last updated 20 years, 8 months ago by
bubbleboy.
-
AuthorPosts
-
August 9, 2004 at 6:24 pm #358734
bubbleboy
Participanthello, 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
August 10, 2004 at 11:31 pm #358751honestpuck
ParticipantHi,
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
August 13, 2004 at 10:24 pm #358774bubbleboy
ParticipantThanks 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?
August 13, 2004 at 10:38 pm #358775bubbleboy
ParticipantI 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. -
AuthorPosts
- You must be logged in to reply to this topic.
Comments are closed