Linode.com Forum Forum Index Linode.com Forum
Linode Community Forums
 


Sendmail not reading /etc/mail/virtusertable.db

Click here to go to the original topic

 
       Linode.com Forum Forum Index -> Email/SMTP Related Forum
Author Message
marknen



Joined: 06 Mar 2005
Posts: 5

Posted: Sun Mar 06, 2005 6: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.
Back to top  
rjp



Joined: 15 Aug 2003
Posts: 103

Posted: Sun Mar 06, 2005 8: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.
Back to top  
marknen



Joined: 06 Mar 2005
Posts: 5

Posted: Sun Mar 06, 2005 9: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!
Back to top  
 
       Linode.com Forum Forum Index -> Email/SMTP Related Forum
Page 1 of 1