Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Wildcard email addresses

Status
Not open for further replies.

kurtm187

Programmer
Sep 1, 2003
1
0
0
US
Hi,

I want to set up a system so that every email address of a certain class gets sent to the same local user.

I'd prefer it so that the following works:

kurt-email1@mydomain.com => kurt
kurt-xyz@mydomain.com => kurt
etc.

Of course, I'd still like addresses outside of that class to bounce.

If it is easier, I can set it up so that all email coming to a particualr domain, say virt.mydomain.com should go to the one user.

I tried doing this by putting '@virt.mydomain.com kurt' in virtualusertable, but I kept getting errors about a loop.

Any help is greatly appreciated.

Kurt
 
I'm guessing what you really want is a catch-all email account like @mydomain.com

You would have created a loop if in your virtual user table if you had:

@mydomain.com & kirt@mydomain.com

You can't have both in your virtual user table this is what creates the loop.



Blizz
 
You don't need to use the virtusertable if you are only dealing with local mail. Sendmail will use the alias file to handle local mail by default.
I would add a simple entry such as
kurt-email1: kurt
kurt-xyz: kurt
kurt-abc: kurt

then run the newaliases command

Now all mail for the three aliases above will be delivered to the Kurt inbox.


There is no God, only 10001010
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top