Article Title: Install postfix-based full-featured email server on linux (2 ). Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
8. Enable cyrus-sasl-based authentication for postfix
Run the following command to check whether the postfix supports cyrus-style sasl authentication. If your output is the following result, it is supported:
#/Usr/local/postfix/sbin/postconf-
Cyrus
Dovecot
# Vi/etc/postfix/main. cf
Add the following content:
############################ CYRUS-SASL ########### #################
Broken_sasl_auth_clients = yes
Expiration = permit_mynetworks, permit_sasl_authenticated, reject_invalid_hostname, reject_non_fqdn_hostname, expiration, reject_unauth_pipelining, reject_unauth_destination
Smtpd_sasl_auth_enable = yes
Smtpd_sasl_local_domain = $ myhostname
Smtpd_sasl_security_options = noanonymous
Smtpd_sasl_application_name = smtpd
Smtpd_banner = Welcome to our $ myhostname ESMTP, Warning: Version not Available!
# Vi/usr/local/lib/sasl2/smtpd. conf
Add the following content:
Pwcheck_method: saslauthd
Mech_list: PLAIN LOGIN
Reload the configuration file with postfix
#/Usr/local/postfix/sbin/postfix reload
9. Enable postfix to support virtual domains and virtual users
1. edit/etc/postfix/main. cf and add the following content:
######################## Virtual Mailbox Settings ############# ###########
Virtual_mailbox_base =/var/spool/mail
Virtual_mailbox_maps = mysql:/etc/postfix/mysql_virtual_mailbox_maps.cf
Virtual_mailbox_domains = mysql:/etc/postfix/mysql_virtual_domains_maps.cf
Virtual_alias_domains =
Virtual_alias_maps = mysql:/etc/postfix/mysql_virtual_alias_maps.cf
Virtual_uid_maps = static: 2525
Virtual_gid_maps = static: 2525
Virtual_transport = virtual
Maildrop_destination_recipient_limit = 1
Maildrop_destination_concurrency_limit = 1
########################## QUOTA Settings ############ ############
Message _ size_limit = 14336000
Virtual_mailbox_limit = 20971520
Virtual_create_maildirsize = yes
Virtual_mailbox_extended = yes
Virtual_mailbox_limit_maps = mysql:/etc/postfix/mysql_virtual_mailbox_limit_maps.cf
Virtual_mailbox_limit_override = yes
Virtual_maildir_limit_message = Sorry, the user's maildir has overdrawn his diskspace quota, please Tidy your mailbox and try again later.
Virtual_overquota_bounce = yes
2. Add the configuration files used to support virtual domains and virtual users.
Edit/etc/postfix/mysql_virtual_alias_maps.cf and add the following content:
User = extmail
Password = extmail
Hosts = localhost
Dbname = extmail
Table = alias
Select_field = goto
Where_field = address
[1] [2] [3] [4] Next page