Forum: Ruby postfix -> perl/ruby (ActionMailer) question

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Bb118b6226ebc13ac995cb349c43d6c6?d=identicon&s=25 Rohit Mehta (Guest)
on 2006-04-17 01:27
(Received via mailing list)
Hi guys, I am a ruby nuby, and am trying to learn ruby while setting up
a craigslist-like site.
So instead of going all out with ActionMailer, right now I am trying to
start very simple with perl and am having difficulties.

I read this document:

and modified my, transport, and

The line added to my looks like this:
#stuff for rubymail 2006.04.16
rmail  unix  -       n       n       -       -       pipe  flags=FR
user=nobody argv=/usr/local/bin/ ${user}

I'm assuming the message should be passed to my program as STDIN, so
something very simple like
the following, should write the recieved message to a file:


open (OF,">>/var/log/rmail.log");
print OF "newmessage\n";
while (<>) {
 print OF $_;
print OF "-------------------------------------------------------\n";

Now when I send mail to,
is invoked and data is
written to /var/log/rmail.log.  However only the following lines are


I can trigger my script from postfix, but I don't get the contents of

Obviously this is more  a postfix question than a ruby question, but
many of you Rails gurus may
have seen this before.

Thanks for any help,

This topic is locked and can not be replied to.