I am installing Bugzilla and I want to prevent it from sending out e-mails, which instead should be sent to a user on the local machine.
I have this line in my /etc/mail/sendmail.mc:
FEATURE(`virtusertable', `hash -o /etc/mail/virtusertable.db')
I added the following line to the top of /etc/mail/virtusertable (the rest is comments):
@mydomain.com myusername
I then ran the following comands:
$ makemap hash /etc/mail/virtusertable < /etc/mail/virtusertable $ m4 /etc/mail/sendmail.mc > /etc/mail/sendmail.cf
I then restarted the sendmail server. However, when I send an e-mail to myusername@mydomain.com via the mail command, I still receive it in my web-based inbox, which is not what I want. I want it to be delievered only to myusername on the local machine.