Post by email setup

From Dreamwidth Notes
Revision as of 19:45, 14 June 2012 by Swaldman (Talk | contribs)

Jump to: navigation, search

This is a very basic set of notes to help get an initial posting by email setup configured. If you are testing in an environment (such as a Dreamhack) that cannot actually receive email, there are instructions here on how to fake it.

First setup TheSchwartz - incoming email is queued by and then handled by the incoming-email worker.

Next you need to arrange for email to $LJ::EMAIL_POST_DOMAIN (normally post.your.dw.domain, configurable in etc/ to be piped into ~/bin/ In my case I made all mail for that domain go to the dw user and then created a ~/.forward that just contained

| /home/dw/bin/

You'll need to open up ~/bin/ in your editor; near the top there's a section that looks like:

    $ENV{LJHOME} ||= "/home/lj";

Make sure this points to your Dreamwidth user home directory - in my case I changed it to /home/dw.

The default workers config doesn't process incoming mail; you'll need to add:

    incoming-email: 1

under the "all:" section and then run bin/worker-manager which will kick off all the configured workers (and then background itself - if you kill the worker-manager process it will clean up all the workers it's started). Note that this will consume a reasonable amount of resources (especially memory). If you are manually testing your email setup you might find it easier to manually run bin/worker/incoming-email (which will stay running in the foreground).

You should then be able to configure your DW account with a source email address and PIN, email <username>+<pin>@post.your.dw.domain from that address and see your email appear as a post on your journal.