Brian Lin
2005-Sep-07 17:53 UTC
Help getting ActionMailer to receive mail through sendmail
I have been following the instruction on this page...
http://wiki.rubyonrails.com/rails/show/HowToReceiveEmailsWithActionMailer
but it still fails somewhere...here is the error in sendmail log
Sep 7 05:51:30 localhost sendmail[14169]: j87CpKFa014168:
to="|/etc/smrsh/ruby /home/brian/kenlet/svr/script/runner
''Mailman.receive STDIN.read''",
ctladdr=<mailman@localhost> (8/0),
delay=00:00:04, xdelay=00:00:01, mailer=prog, pri=30968, dsn=5.3.0,
stat=unknown mailer error 1
If I just try to enter the command through the command line, it seems
to show that rails is setup
_ROOT_6:25am /var/log>echo test |/etc/smrsh/ruby
/home/brian/kenlet/svr/script/runner ''Mailman.receive
STDIN.read''
/home/brian/kenlet/svr/script/runner:4:
/usr/local/lib/ruby/gems/1.8/gems/actionmailer-1.0.1/lib/action_mailer/vendor/tmail/mail.rb:291:in
`parse_header'': wrong mail header:
''"test\n"'' (TMail::SyntaxError)
from
/usr/local/lib/ruby/gems/1.8/gems/actionmailer-1.0.1/lib/action_mailer/vendor/tmail/mail.rb:50:in
`initialize''
from
/usr/local/lib/ruby/gems/1.8/gems/actionmailer-1.0.1/lib/action_mailer/vendor/tmail/mail.rb:49:in
`open''
from
/usr/local/lib/ruby/gems/1.8/gems/actionmailer-1.0.1/lib/action_mailer/vendor/tmail/port.rb:319:in
`ropen''
from
/usr/local/lib/ruby/gems/1.8/gems/actionmailer-1.0.1/lib/action_mailer/vendor/tmail/mail.rb:49:in
`initialize''
from
/usr/local/lib/ruby/gems/1.8/gems/actionmailer-1.0.1/lib/action_mailer/vendor/tmail/mail.rb:35:in
`new''
from
/usr/local/lib/ruby/gems/1.8/gems/actionmailer-1.0.1/lib/action_mailer/vendor/tmail/mail.rb:35:in
`parse''
from
/usr/local/lib/ruby/gems/1.8/gems/actionmailer-1.0.1/lib/action_mailer/base.rb:350:in
`receive''
from (eval):1
(I did actually send a real mail to sendmail, so it shouldn''t get
parse header errors..
anyone have any idea what I''m doing wrong?
Thanks,
Brian
Brian Lin
2005-Sep-07 23:13 UTC
Re: Help getting ActionMailer to receive mail through sendmail
I''ve posted several times to this list but have not gotten responses. I wonder if it''s because I''m not posting to the list correctly or no one knows the answer or wants to help. Can someone just reply to this message so I know that the list is receiving my post? Thanks, Brian On 9/7/05, Brian Lin <brianlin-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> I have been following the instruction on this page... > > http://wiki.rubyonrails.com/rails/show/HowToReceiveEmailsWithActionMailer > > but it still fails somewhere...here is the error in sendmail log > > Sep 7 05:51:30 localhost sendmail[14169]: j87CpKFa014168: > to="|/etc/smrsh/ruby /home/brian/kenlet/svr/script/runner > ''Mailman.receive STDIN.read''", ctladdr=<mailman@localhost> (8/0), > delay=00:00:04, xdelay=00:00:01, mailer=prog, pri=30968, dsn=5.3.0, > stat=unknown mailer error 1 > > > If I just try to enter the command through the command line, it seems > to show that rails is setup > > _ROOT_6:25am /var/log>echo test |/etc/smrsh/ruby > /home/brian/kenlet/svr/script/runner ''Mailman.receive STDIN.read'' > /home/brian/kenlet/svr/script/runner:4: > /usr/local/lib/ruby/gems/1.8/gems/actionmailer-1.0.1/lib/action_mailer/vendor/tmail/mail.rb:291:in > `parse_header'': wrong mail header: ''"test\n"'' (TMail::SyntaxError) > from /usr/local/lib/ruby/gems/1.8/gems/actionmailer-1.0.1/lib/action_mailer/vendor/tmail/mail.rb:50:in > `initialize'' > from /usr/local/lib/ruby/gems/1.8/gems/actionmailer-1.0.1/lib/action_mailer/vendor/tmail/mail.rb:49:in > `open'' > from /usr/local/lib/ruby/gems/1.8/gems/actionmailer-1.0.1/lib/action_mailer/vendor/tmail/port.rb:319:in > `ropen'' > from /usr/local/lib/ruby/gems/1.8/gems/actionmailer-1.0.1/lib/action_mailer/vendor/tmail/mail.rb:49:in > `initialize'' > from /usr/local/lib/ruby/gems/1.8/gems/actionmailer-1.0.1/lib/action_mailer/vendor/tmail/mail.rb:35:in > `new'' > from /usr/local/lib/ruby/gems/1.8/gems/actionmailer-1.0.1/lib/action_mailer/vendor/tmail/mail.rb:35:in > `parse'' > from /usr/local/lib/ruby/gems/1.8/gems/actionmailer-1.0.1/lib/action_mailer/base.rb:350:in > `receive'' > from (eval):1 > > > (I did actually send a real mail to sendmail, so it shouldn''t get > parse header errors.. > > anyone have any idea what I''m doing wrong? > > Thanks, > > Brian >
Warner Onstine
2005-Sep-08 01:00 UTC
Re: Help getting ActionMailer to receive mail through sendmail
I got it, but have never used ActionMailer. -warner On 9/7/05, Brian Lin <brianlin-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> I''ve posted several times to this list but have not gotten responses. > I wonder if it''s because I''m not posting to the list correctly or no > one knows the answer or wants to help. > > Can someone just reply to this message so I know that the list is > receiving my post? > > Thanks, > > Brian > > On 9/7/05, Brian Lin <brianlin-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > I have been following the instruction on this page... > > > > http://wiki.rubyonrails.com/rails/show/HowToReceiveEmailsWithActionMailer > > > > but it still fails somewhere...here is the error in sendmail log > > > > Sep 7 05:51:30 localhost sendmail[14169]: j87CpKFa014168: > > to="|/etc/smrsh/ruby /home/brian/kenlet/svr/script/runner > > ''Mailman.receive STDIN.read''", ctladdr=<mailman@localhost> (8/0), > > delay=00:00:04, xdelay=00:00:01, mailer=prog, pri=30968, dsn=5.3.0, > > stat=unknown mailer error 1 > > > > > > If I just try to enter the command through the command line, it seems > > to show that rails is setup > > > > _ROOT_6:25am /var/log>echo test |/etc/smrsh/ruby > > /home/brian/kenlet/svr/script/runner ''Mailman.receive STDIN.read'' > > /home/brian/kenlet/svr/script/runner:4: > > /usr/local/lib/ruby/gems/1.8/gems/actionmailer-1.0.1/lib/action_mailer/vendor/tmail/mail.rb:291:in > > `parse_header'': wrong mail header: ''"test\n"'' (TMail::SyntaxError) > > from /usr/local/lib/ruby/gems/1.8/gems/actionmailer-1.0.1/lib/action_mailer/vendor/tmail/mail.rb:50:in > > `initialize'' > > from /usr/local/lib/ruby/gems/1.8/gems/actionmailer-1.0.1/lib/action_mailer/vendor/tmail/mail.rb:49:in > > `open'' > > from /usr/local/lib/ruby/gems/1.8/gems/actionmailer-1.0.1/lib/action_mailer/vendor/tmail/port.rb:319:in > > `ropen'' > > from /usr/local/lib/ruby/gems/1.8/gems/actionmailer-1.0.1/lib/action_mailer/vendor/tmail/mail.rb:49:in > > `initialize'' > > from /usr/local/lib/ruby/gems/1.8/gems/actionmailer-1.0.1/lib/action_mailer/vendor/tmail/mail.rb:35:in > > `new'' > > from /usr/local/lib/ruby/gems/1.8/gems/actionmailer-1.0.1/lib/action_mailer/vendor/tmail/mail.rb:35:in > > `parse'' > > from /usr/local/lib/ruby/gems/1.8/gems/actionmailer-1.0.1/lib/action_mailer/base.rb:350:in > > `receive'' > > from (eval):1 > > > > > > (I did actually send a real mail to sendmail, so it shouldn''t get > > parse header errors.. > > > > anyone have any idea what I''m doing wrong? > > > > Thanks, > > > > Brian > > > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails >
Ken Barker
2005-Sep-08 01:02 UTC
Re: Help getting ActionMailer to receive mail through sendmail
On 9/7/05, Brian Lin <brianlin-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Can someone just reply to this message so I know that the list is > receiving my post?Brian, I am seeing your posts on the list. I have not done much with ActionMailer yet. Ken