Mail (Postfix, Dovecot)
apt install libnss-ldap nscd
nano /etc/pam.d/common-session
session required pam_mkhomedir.so skel=/etc/skel umask=077
nano /etc/nsswitch.conf
passwd: compat ldap
group: compat ldap
shadow: compat
/etc/init.d/nscd restart
apt install postfix dovecot-imapd dovecot-pop3d
dpkg-reconfigure-postfix
nano /etc/postfix/main.cf
home_mailbox = Maildir/
nano /etc/dovecot/dovecot.conf
listen = *
nano /etc/dovecot/conf.d/10-auth.conf
disable_plaintext_auth = no
nano /etc/dovecot/conf.d/10-mail.conf
#mail_location = mbox:~/mail:INBOX=/var/mail/%u
mail_location = maildir:~/Maildir
/etc/init.d/dovecot restart && /etc/init.d/postfix restart
nano /etc/postfix/main.cf
smtpd_tls_cert_file=/etc/ca/mailcert.pem
smtpd_tls_key_file=/etc/ca/mailkey.pem
diatas smptd relay, tambahkan :
smtpd_sasl_type = dovecot
smtpd_sasl_path = private/auth
smtpd_sasl_auth_enable = yes
nano /etc/postfix/master.conf
(hilangkan pagardari smtps kebawah 3 baris. :)
smtps inet n - y - - smtpd
-o syslog_name=postfix/smtps
-o smtpd_tls_wrappermode=yes
-o smtpd_sasl_auth_enable=yes
nano /etc/dovecot/conf.d/10-ssl.conf
ssl = yes
ssl_cert = </etc/ca/mailcert.pem
ssl_key = </etc/ca/mailkey.pem
nano /etc/dovecot/conf.d/10-master.conf.
unix_listener /var/spool/postfix/private/auth {
user = postfix
group = postfix
mode = 0666
}
nano /etc/postfix/main.conf
mailbox_size_limit = 2048000
message_size_limit = 2048
/etc/init.d/dovecot restart && /etc/init.d/postfix restart
Langganan:
Posting Komentar (Atom)
Terimakasih
BalasHapusmantappppp uy....
BalasHapussangat membantu pak ilmunyaa
BalasHapusterimakasih ilmunya :)
BalasHapusmakasih min
BalasHapusterimakasih ilmunya :)
BalasHapusmantappp min
BalasHapusSangat bermanfaat. terimakasih banyak kakak
BalasHapusMANTAB MANTABB
BalasHapusterimakasih informasinya sangat lengkap !
BalasHapusterimakasih,,,sangat bermanfaat
BalasHapusMantuuul
BalasHapus