Enable authentication on postfix

July 24, 2016 342 views
Email Linux Basics Ubuntu

i have installed postfix on ubuntu server 14.04.4. i am able to telnet to the server as send emails from my smtp server. but since there is no authentication needed for this everybody is having access to the server. so,

  1. how to setup authentication. i would like username password way
  2. can i use local ubuntu account use for the authentication.
1 Answer

Append these lines in /etc/postfix/ and restart postfix service.

smtptlsauthonly = yes
tlssecuritylevel = encrypt

The email messages i'll be encrypted as TLS and verified by your hostname.

Have another answer? Share your knowledge.