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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

aliases file

Status
Not open for further replies.

dbase77

Technical User
Apr 23, 2002
591
IE
Hi,

Is there a way I could use wildcard in aliases file. Let say I have couple of users in my system. What I want to do is few user will be forwarded to their own mailbox but the rest are forwarded to root user. Eg.

mick:mick@domain.com
tony:tony@domain.com
sara:sara@domain.com
*:root

Can I do this? Anybody has any great idea? Thank you in advance.

regards,
feroz
 
there is no way of doing this with sendmail that i'm aware ...

if you were using pop3, and you were using fetchmail you could get each of the users individually first, then get the remainder as root:
Code:
poll pop3.mail-server.com with protocol POP3:
    user "mick@domain.com" passwd "domainpass" is mick here
poll pop3.mail-server.com with protocol POP3:
    user "tony@domain.com" passwd "domainpass" is tony here
poll pop3.mail-server.com with protocol POP3:
    user "sara@domain.com" passwd "domainpass" is sara here
poll pop3.mail-server.com with protocol POP3:
    user "domain.com" passwd "domainpass" is root here
 
You could use virtusertable rather than aliases. Using your examples, you would do the following:

mick@domain.com mick
tony@domain.com tony
sara@domain.com sara
@domain.com root

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top