[Radiant] Problem. MailerBehaviour in eApps
Brian Sam-Bodden
bsbodden at integrallis.com
Thu Feb 1 09:15:43 CST 2007
Todd,
Thanks for the reply. I took a few days off from messing with this.
One thing that I am noticing is that when I SSH into the virtual server
and send a test email using telnet like (noticed that I didn't use AUTH
LOGIN):
telnet 127.0.0.1 25
HELO integrallis.com
MAIL FROM: <xxx at xxx.com>
RCPT TO: <xxx at xxx.com>
DATA
Subject: Test
From: xxx at xxx.com
To: xxx at xxx.com
A simple test
.
QUIT
I see this in the /var/log/maillog
Jan 31 23:07:37 integrallis sendmail[32499]: l1147Q0U032499:
integrallis.virtual.vps-host.net [127.0.0.1] did not issue
MAIL/EXPN/VRFY/ETRN during connection to stdin
Jan 31 23:10:05 integrallis sendmail[1407]: l1147vJL001407:
from=<sender at integrallis.com>, size=113, class=0, nrcpts=1,
msgid=<200702010409.l1147vJL001407 at integrallis.virtual.vps-host.net>,
proto=SMTP, relay=integrallis.virtual.vps-host.net [127.0.0.1]
Jan 31 23:10:05 integrallis sendmail[1407]: l1147vJL001407: Milter add:
header: Received-SPF: pass (integrallis.virtual.vps-host.net: domain of
sender at integrallis.com designates 127.0.0.1 as permitted sender)
receiver=integrallis.virtual.vps-host.net; client-ip=127.0.0.1;
helo=integrallis.com; envelope-from=sender at integrallis.com;
x-software=spfmilter 0.97 http://www.acme.com/software/spfmilter/ with
libspf2-1.0.0;
Jan 31 23:10:07 integrallis sendmail[5918]: l1147vJL001407:
to=<info at integrallis.com>, delay=00:00:57, xdelay=00:00:02,
mailer=esmtp, pri=120113, relay=mxmail.register.com. [205.158.62.41],
dsn=2.0.0, stat=Sent (Ok: queued as 980094A446E)
but when I try to send an email with the mailer behaviour I get
something like:
Jan 31 23:12:51 integrallis sendmail[9959]: l114CpQj009959: from=root,
size=0, class=0, nrcpts=0,
msgid=<200702010412.l114CpQj009959 at integrallis.virtual.vps-host.net>,
relay=root at localhost
Jan 31 23:12:55 integrallis sendmail[10032]: l114CtPM010032: from=root,
size=0, class=0, nrcpts=0,
msgid=<200702010412.l114CtPM010032 at integrallis.virtual.vps-host.net>,
relay=root at localhost
Jan 31 23:14:35 integrallis sendmail[12212]: l114EZ8o012212: from=root,
size=0, class=0, nrcpts=0,
msgid=<200702010414.l114EZ8o012212 at integrallis.virtual.vps-host.net>,
relay=root at localhost
Jan 31 23:14:39 integrallis sendmail[12250]: l114Ednt012250: from=root,
size=0, class=0, nrcpts=0,
msgid=<200702010414.l114Ednt012250 at integrallis.virtual.vps-host.net>,
relay=root at localhost
I tried taking out the :authentication, :user_name and :password from my
ActionMailer config but that didn't work either. Also noticed that
before I still had action_mailer in the frameworks to skip (doh!). So I
changed that to:
# Skip frameworks you're not going to use
config.frameworks -= [ :action_web_service ]
and my ActionMailer configuration now looks like:
# Configure ActionMailer
ActionMailer::Base.raise_delivery_errors = true
ActionMailer::Base.delivery_method = :smtp
ActionMailer::Base.perform_deliveries = true
ActionMailer::Base.server_settings = {
:address => "127.0.0.1",
:port => 25,
:domain => "integrallis.com",
:user_name => "sender",
:password => "********",
:authentication => :login
}
Yet the emails are still not being delivered. This is just bizarre to
say the least. Next thing I'm gonna try is to change the delivery_method
form :smtp to whatever it is that let's you go against sendmail
directly. If you have any more ideas I'll love to hear them.
Thanks,
Brian
Todd McGrath wrote:
> Brian,
>
> Here's my settings on Eapps-
>
> config.action_mailer.server_settings = {
> :address => "127.0.0.1",
> :port => 25,
> :domain => "example.com",
> :authentication => :login,
> :user_name => "blah",
> :password => "blah",
> }
> config.action_mailer.perform_deliveries = true
>
>> admin part:
>> ===========
>> mailers:
>> contact:
>> subject: Contact Request
>> from: noreply at integrallis.com
>> redirect_to: /en/contact/thank-you
>> recipients:
>> - info at integrallis.com
>
> This should be "config" part, right, not "admin"?
>
> and it's YAML, so it's white space sensitive-
>
> mailers:
> contact:
> subject
>
> Make sure, it's exactly (whitespace wise) like:
> http://mattmccray.com/svn/rails/plugins/radiant_mailer_behavior/README
>
> Another good log to check is /var/log/maillog - this will tell you about
> un/sucessful mail send attempts.
>
> Hope this helps,
> Todd
>
>
>
> Quoting Brian Sam-Bodden <bsbodden at integrallis.com>:
--
Posted via http://www.ruby-forum.com/.
More information about the Radiant
mailing list