Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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.
There is lot of manuals with examples how to set up mailserver.
Some of them describes to install postfix, dovecot and mysql.
Others describe You have to install postfix and dovecot only. That's it.
My question is why do I need sql database like Mysql or Mariadb if mailserver runs freely without them?
Is using sql database like mysql or mariadb, gives some extra security to preserve mailboxes and all its content ? Or if you dont use those, then Dovecot does sql job by itself ?
you can use PAM for authentication, thus having a direct mapping between unix users an mailboxes.
A database is the most common usecase because it allows for "virtual" users.
I personally have a dovecot+postfix setup to use PAM for auth. Dovecot performs authentication. Postfix asks dovecot for permission through LMTP.
Thanks for quick answers. I expect using sql is more secure way to hold, store data (virtual users, mail accounts, emails) on server harddrive? Does'nt affect network and login security.
Thanks for quick answers. I expect using sql is more secure way to hold, store data (virtual users, mail accounts, emails) on harddrive? Does'nt affect network and login security.
I don't think so. Even the opposite. Making the data available through sql (and possibly an administrator web frontend) would rather decrease security imho. I think it's more a matter of convenience and maintainability for large installs. Would be interested to hear counter arguments to the above though.
it's more a matter of convenience and maintainability for large installs.
Idea is to built a mailserver with around 150 + accounts, max. 200 not more. So using sql is'nt definitely important?
How about later managing mailboxes: increase/decrease box size, send/receive size limit etc ? Does it concerns to sql base ?
Backup purpose. With sql base coping faster than without it ?
Security - Anything that doesn't store passwords in plain text and/or in a readable format is not insecure.
Mails pretty much have to be stored in plaintext. The admin will always be able to read them.
As for mailbox quotas, pick your approach : https://wiki2.dovecot.org/Quota
At 200 users, IMO a db won't be any faster than a passwd file. Just a bit more complex to set up.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.