Latest LQ Deal: Latest LQ Deals
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 10-04-2011, 01:02 AM   #1
Registered: Jan 2007
Posts: 39

Rep: Reputation: 15
postfix and encryption

ok postfix and encryption is very confusing . to setup postfix to handle virtual domains and users the articles I reviewed uses mysql as the backend to store the virtual user email address and their passwords. in one article encryption was not used to store the information in the mysql database. but in another article like this one encryption is used.
So is encryption optional and how does postfix know if the data is plaintext or encrypted?
thank you
Old 10-05-2011, 03:08 AM   #2
Senior Member
Registered: Oct 2004
Posts: 1,272

Rep: Reputation: 153Reputation: 153
I've not looked at the guides in detail, but it doesn't look the data is encrypted in either guide.

Only the password is hashed/encrypted in one guide but not the other, however. Postfix doesn't need to care how the password is stored in the db as it delegates authentication to saslauthd.

It looks like this configuration:

auth    required user=mail_admin passwd=mail_admin_password host= db=mail table=users usercolumn=email passwdcolumn=password crypt=1
account sufficient user=mail_admin passwd=mail_admin_password host= db=mail table=users usercolumn=email passwdcolumn=password crypt=1
Is the part that informs saslauthd to expect the passwords to be hashed rather than plaintext.
Old 10-05-2011, 03:16 AM   #3
Senior Member
Registered: Jan 2010
Location: SI : 45.9531, 15.4894
Distribution: CentOS, OpenNA/Trustix, testing desktop openSuse 12.1 /Cinnamon/KDE4.8
Posts: 1,144

Rep: Reputation: 217Reputation: 217Reputation: 217

try set-up iRedMail for the email/web server. It handles users and virtual domains with MySQL backend database stored
Old 10-06-2011, 01:04 AM   #4
Registered: Jan 2007
Posts: 39

Original Poster
Rep: Reputation: 15

thanks for the advice. I already had come across it earlier. I should've mentioned it. sorry. but after installing iredmail. I examined the database with phpmyadmin and the password was encrypted, how I 'm still working on that from an example script that came with it. it seems they are using openssl(passwd -1, new_password) to encrypt it, but I don't get the same result I tried md5 base64 and none worked. so you seee how confused I am. maybe I 'm just not smart enough for this kind of thing,


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
how to make postfix send email to another postfix in local network (LAN)? h4k33m Linux - Server 9 06-04-2015 05:33 PM
Postfix: postfix: fatal: chdir(/usr/libexec/postfix) Micro420 Ubuntu 2 07-13-2008 01:21 PM
Postfix Configuration Question: Postfix server as a catch-all on office LAN enso491 Linux - Server 5 04-14-2008 05:35 PM
Linux password encryption and data encryption Tux-Slack Programming 4 06-20-2007 07:46 AM
Mandrake 9.0 Wireless Works without encryption.. does not with encryption topcat Linux - Wireless Networking 3 05-04-2003 09:47 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:54 PM.

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