The installation of the CentOS notebook without mouse operation is not convenient, two notebooks are placed on the desktop operation is also very inconvenient, so windows with SSH Landing server operation is very necessary. Download a putty, the software is very small, green software, directly open can be used. CentOS uses ifconfig to query the IP address, Windows with Putty can log on. But found after entering the user name wait a long time to enter the password, very uncomfortable. Baidu a bit, found to be a connection setup problem. SSH client (such as putty) SSH telnet to Linux very slow solution, the main meaning is:
GSSAPI, Auth, Connection, SSH (uncheck) attempt GSSAPI authentication (ssh-2 only)
Although not familiar with the maintenance server, but feel that if the need for automation, what is abnormal should automatically send mail to the designated mailbox, the command line how to send mail? Found some useful information:
1. How to view mail queue?
#sendmail-bp /var/spool/mqueue is empty 0
(View message Queue Why, I do not know, probably the internet when the mail can not be sent out to see the number of queues it)
2, CentOS use the Mail command to send mail, you can customize the sending address OH
Search this article: centos6.x using the Mail command to send mail
With the Mail command, the-r option allows you to specify the sender address.
Echo Hello | Mail-s '12306′-r [email protected] [email protected]
According to some online statements. Use SendMail's-F and-f options to specify that the sender's mailbox and sender name do not work on centos6.7:
Echo Hello | Mail-s '12306′[email protected]---f [email protected]-F Sender
In addition, if you do not specify the sender with-R, the default sender will be: User's full name < login user @pc domain name, this domain name can be set by the following? : (not yet clear about the relationship between the 3 files.) )
sudo VI /etc/mail/local-host-names
sudo vi/etc/sysconfig/network
sudo vi/etc/hosts
(The original received mail can really fake everything) in general, you can see the original message to identify some fake senders (more detailed?). Don't know ... )
In addition to test QQ mailbox NetEase mailbox A school mailbox Google mailbox, only QQ mailbox accept mail command sent messages, other mailboxes do not receive (anti-spam function? )
Found some interesting information:
Fake email, email from any sender, this person's website and blog seem interesting.
Deep analysis of the principle of mail forgery
The Linux Mail command sets the sender, which supports HTML to be made into illustrations.
Played a day of computer, today is recorded here.
Notebook Play Linux Server--CENTOS6 mail command Send mail