LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 10-04-2011, 12:02 AM   #1
rhlnewbie
Member
 
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 http://flurdy.com/docs/postfix/edition3.html encryption was not used to store the information in the mysql database. but in another article like this one http://library.linode.com/email/post...tu-9.10-karmic encryption is used.
So is encryption optional and how does postfix know if the data is plaintext or encrypted?
thank you
Miles
 
Old 10-05-2011, 02:08 AM   #2
phil.d.g
Senior Member
 
Registered: Oct 2004
Posts: 1,272

Rep: Reputation: 154Reputation: 154
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:

Code:
auth    required   pam_mysql.so user=mail_admin passwd=mail_admin_password host=127.0.0.1 db=mail table=users usercolumn=email passwdcolumn=password crypt=1
account sufficient pam_mysql.so user=mail_admin passwd=mail_admin_password host=127.0.0.1 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, 02:16 AM   #3
lithos
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
Hi,

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

Original Poster
Rep: Reputation: 15
iredmail

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,
Tanx,
Miles
 
  


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

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:38 AM.

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