banane said the following on 03/28/2010 10:45 PM:
> Anton
>
> When you say it's sending successfully, how do you know that?
I didn't say that, did I?
If it was sending successfully I'd be getting the resulting mail and I
don't.
What it is doing is taking time processing and the production log has an
entry (sanitized)
Processing MailController#create (for 099.27.68.19 at 2010-03-28
16:31:39) [POST]
Parameters: {"page_id"=>"112", "action"=>"create",
"mailer"=>{"message"=>"x\r\n1\r\n2\r\n3\r\n4\r\n5",
"company"=>"SSS", "name"=>"aaa", "website"=>"xyzzy=2",
"required"=>{"name"=>"true", "message"=>"true", "email"=>"true"},
"email"=>"[email protected]"}, "controller"=>"mail"}
Sent mail to [email protected]
Completed in 1407ms (View: 1, DB: 118) | 200 OK
[http://www.XXXXX.com/pages/112/mail]
> In the post I wrote re: my process of setting up Mailer,
> (databasemailer, btw) I have this bit from my log:
>
> - "AUTH PLAIN AGJhbmFuZQBraXdpa2l3aQ==\r\n"
> -> “235 2.7.0 Accepted\r\n”
> <- "MAIL FROM:\r\n”
> -> “250 2.1.0 OK 7sm1568664yxg.68\r\n”
> <- "RCPT TO:\r\n”
> -> “250 2.1.5 OK 7sm1568664yxg.68\r\n”
> <- "DATA\r\n"
> -> “354 Go ahead 7sm1568664yxg.68\r\n”
> writing message from String
> wrote 599 bytes
> That is the official "it has sent" success.
Where did that get logged?
At Dreamhost I don't have (or don't see how) I can 'tap'
such exchanges.
> Another issue- you say it's refreshing the form and not going to the
> contact/thanks page. So that's not processing correctly. Can you
> manually type in the thanks page and view it?
Yes.
As I said, I set this up local on the image I have on my laptop of the
public site at Dreamhost BEFORE export/import of the pages to the site
at Dreamhost. So the only difference is in the way the mailer is set up
in environment.rb --- oh, and any differences in the revision of the
gems at Dreamhost. They are not good at keeping those up to date :-(
That has bitten me before.
>>From what you've said so far- looks like the environment.rb is still
> misconfigured.
Yea, right.
I've googled for the perl script to encode the id/password I'm using in
environment.rb and then manually 'telnet mail 25'
and given the resulting string as a "auth plain" and got a postive ACK
back, so I know the id/password is right.
> Check the logs/environment.rb for:
> - actionmailer framework is installed
What do you mean by that?
Do you mean the gem is in the library?
(dreamhost) $ gem list | grep actionmailer
actionmailer (2.3.5, 2.2.2, 2.1.1, 2.1.0)
> - form is being processed- what does the log say re: that process
> - smpt port, etc. is correct
I've given the ONLY log entry that seems to be involved above.
> - auth info works. Check w/ dreamhost re: the auth info. telnet access
> is diff. than mail auth access.
Eh? Why do you say that?
> If you ahve another client (apple
> mail, etc.) setup that sends successfully with a configuration,
Yes I have a TWiki application that does it.
That's written in perl and has a config file that sends via 'sendmail'.
So its not the same mechanism.
************************
I would have thought that using sendmail would have made more
sense for a mailer interface than trying to inject into port 25.
************************
> or if
> dreamhost has a help page that tells you how to set it up, use that.
I do wonder.
The smtpd responds to the "EHLO" with "AUTH PLAIN"
So does using
:authentication => :login
or
:authentication => :plain
matter?
>
> On Sun, Mar 28, 2010 at 3:40 PM, Anton Aylward <[email protected]>
> wrote:
>> I'm following up to this "old" mail because I have the same problem and
>> that old thread doesn't have a resolution that seems to apply to me.
>>
>> I set up the mailer extension on my laptop using my LAN's mail hub and
>> it worked fine. Good, so I went ahead and installed it and then copied
>> the page (body, email, mailer) to my public site on Dreamhost, created
>> the contact/thanks page there and adjusted the entries in
>> config/environment.rb to suit ..
>>
>> and it doesn't work.
>>
>>
>> Like this report, after clicking it reloads at /pages/112/mail#form
>>
>> And no, it takes it time, so there is some processing going on.
>>
>> The log shows no error; it says that the mail as sent to the address(es)
>> as expected.
>>
>> Only there is no evidence it was; it doesn't get through.
>> There's nothing in the logs.
>>
>> I've ssh'd to Dreamhost, to the working directory, and from there
>> telnet' to to mailserver I have in the configuration, for port 25, an
>> yes that's where it is, and being "local" its not asking for a login.
>>
>> I am NOT using gmail.
>>
>> I have experimented with the authentication, just in case, and no, that
>> makes no difference.
>>
>> I've checked the Radiant logs and the site web logs and there's no
>> indication of what's going on
>>
>>
>> HELP!
>>
>>
>> Mauricio Dulce said the following on 12/04/2009 09:45 AM:
>>> Hello, i have work whit radiant and Mailer extension but this not send
>>> emails and redirect to page of thank-you, After giving click in email,
>>> this reloads the same page pages/3/mail#mailer and I have this in the
>>> log shows no error, this on production servers that have hired.
>>>
>>> www.domain.com/contctenos hosted in site5
>>>
>>> Processing MailController#create (for ip at 2009-12-03 14:01:19) [POST]
>>> Parameters: {"action"=>"create", "page_id"=>"3",
>>> "mailer"=>{"company"=>"xx", "required"=>{"name"=>"true",
>>> "subject"=>"true", "message"=>"true", "email"=>"true"},
>>> "name"=>"xxxx", "country"=>"xxxx", "City"=>"Bogotá",
>>> "subject"=>"test", "phone"=>"000000", "Address"=>"Address",
>>> "message"=>"test text ", "email"=>"[email protected]"},
>>> "controller"=>"mail"}
>>> Sent mail to [email protected]
>>> Completed in 268ms (View: 0, DB: 49) | 200 OK
>>> [http://domain.com/pages/3/mail
>>> ]
>>>
>>>
>>> -----------------------------------------------------------------------------------------------------------------------------------------------------
>>>
>>> in another company where I have hired a normal plan and not a
>>> dedicated server, I will work correctly and they are CENTO, Support
>>> tells me to be somewhat lost and not to do, here I put the log of
>>> another company where we see that the extension works, I'm using
>>> google for sending emails.
>>>
>>>
>>>
>>> Processing MailController#create (for IP at 2009-12-03 21:02:04) [POST]
>>> Parameters: {"action"=>"create", "page_id"=>"3",
>>> "mailer"=>{"company"=>"xx", "required"=>{"name"=>"true",
>>> "subject"=>"true", "message"=>"true", "email"=>"true"},
>>> "name"=>"xxxx", "country"=>"xxxx", "City"=>"Bogotá",
>>> "subject"=>"test", "phone"=>"000000", "Address"=>"Address",
>>> "message"=>"test text ", "email"=>"[email protected]"},
>>> "controller"=>"mail"}
>>> Sent mail to [email protected]
>>> Redirected to http://domain2.test.com/contact/thank-you
>>> Completed in 2580ms (DB: 17) | 302 Found
>>> [http://domain2.test.com/pages/3/mail
>>> ]
>>>
>>>
>>> Processing SiteController#show_page (for IP at 2009-12-03 21:02:07)
>>> [GET]
>>> Parameters: {"url"=>["contact", "thank-you"], "action"=>"show_page",
>>> "controller"=>"site"}
>>> Completed in 920ms (DB: 427) | 404
>>> [http://domain2.test.com/contact/thank-you
>>> ]
>>>
>>> I lost in this problem, you have any suggestion to fix this problem
>>>
>>> config of the both server
>>>
>>> CENTOS 5.4 x86_64 standard
>>> Rails 2.3.4
>>> ruby 1.8.7 (2008-06-20 patchlevel 22) [x86_64-linux]
>>> Site 5
>>> X-Powered-By: Phusion Passenger (mod_rails/mod_rack) 2.2.4, Enterprise
>>> Edition
>>> Other Server
>>> X-Powered-By: Phusion Passenger (mod_rails/mod_rack) 2.2.5
>>>
>>>
>>> _______________________________________________
>>> Radiant mailing list
>>> Post: [email protected]
>>> Search: http://radiantcms.org/mailing-list/search/
>>> Site: http://lists.radiantcms.org/mailman/listinfo/radiant
>>
>>
>> --
>> intaxification (n): Euphoria at getting a tax refund, which lasts until
>> you realize it was your money to start with.
>> _______________________________________________
>> Radiant mailing list
>> Post: [email protected]
>> Search: http://radiantcms.org/mailing-list/search/
>> List Site: http://lists.radiantcms.org/mailman/listinfo/radiant
>> Radiant: http://radiantcms.org
>> Extensions: http://ext.radiantcms.org
>>
_______________________________________________
Radiant mailing list
Post: [email protected]
Search: http://radiantcms.org/mailing-list/search/
List Site: http://lists.radiantcms.org/mailman/listinfo/radiant
Radiant: http://radiantcms.org
Extensions: http://ext.radiantcms.org