 |
 |
Setting up mail aliases?
|
 |
|
 |
|
Mac Elite
Join Date: Feb 2001
Location: Vancouver, WA
Status:
Offline
|
|
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?
|
|
|
| |
|
|
|
 |
|
 |
|
Grizzled Veteran
Join Date: Sep 2000
Location: Springfield, MA
Status:
Offline
|
|
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
|
|
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
|
|
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
|
|
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 <alias>
and if it says it's deliverable, you're set 
|
|
|
| |
|
|
|
 |
|
 |
|
Grizzled Veteran
Join Date: Nov 2001
Location: Oregon
Status:
Offline
|
|
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
|
|
Originally posted by Rainy Day:
<STRONG>
Thanks!</STRONG>
Sure. Hope it helped.
|
|
|
| |
|
|
|
 |
 |
|
 |
| |
|
|
|

|
|
 |
Forum Rules
|
 |
 |
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
|
HTML code is Off
|
|
|
|
|
|
 |
 |
 |
 |
|
 |
|