Hot answers tagged

35

I finally got it to work by enabling Google 2-step verification and using an app-specific password for mutt. More detail: I enabled 2-step verification on my Google account, which means that when I log in to Google, I have to enter a pin number from either a text or from the Google Authenticator app. Then I had to get an app-specific password for mutt. ...


28

As one of the comments says it looks like Google have moved to blocking apps that are using IMAP/SMTP PLAIN authentication by default and you can read official blogs stating that Google strongly recommends IMAP/SMTP protocol users switch to OAuth 2.0 (as XMPP is also listed I wonder if (older?) OSX iChat will stop working with GTalk at some point). Elsewhere,...


15

WARNING: The request does not follow best security practice because you disable TLS (encryption) on your main mail relay port, exposing data sent through that port to third-party listeners and/or in-flight modification. The answer below satisfies the request, but best practice requires STARTTLS for the port 25 connection as well. The master.cf file (usually ...


10

OfflineIMAP and isync are both programs that integrate well with mutt and will satisfy your other criteria. OfflineIMAP is written in Python and isync in C; both are very quick. Both programs are well documented and straightforward to set up; isync perhaps slightly easier. There is one significant difference between the functionality of each that is worth ...


6

Not all IMAP servers are fast, but as previously noted, it is possible to have an efficient IMAP implementation and setup. I've had reasonable luck with dovecot. However, offlineimap is a particularly slow program. It worked fine in small tests, so I switched over to it and redid my whole email setup to depend on it. But then the more mail I got the ...


6

Judging by aharris88's description, Gmail was blocking access to his account via mutt because mutt is using insecure connections when communicating with Gmail's servers. This means that your username and password are being sent across the local network and the Internet in an unencrypted form; generally a really bad idea, and something to be avoided whenever ...


6

Use getmail. It's a nice python program which can be used to download mails from servers. The website is a bit dated, but the software is recent and well maintained. Here is an example config file: [options] delete = False [retriever] type = SimpleIMAPSSLRetriever server = my-servername username = my-username password = my-password [destination] type = ...


6

There are several options depending on what you are wanting to achieve and what you are wanting to do to get there. Get the IMAP server to do the filtering for you. This is sometimes an option in web-mail based solutions and allows you to filter the messages based on e.g. the addresses listed in the To: or Cc: header of each mail. I'm not familiar with ...


5

There is the off-chance that you are referring to uwimapd, an implementation for an IMAP server, when you say "IMAP". In that case you need to make sure none of your mboxes becomes larger than 2GB, that is all emails in the same folder, not counting sub-folders. If you are not referring to uwimapd, I believe your problem is the performance of your computer ...


5

In short, the "problem" arises from the fact that, IMAP4 encodes folder names using a modified UTF-7 coding. offlineimap does not convert folder names to something readable before creating local repositories (e.g. in UTF-8). This, in turn, derives unreadable folder names like the ones shown in the screenshot of this question. Hence, it's neither Mutt's nor ...


5

Its similar to how the data in a rm'd file will still be there until the disk space is reused. Thunderbird marks it free, but doesn't actually free it (which could involve moving later messages in the file, etc.). The way to make it actually free it is to compact the folder. Right-click the trash and select 'Compact'. That should do it. You can also select '...


5

The problem started when I installed Homebrew's version of python rather than the Apple version. The error was resolved by running brew uninstall python I discovered this was the solution by reading about a similar error produced by another Python program on OS X.


5

Gmail does not allow IMAP access by default from clients that don't meet its nebulously-defined security standards - I ran into the same thing testing some scripts I was writing with Python's imaplib. You need to go to the website and enable connections from less secure apps. Information page from Google (includes direct link to settings screen): https://...


4

The biggest difference between POP3 and IMAP from a user's perspective is that POP3 is designed to hold mail until the client (Thunderbird in this case) downloads the mail, at which point it's removed from the POP3 server (it can be configured to do otherwise, but that's not the norm). IMAP on the other hand, is the opposite. It is designed to be the ...


3

By default Dovecot uses Maildir++ directory layout for organizing mailbox directories. This means that all the folders are directly inside ~/Maildir directory, and: ~/Maildir/new, ~/Maildir/cur and ~/Maildir/tmp directories contain the messages for INBOX. You can read more about the layout here Thus what you complain about is standard behavior. You can ...


3

In general you keep checking for e-mail unless, as mentioned by @JoelDavis, the server can be extended with some push command. Further if your e-mail server supports it one can make use of the IDLE extension for IMAP4: http://tools.ietf.org/html/rfc2177 http://en.wikipedia.org/wiki/IMAP_IDLE The IMAPClient has native support for IDLE: http://search.cpan....


3

You can set username and password directly, but it doesn't work when you use an account-hook, so probably the account-hook doesn't work. An account-hook consists of a regexp for the mailboxes, and those commands which should be executed if a mailbox matches the regexp. Since the commands (set imap_user, set imap_pass) are not executed, we can assume that ...


3

I have had a similar setup for several years now, picking up emails with IMAP (and POP). Initially with some other IMAP server but now with dovecot. The performance of the different mailbox formats is very different, especially if you have a large amounts of emails and start moving out things that belong together to a new mail folder. Some formats put all ...


3

Dovecot supports the IMAP SEARCH function, plus it's a pretty simple IMAP service to run. It can read a variety of mailbox formats, so as long as you use fetchmail to deliver into the appropriate format (or to procmail), it should work fine. As for webmail interfaces, there are so many, I wouldn't know where to start. I like RoundCube, but it's more for ...


3

After some back-and-forth through comments and chat the OP's problem is now resolved. The IMAP server needed to be specified as imap.mydomain.com instead of mydomain.com although for some reason this only worked when set using the advanced account settings, not using the account creation dialog box. In addition to mentioning this situation-specific solution,...


3

Try isync which sounds like it should fit your purpose: isync is a command line application which synchronizes mailboxes; currently Maildir and IMAP4 mailboxes are supported. New messages, message deletions and flag changes can be propagated both ways. isync is suitable for use in IMAP-disconnected mode.


3

I don't think that thunderbird displays it incorrectly. Gmail uses a special implementation of IMAP. In this implementation, Gmail labels become Thunderbird folders. When you apply a label to a message in Gmail, Thunderbird creates a folder with the same name as the label and stores the message in that folder. Similarly, if you move a message to a folder ...


3

thanks @ Celada, based on your comment it did seem to be a corrupt installation of dovecot. I installed it using sudo apt-get install dovecot-imapd dovecot-pop3d and the service is starting fine. Am also able to telnet successfully. Before I configured this for LDAP via SASL it was working, so I assumed I messed some configuration. For some reason the root ...


3

The STARTLS process tells the client and server to start negotiating an encrypted connection, so all further data will be TLS (SSL, close enough) encrypted. This will prevent people from sniffing your traffic (eg usernames, passwords). Now some servers can be configured to provide different services; for example an IMAP server may refuse to allow the LOGIN ...


3

Do as recommended by Andreatsh in the comments. Go to http://myaccount.google.com Then "Sign-in & security" -> "Signin in to Google" -> "App password" Once you create the one time password you will also have to run: touch ~/.pine-passfile This makes it so when you enter the gmail folder on Alpine you will be asked if you want to save the password.


2

Mutt supports directory components in the path you give when you rename (r). To move =dir1/dir2/dir3 to dir1, you can do the following: Type c<Tab> to invoke the folder browser. Navigate to dir2 and select dir3. Type r. Enter dir1/dir3. I'm not sure I understand the specification of the destination path. .. doesn't behave like I'd expect it too. ...


2

Ok so the good guys over at daemonforums.org solved it for me! Disabled IMAP_MAILBOX_SANITY_CHECK=0 in /etc/courier/imapd and added that exact same line to /etc/courier/imapd-ssl did the trick. Also not sure if it helped or if it would have worked anyway i did: maildirmake /storage/vmail/anton/Maildir which is the Maildir for my account, obviously the path ...


2

The imap_list_subscribed option may give you what you want, albeit in a roundabout way. From the documentation: This variable configures whether IMAP folder browsing will look for only subscribed folders or all folders. This can be toggled in the IMAP browser with the function. If set to no (the default), it will not check subscription status and will ...


2

It's a little hard to see what you are trying to do, but are you by any chance looking for the $spoolfile variable/configuration setting in a global context? I'm not sure how it interacts with Mutt's IMAP support, but it allows you to set the folder which will be opened by default when Mutt is started. It looks like you set it in the account folder-hooks, ...


Only top voted, non community-wiki answers of a minimum length are eligible