Virtual UsersWith Sendmail, Dovecot MySQL And Roundcube

Discussion in 'Server Operation' started by Riothamus, Apr 4, 2013.

  1. Riothamus

    Riothamus New Member

    I've been trying to learn some basic server configuration with an unmanaged VPS running CentOS and a domain name I have, and right now I'm trying to get e-mail set up. I've got Dovecot running and set up to check system users first when a user tries to log in, and if it can't find them, then it checks a MySQL Database for virtual users, and I set up Sendmail by basically just following this tutorial: http://www.wikihow.com/Configure-Sendmail

    My virtusertable file just has this one line in it:
    Code:
    me@domain.com me
    
    (I've replaced my actual username and domain to avoid spam.)

    The problem is right now, this is only working for sending e-mails to me, and I'm not clear on what to put when I want it to accept e-mails to virtual user addresses too (users who can have e-mail addresses at my domain but aren't system users on my VPS). I've looked around for tutorials on the Net, but I've had trouble finding any that explain how to do this. This one on the Dovecot Wiki, for instance http://wiki2.dovecot.org/LDA/Sendma...ntext=180&value=virtusertable&fullsearch=Text doesn't explain how to make the virtusertable forward the addresses to Dovecot. Another one I found mentioned creating a system alias for each virtual e-mail address and having a separate config file for each of them, and modifying the virtusertable each time I want to add a new address.

    So I'm just wondering if anyone can explain whether there's a simpler way to do this, or if I'm going to have to do all this server configuration each time I want to add a new e-mail address. I understand there are some HowTo's for this on this site but it seems like they're for Postfix rather than Sendmail. And I understand a lot of people feel Postfix is better, and I'll definitely use that next time. But for right now, I just want to get this all working with what's set up so far.
     

Share This Page