Chris Blessing wrote:
> Is there any way to set up a user's email address who has a virtual
> hosting account (i.e. they have foo.com and I am bleh.com and they want
> [EMAIL PROTECTED] to go to their user account) without using procmail?
Use the virtusertable feature. From the cf/README file:
virtusertable A domain-specific form of aliasing, allowing multiple
virtual domains to be hosted on one machine. For example,
if the virtuser table contained:
[EMAIL PROTECTED] foo-info
[EMAIL PROTECTED] bar-info
@baz.org [EMAIL PROTECTED]
then mail addressed to [EMAIL PROTECTED] will be sent to the
address foo-info, mail addressed to [EMAIL PROTECTED] will be
delivered to bar-info, and mail addressed to anyone at
baz.org will be sent to [EMAIL PROTECTED] The username
from the original address is passed as %1 allowing:
@foo.org [EMAIL PROTECTED]
meaning [EMAIL PROTECTED] will be sent to [EMAIL PROTECTED]
All the host names on the left hand side (foo.com, bar.com,
and baz.org) must be in $=w. The default map definition is:
hash -o /etc/virtusertable
A new definition can be specified as the second argument of
the FEATURE macro, such as
FEATURE(`virtusertable', `dbm -o /etc/mail/virtusers')
Look for the line beginning with `Kvirtuser' in sendmail.cf. This will
tell you the type and location of the file. You compile it using
`makemap', e.g.
makemap hash /etc/virtusertable < /etc/virtusertable.txt
--
Glynn Clements <[EMAIL PROTECTED]>
-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to [EMAIL PROTECTED]