Current time: 05-16-2024, 03:44 PM Hello There, Guest! (LoginRegister)


Post Reply 
SMTP auth question
Author Message
robmorin Offline
Junior Member
*

Posts: 208
Joined: Apr 2007
Reputation: 0
Post: #1
SMTP auth question
Hello all..

I currently have SMTP auth working against my radius database via saslauth.... however i would like to auth against pop3 or the ispcp mail users table.....

Has anyone done this? here is my current smtpd.conf file from /etc/postfix/sasl

how would i use an sql statement to get the username and password out of ispcp, like i use below for radius as the radius one si simple Smile

Thanks...


pwcheck_method: saslauthd auxprop
auxprop_plugin: sql
mech_list: sql plain login
sql_engine: mysql
sql_hostnames: xx.xx.xx.153
sql_user: radiusd
sql_passwd: somepasswd
sql_database: radius
sql_select: select value from data where name ='%u@%r' and attribute='clear-password'
sql_verbose: yes
log_level: 5
02-23-2008 07:21 AM
Find all posts by this user Quote this message in a reply
joximu Offline
helper
*****
Moderators

Posts: 7,024
Joined: Jan 2007
Reputation: 92
Post: #2
RE: SMTP auth question
Hi

1) please wait until we have made this more easy (it's very complicated to find the right password to a given mail address in ispcp).

2) I think the configuration might be like the one for dovecot - see the wiki/howto about the switch to dovecot.
02-23-2008 07:33 AM
Visit this user's website Find all posts by this user Quote this message in a reply
robmorin Offline
Junior Member
*

Posts: 208
Joined: Apr 2007
Reputation: 0
Post: #3
RE: SMTP auth question
No problem now my buddy came up with this sql statement, and it works!

pwcheck_method: saslauthd auxprop
auxprop_plugin: sql
mech_list: sql plain login
sql_engine: mysql
sql_hostnames: xx.xx.xx.153
sql_user: ispcp
sql_passwd: passwd
sql_database: ispcp
sql_select: select mail_pass from mail_users as a,domain as b where b.domain_name='%r' and (mail_acc='%u' and a.domain_id=b.domain_id);
sql_verbose: yes
log_level: 5

Works just fine..... Smile

I hope someone else can use it!

Rob..

joximu Wrote:Hi

1) please wait until we have made this more easy (it's very complicated to find the right password to a given mail address in ispcp).

2) I think the configuration might be like the one for dovecot - see the wiki/howto about the switch to dovecot.
02-23-2008 07:38 AM
Find all posts by this user Quote this message in a reply
rbtux Offline
Moderator
*****
Moderators

Posts: 1,847
Joined: Feb 2007
Reputation: 33
Post: #4
RE: SMTP auth question
this does not work for subdomains or aliasdomains...
02-23-2008 09:08 AM
Visit this user's website Find all posts by this user Quote this message in a reply
robmorin Offline
Junior Member
*

Posts: 208
Joined: Apr 2007
Reputation: 0
Post: #5
RE: SMTP auth question
OK, i will keep this in mind, but i do not have users of alias or sub domains that would use smtp auth....

Have a great day

Rob..

rbtux Wrote:this does not work for subdomains or aliasdomains...
02-25-2008 12:45 AM
Find all posts by this user Quote this message in a reply
dennyv Offline


Posts: 1
Joined: Oct 2007
Reputation: 0
Post: #6
RE: SMTP auth question
Hi all!

Why don't you use the rimap mechanism?

/etc/default/saslauthd
Code:
MECHANISMS="rimap"

# Additional options for this mechanism. (default: none)
# See the saslauthd man page for information about mech-specific options.
MECH_OPTIONS="127.0.0.1"

# How many saslauthd processes should we run? (default: 5)
# A value of 0 will fork a new process for each connection.
THREADS=5

# Other options (default: -c)
# See the saslauthd man page for information about these options.
#
# Example for postfix users: "-c -m /var/spool/postfix/var/run/saslauthd"
# Note: See /usr/share/doc/sasl2-bin/README.Debian
OPTIONS="-c -m /var/spool/postfix/var/run/saslauthd -r"

/etc/postfix/sasl/smtpd.conf
Code:
pwcheck_method: saslauthd
              mech_list: plain login cram-md5 digest-md5

This should works with both subdomains and alias domain... so it's working for me without, but if the IMAP works correctly saslauthd should do the same!

thanks, bye
Daniele
07-24-2008 01:48 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)