Liunx Service (mail Server)

Source: Internet
Author: User
Tags imap dovecot squirrelmail

In liunx, you can send emails in text format to yourself on your computer in advance, although it looks messy, however, you can know how to send an email by sending it.




MUA Mail User Agent (Mail User Agent) such as foxmail outlook

Mda mail delivery agent) such as dovecot

MTA Mail Transmission proxy Mail Transfer Agent) such as postfix sendmail

SMTPSimple Mail Transfer Protocol) is a Simple Mail Transfer Protocol, which helps each computer locate the next destination when sending or transferring Mail. By using the server specified by the SMTP protocol, you can

The mail is sent to the recipient's server. The whole process takes several minutes. The SMTP server is a mail sending server that follows the SMTP protocol and is used to send or transmit emails.


Bytes -----------------------------------------------------------------------------------------------------------


Unmount vm from source package


View vmware-installer-l version

Vmware-installer-u vmware-workstation



-------------------

Mail Server posfix)

Installation package:

Postfix-2.3.3-2.3.el5_6.i386.rpm

Dovecot-1.0.7-7.el5_7.1.i386.rpm

Configuration file:

/Etc/postfix/main. cf

Start the service:

Service postfix restart

Port: 25

------------------------------

Send email


Modify host name

Vim/etc/sysconfig/network

Vim/etc/hosts

Hostname xu.qq.com



Host Name modified

69 myhostname = mail.zhb.com host name set to URL type

77 mydomain = zhb.com the domain name is related to the Host Name

93 myorigin = $ mydomain applies to all domains

107 inet_interfaces = all

# Inet_interfaces = localhost


Disable service sendmail stop

Chkconfig sendmail off permanently disabled


Service postfix restart


Netstat-anplt | grep: 25 view port

Lsof-I: 25 view port



Useradd tom

Useradd jerry

Passwd tom

Passwd jerry


Telnet mail.zhb.com 25 ------------------------------------------ test mail sending by logging on to port 25

Trying 192.168.1.2...

Connected to mail.zhb.com (192.168.1.2 ).

Escape character is '^]'.

220 mail.zhb.com ESMTP Postfix

Ehlo mail.zhb.com ----------------------------------------------- establish a connection with the server

250-mail.zhb.com

250-PIPELINING

250-SIZE 10240000

250-VRFY

250-ETRN

250-ENHANCEDSTATUSCODES

250-8BITMIME

250 DSN

Mail from: tom@mail.zhb.com ------------------------------------- sender address

250 2.1.0 OK

Rcpt to: jerry@mail.zhb.com ------------------------------------- recipient address

250 2.1.5 OK

Data -------------------------------------------------- body

354 End data with <CR> <LF>. <CR> <LF>

I am tom who is it? ------------------------------------------ Content x

. -------------------------------------------------------------- Terminator

250 2.0.0 OK: queued as E50F41B60040

Quit ---------------------------------------------------------- quit

Connection closed by foreign host.


--------------------------------------- = ----------

Receive email


Dovecot

Installation Package

Dovecot-1.0.7-7.el5_7.1.i386.rpm

Port 110 143

Start the service:

Service dovecot restart



Telnet mail.zhb.com 110 ---------------------------------- connect to port 110 to receive mail

Trying 192.168.1.2...

Connected to mail.zhb.com (192.168.1.2 ).

Escape character is '^]'.

+ OK Dovecot ready.

User jerry ---------------------------------------------- logon recipient

+ OK

Pass 123 ---------------------------------------------- Password

+ OK Logged in.

List ---------------------------------------------- list emails

+ OK 1 messages:

1 460

.

Retr 1 ----------------------------------------------- View content

+ OK 460 octets

Return-Path: <tom@mail.zhb.com>

X-Original-To: jerry@mail.zhb.com

Delivered-To: jerry@mail.zhb.com

Received: from mail.zhb.com (mail.zhb.com [192.168.1.2])

By mail.zhb.com (Postfix) with SMTP id 6D8191B60056

For <jerry@mail.zhb.com>; Sat, 12 Jan 2013 11:27:19 + 0800 (CST)

Message-Id: <20130112032730.6D8191B60056@mail.zhb.com>

Date: Sat, 12 Jan 2013 11:27:19 + 0800 (CST)

From: tom@mail.zhb.com

To: undisclosed-recipients :;


Hello !!!!!! I am tom

.

Quit ----------------------------------------------------- quit

+ OK Logging out.

Connection closed by foreign host.


-------------------------------------



Graphics

Yum install squirrelmail

Vim/etc/squirrelmail/config. ph

26 $ squirrelmail_default_language = 'zh _ cn ';


Service httpd restart


------------------------------------------------

Postconf-m view the software supported by post


Operating System OS) RHEL5U3 RHEL 5 update 3

Message transmission proxy MTA) Postfix 2.5.3 use the latest version 2.5.3

The database/directory service MySQL 5.0 can be openLDAP or NetScape LDAP. This document is based on MySQL.

Email Delivery proxy MDA) maildrop 2.0.x supports filtering and powerful functions

Web account management backend ExtMan 0.2.5 supports unlimited domain names and unlimited users

POP3 server Courier-IMAP is sufficient for most enterprises

The WebMail system ExtMail 1.1 supports multiple languages and all templates, and provides basic functions.

SMTP authentication library Cyrus SASL standard SASL implementation library, supports Courier authlib

Other data authentication libraries Courier Authlib 0.60 authlib are key components of services such as maildrop and courier-imap.

Log Analysis and display mailgraph_ext already contains

Web Server Apache 2.x OS


This article is from the "history_xcy" blog, please be sure to keep this http://historys.blog.51cto.com/7903899/1296681

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.