Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 666
  • Last Modified:

Wildcard within an e-mail alias, possible?

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
_Ben_
Asked:
_Ben_
1 Solution
 
ridCommented:
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
 
shivsaCommented:
u can do this with setting up catch-all account.
http://www.lenzmultimedia.com/content/csc/catchall.htm

0
 
_Ben_Author Commented:
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
Get free NFR key for Veeam Availability Suite 9.5

Veeam is happy to provide a free NFR license (1 year, 2 sockets) to all certified IT Pros. The license allows for the non-production use of Veeam Availability Suite v9.5 in your home lab, without any feature limitations. It works for both VMware and Hyper-V environments

 
_Ben_Author Commented:
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
 
jlevieCommented:
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
 
_Ben_Author Commented:
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
 
jlevieCommented:
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
 
_Ben_Author Commented:
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
 
jlevieCommented:
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

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now