Ubuntu Server Guide
Download 1.23 Mb. Pdf ko'rish
|
ubuntu-server-guide (1)
Configuring SASL
Postfix supports two SASL implementations: Cyrus SASL and Dovecot SASL. To enable Dovecot SASL the dovecot-core package will need to be installed: sudo apt i n s t a l l dovecot−c o r e Next, edit /etc/dovecot/conf.d/10−master.conf and change the following: s e r v i c e auth { # auth_socket_path p o i n t s t o t h i s us e rdb s o c k e t by d e f a u l t . I t ’ s t y p i c a l l y # used by dovecot−lda , doveadm , p o s s i b l y imap p r o c e s s , e t c . I t s d e f a u l t # p e r m i s s i o n s make i t r e a d a b l e o n l y by r o o t , but you may need t o r e l a x t h e s e # p e r m i s s i o n s . U s e r s t h a t have a c c e s s t o t h i s s o c k e t a r e a b l e t o g e t a l i s t # o f a l l usernames and g e t r e s u l t s o f everyone ’ s u s e r d b l o o k u p s . u n i x _ l i s t e n e r auth−us er d b { #mode = 0600 #u s e r = #group = } # P o s t f i x smtp−auth u n i x _ l i s t e n e r / var / s p o o l / p o s t f i x / p r i v a t e / auth { mode = 0660 u s e r = p o s t f i x group = p o s t f i x } } To permit use of SMTP-AUTH by Outlook clients, change the following line in the authentication mechanisms section of /etc/dovecot/conf.d/10−auth.conf from: auth_mechanisms = p l a i n to this: auth_mechanisms = p l a i n l o g i n Once you have Dovecot configured, restart it with: sudo s y s t e m c t l r e s t a r t d o v e c o t . s e r v i c e Testing SMTP-AUTH configuration is complete. Now it is time to test the setup. To see if SMTP-AUTH and TLS work properly, run the following command: t e l n e t m a i l . example . com 25 After you have established the connection to the Postfix mail server, type: 244 e h l o m a i l . example . com If you see the following in the output, then everything is working perfectly. Type quit to exit. 250−STARTTLS 250−AUTH LOGIN PLAIN 250−AUTH=LOGIN PLAIN 250 8BITMIME Download 1.23 Mb. Do'stlaringiz bilan baham: |
Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©fayllar.org 2024
ma'muriyatiga murojaat qiling
ma'muriyatiga murojaat qiling