News for hackers. Stuff that matters.
Re:A Unix-style mail setup (2012) by spindritf on Tuesday October 28, 2014 @04:16AM (#8519946)
I used to have a "homely mutt"[1] kind of setup but eventually got tired of offline imap, msmtp, and all that.

Now I use mutt only directly on the server running exim. Painless support for multiple domains, completely arbitrary from addresses with no configuration necessary, no imap, no magic directories showing up for no reason, no weird certificates, just pure ssh... It's the way to do it.

Otherwise, I stick to generic clients (Google webmail and Android app).

[1] http://stevelosh.com/blog/2012/10/the-homely-mutt/

Re:A Unix-style mail setup (2012) by stevekemp on Tuesday October 28, 2014 @05:55AM (#8520153)
I have used the same setup for the past five-ten years. I have IMAP setup for when I want to travel, but I find console access to mail just simpler.

Though I migrated from mutt to lumail[0] (which I wrote) as I find the ability to script operations in Lua very useful.

0 - http://lumail.org/

Re:A Unix-style mail setup (2012) by darklajid on Tuesday October 28, 2014 @06:43AM (#8520281)
FYI: You might have DDOS'd yourself here - the site is loading for minutes so far (but no timeout yet).

I'm interested and will check back later :)

Re:A Unix-style mail setup (2012) by stevekemp on Tuesday October 28, 2014 @05:49PM (#8523802)
Oops bad timing there - the server is in the process of being physically relocated (moving data centers via a van).
Re:A Unix-style mail setup (2012) by jackalope on Tuesday October 28, 2014 @07:35AM (#8520415)
Mutt has had excellent built-in SMTP/IMAP/POP3 support for years. I'm always surprised to see guides suggesting helpers like msmtp, offlineimap, etc. And with a few macros and save-hooks that you'll only write once, you'll have a fast, flexible mail client that will beat nearly any GUI client in mail processing speed.
Re:A Unix-style mail setup (2012) by floatboth on Tuesday October 28, 2014 @09:03AM (#8520705)
msmtp supports reading passwords from OS X's and Gnome's keychain programs. Also, having a separate program for that is very UNIX-way :)
Re:A Unix-style mail setup (2012) by bigbugbag on Tuesday October 28, 2014 @04:58AM (#8520029)
how exactly does your setup works when offline ?

what if you do understand the internet and stay away from centralized third party solutions and rather self-host your email because it is too sensitive to give away to giant corporations ?

Re:A Unix-style mail setup (2012) by spindritf on Tuesday October 28, 2014 @05:46AM (#8520133)
I don't really understand this comment. You can host exim+mutt anywhere. With a megacorp, in the cloud, even under your bed... The only problem you face is getting the giants to accept your mail so you will probably want another server acting as a smarthost if you host at home.

I also don't remember being involuntarily offline in the last four years so I don't optimize for it any more. Plus, it's email. It will be there when I get to it. You can incur hours of downtime and other servers will just dutifully keep trying to deliver messages. It's a pretty laid back service.

Re:A Unix-style mail setup (2012) by mnw21cam on Tuesday October 28, 2014 @10:23AM (#8521058)
Well-configured other servers will just dutifully keep trying to deliver messages. There are plenty of less well configured servers out there.

For instance, I have greylisting configured on my primary SMTP server, but no greylisting on my secondary (because it's run by a friend, not me). Some servers will contact mine, offer a message, get told "try again", and just not bother, even though they could try the secondary and get through straight away. Other servers will give up after failing to deliver for 30 minutes.

Re:A Unix-style mail setup (2012) by mike-cardwell on Tuesday October 28, 2014 @05:10AM (#8520057)
"completely arbitrary from addresses with no configuration necessary"

That is the main reason I still use mutt. I like to be able to edit my from header when sending messages without having to pre-create virtual identities and then pick from a list. I asked for this functionality to be added to Evolution but apparently my use case wasn't common enough.

Re:A Unix-style mail setup (2012) by mindslight on Tuesday October 28, 2014 @03:37PM (#8523084)
I use unison to synchronize maildirs between the machine that receives mail and the machines where I read it. It has worked quite well, especially for catching up on my mailing list backlog while on a plane.
Re:A Unix-style mail setup (2012) by Schiphol on Tuesday October 28, 2014 @04:53AM (#8520014)
But that kind of solution works only if you are self-hosting, or anyway have access to the server, doesn't it?
Re:A Unix-style mail setup (2012) by floatboth on Tuesday October 28, 2014 @09:05AM (#8520719)
I've got tired of IMAP too. Now I just sync my maildir using Syncthing (Pulse). I can use mutt both on the server and on my local machines, everything gets synchronized.
Re:A Unix-style mail setup (2012) by danieldk on Tuesday October 28, 2014 @05:51AM (#8520143)
Also worth mentioning is Karel Zak's mutt fork:

https://github.com/karelzak/mutt-kz

It uses notmuch for mail indexing/tagging/searching and allows you to use notmuch searches as virtual folders.

Re:A Unix-style mail setup (2012) by gooseyard on Tuesday October 28, 2014 @09:03AM (#8520706)
seconded- especially now that notmuch-inject exists. When I first started playing with mutt-kz, I had some difficulty getting the flow through procmail into notmuch, but it's pretty painless now. I've been using it daily for 2-3 years and can't imagine working without it now.
Re:A Unix-style mail setup (2012) by deong on Tuesday October 28, 2014 @11:56AM (#8521606)
notmuch-inject? I hadn't heard of this, and google is turning up nothing. Care to elaborate for a line or two?
Re:A Unix-style mail setup (2012) by e12e on Tuesday October 28, 2014 @05:31PM (#8523729)
Maybe gp means: http://notmuchmail.org/manpages/notmuch-insert-1/ ?

Sounds like it should work nicely with server side filtering/delivery?

Re:A Unix-style mail setup (2012) by warcode on Tuesday October 28, 2014 @05:42AM (#8520126)
Are there any projects trying to reduce the email-server complexity on linux?

Mailpile seem to be going in the right direction on the client side, but I have yet to find any self-contained MTA/IMAP solution. With self-contained I mean its configured in one location, doesn't use linux users and has easily extendable storage options.

Re:A Unix-style mail setup (2012) by nemoniac on Tuesday October 28, 2014 @06:06AM (#8520189)
Soverign provides a good basis for an email server setup. It describes itself as a "set of Ansible playbooks to build and maintain your own private cloud: email, calendar, contacts, file sync, IRC bouncer, VPN, and more."

https://github.com/al3x/sovereign

Re:A Unix-style mail setup (2012) by jonty on Tuesday October 28, 2014 @07:16AM (#8520367)
I recently started using a VM built using Mailinabox, which was both painless and surprisingly excellent.

https://mailinabox.email

Re:A Unix-style mail setup (2012) by ForHackernews on Tuesday October 28, 2014 @12:29PM (#8521806)
iRedMail is a integrated set of scripts to install and configure a full-featured email server setup using free software components: http://www.iredmail.org/

I've used it, and it's pretty great.

Re:A Unix-style mail setup (2012) by flurdy on Tuesday October 28, 2014 @06:09AM (#8520196)
Hope so! Then I don't have to keep maintaining http://flurdy.com/docs/postfix/

But for now email servers are still hard. Not too difficult to set up, hard to maintain.

Re:A Unix-style mail setup (2012) by calgoo on Tuesday October 28, 2014 @06:48AM (#8520296)
What about creating a docker image? I was just considering to do so for my postfix / dovcot setup. That way i can migrate the image when i want to....
Re:A Unix-style mail setup (2012) by peatmoss on Tuesday October 28, 2014 @09:11AM (#8520748)
Is anyone here using GNUS as their daily email client? I used to use mutt back in the day, and I was kind of surprised that the author was using emacs with mutt rather than just using emacs.

That said, I got as far as getting emacs / gnus to sync a gmail account before realizing that I'd need to spend some serious time reading manuals and tweaking configuration before I'd be able to use it day to day.

Re:A Unix-style mail setup (2012) by unhammer on Tuesday October 28, 2014 @10:55AM (#8521250)
I use gnus. On my desktop I run offlineimap+fastmail, on my laptop I just use fastmail directly.

Gnus is great for reading/posting to Gmane newsgroups, I would use it for that even if I switched to something else for reading email. For plain mail reading it actually could be a lot better. For example, support for seeing your own replies in a thread is a bit flaky (notmuch.el is better for that), and since Emacs is single-threaded, sending large attachments blocks it (perhaps I should use that relay trick from the article, but then it's not often I use email for sharing big files).

Re:A Unix-style mail setup (2012) by deong on Tuesday October 28, 2014 @12:20PM (#8521761)
I could still run it. I have a .gnus file that works with my current accounts (all Gmail/Apps accounts).

The problem with Gnus is that nnimap is unbearably slow and quirky in its own ways, and nnmaildir, which you'd ideally use with something like offlineimap to make Gnus work on a local copy for speed, is such a weird non-standard one-off backend that it's really hard to sync back to the server.

At least that was true a couple of years ago when I last made a serious attempt to use it. I think the modern emacs mail approach is probably either notmuch.el or mu4e, whichever interface you prefer.

Re:A Unix-style mail setup (2012) by namarkiv on Tuesday October 28, 2014 @11:42AM (#8521527)
I used to run GNUS, I switched to mu4e over a year ago, and haven't looked back.
Re:A Unix-style mail setup (2012) by peatmoss on Tuesday October 28, 2014 @04:54PM (#8523525)
I'm looking at the webpage now. Sounds like it tries to resolve some of the thread locking issues. Not sure I'd use the orgmode -> rich text email feature, but that is pretty awesome. Anything in particular you find superior to GNUS or otherwise useful?
Re:A Unix-style mail setup (2012) by namarkiv on Wednesday October 29, 2014 @06:55AM (#8526485)
Well, the idea behind mu is to use searches to filter your email instead of using imap folders. Indexing does feel a little slow sometimes, but it is far better than writing procmail rules to filter email.
Re:A Unix-style mail setup (2012) by k2enemy on Tuesday October 28, 2014 @09:05AM (#8520721)
I use a setup very similar to this on OS X.

- After using offlineimap for years, I recently switched to mbsync/isync. It is way faster and has been much more stable.

- After a stint with sup (http://supmua.org), I'm now back to mutt. I really love sup's interface, but it was a little too flaky.

- I use a script called "mail" that starts a tmux session then launches mutt in it:

    #!/bin/sh
    tmux -2 new-session -d -s mail -n 'mutt' "export TERM=screen-256color; mutt"
    tmux select-window -t 1
    tmux attach-session -d -t mail
Then, in mutt I have the double-quote mapped to a macro that executes a shell command to split the tmux window and launch a read-only instance of mutt:

    macro index,pager \" "<enter-command> \
        unset wait_key<enter><shell-escape> \
        tmux split-window -h \"mutt -R\"<enter>" "open new mutt"
This is my way of having an "async compose" pane for writing emails. I had tried replacing the mutt EDITOR variable with a command that splits the window and launches vim, but there are a lot of annoyances with that approach. Launching another mutt is way easier, and it also allows for easily viewing two emails at once.

That said, there are a lot of nice tips in here that I'll incorporate into my setup. Thanks for posting!

Re:A Unix-style mail setup (2012) by dllthomas on Tuesday October 28, 2014 @11:06AM (#8521322)
Very nice. My biggest objection is to Mutt (which I agree sucks less than many options). It is not clear to me that "mail client" is one job - I find myself happiest with nmh.
Re:A Unix-style mail setup (2012) by mike-cardwell on Tuesday October 28, 2014 @05:14AM (#8520065)
Re address books and mutt. I recently integrated my Owncloud contacts into Mutt by following these instructions:

http://got-tty.org/archives/mutt-kontakte-aus-owncloud-nutze...

They're in German, but they're easy enough to follow even if you don't speak it (I don't). It works really well.

Re:A Unix-style mail setup (2012) by unhammer on Tuesday October 28, 2014 @10:58AM (#8521262)
See also http://karra-asynk.appspot.com/ which syncs CardDAV (e.g. OwnCloud) with MS Outlook with Emacs BBDB with Google Contacts with MS Exchange
Re:A Unix-style mail setup (2012) by bravura on Tuesday October 28, 2014 @01:23PM (#8522131)
I've been considering switching to an IMAP/mutt email setting on the desktop.

But what is the best mobile / iOS client to use?

Which mobile client meets the desiderata he lists (fast, works offline, etc.)?

Re:A Unix-style mail setup (2012) by peterwwillis on Tuesday October 28, 2014 @10:05AM (#8520968)
Re:A Unix-style mail setup (2012) by nextos on Tuesday October 28, 2014 @08:03AM (#8520483)
I really like mutt + isync (for painless imap syncing) + mu (for indexing and address completion)