naleensa
By:
naleensa

Enable authentication on postfix

July 24, 2016 1.7k 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.
2 Answers

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

smtptlsauthonly = yes
smtp
tlssecuritylevel = encrypt

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

You have an article about it on DO :
https://www.digitalocean.com/community/tutorials/how-to-configure-a-mail-server-using-postfix-dovecot-mysql-and-spamassassin

Uses dovecot and mysql for TLS authentication.

by Nestor de Haro
In this tutorial we are going to configure a mail server using Postfix, Dovecot, MySQL, and SpamAssassin on Ubuntu 12.04.
Have another answer? Share your knowledge.