» Installing and configuring postfix Step 1» Assign static IP and hostname and add a host entry for the host name. Assign hostname in /etc/hostname

Similar documents
Linux Postfix Smtp (mail Server) Ssl Certificate Installation And Configuration

Upgrading POSIX components to be TLS v1.2 compatible

2017/12/27 07:31 (UTC) 1/7 Making Slackware Mail Server

Practical classes Lab5. Integration of global services in enterprise environments II:

with Postfix, Dovecot, and MySQL

This material is based on work supported by the National Science Foundation under Grant No

2. Installing OpenBiblio 1.0 on a Windows computer

HUL SOVANNAROTH PANG DA TIP SAROTH

Scan Results - ( Essentials - Onsharp )

Computer System Design and Administration

Public-Key Infrastructure (PKI) Lab

Cryptography. Basic Concept and Applications. Chung-Yi Chi Jun. 26, 2010

Your Apache ssl.conf in /etc/httpd.conf.d directory has the following SSLCertificate related directives.

Password Change and Mail Client Configuration Guide for sltnet.lk/slt.lk Mail Server

Bitnami Coppermine for Huawei Enterprise Cloud

Xplornet using Mozilla Thunderbird 52

Apache Security with SSL Using FreeBSD

How To Set Up A Postfix Autoresponder With Autoresponse

Bitnami Mantis for Huawei Enterprise Cloud

Bitnami ProcessMaker Community Edition for Huawei Enterprise Cloud

How do I configure my LPL client to use SSL for incoming mail?

Bitnami Dolibarr for Huawei Enterprise Cloud

Protecting the AXIGEN Messaging Solution with NOD32

SSL, Credit Card Transactions. CS174 Chris Pollett Nov. 5, 2007.

SETUP FOR OUTLOOK (Updated October, 2018)

FAQ 106 How do I access and set up client applications? There are two ways to access a mailbox for sending and receiving messages:

Bitnami Pimcore for Huawei Enterprise Cloud

Set Up with Microsoft Outlook 2013 using POP3

Services absichern. Common Practice. Aleksander Paravac #gpn16

Note: CONTENTS. 1. Outlook Express (IMAP) 2. Microsoft Outlook (IMAP) 3. Eudora (IMAP) 4. Thunderbird (IMAP) 5. Outlook Express (POP)

Introduction. Setting Up POP3/IMAP Accounts

Bitnami TestLink for Huawei Enterprise Cloud

Fortinet.Certdumps.FCESP.v by.Zocki.81q. Exam Code: FCESP. Exam Name: Fortinet Certified Security Professional

How to integrate CMS Appliance & Wallix AdminBastion

Setup a mail server using Postfix, Mysql, SSL and Courier-IMAP Saturday, 25 March 2006 Last Updated Monday, 16 April 2007

mobilefish.com Create self signed certificates with Subject Alternative Names

CipherMail Gateway Upgrade Guide

CA Nimsoft Unified Management Portal

DOVECOT ON CEPH CLUSTER

A Server (Almost) of Your Own

Bitnami Open Atrium for Huawei Enterprise Cloud

Bitnami Phabricator for Huawei Enterprise Cloud

UCON-IP-NEO Operation Web Interface

Bitnami Tiny Tiny RSS for Huawei Enterprise Cloud

Mail Server With Postfix and Courier-imap and Virtual Users Wednesday, 12 March 2008 Last Updated Thursday, 03 April 2008

Sterling Secure Proxy Version 3 FTP Adapter Configuration with SSL. ProFTP SSL Certificate creation with openssl

802.1x EAP TLS with Binary Certificate Comparison from AD and NAM Profiles Configuration Example

Bitnami ez Publish for Huawei Enterprise Cloud

Thunderbird POP Instructions Bloomsburg University Students

Changes Required for Outlook 2010 for PC

Bitnami Moodle for Huawei Enterprise Cloud

Bitnami ERPNext for Huawei Enterprise Cloud

Scaling Dovecot using Mysql and Virtual Users. AfNOG 2013 Scalable Internet Services (SS-E) Lusaka, Zambia Presented by Michuki Mwangi

How Internet Works

Bitnami Re:dash for Huawei Enterprise Cloud

Client Setup Manual (Thunderbird) Version 1.0

Setup Guide. Page 0

it will substitute $postfix_uid with the correct value. At the beginning of each section, I will give these strings for you. Ok, lets get on with it.

Account Set Up Guide

Bitnami Piwik for Huawei Enterprise Cloud

DANE/DNSSEC/TLS Testing in the Go6lab. Jan Žorž, Internet Society

Thunderbird IMAP Instructions Bloomsburg University Students

Bitnami JFrog Artifactory for Huawei Enterprise Cloud

2) Edit /etc/mysql/my.cnf and comment (to enable client communications) # bind-address =

Twiki Installation Notes. Ned Brush 4/13/06. Everything is left as is (default settings) unless specified below. Distribution: RHEL 4

Bitnami OSQA for Huawei Enterprise Cloud

Postfix Catch All and Mutt

Webmail Which Webmail applications are available?

LAB :: Secure HTTP traffic using Secure Sockets Layer (SSL) Certificate

Configuring Secure Communication to Oracle to Import Source and Target Definitions in PowerCenter

Storage Made Easy Cloud Appliance installation Guide

Bitnami OroCRM for Huawei Enterprise Cloud

Advantech AE Technical Share Document

Bitnami MediaWiki for Huawei Enterprise Cloud

Setting up IMAP Mail in Outlook

SMTP [in]security. Ian Foster Jon Larson

700 Fox Glen Barrington, Illinois ph/fx: [847] Setup Guide

To Setup your Business id in MacOS X El Capitan Mail (POP) To find MacOS version please visit: Apple Support macos version

Nimsoft Unified Management Portal

Thunderbird IMAP Instructions - Bloomsburg University Students

1. In Outlook click on the blue (2013) or yellow (2010) File tab in the top left corner of the window. 2. Click on + Add Account

Version: 1.0 Date Created: 02/05/16 Date Modified: Author: Ajinkya Ghare. Configuration - User guide

Bitnami Subversion for Huawei Enterprise Cloud

Expedition. Hardening Guide Version Palo Alto Networks, Inc.

Bitnami Trac for Huawei Enterprise Cloud

How to configure your Windows PC post migrating to Microsoft Office 365

based on the idc/isp/catv Servers Hands On Seminar on December 17 18, 2009, organized by

CA Nimsoft Unified Management Portal

PBX. WMS Settings Menu Guide - English. Apr 12, :15

(For Student Organizations) Copy Old s from CUHK Webmail after Switchover

AXIGEN Mail Server. Quick Installation and Configuration Guide. Product version: 1.2 Document version: 1.2.2

Search for Mail Step 3 Click the Accounts button.

Bitnami DokuWiki for Huawei Enterprise Cloud

SEEM4540 Open Systems for E-Commerce Lecture 03 Internet Security

System Administration

Fasthosts Customer Support. Standard Mailbox Setup Guide

Electronic Mail. COSC301 Laboratory Manual

Configuring Netscape or Thunderbird Mail

How to create wifi Hotspot system using Chillispot, Freeradius 2 and Fedora 12

System Configuration

Transcription:

This tutorial explains how to setup mail server using postfix,dovecot and squirrelmail.» Postfix ( for sending )» Dovecot ( for receiving )» Squirrelmail ( for webmail access ). Here we have used groupn.apnictraining.net for hostname and groupn.apnictraining.net for Domain. Please replace with your domain.» Installing and configuring postfix Step 1» Assign static IP and hostname and add a host entry for the host name. Assign hostname in /etc/hostname groupn.apnictraining.net #hostname groupn.apnictraining.net Add a host entry in /etc/hosts 192.168.30.N groupn.apnictraining.net Step 2» Update the repositories. $ sudo apt-get update Step 3» Install postfix and dependencies. Press enter for all prompted questions during installation. we will do that in the next step. $ sudo apt-get install postfix Step 4» After installation issue the below command to configure postfix. $ sudo dpkg-reconfigure postfix Now you will be prompted for set of details. choose the following values and replace groupn.apnictraining.net with your domain name. 1. Internet Site 2. groupn.apnictraining.net 3. mail

4. groupn.apnictraining.net, localhost.localdomain, localhost 5. No 6. 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128 192.168.0.0/16 7. 0 8. + 9. all Step 5» Now configure Postfix for SMTP-AUTH using Dovecot SASL by adding the below lines to postfix config file /etc/ postfix/main.cf. home_mailbox = Maildir/ smtpd_sasl_type = dovecot smtpd_sasl_path = private/auth smtpd_sasl_local_domain = smtpd_sasl_security_options = noanonymous broken_sasl_auth_clients = yes smtpd_sasl_auth_enable = yes smtpd_recipient_restrictions = permit_sasl_authenticated,permit_mynetworks,reject_unauth_ destination smtp_tls_security_level = may smtpd_tls_security_level = may smtp_tls_note_starttls_offer = yes smtpd_tls_loglevel = 1 smtpd_tls_received_header = yes Step 6» Now generate a digital certificate for tls. Issue the commands one by one and provide details as per your domain. $ openssl genrsa -des3 -out server.key 2048 $ openssl rsa -in server.key -out server.key.insecure $ mv server.key server.key.secure $ mv server.key.insecure server.key $ openssl req -new -key server.key -out server.csr $ openssl x509 -req -days 365 -in server.csr -signkey server.key -out server.crt $ sudo cp server.crt /etc/ssl/certs $ sudo cp server.key /etc/ssl/private Step 7» Now configure certificate path $ sudo postconf -e 'smtpd_tls_key_file = /etc/ssl/private/ server.key'

$ sudo postconf -e 'smtpd_tls_cert_file = /etc/ssl/certs/ server.crt' Step 8» Open /etc/postfix/master.cf file and uncomment below lines to enable smtps ( 465 ) and submission ( 587 ). submission inet n - - - - smtpd -o syslog_name=postfix/submission -o smtpd_tls_security_level=encrypt -o smtpd_sasl_auth_enable=yes -o smtpd_relay_restrictions=permit_sasl_authentic ated,reject -o milter_macro_daemon_name=originating smtps inet n - n - - smtpd -o syslog_name=postfix/smtps -o smtpd_tls_wrappermode=yes -o smtpd_sasl_auth_enable=yes -o smtpd_relay_restrictions=permit_sasl_authentic ated,reject -o milter_macro_daemon_name=originating Step 9» Now install Dovecot SASL by typing the below command. $ sudo apt-get install dovecot-common Issue the following values for the prompts during installation. 1. yes 2. groupn.apnictraining.net Step 10» Make changes to the files as follows. Open /etc/dovecot/conf.d/10-master.conf file and find #

Postfix smtp-auth line ( line no:95 ) and add the below lines. # Postfix smtp-auth unix_listener /var/spool/postfix/private/auth { mode = 0660 user = postfix group = postfix } Open /etc/dovecot/conf.d/10-auth.conf file and find (line no: 100) auth_mechanisms = plain and replace auth_mechanisms = plain login Step 11» Restart postfix and dovecot services $ sudo service postfix restart $ sudo service dovecot restart Step 12» Now test SMTP-AUTH and smtp/pop3 port access. Type the below command and should get below response. $ telnet groupn.apnictraining.net smtp Trying 127.0.0.1... Connected to localhost. Escape character is '^]'. 220 mail.kriznaa.com ESMTP Postfix (Ubuntu) now type ehlo groupn.apnictraining.net and should get below response, please make sure you get those bolded lines. ehlo groupn.apnictraining.net 250-groupN.apnictraining.net -------- 250-STARTTLS 250-AUTH PLAIN LOGIN 250-AUTH=PLAIN LOGIN --------- 250 DSN and try the same with port 587 (telnet groupn.apnictraining.net 587). Postfix configuration is over, continue for dovecot installation.» Installing and configuring dovecot Step 12» Install dovecot using the below command

$ sudo apt-get install dovecot-imapd dovecot-pop3d Step 13» Now configure mailbox. Open /etc/dovecot/conf.d/ 10-mail.conf file and find (Line no:30 ) mail_location = mbox:~/mail:inbox=/var/mail/%u Replace with mail_location = maildir:~/maildir Step 14» Now change pop3_uidl_format. Open /etc/dovecot/ conf.d/20-pop3.conf file and find and uncomment the below line ( Line no : 50 ) pop3_uidl_format = %08Xu%08Xv Step 15» Now enable SSL. Open /etc/dovecot/conf.d/10- ssl.conf file and find and uncomment the below line ( Line no : 6 ) ssl = yes Step 16»Restart dovecot service. $ sudo service dovecot restart Step 17» Now test pop3 and imap port access using the telnet command. $ telnet groupn.apnictraining.net 110 Trying 127.0.0.1... Connected to localhost. Escape character is '^]'. +OK Dovecot (Ubuntu) ready. Repeat the same for 995,993,143 ports. OR check for listening ports using netstat command. $ netstat -nl4 Step 18» Create some users and check using mail clients like thunderbird or outlook $ sudo useradd -m bdnog7 -s /sbin/nologin $ sudo passwd bdnog7 Step19» Install squirrelmail

$sudo apt-get install squirrelmail