Hugh T. Ranalli wrote:
On July 26, 2007 13:59:47 Rob Miller wrote:
almost certainly. is your mail server on the same machine as the Plone
site?
if so, then i bet the smtp2zope.py script is configured to hit the site at
localhost:8080, thus generating the incorrect URL. if you can find the
place where this is happening, and change the config to hit the site using
the canonical URL, it should start sending the correct URLs out in the
messages.
Hi Rob,
Thanks for the quick response. Given that information, I found the location
really quickly in /etc/aliases:
my_zope_list: "|/etc/postfix/smtp2zope.py http://@localhos
t:8080/send_listen_mail 200000"
However, if I change "localhost:8080" to "www.dotrust.net," list delivery
fails because the "send_listen_mail" URL seems to exist only in the root of
the site (Virtual Host Monster re-writes "www.dotrust.net"
as "localhost:8080/dot/www" so I assume the URL
becomes: "localhost:8080/dot/www/send_listen_mail").
right.
The actual error message in the maillog file is:
Jul 26 22:45:48 www mailboxer: URL at http://www.dotrust.net/send_listen_mail
doesn't exist (HTTP Error 404: Not Found)
I've tried looking through MailBoxer documentation and the listen code to see
if I could figure out what I am doing wrong, but no such luck.
Any suggestions?
yup. the send_listen_mail view is, by default, only available on the Zope
application root (OFS.Application.Application). this is maybe a bit too
restrictive. in any event, you can register the view for other types, as
well. for openplans.org (which is also a
virtualhost-doesn't-point-to-the-Zope-root setup) we've got the following
registered in one of our ZCML files:
<browser:page
for="Products.CMFPlone.interfaces.IPloneSiteRoot"
name="send_listen_mail"
class="Products.listen.utilities.list_lookup.MailDeliveryView"
permission="zope2.Public"
/>
this makes the send_listen_mail view available on Plone sites, as well as Zope
application objects. if your vhost points to something inside of a Plone
site, then you may need to change the "for" part of that to something else.
do you have any custom ZCML already? a place where you can put this
configuration?
-r
--
Archive:
http://www.openplans.org/projects/listen/lists/listen-dev/archive/2007/07/1185499317312
To unsubscribe send an email with subject unsubscribe to [EMAIL PROTECTED]
Please contact [EMAIL PROTECTED] for questions.