Unix Technical Forum

Postfix Authentication Confusion

This is a discussion on Postfix Authentication Confusion within the Gentoo Linux Support forums, part of the Unix Operating Systems category; --> Hello, I'm attempting to configure SMTP authentication to permit [authenticated] remote users to relay messages and I'm having very ...


Go Back   Unix Technical Forum > Unix Operating Systems > Gentoo Linux Support

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-21-2008, 09:40 AM
Fao, Sean
 
Posts: n/a
Default Postfix Authentication Confusion

Hello,

I'm attempting to configure SMTP authentication to permit
[authenticated] remote users to relay messages and I'm having very
little luck.

I started out with SASL, and later determined I was going about it the
wrong way, as it required a database (sasldb) of user names and
passwords. As all users already have a Unix login, I felt it was
redundant to provide them with a second account to keep track of.
Afterwards, I read more on saslauthd and realized that it was possible
to use PAM for authentication. So, if my understanding is correct, I
could theoretically use this method to check the local Unix account
names and passwords to verify validity. I'm currently using PAM to
authenticate Cyrus-IMAP with success. I just can't get it to work with
Postfix, to save my life!

My /etc/sasl2/smtp.conf file looks like:

# $Header: /var/cvsroot/gentoo-x86/mail-mta/postfix/files/smtp.sasl,v
1.2 2004/07/18 03:26:56 dragonheart Exp $
#pwcheck_methodam
#mech_list: plain login
pwcheck_method: auxprop
auxprop_plugin: pam

/etc/postfix/main.cf has the following options (plus more):

smtpd_sasl_auth_enable = yes
smtpd_sasl2_auth_enable = yes
smtpd_sasl_security_options = noanonymous
broken_sasl_auth_clients = yes
smtpd_sasl_local_domain =
smtpd_use_tls = yes
smtpd_tls_key_file = /etc/postfix/newreq.pem
smtpd_tls_cert_file = /etc/postfix/newcert.pem
smtpd_tls_CAfile = /etc/postfix/cacert.pem
smtpd_tls_loglevel = 3
smtpd_tls_received_header = yes
smtpd_tls_session_cache_timeout = 3600s
tls_random_source = dev:/dev/urandom

If there is any information that anybody could provide for me, I would
greatly appreciate it.

Thank you much in advance,

--
Sean
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-21-2008, 09:40 AM
mihai
 
Posts: n/a
Default Re: Postfix Authentication Confusion

> Fao, Seanwrote:
Hello,
> My /etc/sasl2/smtp.conf file looks like:
> # $Header:

/var/cvsroot/gentoo-x86/mail-mta/postfix/files/smtp.sasl,v
> 1.2 2004/07/18 03:26:56 dragonheart Exp $
> #pwcheck_methodam
> #mech_list: plain login
> pwcheck_method: auxprop
> auxprop_plugin: pam
>

shouldn't this be in /usr/lib/sasl2 or something like this ... where
the libraries are.
use a tool like strace to see if the sasl libraries are loaded
correctly and if the smtp.conf file is opened when postfix is
started.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-21-2008, 09:40 AM
Heiko Vogel
 
Posts: n/a
Default Re: Postfix Authentication Confusion

"Fao, Sean" <enceladus311@yahoo.comI-WANT-NO-SPAM> wrote:

> If there is any information that anybody could provide for me, I would
> greatly appreciate it.


This works for me:

$ cat /etc/sasl2/smtpd.conf

pwcheck_method: saslauthd
mech_list: PLAIN LOGIN

$ tail /etc/postfix/main.cf

smtpd_sasl_auth_enable = yes
smtpd_sasl_security_options = noanonymous
smtpd_recipient_restrictions = permit_mynetworks,
permit_sasl_authenticated, check_relay_domains

smtpd_tls_auth_only = yes
smtpd_use_tls = yes
smtpd_tls_key_file = /etc/ssl/private/server.key
smtpd_tls_cert_file = /etc/ssl/private/server.crt
smtpd_tls_CAfile = /etc/ssl/private/server.pem
smtpd_tls_loglevel = 1
smtpd_tls_received_header = yes
smtpd_tls_session_cache_timeout = 3600s
tls_random_source = dev:/dev/urandom

HTH,
haaner
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 02-21-2008, 09:41 AM
Fao, Sean
 
Posts: n/a
Default Re: Postfix Authentication Confusion

I just figured it out. Thank you both for your responses.

--
Sean
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 12:14 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com