LinuxQuestions.org
Support LQ: Use code LQCO20 and save 20% on CrossOver Office
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices

Reply
 
LinkBack Search this Thread
Old 08-22-2003, 04:31 PM   #1
tarballed
Member
 
Registered: Jun 2002
Distribution: RH, FC, FreeBSD,OpenBSD
Posts: 326

Rep: Reputation: 30
setting up PAM for smtp


Hello everyone.

Im running a Postfix server with 2.0.14 as the latest stable version...Running RH 9.0.

I would like to add PAM support for SMTP.

However, I do not see a smtp file in my /etc/pam.d directory...

Anyone know how I can setup smtp to use PAM?
Link of some sort? Docs? anything...

I appreciate it...

Tarballed
 
Old 08-23-2003, 06:13 PM   #2
bastard23
Member
 
Registered: Mar 2003
Distribution: Debian
Posts: 275

Rep: Reputation: 30
Try these searches.
http://www.google.com/search?q=postfix%20SASL
http://www.google.com/search?q=postfix%20SMTP%20AUTH

You have compile postfix (or get a package) to have SASL support. Simple Authentication and Security Layer provides postfix with support for SMTP AUTH. It would be the one that would talk to PAM. You may consider using the TLS patch as well. This provides encryption for the SMTP connection. This maybe important if you use PLAIN method (gives the password clear text).

I don't run Redhat, but maybe they provide the packages. (Debian seems to.)

Good Luck,
chris
 
Old 08-24-2003, 06:01 AM   #3
markus1982
Senior Member
 
Registered: Aug 2002
Location: Stuttgart (Germany)
Distribution: Debian/GNU Linux
Posts: 1,467

Rep: Reputation: 45
Debian does not only seem to provide packages for it it does provide packages for it which work flawlessly :-)

I would not recommend using PAM for SMTP AUTH though, I'd recommend you use the 'normal' SASL way (/etc/sasldb) and create a script that renews your sasldb in the required timerange...

For instance all the SMTP AUTH users are in a MySQL database in my case and a script renews the /etc/sasldb on the master and backup server every 8 hours ... works flawlessly with ~ 1000 users in my case ...

Last edited by markus1982; 08-24-2003 at 06:03 AM.
 
Old 08-24-2003, 06:53 AM   #4
bastard23
Member
 
Registered: Mar 2003
Distribution: Debian
Posts: 275

Rep: Reputation: 30
markus1982,

Yep, I always feel like I'm cheating when I use/recommend the debian packages. They are very well maintained and usually work together very well. I need to start giving back to Debian :)

I wouldn't recommend PAM as well. PAM (or the std. UNIX formats) for SMTP AUTH will have limits. AFAIK, the more secure password exchange methods (DIGEST-MD5) can't be used with PAM, as they require the cleartext password to be stored somewhere. But... combining SMTP AUTH (PLAIN) and TLS can work and be "secure". It also works for local users and tools out of the box. YMMV.

I'm converting over my little (read 4 users) DSL server over to a mix of Solaris/postifx and Debian/everything else. (Diversity is good and painful, who knew?). I'm just now getting over my (complex) database fears for passwords. (Trying to use LDAP via NSS, PAM to provide user info to all the machines). Just wish I could secure NFS.

Have fun,
chris

PS Are you using saslauthd?

PPS tarballed,
You probably will have to do some reading on this, as it isn't quite the normal setup yet. Please feel free to post any questions or start a new thread.
 
  


Reply


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Setting up smtp authentication for exim4 explorer1979 Debian 2 02-21-2006 08:29 AM
Setting up SMTP through sendmail maartenvonz Linux - Software 1 07-25-2005 04:08 AM
Postfix SMTP AUTH, Problem using saslauthd + pam k1e0x Debian 0 10-19-2004 05:21 PM
setting up smtp tyler_durden Linux - Networking 6 09-14-2004 01:11 AM
setting up smtp lobo78 Linux - Newbie 0 02-29-2004 12:04 PM


All times are GMT -5. The time now is 11:27 AM.

Main Menu
 
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
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration