I am trying to define wildcard receipts in SendMail, from what I read in this document http://www.sendmail.org/m4/features.html#virtusertable I understand that this would be a correct syntax inside /etc/mail/virtusertable
old+*@domain1.com root@domain2.com
adrian@domain1.com root@domain2.com
I would expect first rule to match a receipt like old243523@domain1.com but it doesn't. The second rule works ok so I assume that localdomains and similar things are all configured correctly, but how to match a wildcard like in first rule? Sending to old243523@domain1.com returns the "not such user" error.
Thank you.