Solved

Wildcard within an e-mail alias, possible?

Posted on 2003-11-07
9
647 Views
Last Modified: 2013-12-15
What I want to do is setup my linux box so
{everything}.ben@mydomain.com
ends up in my mail box.

Hence
test.ben@mydomain.com
foo.ben@mydomain.com
bar.ben@mydomain.com

Would all end up in my mailbox without me specifically defining them.
like   *.ben@mydomain.com

I’m using sendmail/fetchmail

Is this possible?
I’ve tried      *.ben : {my username}     in     /etc/aliases
but it didn’t work.

An example of how to do this would be great :)

I want to do this so I can make-up the first bit whenever I give out my e-mail address.
This will make blocking spam easy and will also tell me exactly who leaked my address :)
0
Comment
Question by:_Ben_
9 Comments
 
LVL 31

Expert Comment

by:rid
ID: 9706355
I comment here beacuse this was a very interesting question. My only thoght this far is that I wonder if you did anything
besides adding the alias to the alias file? I seem to remember something about building the database, too. This may be
described in the sendmail man page.
/RID
0
 
LVL 24

Expert Comment

by:shivsa
ID: 9706387
u can do this with setting up catch-all account.
http://www.lenzmultimedia.com/content/csc/catchall.htm

0
 

Author Comment

by:_Ben_
ID: 9706558
rid
yea i ran newaliases, to commit the changes, and restarted sendmail with no luck

I don’t think its interpreting the * as being a wildcard
0
 

Author Comment

by:_Ben_
ID: 9706560
shivsa

I've looked at catch-all but that seems to catch everything sent to a domain,
which isn't want i need, i want to catch everything send to .ben@mydomain.com
etc. foo.ben@mydomain.com
0
Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

 
LVL 40

Accepted Solution

by:
jlevie earned 460 total points
ID: 9707084
As far as I know there's no mechanism for aliases or virtusertable the will do this. The only way I know of to do it would be to write custom rules in sendmail.cf
0
 

Author Comment

by:_Ben_
ID: 9708462
jlevie

ok,  ill leave the question open for a few more days and have a play with sendmail.cf

If no one else comes up with a solution ill give u the points
0
 
LVL 40

Expert Comment

by:jlevie
ID: 9708572
FWIW: I doubt this would help much in stopping spam. Nor would it particulary help in identifying who "leaked" your address. I've accounts that are used to run programs that have never used a browser or email and they regularly get lots of spam. The account names aren't what one might see as a normal login name or as a persons name, which leads me to believe that some of the spam lists may use randomly generated addressses. So getting spam to one of your made up names doesn't necessarily mean that someone "leaked" your address.

A better solution would be to install an anti-spam filter on your mail server. I'm particulary fond of MailScanner simply because it works really, really, well at controlling spam. You can read more about it at http://www.sng.ecs.soton.ac.uk/mailscanner/index.html
0
 

Author Comment

by:_Ben_
ID: 9708903
ive uses my email address for 3 years with no spam, its only recently when i signed up to a news group that has its messages listed in google that the spam started.
0
 
LVL 40

Expert Comment

by:jlevie
ID: 9709783
I don't know if joing a news group is related or not. I do know that the spam volume has increased by a lot in the last year or so. At sites where I've deployed MailScanner and have stats on messages received about 60% of the inbound mail stream is unquestionably spam, which gets discarded at the mail server. Another 20% of the mail stream is probably spam, which is passed to the user for final determination. I'd estimate that the total mail volume to one of these servers has increased, because of spam, by about a factor of ten in the last couple of years.
0

Featured Post

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

If you have a server on collocation with the super-fast CPU, that doesn't mean that you get it running at full power. Here is a preamble. When doing inventory of Linux servers, that I'm administering, I've found that some of them are running on l…
Little introduction about CP: CP is a command on linux that use to copy files and folder from one location to another location. Example usage of CP as follow: cp /myfoder /pathto/destination/folder/ cp abc.tar.gz /pathto/destination/folder/ab…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:

895 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now