Linux Administrator (Advance)



Similar documents
Setup Local Mail Server Using Postfix, Dovecot And Squirrelmail On CentOS 6.5/6.4

Configure a Mail Server

Linux Administrator (Advance)

Implementing a SPAM and virus scanning mail server using RedHat Linux 8.0

AXIGEN Mail Server. Quick Installation and Configuration Guide. Product version: 6.1 Document version: 1.0

Implementing a SPAM and virus scanning mail server using RedHat Linux 8.0

Workflow Configuration on R12/R11. High Level Steps. SENDMAIL configuration mostly done by System Administrator Workflow configuration for R12

Mail system components. Electronic Mail MRA MUA MSA MAA. David Byers

CS615 - Aspects of System Administration

SIOS Protection Suite for Linux v Postfix Recovery Kit Administration Guide

Load Balancing/High Availability Configuration for neoninsight Server

How to setup your iphone client

1 Thunderbird v3 and IMAP/SMTP Configuration

Postfix Configuration and Administration

ConnectMail Mobile Configuration

OPS535 Advanced Network Administration. SMTP Lab SIMPLE MAIL TRANSFER PROTOCOL

The Application Layer: DNS

Linux Networking: network services

CipherMail Gateway Quick Setup Guide

Simple Mail Transfer Protocol

services. Anders Wiehe IT department Gjøvik University College

Cannot send Autosupport , error message: Unknown User

Getting Started With Your Virtual Dedicated Server. Getting Started Guide

Postfix. by Rod Roark

Monitoring and Troubleshooting Microsoft Exchange Server 2007 (5051A) Course length: 2 days

Before starting to use the new system you will need to know the password to your e-wire account.

Update Instructions

Articles Fighting SPAM in Lotus Domino

Version 1.7. Inbound Integration (POP3 and IMAP) Installation, Configuration and User Guide. Last updated October 2011

Web Hosting: Pipeline Program Technical Self Study Guide

Install Cacti Network Monitoring Tool on CentOS 6.4 / RHEL 6.4 / Scientific Linux 6.4

Webmail. Setting up your account

Basic Exchange Setup Guide

Emacs SMTP Library. An Emacs package for sending mail via SMTP. Simon Josefsson, Alex Schroeder

Standard Mailbox Software Setup Guide

Parallels Plesk Panel

IRMACS Setup. Your IRMACS is available internally by the IMAP protocol. The server settings used are:

BOTTOM UP THINKING SETUP INSTRUCTIONS. Unique businesses require unique solutions CLIENT GUIDE

Computer Networking. First, you will use the ifconfig command to retrieve the IP address of the computer you are using:

Setup Guide for Exchange Server

The Application Layer. CS158a Chris Pollett May 9, 2007.

CS43: Computer Networks . Kevin Webb Swarthmore College September 24, 2015

Proxy IMAP/POP/SMTP securisé avec Perdition, Postfix et SASL

Getting an ipath server running on Linux

Quick Start Guide. Your New Account

Configuration Task 3: (Optional) As part of configuration, you can deploy rules. For more information, see "Deploy Inbox Rules" below.

escan SBS 2008 Installation Guide

HowTo: Logging, reporting, log-analysis and log server setup Version 2007nx Release 3. Log server version 2.0

Enterprise Mail User Manual Advanced Internet Technologies, Inc. June 2012

Internet Security [1] VU Engin Kirda

Linux VPS with cpanel. Getting Started Guide

Web Hosting Getting Started Guide

NeoMail Guide. Neotel (Pty) Ltd

CN=Monitor Installation and Configuration v2.0

F-Secure Internet Gatekeeper

Configuring Your Client: Eudora 5.x

1. Open Thunderbird. If the Import Wizard window opens, select Don t import anything and click Next and go to step 3.

Mail Services. Easy-to-manage Internet mail solutions featuring best-in-class open source technologies. Features

FTP: the file transfer protocol

ULTEO OPEN VIRTUAL DESKTOP V4.0

CipherMail Gateway Installation Guide

Exim4U. Server Solution For Unix And Linux Systems

Configuring an Client to Connect to CASS Mail Servers

Toll Free: International:

"Charting the Course... Enterprise Linux Networking Services Course Summary

42goISP Documentation

Linux Network Administration

XGenPlus Installation Guide

Configuration Manual for Lime Domains

Internet Messaging Server Suite Evaluation Guide

ISPConfig Documentation

Device Log Export ENGLISH

Setting up your POP3 Mail Client (such as Outlook)

1. Open the preferences screen by opening the Mail menu and selecting Preferences...

Anti-Spam Configuration in Outlook 2003 INDEX. Webmail settings Page 2. Client settings Page 6. Creation date Version 1.2

Expresso Quick Install

Patriots Outlook Configuration

Chapter 2 Application Layer. Lecture 5 FTP, Mail. Computer Networking: A Top Down Approach

Laboration, Ping, Traceroute, etc

OUTLOOK EXPRESS ACCOUNT SETUP FOR USE WITH ELLIPSE ADVANCED SPAM FILTER

Astaro Mail Archiving Getting Started Guide

Converting Prospects to Purchasers.

Internet Technology 2/13/2013

KASPERSKY LAB. Kaspersky SMTP-Gateway 5.5 for Linux/Unix ADMINISTRATOR S GUIDE

INSTALLING KAAZING WEBSOCKET GATEWAY - HTML5 EDITION ON AN AMAZON EC2 CLOUD SERVER

Getting Started With Your Virtual Dedicated Server. Getting Started Guide

Using MailStore to Archive MDaemon

Outlook Express. Make Changes in Red: Open up Outlook Express. From the Menu Bar. Tools to Accounts - Click on Mail Tab.

Parallels Plesk Control Panel

CTIS486 Midterm Solution 23/07/ Akgül

eprism Security Suite

Getting Started Guide. Getting Started With Your Dedicated Server. Setting up and hosting a domain on your Linux Dedicated Server using Plesk 8.0.

Written by: Johan Strand, Reviewed by: Chafic Nassif, Date: Getting an ipath server running on Linux

Configuring MailArchiva with Insight Server

StoreGrid Backup Server With MySQL As Backend Database:

Basic Exchange Setup Guide

Transcription:

Linux Administrator (Advance) Mr.Kriangsak Namkot Trainer & Director Jodoi IT&Service Co.,Ltd. jodoi@jodoi.com jodoi1819@hotmail.com http://www.jodoi.com Linux Admin II Day 2 9:00 น. -12.00 น. - Mail Server (postfix,dovicot ) 10:30 น. -10.45 น. - Coffee Break 10.45 น. -12.00 น. - Mail Server (postfix,dovicot ) 12.00 น. -13.00 น. - Lunch 13.00 น. -14.30 น. - Webmail (Squirrelmail ) 14.30 น. -14.45 น. - Coffee Break 14.45 น. -16.00 น. - DNS Server & Mail Server 1

Mail Server Mail Server - SMTP server SMTP (Simple mail transfer protocol) server is a computer that receives outgoing mail messages from users and routes them to their intended recipients. - POP server POP (Post Office Protocol) mail refers to email software on your personal computer that sends and receives mail via a shared computer's electronic post office. - IMAP Server IMAP (Internet Message Access Protocol) is a protocol for retrieving email messages and working with mailboxes on a mail server using an email client Postfix SMTP Server Postfix Mail Server Remove sendmail [root@jodoi-server html]# /etc/init.d/sendmail stop Shutting down sm-client: [ OK ] Shutting down sendmail: [ OK ] [root@jodoi-server html]# yum remove sendmail Install postfix [root@jodoi-server html]# yum install postfix or [root@jodoi-server ~]# rpm -ivh postfix-2.3.3-2.i386.rpm 2

Postfix Mail Server [root@jodoi-server /]# vi /etc/postfix/main.cf #myhostname = host.domain.tld #myhostname = virtual.domain.tld myhostname = jodoi-server.com #mydomain = domain.tld mydomain = jodoi-server.com #myorigin = $mydomain myorigin = $mydomain Postfix Mail Server #inet_interfaces = all inet_interfaces = all mydestination = $myhostname, localhost.$mydomain, localhost #mynetworks = 168.100.189.0/28, 127.0.0.0/8 mynetworks = 192.168.1.0/24, 127.0.0.0/8 home_mailbox = Maildir/ 3

Postfix Mail Server [root@jodoi-server /]# /etc/init.d/postfix start Starting postfix: [ OK ] [root@jodoi-server html]# netstat -anp grep 25 tcp 0 00.0.0.0:25 0.0.0.0:* LISTEN 5527/master [root@jodoi-server /]# ps -ef grep postfix root 4463 1 016:16? 00:00:00 /libexec/postfix/master postfix 4464 4463 016:16? 00:00:00 pickup -l -t fifo -u postfix 4465 4463 016:16? 00:00:00 qmgr -l -t fifo -u root 4586 2472 016:50 pts/0 00:00:00 grep postfix Postfix Mail Server Testing [root@jodoi-server /]# telnet 192.168.1.200 25 Trying 192.168.1.200... Connected to 192.168.1.200 (192.168.1.200). Escape character is '^]'. helo jodoi-server.com mail from:jodoi@jodoi.com rcpt to:jodoi@jodoi-server.com data test mail. quit 221 2.0.0 Bye Connection closed by foreign host. 4

Postfix Mail Server [root@jodoi-server /]# tail -f /var/log/maillog Aug 14 16:22:32 jodoi-server postfix/qmgr[4465]: 315E927BD1: removed Aug 14 16:51:47 jodoi-server postfix/smtpd[4590]: connect from unknown[192.168.1.200] Aug 14 16:52:23 jodoi-server postfix/smtpd[4590]: 84A7927BC7: client=unknown[192.168.1.200] Aug 14 16:52:35 jodoi-server postfix/cleanup[4595]: 84A7927BC7: message-id=<20080814095223.84a7927bc7@jodoi-server.com> Aug 14 16:52:35 jodoi-server postfix/qmgr[4465]: 84A7927BC7: from=<jodoi@jodoi.com>, size=354, nrcpt=1 (queue active) Aug 14 16:52:35 jodoi-server postfix/local[4596]: 84A7927BC7: to=<jodoi@jodoi-server.com>, relay=local, delay=23, delays=22/0.07/0/0.01, dsn=2.0.0, status=sent (delivered to mailbox) Aug 14 16:52:35 jodoi-server postfix/qmgr[4465]: 84A7927BC7: removed Aug 14 16:52:39 jodoi-server postfix/smtpd[4590]: disconnect from unknown[192.168.1.200] Dovecot POP3/IMAP Server [root@jodoi-server ~]# rpm -q dovecot dovecot-1.0-1.2.rc15.el5 [root@jodoi-server html]# yum install dovecot or [root@jodoi-server ~]# rpm -ivh dovecot-1.0.7-2.el5.i386.rpm [root@jodoi-server /]# vi /etc/dovecot.conf #protocols = imap imaps pop3 pop3s protocols = imap pop3 # mail_location = mbox:~/mail:inbox=/var/mail/%u 5

Dovecot POP3/IMAP Server [root@jodoi-server /]# /etc/init.d/dovecot start Starting Dovecot Imap: [ OK ] [root@jodoi-server /]# netstat -anp grep dovecot tcp 0 0:::110 :::* LISTEN 4746/dovecot tcp 0 0:::143 :::* LISTEN 4746/dovecot Dovecot POP3/IMAP Server [root@jodoi-server /]# telnet 192.168.1.200 110 Trying 192.168.1.200... Connected to 192.168.1.200 (192.168.1.200). Escape character is '^]'. +OK Dovecot ready. user jodoi +OK pass xxxxx +OK Logged in. list +OK 18 messages: 1 1439 2 3250 quit +OK Logging out. Connection closed by foreign host. 6

Mail Server Squirrelmail Web Mail Squirrelmail http://www.squirrelmail.org/download.php [root@jodoi-server ~]# wget http://voxel.dl.sourceforge.net/sourceforge/squirrelmail/ squirrelmail-1.4.15.tar.gz [root@jodoi-server ~]# tar -zxvf squirrelmail-1.4.15.tar.gz [root@jodoi-server ~]# mv squirrelmail-1.4.15 squirrelmail [root@jodoi-server squirrelmail]# pwd /var/www/html/squirrelmail 7

Squirrelmail Web Mail [root@jodoi-server config]# pwd /var/www/html/squirrelmail/config [root@jodoi-server config]# rm -f config.php [root@jodoi-server config]#./conf.pl config 3 Menu 1. Organization Preferences 2. Server Settings and 3. General Options Squirrelmail Web Mail 1. Organization Preferences SquirrelMail Configuration : Read: config_default.php (1.4.0) --------------------------------------------------------- Organization Preferences 1. Organization Name : Jodoi Webmail 2. Organization Logo :../images/sm_logo.png 3. Org. Logo Width/Height : (308/111) 4. Organization Title : SquirrelMail $version 8

2. Server Settings Squirrelmail Web Mail SquirrelMail Configuration : Read: config_default.php (1.4.0) --------------------------------------------------------- Server Settings General ------- 1. Domain : jodoi-server.com 2. Invert Time : false 3. Sendmail or SMTP : SMTP A. Update IMAP Settings : localhost:143 (other) B. Update SMTP Settings : localhost:25 3. General Options Squirrelmail Web Mail SquirrelMail Configuration : Read: config.php (1.4.0) --------------------------------------------------------- General Options 1. Data Directory : /var/www/html/squirrelmail/data/ 2. Attachment Directory : /var/www/html/squirrelmail/data/ 3. Directory Hash Level : 0 4. Default Left Size : 150 5. Usernames in Lowercase : false 9

Squirrelmail Web Mail S Save data Q Quit Command >> s Data saved in config.php Press enter to continue... Command >> q [root@jodoi-server config]# chmod -fr 777 /var/www/html/squirrelmail/data/ [root@jodoi-server config]# service httpd restart Stopping httpd: [ OK ] Starting httpd: [ OK ] Squirrelmail Web Mail Read Thai 10. Languages 2. Default Charset : utf8 10

Squirrelmail Web Mail Squirrelmail Web Mail 11

Squirrelmail Web Mail Mail Server # vi /var/named/zone.jodoi-server.com @ IN A 192.168.1.220 @ IN NS ns1.jodoi-server.com. @ IN MX 10 mail.jodoi-server.com. @ IN MX 20 pop3.jodoi-server.com. @ IN MX 30 smtp.jodoi-server.com. www IN A 192.168.1.220 ns1 IN A 192.168.1.220 mail IN A 192.168.1.220 pop3 IN A 192.168.1.220 smtp IN A 192.168.1.220 12

Mail Server 13