Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Our Archives > General Archives > Servers > Setting up mail aliases?

 
Setting up mail aliases?
Thread Tools
Mac Elite
Join Date: Feb 2001
Location: Vancouver, WA
Status: Offline
Oct 28, 2001, 04:23 PM
 
It would appear that OS X Server 10.x provides no facility for creating mail aliases -- that is, names which are valid email accounts, but don't necessarily correspond to a user account. Such as a webmaster address that can go to whichever user is in charge of the web site, or setting it so I get mail addressed to rroe, rick, rdroe, rickster, or rdr, for example. It appears the only way to do this is to create actual user accounts and set a forwarding address for each. It seems rather wasteful to pollute NetInfo et al with full user entries just for this purpose, and it's unclear whether you can have multi-recipient aliases using this method.

Anybody found a good way to get 10.x's mail server to do this kind of stuff?
Rick Roe
icons.cx | weblog
     
Grizzled Veteran
Join Date: Sep 2000
Location: Springfield, MA
Status: Offline
Oct 28, 2001, 07:34 PM
 
The /aliases directory in NetInfo works for me (fyi i'm using 10.1, not server, but it should be the same).

e.g. I have a directory in there with the property "name" = "webmaster" and the property "members = "pete" (my regular user name), and so all the mail to webmaster@localhost goes to pete@localhost
We hope your rules and wisdom choke you / Now we are one in everlasting peace
-- Radiohead, Exit Music (for a film)
     
Fresh-Faced Recruit
Join Date: Dec 2001
Status: Offline
Dec 6, 2001, 09:36 AM
 
I solved it by changing sendmail.cf.

I don't remember the exact syntax, but searching for 'alias' and uncommenting two lines did the trick.
     
Grizzled Veteran
Join Date: Nov 2001
Location: Oregon
Status: Offline
Jan 16, 2002, 02:10 AM
 
Wouldn't it be possible to use a .procmail recipe on the catch all account? I assume there is a catch all account... i've not actually installed OSXS yet, so i'm just going on what i've done previously on a virtual host on my IHP. If there is, .procmail can definitely handle the task.
     
Forum Regular
Join Date: Jan 2002
Status: Offline
Jan 17, 2002, 12:45 PM
 
Originally posted by Rainy Day:
<STRONG>Wouldn't it be possible to use a .procmail recipe on the catch all account? I assume there is a catch all account... i've not actually installed OSXS yet, so i'm just going on what i've done previously on a virtual host on my IHP. If there is, .procmail can definitely handle the task.</STRONG>
It's not necessary to go to those lengths, though. In your sendmail.cf file, there's a (commented out) line that shows the location of the aliases database; you can change the contents of this file like so (as root):

webmaster: dave
all: dave
fred

and then run sudo newaliases, and you'll be set to go.

If you'd like to verify that an alias will work:

sendmail -bv &lt;alias&gt;

and if it says it's deliverable, you're set
     
Grizzled Veteran
Join Date: Nov 2001
Location: Oregon
Status: Offline
Jan 18, 2002, 01:30 PM
 
Originally posted by pizzasub:
<STRONG>
It's not necessary to go to those lengths, though. In your sendmail.cf file, there's a (commented out) line that shows the location of the aliases database; you can change the contents of this file...</STRONG>
Thanks!
     
Forum Regular
Join Date: Jan 2002
Status: Offline
Jan 18, 2002, 05:46 PM
 
Originally posted by Rainy Day:
<STRONG>

Thanks!</STRONG>
Sure. Hope it helped.
     
 
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 11:33 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2