环境:
2.6.25-ARCH dovecot-1.0.15 mysql 5.0.60
目的:
实现dovecot使用mysql数据库中的用户
注意:本文的操作是在《archlinux SBS--mail server(3):virtual users and domains with postfix,mysql》http://blog.vkill.net/read.php?109后的,所以建议先看完那篇文章,做好实验再来做这篇文章。
实现步骤:
2.6.25-ARCH dovecot-1.0.15 mysql 5.0.60
目的:
实现dovecot使用mysql数据库中的用户
注意:本文的操作是在《archlinux SBS--mail server(3):virtual users and domains with postfix,mysql》http://blog.vkill.net/read.php?109后的,所以建议先看完那篇文章,做好实验再来做这篇文章。
实现步骤:
>> Read more
Oct
11
2008
Oct
11
2008
how to use pam_mysql
11:29 , vkill
Oct
6
2008
最后修改20081011 --by:vkill
postfix SMTP server with cyrus SASL2 (下)
环境:
2.6.25-ARCH postfix-2.5.3 cyrus-sasl 2.1.22 mysql 5.0.60 pam_mysql-0.7RC1
验证架构三:外部数据库之mysql数据库
mysql数据库连接信息和数据信息如下:(bbb用户密码为123456,经md5加密)
[root@myhost ~]# mysql -u vmail -ppass123456 vmail
mysql> describe users;
+--------+-----------+------+-----+---------+-------+
| Field | Type | Null | Key | Default | Extra |
+--------+-----------+------+-----+---------+-------+
| userid | char(16) | NO | | NULL | |
| password | char(48) | NO | | NULL | |
| domain | char(255) | NO | | NULL | |
+--------+-----------+------+-----+---------+-------+
mysql> select * from users;
+------+----------------------------------+--------+--------+
| userid | password | domain |
+------+----------------------------------+--------+--------+
| aaa | 123456 | mail.test.net |
| bbb | e10adc3949ba59abbe56e057f20f883e | mail.test.net |
+------+----------------------------------+--------+--------+
####bbb用户 password字段使用了md5()函数,原始密码都是123456
一、使用cyrus SASL自带的sql (smtp-->cyrus SASL)
postfix SMTP server with cyrus SASL2 (下)
环境:
2.6.25-ARCH postfix-2.5.3 cyrus-sasl 2.1.22 mysql 5.0.60 pam_mysql-0.7RC1
验证架构三:外部数据库之mysql数据库
mysql数据库连接信息和数据信息如下:(bbb用户密码为123456,经md5加密)
[root@myhost ~]# mysql -u vmail -ppass123456 vmail
mysql> describe users;
+--------+-----------+------+-----+---------+-------+
| Field | Type | Null | Key | Default | Extra |
+--------+-----------+------+-----+---------+-------+
| userid | char(16) | NO | | NULL | |
| password | char(48) | NO | | NULL | |
| domain | char(255) | NO | | NULL | |
+--------+-----------+------+-----+---------+-------+
mysql> select * from users;
+------+----------------------------------+--------+--------+
| userid | password | domain |
+------+----------------------------------+--------+--------+
| aaa | 123456 | mail.test.net |
| bbb | e10adc3949ba59abbe56e057f20f883e | mail.test.net |
+------+----------------------------------+--------+--------+
####bbb用户 password字段使用了md5()函数,原始密码都是123456
一、使用cyrus SASL自带的sql (smtp-->cyrus SASL)
>> Read more
Oct
3
2008
最后修改20081006 --by:vkill
postfix SMTP server with cyrus SASL2 (上)
环境:
2.6.25-ARCH postfix-2.5.3 cyrus-sasl 2.1.22 mysql 5.0.60 pam_mysql-0.7RC1
知识点:
cyrus SASL支持的验证机制:PLAIN LOGIN OTP DIGEST-MD5 KERBEROS ANONYMOUS
cyrus SASL支持的验证架构:UNIX系统密码、SASL专用密码、外部数据库 等等
对于每个使用cyrus SASL函数库的应运系统,cyrus SASL各提供一个独立的配置文件,影响postfix的SASL配置文件是smtpd.conf,文件位置我习惯位于 /etc/sasl2/smtpd.conf,smtpd.conf文件至少要指出使用的验证架构等等。
设置 postfix 使用cyrus-sasl
[root@myhost ~]# vi /etc/postfix/main.cf
smtpd_sasl_auth_enable = yes //启用SASL验证
smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination //核准授权用户
smtpd_sasl_security_options = noanonymous //设定验证机制
smtpd_sasl_type = cyrus
smtpd_sasl_path = smtpd
##base //供后面的测试使用
myhostname = mail.test.net
myorigin = $myhostname
mydestination = localhost, $myhostname
验证架构一:UNIX系统密码
postfix SMTP server with cyrus SASL2 (上)
环境:
2.6.25-ARCH postfix-2.5.3 cyrus-sasl 2.1.22 mysql 5.0.60 pam_mysql-0.7RC1
知识点:
cyrus SASL支持的验证机制:PLAIN LOGIN OTP DIGEST-MD5 KERBEROS ANONYMOUS
cyrus SASL支持的验证架构:UNIX系统密码、SASL专用密码、外部数据库 等等
对于每个使用cyrus SASL函数库的应运系统,cyrus SASL各提供一个独立的配置文件,影响postfix的SASL配置文件是smtpd.conf,文件位置我习惯位于 /etc/sasl2/smtpd.conf,smtpd.conf文件至少要指出使用的验证架构等等。
设置 postfix 使用cyrus-sasl
[root@myhost ~]# vi /etc/postfix/main.cf
smtpd_sasl_auth_enable = yes //启用SASL验证
smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination //核准授权用户
smtpd_sasl_security_options = noanonymous //设定验证机制
smtpd_sasl_type = cyrus
smtpd_sasl_path = smtpd
##base //供后面的测试使用
myhostname = mail.test.net
myorigin = $myhostname
mydestination = localhost, $myhostname
验证架构一:UNIX系统密码
>> Read more
Oct
3
2008
环境:archlinux 2.6.25-ARCH pam_mysql-0.7RC1 mysql-5.0.60 openssl-0.9.8h gcc-4.3.1 make-3.81
当我们在日志文件 /var/log/auth.log 中遇到这个错误,照下面的步骤重新编译
non-crypt()ish MD5 hash is not supported in this build
pam_mysql编译步骤:
当我们在日志文件 /var/log/auth.log 中遇到这个错误,照下面的步骤重新编译
Quotation
non-crypt()ish MD5 hash is not supported in this build
pam_mysql编译步骤:
>> Read more
Sep
23
2008



