login as
TRANSCRIPT
-
8/10/2019 login as
1/8
http://thuviencntt.com/video-huong-dan/video-linux/mail-smtp-mail-postfix-centos-lab-lpi-2-6/
login as: root
[email protected]'s password:
Last login: Wed Nov 5 01:12:06 2014 from 192.168.171.1[root@eiu ~]# yum remove postfix
Loaded plugins: fastestmirror, priorities, refresh-packagekit
Setting up Remove Process
Resolving Dependencies
--> Running transaction check
---> Package postfix.x86_64 2:2.6.6-6.el6_5 set to be erased
--> Finished Dependency Resolution
Dependencies Resolved
=====================================================================
===========
Package Arch Version Repository Size
================================================================================
Removing:
postfix x86_64 2:2.6.6-6.el6_5 @base 9.7 M
Transaction Summary
=====================================================================
===========
Remove 1 Package(s)
Reinstall 0 Package(s)
Downgrade 0 Package(s)
-
8/10/2019 login as
2/8
Is this ok [y/N]: y
Downloading Packages:
Running rpm_check_debug
Running Transaction TestTransaction Test Succeeded
Running Transaction
Erasing : 2:postfix-2.6.6-6.el6_5.x86_64 1/1
warning: /etc/postfix/main.cf saved as /etc/postfix/main.cf.rpmsave
Removed:
postfix.x86_64 2:2.6.6-6.el6_5
Complete!
[root@eiu ~]# yum install postfix
Loaded plugins: fastestmirror, priorities, refresh-packagekit
Existing lock /var/run/yum.pid: another copy is running as pid 3315.
Another app is currently holding the yum lock; waiting for it to exit...
The other application is: PackageKit
Memory : 26 M RSS (926 MB VSZ)
Started: Wed Nov 5 01:23:22 2014 - 00:03 ago
State : Sleeping, pid: 3315
Another app is currently holding the yum lock; waiting for it to exit...
The other application is: PackageKit
Memory : 26 M RSS (896 MB VSZ)Started: Wed Nov 5 01:23:22 2014 - 00:05 ago
State : Sleeping, pid: 3315
Another app is currently holding the yum lock; waiting for it to exit...
The other application is: PackageKit
-
8/10/2019 login as
3/8
Memory : 26 M RSS (886 MB VSZ)
Started: Wed Nov 5 01:23:22 2014 - 00:07 ago
State : Sleeping, pid: 3315
Another app is currently holding the yum lock; waiting for it to exit...The other application is: PackageKit
Memory : 26 M RSS (906 MB VSZ)
Started: Wed Nov 5 01:23:22 2014 - 00:09 ago
State : Sleeping, pid: 3315
Another app is currently holding the yum lock; waiting for it to exit...
The other application is: PackageKit
Memory : 26 M RSS (886 MB VSZ)
Started: Wed Nov 5 01:23:22 2014 - 00:11 ago
State : Sleeping, pid: 3315
Another app is currently holding the yum lock; waiting for it to exit...
The other application is: PackageKit
Memory : 137 M RSS (987 MB VSZ)
Started: Wed Nov 5 01:23:22 2014 - 00:13 ago
State : Running, pid: 3315
Another app is currently holding the yum lock; waiting for it to exit...
The other application is: PackageKit
Memory : 155 M RSS (1.0 GB VSZ)
Started: Wed Nov 5 01:23:22 2014 - 00:15 ago
State : Sleeping, pid: 3315
Another app is currently holding the yum lock; waiting for it to exit...The other application is: PackageKit
Memory : 155 M RSS (1.0 GB VSZ)
Started: Wed Nov 5 01:23:22 2014 - 00:17 ago
State : Sleeping, pid: 3315
-
8/10/2019 login as
4/8
Loading mirror speeds from cached hostfile
* base: mirrors.viethosting.vn
* epel: mirrors.123host.vn
* extras: mirrors.fibo.vn* updates: mirrors.fibo.vn
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package postfix.x86_64 2:2.6.6-6.el6_5 set to be updated
--> Finished Dependency Resolution
Dependencies Resolved
=====================================================================
===========
Package Arch Version Repository Size
=====================================================================
===========Installing:
postfix x86_64 2:2.6.6-6.el6_5 base 2.0 M
Transaction Summary
=====================================================================
===========
Install 1 Package(s)
Upgrade 0 Package(s)
Total download size: 2.0 M
Installed size: 9.7 M
-
8/10/2019 login as
5/8
Is this ok [y/N]: y
Downloading Packages:
postfix-2.6.6-6.el6_5.x86_64.rpm | 2.0 MB 00:00
Running rpm_check_debugRunning Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : 2:postfix-2.6.6-6.el6_5.x86_64 1/1
Installed:
postfix.x86_64 2:2.6.6-6.el6_5
Complete!
[root@eiu ~]# service sendmail stop
sendmail: unrecognized service
[root@eiu ~]# alternatives --config mta
There is 1 program that provides 'mta'.
Selection Command
-----------------------------------------------
*+ 1 /usr/sbin/sendmail.postfix
Enter to keep the current selection[+], or type selection number: 1[root@eiu ~]# vi /etc/postfix/main.cf
Chnh sa 1 sdng
[root@eiu ~]# service postfix restart
Shutting down postfix: [ OK ]
-
8/10/2019 login as
6/8
-
8/10/2019 login as
7/8
250 2.1.0 Ok
rcpt to:[email protected]
250 2.1.5 Ok
data354 End data with .
Mail nay gui tu dang thai doan hv1
.
250 2.0.0 Ok: queued as D6760A0E8D
quit
221 2.0.0 Bye
Connection closed by foreign host.
[root@eiu ~]# mail -u nv2
Heirloom Mail version 12.4 7/29/08. Type ? for help.
"/var/mail/nv2": 1 message 1 new
>N 1 [email protected] Wed Nov 5 01:39 14/451
& 1
Message 1:
From [email protected] Wed Nov 5 01:39:28 2014
Return-Path:
X-Original-To: [email protected]
Delivered-To: [email protected]
Date: Wed, 5 Nov 2014 01:38:41 -0800 (PST)
From: [email protected]
To: undisclosed-recipients:;Status: R
Mail nay gui tu dang thai doan hv1
-
8/10/2019 login as
8/8
& exit
[root@eiu ~]#