Build anti-Virus anti-spam System (III)

Source: Internet
Author: User
Tags auth crypt md5 modify mysql sha1 thread
hosts = 127.0.0.1

Modify courier Related Settings,/ETC/COURIER/IMAPD:

Authmodules= "Authdaemon"

imap_capability= "IMAP4rev1 CHILDREN NAMESPACE Thread=orderedsubject
Thread=references SORT auth=cram-md5 auth=cram-sha1 IDLE "

Modify/etc/courier/pop3d

Authmodules= "Authdaemon"

Pop3auth= "LOGIN cram-md5 cram-sha1"

Modify/ETC/COURIER/AUTHDAEMONRC

authmodulelist= "Authmysql authpam"

Use MySQL validation and Pam validation.

Modify/ETC/COURIER/AUTHMYSQLRC

Mysql_server 127.0.0.1
Mysql_username Mysql-postfix-user
Mysql_password Mysql-postfix-pass
#MYSQL_SOCKET/var/run/mysql/mysql.sock
Mysql_port 0
Mysql_opt 0
mysql_database postfix
Mysql_user_table Users

Mysql_login_field Email
Mysql_clear_pwfield Clear
Mysql_uid_field UID
Mysql_gid_field GID
Mysql_home_field Homedir
Mysql_maildir_field MAILDIR

SASL Library

Create/etc/postfix/sasl/smtpd.conf:

Pwcheck_method:pam

Pam-mysql

Create/ETC/PAM.D/SMTP:

Auth optional pam_mysql.so host=localhost db=postfix user=
Mysql-postfix-user Passwd=mysql-postfix-pass Table=users
Usercolumn=email Passwdcolumn=clear Crypt=n
Account Required pam_mysql.so host=localhost db=postfix user=mysql-postfix-user passwd=mysql-postfix-pass usercolumn= Email Passwdcolumn=clear crypt=n



Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.