After a few days of tossing, I finally matched MUTT, now there is now it to share with you, I hope to solve the comrades just contact MUTT :)
I chose MUTT FETCHMAIL ESMTP Procmail to send and receive mail, and the following is introduced to each configuration:
Mutt Mutt is a pure MUA, which is responsible for the management of mail, not like Thunderbird, Evolution and other software, Mutt handed these tasks to other food to other things. Software, ie Fetchmail and ESMTP.
MUTT's configuration file is best placed inside ~ / .mutt, named Muttrc, which can put other configured configurations with MUTT in ~ / .mutt, easy to manage. Muttrc can be very complicated, so the best way is to find a ready-made, change to your own, then look here: http://www.mutt.org and http://www.dotfiles. COM
Fetchmail is precisely, Fetchmail and Mutt have no relationship, which puts letters from the server, default delivery to / var / mail / user (system default mail pool). The configuration is very simple, similar to this look:
Poll mails.tsinghua.edu.cn with proto pop3
User "You" with password "pass" is "you" Here Fetchall
This configuration is very understandable, I will not go repeatedly (if you don't understand, let's take a look at Fetchmail documents).
If you want to classify or automate the received mail, or do additional operations, then use procmail, then modify the configuration:
Poll mails.tsinghua.edu.cn with proto pop3
User "You" with password "pass" is "you" Here Fetchall
MDA "/ usr / bin / procmail -d user"
Where users are your login on your machine.
Procmail In short, Procmail is similar to an automatic mail classification filter. You can give it some rules. When Fetchmail is handed over to Procmail, it will handle it according to these rules, the most commonly used Go to the folder. Procmail's configuration is not difficult, I need to point out something here is:
If you have a .procmail folder in your $ home, please put the .procmailrc in $ home / .procmail, otherwise it will be invalid. I don't know why. ESMTP because MUTT can't send an email, so I must call other MTA tools. Debian defaults to EXIM, you can see that EXIM is definitely good. But it is true, with some Cannons with EXIMs, some cannons - large materials, there is no need. So I chose a lightweight ESMTP. It is easy to use more simple. Seeing its sample configuration, you only need to write SMTP Server, User, Password, which is very easy. It works with MUTT is a sentence (in muttrc):
SET sentmail = "/ usr / bin / esmtp"
ESMTP can also use procmail, and can also be called by Fetchmail if you want to modify Fetchmail configuration: Poll mails.tsinghua.edu.cn with proto pop3
User "You" with password "pass" is "you" Here Fetchall
MDA "/ usr / bin / esmtp -f% f% T"
This is the same as our previous effect. Other Address This: ABOOK, you can also integrate with MUTT, Google Mutt ABOOK knows how to work together.