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?
At the bottom of your sendmail.mc file add the following lines:
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 sendmail.cf and restart sendmail according to your system's guidelines. For example in Debian and Ubuntu systems one can run