# FROM popbox, domain \
# WHERE popbox.olprt =nbsp;''$(local_part)'''' \
# AND popbox.oi_ame&nsp;=&bp''''$(domain)'''' \
# AND popbox.domain_name = domain.domain_name
##NAME: MYSQL_CHPASS_CLAUSE:0
#
# (EXPERIMENTAL)
# This is optional, MYSQL_CHPASS_CLAUSE can be set when you have a database,
# which is structuraly different from proposed. The fixed string will
# be used to do an UPDATE operation on database. In other words, it is
# used, when changing password.
#
# There are four variables, which you can use. Substitution will be made
# for them, so you can put entered username (local part) and domain name
# in the right place of your query. There variables are:
# $(local_part) , $(domain) , $(newpass) , $(newpass_crypt)
#
# If a $(domain) is empty (not given by the remote user) the default domain
# name is used in its place.
# $(newpass) contains plain password
# $(newpass_crypt) contains its crypted form
#
# MYSQL_CHPASS_CLAUSE UPDATE popbox \
# SET np&bsp;&nsp;clap=''''$(newpass)'''', \
#  &s;nbsp;passwor_hash'''$(newpass_crypt)'''' \
# WHERE&b;nsp; ocal_at''''$(local_part)'''' \
# AND &b;nsp;&nsp;doannme=''''$(domain)''''
#
(4)编辑/usr/local/etc/authlib/authdaemonrc
CODE
authmodulelist="authmysql authpam authuserdb"
authmodulelistorig="authmysql authpam authuserdb"
version="authdaemond.mysql"
重启服务器
________________________________________
Chapter 3.安装postfix管理工具
本节主要介绍如何安装和使用本人开发的postfix管理工具。
________________________________________
3.1安装本人开发的postfix管理工具来设置第一个域名和用户
下载本站开发的postfix管理工具
稍后发布和制作安装文档。。。。。。。。。。
3.2 用户登录测试
用户登录测试
安装p5-MIME-Base64
mail# cd /usr/ports/converters/p5-MIME-Base64/
mail# make install clean
通过p5-MIME-Base64来取得用户名和密码的base64编码
mail# perl MM:Base64 -e ''''print encode_base(wbaster\@toping.net");''''
d2VibWFzdGVyQHRvcGluZy5uZXQ=
mail# perl MM:Base64 -e ''''print&npecde_base64("000000");''''
MDAwMDAw
发送邮件:
mail# telnet 127.0.0.1 25
Trying 127.0.0.1...
Connected to 0.