Every time I try to run Mutt in cygwin I get the following errors:
Error in /home/JJR/.muttrc, line 4: smtp_url: unknown variable
Error in /home/JJR/.muttrc, line 5: smtp_pass: unknown variable
Illegal instruction (core dumped)
And then I observe a stackdump file in my home folder. How can I get Mutt working with Cygwin successfully?
I tried visiting #mutt at irc.freenode.net which had dozens of people but no good answers, now including these two other channels which were surprisingly empty earlier: #cygwinx and #xwin
Oh, and my .muttrc was placed in /home, and not in /.mutt.
I plugged in .muttrc in /.mutt and no error, however, composing and sending messages does
not work. I modified the ~/.muttrc before evoking mutt.
Using: Windows XP SP3, Cygwin 1.7.9-1, Mutt 1.5.21
Best Answer
I believe the Mutt with cygwin is configured and built without SMTP support. If you do
you'll see a list of configuration options used at build time.
Here's the output from my mutt,
As you can see, it has -USE_SMTP which means there's no inbuilt SMTP support.
You should instead, install an MTA (mail transfer agent) and use mutt's inbuilt sendmail support.
I use the Cygwin
ssmtp
package. After installingssmtp
, runssmtp-config
to configure it to talk to your ISP's mail relay and remove / comment out thesmtp_*
stuff from your.muttrc
. You should then be good to go.