Trying to receive emails with ActionMailer + Postfix

I’ve been having a world of issues with trying to get ActionMailer
(using Rails 3.0 beta 2) to receive emails from Postfix.

Currently in Postfix’s aliases file I have the line:
rails_mailer: | “/home/directory/to/app/script/rails runner
‘MailReceive.recieve(STDIN.read)’”

And in my Mailer that should be receiving it I have a method defined as
such:

def receive (email)


end

However when I send an email to the server and try to manipulate the
email object (for instance comparing email.to against another string) it
tells me it cannot convert from nil to String. I don’t think it’s
receiving the email properly but I’m not sure what’s failing with the
email forwarding.

Any help would be greatly appreciated.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs