SID-01052: WebNotify only works on Main web
| Status: |
Answered |
TWiki version: |
5.0.0 |
Perl version: |
perl 5.8.8 x86_64 |
| Category: |
MailerContrib |
Server OS: |
cent0S 5.3 Linux 2.6.18 64bit |
Last update: |
14 years ago |
I am trying to get email notification for all the webs in my twiki. I currently get email for the
Main but not the rest. I am guessing there is a permissions issue??
I was working with the
NoteToDo Web.
I have copied the settings from
Main.WebNotify to
NoteToDo.WebNotify . And tried the script.
Then I added
Main. to each wikiname and tried the script.
I ran the script from the command line like so for the web
NoteToDo from the bin directory:
sudo -u apache perl -I bin tools/mailnotify -q NoteToDo
The response is:
constructed a new LdapContrib object
called initCache
cacheAge=35, maxCacheAge=300, lastUpdate=1291825760, refresh=0
Can you point me in the right direction?
--
ScottGutman - 2010-12-08
Discussion and Answer
Possibly a permission issue? Here is what should happen:
twiki/data/NoteToDo should have a
.changes file with a list of recently changed topics. This dir and file needs to be writable by the webserver user.
twiki/working/work_areas/MailerContrib should have a
NoteToDo file with timestamp of most recent mail notification. This dir and file needs to be writable by the webserver user.
MailerContrib documents how to install the cron job. If you run the script from the command line, make sure to run it as the webserver user to avoid permission issues.
--
PeterThoeny - 2010-12-08
Thanks for the quick response.
I checked the permission on the files and found everything correct.
Then I stripped everything except the absolutely essential. I found 2 Issues for my configuration.
- Since I am using LDAP for authentication, it seems that mailcontrib is pulling the email directly from the LDAP Database, regardless of the email address listed in the WebNotify topic or in the WebUsers topic.
- I have a few users that are not in the LDAP DB and performed the TWikiRegistration to gain access to TWiki. I checked the .htpasswd and the users are listed with their email addresses.
Is this a limitation of
MailNotify that if using
LDAP Auth, the email address used can only be from
LDAP?
Below is a few settings from
LocalSite.cfg that I thought might be helpful
$TWiki::cfg{LoginManager} = 'TWiki::LoginManager::TemplateLogin'
$TWiki::cfg{PasswordManager} = 'TWiki::Users::LdapUser'
$TWiki::cfg{Htpasswd}{FileName} = '/var/www/html/twiki/data/.htpasswd'
$TWiki::cfg{Ldap}{SecondaryPasswordManager} = 'TWiki::Users::HtPasswdUser'
$TWiki::cfg{MailerContrib}{EmailFilterIn} = ''
$TWiki::cfg{NotifyTopicName} = 'WebNotify';
--
ScottGutman - 2010-12-09
I am having the same problem. Notification worked for Main web, but not others.
I use LDAP authentication for accessing TWiki websites. User ID from LDAP is mapped to the user's wikiname.
$TWiki::cfg{LoginManager} = 'TWiki::LoginManager::TemplateLogin'
$TWiki::cfg{PasswordManager} = 'TWiki::Users::HtPasswdUser'
$TWiki::cfg{Htpasswd}{FileName} = '/var/www/html/twiki/data/.htpasswd'
$TWiki::cfg{MailerContrib}{EmailFilterIn} = ''
$TWiki::cfg{NotifyTopicName} = 'WebNotify';
I only use LDAP for user authentication, all user information is stored with TWiki.
Any help is appreciated.
--
SimonGao - 2011-01-17
This happens to 5.0.1 with latest
MailContrib.
--
SimonGao - 2011-02-04
Best to file a bug report with details on how to reproduce.
Closing this question after more than 30 days of inactivity. Feel free to reopen if needed. Consider engaging one of the
TWiki consultants if you need timely help. We invite you to
get involved with the community, it is more likely you get community support if you support the open source project!
--
PeterThoeny - 2011-05-02
If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.