Computer shop news Today, when using mail to send mail to your own mailbox on the Linux server, there are various problems.
Because of the monitoring requirements, I wrote a simple script to send the information on the server to my mailbox. After the script is written, it will run first:
-bash: mail: command Not found
Later I remembered that the system was minimally installed, many of the toolkits were not installed, and then found that sendmail was not installed, so the yum installation was completed:
yum -y install Mailx sendmail
After waiting for the installation, run the script again, no error, but the mail is not sent out, check the server mail log found:
cat /var/log/maillog
Dec 17 11:42:29 localhost sendmail[30528]: qBH3gT5P030528: [email protected], ctladdr=root (0/0), delay=00:00:00, xdelay=00:00:00, Mailer=relay, pri=30138, relay=[127.0.0.1] [127.0.0.1], dsn=4.0.0, stat=Deferred: Connection refused by [127.0.0.1]
The reason for this error Is /var/spool/mail this directory has insufficient permissions, you need to set it to 777
chmod -R 777 /var /spool/mail
Then restart the sendmail service
service sendmail restart
Call the script again, it works fine.
The reverse proxy can be divided into two types from the transmission: 1: synchronous mode (apache-
Under Linux is a regular software installation method in addition to binary form of software distrib
In Unix-like systems, you can use top to view system resources, processes, memory usage and other in
In the various Linux distributions now, the enterprise version of red hat is relatively safe. For t
Linux common fault handling summary
There are several ways to mount rootfs when Linux starts.
Linux primary and secondary device number introduction
Linux df command parameters detailed
Linux tar.gz, tar, zip, etc. decompress, compress the command
Data transfer on the link layer of the Linux protocol stack (new bridge (3))
Windows 7 and Fedora dual system installation method
Detailed Explanation of 7 Weapons in Linux
Tar encountered error: "Error exit delayed from previous errors" several problems
How to burn Windows8 system with U disk
Talking about the first system update after Windows 7 (7022) installation
How to bind the hosts system file under the win7 system
Win7 system boot black screen prompt ntoskrnl.exe file loss how to solve?
How to upgrade win10 to the latest preview version 9926 win10 9926 update steps
Win8.1 recovery environment only UEFI firmware settings, boot settings options how to fix?
Win8 application seniors said that the time is up
How to get rid of the afterimage on the Win7 system desktop