Sendmail not reading /etc/mail/virtusertable.db

I have sendmail set up and it doesn't appear to be reading the virtusertable.db

Let's say I have a domain blink48.com, and a user "joeuser-blink48". And I want mail going to joeuser@blink48.com to go to the user "joeuser-blink48"

I have an entry in the virtusertable like so:

joeuser@blink48.com joeuser-blink48

I compile the virtusertable.db file, and then restart sendmail.

But when I connect to port 25 locally and try to send mail to joeuser@blink48.com it doesn't work, telling me the user does not exist. However, when I send mail to joeuser-blink48@blink48.com, it does work.

I'm guessing that somehow sendmail is ignoring what is in /etc/virtusertable.db and thereby not actually knowing that joeuser@blink48.com should exist (virtually)?

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

Maybe it's not enabled in your sendmail.mc?

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.

rjp,

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!

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct