How to do some tricks with FreeBSD?

How to do some tricks with FreeBSD?

Post by Freebie_Potato_u.. » Sat, 20 Nov 1999 04:00:00



Hello, again

I heard with FreeBSD you can do unlimited email addresses with the same

to one single mail box.  How is that done?  Can someone share the info?
Thanks. Peter.
---------
Saw my posts?  I have been learning the hard way!

 
 
 

How to do some tricks with FreeBSD?

Post by Ray Kohle » Sat, 20 Nov 1999 04:00:00


: Hello, again

: I heard with FreeBSD you can do unlimited email addresses with the same

: to one single mail box.  How is that done?  Can someone share the info?

Open the file /etc/aliases and look at the format.
Say you want addresses "abc", "123", and "989" to deliver mail to user
"you". Then you would put in the file these lines:
abc: you
123: you
989: you

Then save the file and run "newaliases".

--


 
 
 

How to do some tricks with FreeBSD?

Post by Christopher Knigh » Sun, 21 Nov 1999 04:00:00



> Hello, again
> I heard with FreeBSD you can do unlimited email addresses with the same

> to one single mail box.  How is that done?  Can someone share the info?

This isn't a FreeBSD specific ability, you do all the tricky stuff in
sendmail.  The /etc/sendmail.cf that ships with FreeBSD already has the
virtual user rulesets built in, so follow the instructions at this URL for
creating your /etc/mail/virtusertable data file.

http://www.sendmail.org/virtual-hosting.html

-ck

 
 
 

How to do some tricks with FreeBSD?

Post by Raymond Doetje » Mon, 22 Nov 1999 04:00:00


This is not only a FreeBSD trick, this is done on all Unix and Unix like
platforms.

You already had the correct answer, add an alias to the /etc/aliases file and
run newaliases afterwards.

Raymond


> Hello, again

> I heard with FreeBSD you can do unlimited email addresses with the same

> to one single mail box.  How is that done?  Can someone share the info?
> Thanks. Peter.
> ---------
> Saw my posts?  I have been learning the hard way!

 
 
 

How to do some tricks with FreeBSD?

Post by r j huntingt » Mon, 22 Nov 1999 04:00:00


: This is not only a FreeBSD trick, this is done on all Unix and Unix like
: platforms.
:
: You already had the correct answer, add an alias to the /etc/aliases file and
: run newaliases afterwards.

I know this is not fbsd specific, but I'm going to jump in anyway.  ;-D

The /etc/aliases solution is adequate if only one domain is involved.
But what about when virtual domains are involved. If, for example, one has
the virtual domains pastrychef.net and automart.com and wants to use the
alias "sales" with them, then clearly one alias for sales in /etc/aliases
will not suffice.

In such a situation, you need /etc/mail/virtusertable (which fbsd's
sendmail.cf is set up to use by default). The virtusertable file should
have one alias per line in this format



You can also specify default mailboxes for the domains this way

which will cause all mail not otherwise specifically routed to go to that
mailbox. You can even cause mail to forward off-site

Separate the two fields with any whitespace. Run makemap on the file

# cd /etc/mail
# makemap hash virtusertable < virtusertable

Note that you will need a line for each domain in sendmail.cw as well. You
don't need to restart sendmail when you remake the virtusertable map but
you do need to restart sendmail if you change sendmail.cw (or .cf).

also see:       http://www.sendmail.org/m4/features.html