Netease 163 Free Email Related server information:
Mutt is the mail client under the command line. It is only used to manage the Organization and editing of emails. The corresponding program needs to be called to send and receive emails.
Getmail and msmtp are used here.
The procedure is as follows:
=====
1. Install mutt, getmail, and msmtp
======================================
$ Sudo Yum-y install mutt getmail msmtp
2. Build mail dir ============================
Create ~ /Mail directory:
$ Mkdir-M 700 ~ /Mail/inbox/{, TMP, new, cur}
3. Configure getmail =============================
Reference:
$ Mkdir ~ /. Getmail
$ Cd ~ /. Getmail
$ VI getmailrc.163
[Retriever]
Type = simplepop3sslretriever
Server = pop.163.com
Port = 995
Username = Username
Password = Password
[Destination]
Type = maildir
Path = ~ /Mail/inbox/
[Options]
Verbose = 0
# Don't delete messages on server.
Delete = false
# Don't retrieve all available message.
Read_all = false
Message_log = ~ /. Getmail/getmail. Log
4. config ~ /. Msmtprc ============================
$ Touch ~ /. Msmtprc
$ Chmod 600 ~ /. Msmtprc
$ VI ~ /. Msmtprc
Account 163
TLS on
Tls_certcheck off
Tls_starttls off
Auth on
Host smtp.163.com
User Username
From [email protected]
Password
Port 465
5. Add the following lines ~ /. Muttrc = =
Set folder = ~ /Mail
Mailboxes + inbox
Mailboxes + linux
Set Sendmail = "/usr/bin/msmtp"
# The mail_address name displayed on the mail list.
Set From = "mail_address"
Set pager_stop = Yes
Set beep = No
Set Signature = "~ /. Signature"
Set copy
Set edit_headers
Set fast_reply
Set help
Set include = Yes
Bind Index \ Cr search-opposite
Bind Index \ CS search-next
Bind pager \ Cr search-opposite
Bind pager \ CS search-next
Bind pager \ er read-Thread
Bind Index \ er read-Thread
Macro index G "! Getmail-R ~ /. Getmail/getmailrc.163 \ n "INVOKE getmail"
# Append address to CC.
My_hdr CC: Address
6. getmail ==============
Use cron or other programs to run getmail to check out mail.
Getmail command
$ Getmail-R ~ /. Getmail/getmailrc.163
Fetch the mail every two minutes.
$ Crontab-e
*/2 * getmail-R ~ /. Getmail/getmailrc.163
Mailbox can't be processed in one config file. But mulitple config
File can be processed.
7. Run mutt ================
$ Mutt-y