Linux configuration mail client 1.
Request a 163 mailbox and configure the client authorization password
L Open Pop3/smtp/imap
L Set the client authorization password
# # # This password cannot be the same as the mailbox password, this password is used in Linux mail client configuration. Add the client authorization code set here to ABC
# # #备注最好配置完之后, configure the mailbox password and the client authorization password to be the same.
2.
Linux installation sendmail,mailx 3.
Configure message sender information
Edit /etc/mail.rc Add the following information on the last line
Set [email protected] # # # here to set the sender's information
Set smtp=smtp.163.com # # # here configures the Mail service address because the mailbox is 163 , so it is configured here as smtp.163.com
Set [email protected] # # # here to configure the sender's email address
Set SMTP-AUTH-PASSWORD=ABC # # # Remember here the configuration ABC is the client authorization code, not the sender's email address password.
Set Smtp-auth=login # # # e-mail authentication method
4.
Test Send
echo " test content " |mail-s " test mail " [email protected]
Linux Configuration mail Client