LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 03-07-2019, 03:38 AM   #1
priit
LQ Newbie
 
Registered: Mar 2019
Posts: 18

Rep: Reputation: Disabled
set up mailserver without sql


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 ?

Last edited by priit; 03-07-2019 at 04:07 AM.
 
Old 03-07-2019, 06:02 AM   #2
serafean
Member
 
Registered: Mar 2006
Location: Czech Republic
Distribution: Gentoo, Chakra
Posts: 997
Blog Entries: 15

Rep: Reputation: 136Reputation: 136
Hi,

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.
 
Old 03-07-2019, 06:31 AM   #3
joe_2000
Senior Member
 
Registered: Jul 2012
Location: Aachen, Germany
Distribution: Void, Debian
Posts: 1,019

Rep: Reputation: 308Reputation: 308Reputation: 308Reputation: 308
Quote:
Originally Posted by serafean View Post
A database is the most common usecase because it allows for "virtual" users.
I am using virtual users on my postfix / dovecot setup with just plain text configuration, so that's definitely possible, too.
 
Old 03-08-2019, 12:53 AM   #4
priit
LQ Newbie
 
Registered: Mar 2019
Posts: 18

Original Poster
Rep: Reputation: Disabled
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.

Last edited by priit; 03-08-2019 at 02:42 AM.
 
Old 03-08-2019, 01:58 AM   #5
joe_2000
Senior Member
 
Registered: Jul 2012
Location: Aachen, Germany
Distribution: Void, Debian
Posts: 1,019

Rep: Reputation: 308Reputation: 308Reputation: 308Reputation: 308
Quote:
Originally Posted by priit View Post
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.
 
Old 03-08-2019, 04:53 AM   #6
priit
LQ Newbie
 
Registered: Mar 2019
Posts: 18

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by joe_2000 View Post
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 ?
 
Old 03-08-2019, 06:27 AM   #7
serafean
Member
 
Registered: Mar 2006
Location: Czech Republic
Distribution: Gentoo, Chakra
Posts: 997
Blog Entries: 15

Rep: Reputation: 136Reputation: 136
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
set up mailserver l0lpad Linux - Server 9 04-22-2013 10:34 AM
I seem to be running a mailserver on opensuse 10.3 and I didn't set it up ilago Linux - Security 8 05-08-2008 06:35 AM
Gmail set's all sent e-mail from my mailserver as spam icebrian Linux - Server 4 12-04-2006 06:09 AM
set up mailserver mithereal Debian 3 08-06-2005 03:03 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:49 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration