Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I need to be able to route mail to user.@ to user@. I know I can do it easily with + addressing, but the business requirement is for dot-addressing. The virtusertable file can't handle it - using user* doesn't do anything for me. The section is created dynamically by automated regression tests, so a static list in /etc/aliases won't cut it either. How do I handle this?

share|improve this question

At the bottom of your file add the following lines:

R$+ . < @ $=w . > $*         $: $1 < @ $2 . > $3

Keep in mind that the left hand side of the rule is separated from the right hand side using tabs and not spaces. So do not copy-paste, type the rule. Next build and restart sendmail according to your system's guidelines. For example in Debian and Ubuntu systems one can run sendmailconfig.

share|improve this answer
Is there a way to do this using the file? – ewwhite May 24 '12 at 18:50
Yes, but you really want to avoid hacking / editing directly. – adamo May 24 '12 at 18:59

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.