Simply send mail with 163 mailboxes, log the configuration steps below, and just record the key steps. ``
Request 163 mailbox, after the client authorization code is opened, the client can use this authorization code to send mail. There is no need for cumbersome validation mechanisms.
Add configuration information to the end of the/etc/mail.rc file.
Send email
Set [email protected]
Set smtp=smtp.163.com:25
Set Smtp-auth=login
Authorized users
Set [email protected]
Authorization password
Set SMTP-AUTH-PASSWORD=123456ZRJ
Ignore validation
Set Ssl-verify=ignore
Set nss-config-dir=/etc/maildbs/
Use the Mail command to send mail
Send regular mail:
echo "This is a message with attachments" |mail-s "Test Mail" 1821980****@163.com
Send a message with an attachment
? echo "This is a message with attachments" |mail-s "Test Mail"-a file.txt [email protected]
?
Linux configuration 163 mailbox Send mail