You are not logged in.
I have been trying to set up Mutt, following the Mutt wiki page. Every time I run 'mutt' at the command line, the application opens but I get the following error message at the bottom of the window:
Could not find the host "imap.qmul.ac.uk"I've tried various .muttrc variations, but no luck so far. Here is my current .muttrc file (with my username changed to 'user' but no other changes):
set imap_user = user
set folder = "imaps://user@imap.qmul.ac.uk:993/"
set spoolfile = +INBOX
mailboxes +INBOX
unset imap_passive(Eventually I will add smtp information, but it seems premature at this stage. I also tried putting my password in there, but it did not make a difference.)
It may be relevant that I also cannot telnet into the imap server in question (or get in there with 'ssh'). I set up telnet using the telnet wiki page.
The IMAP server itself seems to be working well: I can log in there and read and send emails just fine when I use a GUI-based email client.
Any ideas, anyone, on what's going wrong?
PaulE
Last edited by PaulE (2013-01-05 11:23:07)
Offline
Try with your full email address.
set from = "danxxx@gmail.com"
set realname = "dan"
set imap_user = "danxxx@gmail.com"
set folder = "imaps://imap.gmail.com:993"
set spoolfile = "+INBOX"
set postponed ="+[Gmail]/Drafts"
set header_cache =~/.mutt/cache/headers
set message_cachedir =~/.mutt/cache/bodies
set certificate_file =~/.mutt/certificates
set smtp_url = "smtp://danxxx@smtp.gmail.com:587/"
macro index gi "=INBOX" "Go to inbox"
macro index ga "=[Gmail]/All Mail" "Go to all mail"
macro index gs "=[Gmail]/Sent Mail" "Go to Sent Mail"
macro index gd "=[Gmail]/Drafts" "Go to drafts"
set move = no #Stop asking to "move read messages to mbox"!
set imap_keepalive = 900
....
Alpine is more user-friendly.
Last edited by stressat (2013-01-04 16:32:28)
Offline
Thanks for replying, stressat. But I just tried it with my full email address, and it didn't make any difference, I'm afraid.
PaulE
Offline
The error suggests a networking issue to me, so best to rule out some of those first.
When you use the gui application, is it whilst on the same network as when trying mutt?
What are your gui application's settings?
What is the telnet error message?
Can you ping the server?
Do you know it's ip address and does that work?
"...one cannot be angry when one looks at a penguin." - John Ruskin
"Life in general is a bit shit, and so too is the internet. And that's all there is." - scepticisle
Offline
Thank-you very much, skanky, you just solved the problem for me! In your last comment, I assume you meant 'Does it work if you put the IP address in your .muttrc instead of the server name?'
That's what I did and it's working just fine now. Here's my revised .muttrc, in case anyone has a similar problem:
set imap_user = user
set folder = "imaps://user@138.37.6.143:993/"
set spoolfile = +INBOX
mailboxes +INBOX
unset imap_passiveFingers crossed for adding smtp information.
I still don't know why it was necessary to do that, since the wiki and other online mutt advice pages tell people to include the server name. If anyone has any insight into this, I'd be interested in hearing it. But I'll mark this as SOLVED.
Thanks again, skanky.
PaulE
Offline
Just in case anyone stops by and is interested in the networking question, let me add, in partial answer to skanky's questions, that I can indeed ping the server:
$ ping imap.qmul.ac.uk
PING imap.qmul.ac.uk (138.37.6.143) 56(84) bytes of data.And the telnet error message I get is as follows:
$ telnet imap.qmul.ac.uk
Trying 138.37.6.143...
telnet: Unable to connect to remote host: Connection timed outBut I've just noticed that if I include a port the telnetting works fine:
$ telnet imap.qmul.ac.uk 993
Trying 138.37.6.143...
Connected to imap.qmul.ac.uk.
Escape character is '^]'.I don't know why that should be, since a port number is optional in the telnet documentation I've consulted, both on my system (via 'man') and elsewhere.
And if I include a port number in my .muttrc folder setting but keep the server name instead of the IP address...
set imap_user = user
# set folder = "imaps://user@138.37.6.143:993/"
set folder = "imaps://user@imap.qmul.ac.uk:993/"
set spoolfile = +INBOX
mailboxes +INBOX
unset imap_passive... it STILL doesn't work:
Could not find the host "imap.qmul.ac.uk"Finally the GUI application that I mentioned was a webmail service. I just go to a web page and type in my username and password, so I don't know about its settings offhand. I can try to find them out if this issue is of interest to any networking expert who wanders by.
There are deep mysteries here, but I am content for the moment that I have mutt up and running.
PaulE
Offline
One mystery I can solve: the port number is optional in the tellnet command as it will just chose a default if you do not specify one. But most servers only accept connections on specific ports - which may not be telnet's default choice.
So it is optional for telnet as telnet is happy to *try* to connect to your mail server on any random port. But it will only succeed if it uses the one port that the mail server is configured to accept (993 in this case).
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
Thank-you, Trilby! I am becoming less of a noob as we speak.
PaulE
Offline
Glad that's sorted. Re the networking error, it will be something to do with DNS - converting the domain name to the ip address. It will depend on network set-up and whether you're on the internal network or external, etc.
You could add it to your hosts file for now so that you only have to change it there if it changes - though you would need to re add the domain name in the muttrc and telnet etc. to gain that advantage.
Unfortunately the webmail application means it's probably of little use for settings.
Last edited by skanky (2013-01-05 18:57:23)
"...one cannot be angry when one looks at a penguin." - John Ruskin
"Life in general is a bit shit, and so too is the internet. And that's all there is." - scepticisle
Offline