• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Solved Mutt with iCloud mail?

lionoceros

Member


Messages: 39

#1
I use iCloud mail for a variety of reasons, but I would like to manage it using mail/mutt on FreeBSD. To my knowledge, iCloud just uses normal IMAP with SSL so it should work much like Gmail (what most of the Mutt guides are for). However, I am having some trouble connecting to my account.

This Apple support article provides the IMAP and SMTP settings http://support.apple.com/kb/ht4864. I also looked at this guide to help me get started: https://wiki.archlinux.org/index.php/mutt#IMAP

But I keep getting stuck on
Code:
Mutt: SSL Certificate check (certificate 1 of 3 in chain)
Here is my ~/.muttrc/muttrc
Code:
set imap_user = "user@icloud.com"
set folder = "imaps://imap.mail.me.com:993"
set postponed = "+Drafts"
set spoolfile = "+INBOX"
set record = "+Sent"
 

Beastie

Daemon

Thanks: 418
Messages: 2,085

#2
Re: Mutt with iCloud mail?

Have you tried forcing the use of TLS?
Code:
set ssl_force_tls=yes
 

lionoceros

Member


Messages: 39

#3
Re: Mutt with iCloud mail?

Same problem. Here's my current muttrc:

Code:
set from=user@icloud.com
set imap_user=user@icloud.com
set folder =imaps://imap.mail.me.com:993
set ssl_force_tls=yes
set postponed=+Drafts
set spoolfile=+INBOX
set record=+Sent
 

tzoi516

Well-Known Member

Thanks: 12
Messages: 368

#4
Re: Mutt with iCloud mail?

From what I understand, iCloud won't work on a non-Apple device/web browser. I've tried all of the FAQs online, copied the server info from my iPad and Macs, and I still have been unable to get iCloud email to work with an email client (K9, Thunderbird, Android email, etc).
 

lionoceros

Member


Messages: 39

#5
Re: Mutt with iCloud mail?

tzoi516 said:
From what I understand, iCloud won't work on a non-Apple device/web browser. I've tried all of the FAQs online, copied the server info from my iPad and Macs, and I still have been unable to get iCloud email to work with an email client (K9, Thunderbird, Android email, etc).
That does sound very much like Apple, but it seems strange that they would provide this information http://support.apple.com/kb/ht4864 since Apple devices are pre-configured to set up iCloud automatically. I've also read that other clients like eM http://www.emclient.com/em-with-icloud work with iCloud.
 

tzoi516

Well-Known Member

Thanks: 12
Messages: 368

#6
Re: Mutt with iCloud mail?

I started moving to FreeBSD early last year, and wasn't able to get it to work on anything. However, that Apple FAQ worked for me this time - just sent and received a test email via Thunderbird successfully.
 

lionoceros

Member


Messages: 39

#8
Re: Mutt with iCloud mail?

Glad it works! I think using TLS is what @Beastie's line does, but I'll keep trying what I can figure out from the manual pages. I wonder if there are other settings that are necessary for iCloud with mutt. I'm surprised there isn't a guide on setting this up yet.
 
Last edited by a moderator:

lionoceros

Member


Messages: 39

#9
Re: Mutt with iCloud mail?

Progress! (I think. Still a major problem.) I found this guide http://home.roadrunner.com/~computertai ... .html#IMAP that has some good information. With this current muttrc:
Code:
set imap_user = "user"
set from = "user@icloud.com"
set smtp_url = "smtp://smtp.mail.me.com:587/"

set folder = "imaps://imap.mail.me.com:993"
set postponed = "+Drafts"
set spoolfile = "+INBOX"
set record = "+Sent"

set header_cache = "~/.mutt/cache/headers"
set message_cachedir = "~/.mutt/cache/bodies"
set certificate_file = "~/.mutt/certificates"
The SSL certificate works, but then mutt asks for my password, and it locks up at
Code:
Authenticating (PLAIN)...
I also tried with
Code:
set ssl_force_tls = "yes"
and that didn't make a difference.

What might be causing this problem?
 

protocelt

Daemon

Thanks: 405
Messages: 1,257

#10
Re: Mutt with iCloud mail?

Code:
set imap_user = "user"
set from = "user@icloud.com"
set smtp_url = "smtp://smtp.mail.me.com:587/"

set folder = "imaps://imap.mail.me.com:993"
set postponed = "+Drafts"
set spoolfile = "+INBOX"
set record = "+Sent"

set header_cache = "~/.mutt/cache/headers"
set message_cachedir = "~/.mutt/cache/bodies"
set certificate_file = "~/.mutt/certificates"
Try changing the above to the following:

Code:
set imap_user = "{USERNAME}"
set from = "user@icloud.com"
set smtp_url = "smtp://{USERNAME}@smtp.mail.me.com:587/"

set folder="imaps://{USERNAME}@imap.mail.me.com/"
set postponed = "+Drafts"
set spoolfile="imaps://{USERNAME}@imap.mail.me.com/INBOX"
set record = "+Sent"

set imap_pipeline_depth=0

set header_cache = "~/.mutt/cache/headers"
set message_cachedir = "~/.mutt/cache/bodies"
set certificate_file = "~/.mutt/certificates"
 

lionoceros

Member


Messages: 39

#11
Re: Mutt with iCloud mail?

That worked! The key line was
Code:
set imap_pipeline_depth=0
Here is my current muttrc:

Code:
set imap_user = "user"
set from = "user@icloud.com"
set smtp_url = "smtp://user@smtp.mail.me.com:587/"

set folder = "imaps://user@imap.mail.me.com/"
set spoolfile = "imaps://user@imap.mail.me.com/INBOX"
set postponed = "+Drafts"
set record = "+Sent Messages"

set imap_pipeline_depth=0

set header_cache = "~/.mutt/cache/headers"
set message_cachedir = "~/.mutt/cache/bodies"
set certificate_file = "~/.mutt/certificates"
Changing the SMTP line similarly also allowed me to send mail from mutt; I successfully sent a message to my own iCloud account.

Thank you!


Now I'm off to configure mutt so it treats folders properly.