All posts in the topic smtp2zope.py Died (and smtp2zope-nonautomatic.py is missing) (Short link)
Summary
- There are 17 posts — by 3 authors — in this topic.
- Latest post made by Alexander Byatt at 2006 Nov 28 12:50 UTC
I have progressed with GS0.9 installation that most (if not all) functions work from the web interface. There remain issues with the mail interface. One is that smtp2zope.py cannot find the MailBoxerTools (which are present in another instance Product Directory) From the server mail log. " (Command died with status 1: "/var/lib/zope2.9/instance/Products/XWFMailingListManager/smtp2zope.py http://g27.melbpc.org.au/ListManager/". Command output: Traceback (most recent call last): File "/var/lib/zope2.9/instance/Products/XWFMailingListManager/smtp2zope.py", line 435, in ? headers, body = MailBoxerTools.splitMail(mailString) NameError: name 'MailBoxerTools' is not defined )" This may be related to the fact that it was necessary to change the first line of the distribution smtp2zope.py from #!/usr/bin/env python2.3 to #!/usr/bin/env python2.4 as python 2.4 was being used with Zope. What is the best means to input the path to the MailBoxerTools directory to smtp2zope.py ? Also smtp2zope-nonautomatic.py is not included in the GS0.9 distribution. From the installation instruction it appears only to be essential(?) for the verify_user alias, which may not be used ? Thus is smtp2zope-nonautomatic.py required ? Regards Richard Richard Solly http://eforum.darebin.vic.gov.au/
Following a little trial and error, the missing MailBoxerTools error may be solved by copying the appropriate python files of the same name from the MailBoxer directory to the XWFMailingListManager directory. This allows postings to be made by email. Possibly smtp2zope-nonautomatic.py is not required at all ? Regards Richard Richard Solly http://eforum.darebin.vic.gov.au/
On Sat, 2006-11-18 at 01:54 +1300, Richard wrote:
> Following a little trial and error, the missing MailBoxerTools error may be
solved by copying the appropriate python files of the same name from the
MailBoxer directory to the XWFMailingListManager directory.
>
> This allows postings to be made by email.
So posting via email is working (including sending out), but posting via
the web isn't still?
> Possibly smtp2zope-nonautomatic.py is not required at all ?
Not if you aren't using verification via email, no.
>On 19 Nov 2006 20:01 by Richard Waid wrote >On Sat, 2006-11-18 at 01:54 +1300, Richard Solly wrote: >> Following a little trial and error, the missing MailBoxerTools error may be >>solved by copying the appropriate python files of the same name from the >>MailBoxer directory to the XWFMailingListManager directory. >> This allows postings to be made by email. >So posting via email is working (including sending out), but posting via >the web isn't still? >> Possibly smtp2zope-nonautomatic.py is not required at all ? >Not if you aren't using verification via email, no. Richard Thanks for the reminder about the alias with smtp2zope-nonautomatic.py and verification by email. As smtp2zope-nonautomatic.py does not appear to be included in the downloadable version of GroupServer 0.9, this would suggest that no one has installed this version to the extent of having email verification. The downloadable version would also appear to be broken with respect to posting to groups by email, but this can be fixed as outlined earlier in this thread by copying MailBoxerTools.py. The problem I have not managed to solve with the down loadable version of GS 0.9, is that it will not function as a ListServer (although it appears fine as a web forum). It will not send messages posted to groups via the web or email to the mail server on the Unix box. It does raise the question of whether anybody has installed the down loadable version of GS 0.9 and has it functional. If so, it would be helpful to know on which operating system and with which versions of Python and Zope. Regards Richard Richard Solly http://eforum.darebin.vic.gov.au
On Tue, 2006-11-21 at 14:02 +1300, Richard wrote:
> Thanks for the reminder about the alias with smtp2zope-nonautomatic.py and
> verification by email.
The only difference between smtp2zope and smtp2zope-nonautomatic is that
the AUTOMATIC flag is set to False (or 0) in the nonautomatic version.
> As smtp2zope-nonautomatic.py does not appear to be included in the
downloadable
> version of GroupServer 0.9, this would suggest that no one has installed this
> version to the extent of having email verification.
I suspect it was more of a documentation flaw ... I tried to remove as
much duplication from the package as possible, I may have gone overboard
there :)
Can you please have a look in your /tmp directory, and see if there are
any spool directories there? I'm wondering if I shipped it with spooling
turned on... (I implemented spooling to make delivery of email from the
web faster and more robust).
>On 21 Nov 2006 14:16 by Richard Waid wrote:
>> As smtp2zope-nonautomatic.py does not appear to be included
>> in the downloadable version of GroupServer 0.9, this would
>> suggest that no one has installed this
>> version to the extent of having email verification.
>I suspect it was more of a documentation flaw ... I tried to remove as
>much duplication from the package as possible, I may have gone overboard
>there :)
Richard
Thanks for the comments, but I am I am not sure if I follow. As far a 'grep'
through all the files in the GS 0.9 distribution is concerned, there is not a
copy of smtp2zope-nonautomatic.py.
If this file is required for email verification, then email verification will
not work without it.
But web verification is working fine and sending out email notification of
registration via web or email is working fine.
Sending out email notification of subscription and un-subscription via the web
is also working. It is the distribution of posted messages to group
subscribers which is not functional.
>Can you please have a look in your /tmp directory, and see if there are
>any spool directories there? I'm wondering if I shipped it with spooling
>turned on... (I implemented spooling to make delivery of email from the
>web faster and more robust).
I have just posted a message to a group - it appears in the group via web view.
It is also appears in /tmp/mailboxer_spool2/eforum/ListManager/7942435
with email headers. (eforum being the name of the GroupServer List).
But it is not sent to the Unix mail server.
On Tue, 2006-11-21 at 14:56 +1300, Richard wrote: > Thanks for the comments, but I am I am not sure if I follow. As far a 'grep' > through all the files in the GS 0.9 distribution is concerned, there is not a > copy of smtp2zope-nonautomatic.py. Sorry, what I meant is that smtp2zope-nonautomatic.py is just a copy of smtp2zope.py -- except that inside it you need to change the 'AUTOMATIC' flag to 0 or False. > >Can you please have a look in your /tmp directory, and see if there are > >any spool directories there? I'm wondering if I shipped it with spooling > >turned on... (I implemented spooling to make delivery of email from the > >web faster and more robust). > > I have just posted a message to a group - it appears in the group via web view. > > It is also appears in /tmp/mailboxer_spool2/eforum/ListManager/7942435 > > with email headers. (eforum being the name of the GroupServer List). > > But it is not sent to the Unix mail server. Try calling http://your_domain/ListManager/processSpool *fingers crossed*
>On 21 Nov 2006 15:05 by Richard Waid wrote >> It is also appears in /tmp/mailboxer_spool2/eforum/ListManager/7942435 >> >> with email headers. (eforum being the name of the GroupServer List). >> >> But it is not sent to the Unix mail server. >Try calling http://your_domain/ListManager/processSpool >*fingers crossed* Richard Thanks for the suggestion. From http://your_domain/ListManager/processSpool ********************* Site Error An error was encountered while publishing this resource. AttributeError Sorry, a site error occurred. Traceback (innermost last): Module ZPublisher.Publish, line 196, in publish_module_standard Module ZPublisher.Publish, line 146, in publish Module Zope2.App.startup, line 222, in zpublisher_exception_hook Module ZPublisher.Publish, line 115, in publish Module ZPublisher.mapply, line 88, in mapply Module ZPublisher.Publish, line 41, in call_object Module Products.XWFMailingListManager.XWFMailingListManager, line 254, in processSpool Module Products.MailBoxer.MailBoxer, line 953, in sendMail Module Products.XWFMailingListManager.XWFMailingList, line 261, in getValueFor Module OFS.PropertyManager, line 154, in getProperty AttributeError: mailoptions (Also, the following error occurred while attempting to render the standard error message, please see the event log for full details: mailoptions) *********************** Appears to be consistent with the failure of the ListManager to display its properties as outlined in another thread.
On Tue, 2006-11-21 at 16:10 +1300, Richard wrote: > Appears to be consistent with the failure of the ListManager to display > its properties as outlined in another thread. Try: http://zope.your_domain/sites/SITE_ID/ListManager/upgrade And if that appears to allow you to view the properties (once it has run), try the spool processing one again.
>Posted 21 Nov 2006 16:24 by Richard Waid >On Tue, 2006-11-21 at 16:10 +1300, Richard wrote: >> Appears to be consistent with the failure of the ListManager to display >> its properties as outlined in another thread. >Try: > http://zope.your_domain/sites/SITE_ID/ListManager/upgrade >And if that appears to allow you to view the properties (once it has >run), try the spool processing one again. Thanks Richard Progress !! Upgrade as above (although there is no "sites" in the URL (unlike GS 0.1) gave "upgraded ListManager to version 0.43 from version 0" (version 0 seems rather ominous) This then enabled the Properties of the ListManager to be viewed. When running the ListManager/processSpool manually (from a logged in web browser (not otherwise) it sent email to the Unix mail server (at last) - and possibly to Groupserver.org from original unchanged email addresses (:-. (haven't looked closely at what it is doing). All food for thought to have it run without the manual step.
On Tue, 2006-11-21 at 17:22 +1300, Richard wrote:
> When running the ListManager/processSpool manually (from a logged in web
browser (not otherwise) it sent email to the Unix mail server (at last) - and
possibly to Groupserver.org from original unchanged email addresses (:-.
(haven't looked closely at what it is doing).
>
> All food for thought to have it run without the manual step.
Just run it from 'wget' or similar from Cron. There are other examples
of doing that in the INSTALL document (for digests).
>On 21 Nov 2006 17:31 Richard Waid wrote:
>On Tue, 2006-11-21 at 17:22 +1300, Richard Solly wrote:
>> When running the ListManager/processSpool manually (from a logged in web
>browser (not otherwise) it sent email to the Unix mail server (at last) -
>and possibly to Groupserver.org from original unchanged email addresses (:-.
>(haven't looked closely at what it is doing).
>>
>> All food for thought to have it run without the manual step.
>Just run it from 'wget' or similar from Cron. There are other examples
>of doing that in the INSTALL document (for digests).
Thanks Richard
I will do a bit more reading.
Hey. I'm having the same problem with the whole 'not being able to view the ListManager's properties'. Getting the same error as Richard Solly. I tried the link (http://zope.your_domain/sites/SITE_ID/ListManager/upgrade) but that didn't work for me. It just redirected me to my own site. I tried various combinations (with/without the 'sites' component etc.) Any ideas? (I want to get in here because I thought this was where the moderator's email was supposed to go? Am I right in this assumption?)
Oh. How embarassing. I tried the link again and one of the redirects was to the
login page. I just didn't have the permissions right. My mistake.
As to the moderation though, it still doesn't send emails to the moderator and
the person being moderated. Does anyone have this working?
On Tue, 2006-11-28 at 01:55 +1300, Alexander wrote:
> As to the moderation though, it still doesn't send emails to the
> moderator and the person being moderated. Does anyone have this working?
Hi Alexander:
Are emails going through from non-moderated groups? Can the moderator
send email to the list?
>Are emails going through from non-moderated groups?
When unmoderated, the posts reach the forum fine but email options such as
sending to subscribed members don't work.
The only emailing that seems to work is when a user registers or joins/leaves a
group.
>Can the moderator send email to the list?
If you mean via email to the list? Then no. They can only post via the
groupserver interface.
Okay. I worked out the moderation problem. I had the emails pointing at the
wrong email domain. This groupserver sends and receives emails through an
existing mail server and I confused the two domains.