Linode Forum
https://forum.linode.com/

Sendmail not reading /etc/mail/virtusertable.db
https://forum.linode.com/viewtopic.php?f=11&t=1533
Page 1 of 1

Author:  marknen [ Sun Mar 06, 2005 7:40 pm ]
Post subject:  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.

Author:  rjp [ Sun Mar 06, 2005 9:10 pm ]
Post subject: 

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

You should have something like this in your sendmail.mc:

Code:
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.

Author:  marknen [ Sun Mar 06, 2005 10:16 pm ]
Post subject:  thanks

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!

Page 1 of 1 All times are UTC-04:00
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/