Use MUTT + FETCHMAIL + ESMTP to receive email issues in Linux

xiaoxiao2021-03-06  17

Use MUTT FETCHMAIL ESMTP to receive email issues in Linux

Mutt Fetchmail ESMTP's article is already there. Wang Wei's and AMD's article helps me very much! But referring to their articles will still have some small problems.

First ESMTP log problem. Follow the settings in the two sheets:

# .muttrc

SET sentmail = "/ usr / bin / esmtp -v -x ~ / .esmtplog"

It means using ESMTP to send emails, but this statement does not generate logs under my HOME in my machine! And my email can not be sent! Later, I changed it:

SET sentmail = "/ usr / bin / esmtp -v -x $ home / .esmtplog"

This finally saw the log. Through the log I found that the landing is successful! But still can't send an email. Judging through the log is that mail from is empty! And I have set my_hdr's content. Search for information on the email protocol by reading the ESMTPRC man page and search for an email protocol online. I am inferred that my_hdr can only affect the value of from:. And from: The DATA part is transmitted to the server. So I will change the relevant content in .esmtprc to:

Identity = myself@somewhere.com

Hostname = SMTP.SOMEWHERE.com:25

UserName = "myself"

Password = "secret"

This is finally sent successfully!

转载请注明原文地址:https://www.9cbs.com/read-41748.html

New Post(0)