5

I'm trying to send an email using mutt like this:

echo 1.txt | mutt [email protected] -s Hello -a file.tar.bz2

It's getting no error, but I didn't receive the email. What's the problem?

2 Answers 2

5

Assuming that you are using a local smtp server, have you checked the maillog? If that is the case, please post some of the log...

3
  • 1
    I'll be thankful if you tell me where can I find the log.
    – Sina
    May 10, 2012 at 19:14
  • There are 2 logs that could be relevant: /var/log/mail.log and /var/log/mail.err It sounds thought that you don't have a mail server setup on your machine, did you configure mutt for a Gmail account?
    – Mordoc
    May 10, 2012 at 20:47
  • If you haven't set Mutt up for Gmail use, here's a great guide on the setup required: lifehacker.com/5574557/…
    – Mordoc
    May 10, 2012 at 20:51
3

Try launching mutt with debug level 1 with the command: mutt -d 1

I solved my problem this way (the certificate couldn't be saved, and mutt was silently not sending emails).

2
  • Why does it actually put the message into /var/mail/ instead of sending it to the destination? Sep 9, 2016 at 17:38
  • Yes, mutt -d 1 is really useful, especially after setup .muttrc file (refer to unix.stackexchange.com/questions/451259/…, the password should be application access password) and gmail application-specific password (refer to unix.stackexchange.com/questions/226936/…), then run only with mutt -d 1 able to observe if the certificate downloading good or not, it will ask you to confirm save if success, after certificate saved you will see pulling emails from gmail happen
    – Lampard
    Aug 12, 2020 at 18:27

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .