Postfix Installation and simple testing

Source: Internet
Author: User
~#/sbin/service SendMail Stop
A preparatory work:
(Be sure to download the source package, unzip the completion)
1./usr/sbin/adduser postfix
2.vi/etc/passwd
Postfix:*:1001:1001:postifx:/no/where:/bin/false
3.vi/etc/group
postdrop:*:1007
4.whereis SendMail
5.mv/usr/sbin/sendmail/usr/sbin/sendmail.orig
6.mv/usr/lib/sendmail/usr/lib/sendmail.orig
7.mv/usr/bin/mailq/usr/bin/mqilq.orig
8.mv/usr/bin/newaliases/usr/bin/newaliases.orig
9./sbin/chkconfig--level 0123456 SendMail off

Two-Installation
1.CD test/postfix-xxx.xx
2.make
3.make Install

Three-start
1./usr/sbin/postfix start
2./usr/sbin/postconf-e myhostname=smil.test.com
3./usr/sbin/postfix Reload

Four-Test
Telnet 127.0.0.1 (your IP) 25
Helo Myfriend
Mail from: <ttest@test.com>
RCPT to:<ayla@test.com>
Data
Date:tue, May 2007 10:10:00-0500
From:your Friend <test@hoho.com>
To: <myfriend@yourmail.com>
Reply-to: <admin@test.com>
Subject:how is you?

This is a test Mail. Ignore it!
.
Quit

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.