Postfix + Dovecot + virtual users without a database?
Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Postfix + Dovecot + virtual users without a database?
Hi there boys 'n girlz.
I've been pulling my hair out for a while now during my tries to set up a functioning mail-server for an internal, virtual network that I'm running in VMWare. All of this is of course exercize for different kinds of scenarios, I simply want to see how things work.
I've managed to set up a simple, Unix-account based mail hub that users can connect to with a prefered IMAP/POP client from other hosts on the network. What I would like to accomplish is virtual user accounts. There are of course many of these guides but all of those that I've found are way too sophisticated. I prefer to do the things in order, first understand the basics before advancing to more hard-core. Every single how-to that I've found involves some kind of database, mostly LDAP or MySQL. What I would like to start with is a "primitive" solution - I still want virtual users on the server, but I want some kind of a "local" solution, like a text-based file or something that functions as database for this. And, of course, I want to know how to implement this for combination Postfix + Dovecot.
Could you please provide me some tips for this subject or at least point me out to a good read? Thanks in advance!
Hi and thanks for the tip.
I just did everything according to your guide (of course, altered the user / domain parts according to my setup) and I cannot authenticate to the server. Neither Postfix or Dovecot are reporting any visable errors in the maillog that could point out to the configuration errors, the only error is the actual authentication error. I'm using Evolution in one of my virtual clients to connect to the server - doesn't work. When following your configuration, which kind of the mechanism am I supposed to choose in Evolution - I figured it was CRAM-MD5. And if it indeed is that encrypting mechanism is that what corresponds to the {HMAC-MD5} in the virt-users shadow-file?
Finally, appart from what you written in your guide, is there anything else I might have missed, maybe something essential but crucial for the function? Maybe you figured "everybody should know that" and didn't mention it at all. ?
Dovecot and Postfix are up and running.
Telneting both locally and from a remote host in the network to port 143 works and I get the message it (Dovecot) is ready.
Loging in, however, doesnt work. I get
Code:
"a NO Authentication failed."
Funny thing is that maillog doesn't say anything (any way to make it more verbose, the Dovecot-part of log that is?). First when I leave the actual telnet session the maillog would spit out a row like this one:
To clear any confusion, 'virt-postfix' is my machine, running Postfix / Dovecot.
Any ideas?
Did you actually try out the very same configuration in the same/similar scenario / configuration that I'm describing myself and can confirm it actually works?
I use it on my personal VPS, and I've written internal documentation for my companies knowledge base. This article is a bit slimmed downed compared to my internal article. But you really should have no problem with this setup.
Oh any looking at your error log, are you using the full email address of your account as the username? If not Dovecot won't be able to find the associated domain, and you logins will fail.
I am Also having trouble with a dovecot / postfix setup, It's all setup and running fine, I just don't know how to add users.
Dovecot is authenticating using this method but I have no idea how I would add additional users . The only entry for the users is in the file as specified in the link above so nothing in /etc/passwd and no database just /etc/dovecot/vmail-passwd.
I need to know how to add new users, I have a feeling that dovecotpw is used at some point, I'm really surprised that there is no documentation on how to do this (unless I have missed some!)
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.