Five minutes to learn how to configure the 163 mail client on the command line interface

Source: Internet
Author: User

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 must be called to send and receive emails.

Getmail and msmtp are used here.


The process 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


Five minutes to learn how to configure the 163 mail client on the command line interface

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.