[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cobalt-users] catch all aliases on telnet



Marco Baurdoux wrote:

> The basic syntax for a aliases file for a catch-all adress is:
> 
> #Forward all the email coming to mydomain and not
> #being resolved to any other mailbox to this adress
> @mydomain.com   my_private_adress@xxxxxxxxxxx

This should be in the /etc/virtusertable; the /etc/aliases file is for
aliasing local usernames; see "man aliases" as follows:

              name: addr_1, addr_2, addr_3, . . .

       The  name  is  the  name  to alias, and the addr_n are the
       aliases for that name.  addr_n can  be  another  alias,  a
       local  username,  a  local filename, a command, an include
       file, or an external address.

So your examples are really for /etc/virtusertable.  That said, your
examples don't work properly on RaQs (at least RaQs 1 through 3; I'm not
sure about RaQ4) because the RaQ converts all email to "@domain.com",
upon receipt, to %1@xxxxxxxxxxxxxx", so your example for RaQs should be:

@www.mydomain.com	my_private_address@hotmail

or

@www.mydomain.com	any-real-username-on-this-box

> #Forward a specific e-mail address
> info@xxxxxxxxxxxx   stephanie.abc@xxxxxxxxxxxxxx

Likewise, this should be...

info@xxxxxxxxxxxxxxxx	stephanie.abc@xxxxxxxxxxxxxx

> Once your done editing your aliases file in /etc/aliases don't forget to
> edit the "newaliases" command from the command line.

You should be sure to put any such aliases at the end of
/etc/virtusertable, so they won't be rewritten by the RaQs gui.

Then run:

# makemap hash virtusertable < virtusertable

And ideally you shouldn't have to do this at all; the RaQ should do it
for you when you add usernames, aliases, and forwards to the gui.

Jeff
-- 
Jeff Lasman <jblists@xxxxxxxxxxxxx>
nobaloney.net
P. O. Box 52672, Riverside, CA  92517
voice: (909) 787-8589  *  fax: (909) 782-0205