Using wildcards in virtusertable for sendmail: resources, pointers, and simple examples, please.
July 7, 2004 6:49 PM   Subscribe

Using wildcards in virtusertable for sendmail: resources, pointers, and simple examples, please. Google-fu fails to provide examples that answer my questions. [emm eye]

While the basic question, "Can I use wildcarded addresses at the server level with sendmail?" leads to the answer "of course, using vitusertable," the examples generally seen have broad scope:


myemail@somedomain.com -> %1@otherdomain.com


Compounding this is the sendmail-specific wildcarding scheme, which I still don't completely grok.

can I wildcard something like this?

[*+]foo[*+]@mydomain.com -> specificaddress@mydomain.com

(please note my also-primitive grasp of grep may mislead. I'm hoping that pseudo-address translates verbally to "any number and combination of characters on either or both sides of a specific string.")

So I think there are two parts here.

1. can I use virtusertable to set up subset-catchalls and direct them to the same domain?

2. can I get grep-style (grep-ish, what have you) wildcarding in virtusertable?

TIA!
posted by mwhybark to Computers & Internet (2 answers total)
 
"regular expressions" is the phrase you want to search on, rather than "grep-style wildcarding".

By "[*+]foo[*+]" I'd guess you mean ".*foo.*"

Anyway, I don't know sendmail, sorry. Switched to postfix long ago, which apparently supports regular expressions in aliases, which would probably do what you want.
posted by sfenders at 8:42 PM on July 7, 2004


I've never heard of being able to use regex's in virtusertable personally. As for the example:
myemail@somedomain.com -> %1@otherdomain.com

That means that myemail@some will get sent to myemail@other, joe@some will get sent to joe@other, etc.. As for the catchall question, can you explain that a bit more? Not sure what you mean by subset catchalls, if you could explain that a bit more, and what you're trying to do, I might be able to help..
posted by djc at 7:54 AM on July 8, 2004


« Older What should I look for in a Digital Camera?   |   Help me name my new kittens Newer »
This thread is closed to new comments.