Posted on June 20, 2006
Today Josh, Lise and I went the Met Office in Exeter to see if we could find some scientists willing to help up with Most Blue Skies project. It was nice to visit the west-country. I really think people get friendlier as you go West.
We also saw a sign which told us that the BIKINI state of the Met Office is...
There is an increased likelihood of an attack, but no defined target. It can also mean "potential terrorist threat".
So there you go. Today I was just two BIKINI steps away from all out war!
Filed under: Projects Travel |
Tagged with: exeter meeting met mostblueskies |
0 comments
Posted on June 07, 2006
So ActiveMailer has the ability to receive mail using a 'runner' to which you pass raw email (or rather, postfix, sendmail etc pass raw mail). The message is decoded and turned into a TMail object that is then passed to a 'receive' method on your ActiveMailer::Base subclass. I wanted my app to receive all emails sent to addresses that match a certain regular expression. The explanation on the rails wiki uses a regular expression and got me some of the way but it didn't mention the final step for getting this running on the OS X Server postfix installation. You need to add:
virtual_alias_maps = regexp:/etc/postfix/virtual
to /etc/postfix/main.cf. Just add it at the end. Here are my full notes for configuring postfix for receiving mail with rails:
--- In /etc/postfix/aliases add (all on one line):
my-app: "|/path/to/app/script/runner
-e production 'MyMailer.receive(STDIN.read)'"
--- In /etc/postfix/main.cf add to the end:
virtual_alias_maps = regexp:/etc/postfix/virtual
--- In /etc/postfix/virtual add:
/^.*@mydomain.com$/ my-app
Filed under: Projects |
Tagged with: postfix rails |
0 comments