Thanks David,
Mail now works for my blogs. Here is what ended up working
for me:
1) Upgraded to Tomcat 6.0.14.
2) Upgraded to JDK1.6
3) Deployed mail.jar at Tomcat6/lib/mail.jar.
(Activation.jar (JAF)
is in place by default in JDK1.6.)
4) Made sure the resource at the bottom of the
Pebble/WEB-INF/web.xml
was uncommented. (where it says "uncomment this if you
would like to
use a JNDI-based JavaMail" )
5) Created Pebble/META-INF/context.xml with the following
information:
<Host name="localhost"
appBase="webapps/pebble"
unpackWARs="true" autoDeploy="true"
xmlValidation="false"
xmlNamespaceAware="false">
<Context path="" docBase=".">
<Resource name="mail/Session"
auth="Container"
type="javax.mail.Session"
mail.smtp.host="localhost"
mail.smtp.port="25"
mail.smtp.auth="true"
mail.smtp.user="username"
mail.smtp.password="password"
/>
</Context>
</Host>
6) Reloaded Tomcat and restarted pebble.
7) Mail now works.
Phew. I still have little real understanding of how to make
Tomcat do
what I want it to do, but I am slowly learning "when
all else fails,
read the manual." I am pretty sure that my problems
before were that
I had really messed something up in Tomcat 5 when I tried to
get mail
to work with it about 6 months ago. Because I was not
careful to
backup all the files I had changed, I had to reinstall, and
I figured
I would upgrade while I was going through the trouble of a
re-
installation. So, let that be a lesson to me: always back up
mission
critical files before you modify them. I seem to remember
being told
that about 10,000 times before, but I guess I still am a
slow
learner
Rob
On Mar 27, 2008, at 11:21 AM, David Brown wrote:
> Hello Rob, you say you have confirmed usage of the mail
server:
> have you tried to telnet to the target SMTPd and
hand-craft a mail
> message? This would be a very definitive baseline test
for your
> email connection. HTH.
>
> Rob Rye wrote ..
>> Hi Folks,
>>
>> I am struggling to get things set up so as to send
mail to
>> 'subscribers' and commenters and so forth.
>>
>> I am running:
>>
>> Pebble 2.3.1
>> Tomcat 5.5.20
>> OS: Linux 2.6.9-023stab044.11-enterprise
>> multiblog="true"
>>
>> I have tried the following:
>>
>> I modified Tomcat/conf/context.xml to contain the
following entry
>>
>> <DefaultContext>
>>
>> <!-- Default set of monitored resources
-->
>>
<WatchedResource>WEB-INF/web.xml</WatchedResource&g
t;
>>
>> <!-- Uncomment this to disable session
persistence across Tomcat
>> restarts -->
>> <!--
>> <Manager pathname="" />
>> -->
>> <Resource name="mail/Session"
auth="Container"
>> type="javax.mail.Session"
>> mail.smtp.host="localhost"
>> mail.smtp.port="25"
>> mail.smtp.auth="true"
>> mail.smtp.user="username"
>>
mail.smtp.password="password"/>
>> </DefaultContext>
>>
>>
>>
>> -------------------------------
>>
>>
>> The following is at the bottom of my
Pebble/WEB-INF/web.xml
>>
>> <!-- uncomment this if you would like to use a
JNDI-based JavaMail
>> Session
>> -->
>> <resource-ref>
>> <description>
>> Resource reference to a factory for
javax.mail.Session
>> instances that may be used for sending
e-mail notifications.
>> </description>
>>
<res-ref-name>mail/Session</res-ref-name>
>>
<res-type>javax.mail.Session</res-type>
>> <res-auth>Container</res-auth>
>> </resource-ref>
>>
>> ------------------------------
>>
>> applicationContext-pebble.xml contains the
following entry:
>>
>> <!-- the name/IP address of the server through
which e-mail is
>> sent, or a JNDI name starting java:/comp/env
pointing to a
>> preconfigured javax.mail.Session instance -->
>> <property name="smtpHost"
value="localhost"/>
>>
>> -----------------------------
>>
>> Because I am in multiblog mode, do I need somehow
to point the
>> context to the right location for the individual
blogs? If so, how is
>> this done? I have gone round and round with this,
sometimes changing
>> everything to localhost, sometimes explicitly
calling the host name.
>> I have confirmed that the mail server works - I use
it regularly.
>> However, I confess to having no idea of how to
configure such things.
>> I just use it.
>>
>> Thanks,
>>
>> Rob
>
>
------------------------------------------------------------
----------
> ---
> Check out the new SourceForge.net Marketplace.
> It's the best place to buy or sell services for
> just about anything Open Source.
> http://ad.doubleclick.net/clk;164216239;1350303
8;w?http://sf.net/
> marketplace
> _______________________________________________
> Pebble-user mailing list
> Pebble-user lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/pebble-user
------------------------------------------------------------
-------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216
239;13503038;w?http://sf.net/marketplace
_______________________________________________
Pebble-user mailing list
Pebble-user lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pebble-user
|