Ubuntu Server Guide
Download 1.23 Mb. Pdf ko'rish
|
ubuntu-server-guide (1)
SMTP Authentication
Exim4 can be configured to use SMTP-AUTH with TLS and SASL. First, enter the following into a terminal prompt to create a certificate for use with TLS: sudo / u s r / s h a r e / doc / exim4−ba s e / examples / exim−g e n c e r t Configure Exim4 for TLS by editing /etc/exim4/conf.d/main/03_exim4−config_tlsoptions and adding the following: MAIN_TLS_ENABLE = y e s Second, configure Exim4 to use the saslauthd for authentication by editing /etc/exim4/conf.d/auth/30 _exim4−config_examples and uncomment the plain_saslauthd_server and login_saslauthd_server sections: p l a i n _ s a s l a u t h d _ s e r v e r : d r i v e r = p l a i n t e x t public_name = PLAIN s e r v e r _ c o n d i t i o n = $ { i f s a s l a u t h d {{ $auth2 }{ $auth3 }}{1}{0}} s e r v e r _ s e t _ i d = $auth2 server_prompts = : . i f n d e f AUTH_SERVER_ALLOW_NOTLS_PASSWORDS s e r v e r _ a d v e r t i s e _ c o n d i t i o n = $ { i f eq { $ t l s _ c i p h e r }{}{}{*}} . e n d i f # l o g i n _ s a s l a u t h d _ s e r v e r : d r i v e r = p l a i n t e x t public_name = LOGIN server_prompts = ” Username : : : Password : : ” # don ’ t send system passw ords o v e r unencrypted c o n n e c t i o n s s e r v e r _ c o n d i t i o n = $ { i f s a s l a u t h d {{ $auth1 }{ $auth2 }}{1}{0}} s e r v e r _ s e t _ i d = $auth1 . i f n d e f AUTH_SERVER_ALLOW_NOTLS_PASSWORDS s e r v e r _ a d v e r t i s e _ c o n d i t i o n = $ { i f eq { $ t l s _ c i p h e r }{}{}{*}} . e n d i f Additionally, to enable outside mail clients to connect to the new server, a new user needs to be added into exim by using the following commands. 239 sudo / u s r / s h a r e / doc / exim4−ba s e / examples / exim−a d d u s e r Protect the new password files with the following commands: sudo chown r o o t : Debian−exim / e t c / exim4 / passwd sudo chmod 640 / e t c / exim4 / passwd Finally, update the Exim4 configuration and restart the service: sudo update−exim4 . c o n f sudo s y s t e m c t l r e s t a r t exim4 . s e r v i c e 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