编译选项:
./configure --enable-dso --prefix=/usr/local/proftpd-1.3.2a --with-modules=mod_sql:mod_sql_mysql --with-includes=/usr/include/mysql/ --with-libraries=/usr/lib/mysql/
配置:
SQLAuthenticate users
SQLConnectInfo postfix@192.168.0.27:3306 postfix postfixadmin
SQLAuthTypes crypt
SQLUserInfo ftp_users user_name passwd uid gid home_dir shell
CreateHome on dirmode 755
AuthOrder mod_sql.c