Sendmail not reading /etc/mail/virtusertable.db
Let's say I have a domain blink48.com, and a user "joeuser-blink48". And I want mail going to
I have an entry in the virtusertable like so:
I compile the virtusertable.db file, and then restart sendmail.
But when I connect to port 25 locally and try to send mail to
I'm guessing that somehow sendmail is ignoring what is in /etc/virtusertable.db and thereby not actually knowing that
Could anyone point me in the right direction? Maybe there is a sendmail config issue I am ignoriing. I'd appreciate it greatly.
2 Replies
You should have something like this in your sendmail.mc:
FEATURE(`virtusertable',`hash -o /etc/mail/virtusertable')dnl
You then need to run m4 to generate the sendmail.cf file; The Makefile in /etc/mail in Debian, Fedora Core, and (I presume) CentOS can do that for you.
Thanks for the reply. I check the .mc file and it had it enabled. However, I recompiled the .cf file and it works now!
I have some other config issues that I need to work through, but at least this one is out of the way.
I've used many mail servers and even administered a few existing ones, but I never had to build one from scratch.
Thanks for your help!