Linux third-party email configuration
In many cases we need Linux to send a log of scheduled tasks, or to back up the failed message log to our designated mailbox, we need to configure the Linux mail service postfix or use third-party mail, which describes the third-party mail Linux configuration method,
In my email [email protected] for example:
Configuration file/etc/mail.rc
Append the following content:
Cat>>/etc/mail.rc<<eof
Set [email protected]
Set smtp=smtp.qq.com
Set Smtp-auth-user=dragonfly
Set smtp-auth-password=----
Set Smtp-auth=login
Eof
Note: If the 550 error, stating that your QQ mailbox does not open a third-party SMTP service, you need to login QQ set up SMTP service, should be set up a separate authorization password, 163 mailbox Similarly, the default is to close the third-party mail service.
We're teaching you to use the Mail command.
For example, I want to send the contents of the hosts file to the designated [email protected] email address
mail-s "title" [email protected] </etc/hosts
Linux Extranet Email configuration