SID-00886: Mail Notify Timestamp File Not Created
| Status: |
Unanswered |
TWiki version: |
4.3.2 |
Perl version: |
5.8.8 |
| Category: |
MailerContrib |
Server OS: |
Redhat Linux 64bit kernel 2.6.18 |
Last update: |
15 years ago |
We have successfully installed Twiki. I am trying to configure mail notifications, but I am not getting any mails for topics changed. I can successfully run the mailnotify -news command, which generates the following output;
Processing Main
Main has no subscribers
Processing PepkorIT
%MAKETEXT{"This is a subscription service to be automatically notified by e-mail when topics change in this [_1] web. This is a convenient service, so you do not have to come back and check all the time if something has changed. To subscribe, please add a bullet with your [_2] in alphabetical order to this list:" args="*<nop>%WEB%*,%SYSTEMWEB%.WikiName"}%
* leond@pepkorit.com: *
%INCLUDE{"%SYSTEMWEB%.WebChangesAlert"}%
__%MAKETEXT{"Related topics:"}%__ %SYSTEMWEB%.WebChangesAlert, %SYSTEMWEB%.TWikiRegistration
Last notification was at 1970-01-01T00:00:00Z
Processing Sandbox
Sandbox has no subscribers
Processing TWiki
TWiki has no subscribers
Processing TestMail
%MAKETEXT{"This is a subscription service to be automatically notified by e-mail when topics change in this [_1] web. This is a convenient service, so you do not have to come back and check all the time if something has changed. To subscribe, please add a bullet with your [_2] in alphabetical order to this list:" args="*<nop>%WEB%*,%SYSTEMWEB%.WikiName"}%
* LeonDorfling: *
%INCLUDE{"%SYSTEMWEB%.WebChangesAlert"}%
__%MAKETEXT{"Related topics:"}%__ %SYSTEMWEB%.WebChangesAlert, %SYSTEMWEB%.TWikiRegistration
Last notification was at 1970-01-01T00:00:00Z
0 change notifications from PepkorIT
0 change notifications from TestMail
If I look in the Web folder data/PepkorIT, then my changes are visible and my .changes file has been updated;
-rw-r--r-- 1 apache apache 238 Jul 6 14:44 .changes
-r--r-xr-- 1 apache apache 1911 Jul 6 14:44 ApplicationAdministration.txt,v
-rw-r--r-- 1 apache www 540 Jul 6 14:44 ApplicationAdministration.txt.
What does not make sense is the "Last notification was at 1970-01-01T00:00:00Z" in the output.
I also cannot find any timestamp files in the working/work_areas/MailerContrib dirctories as described in previous support queries.
--
LeonDorfling - 2010-07-06
Discussion and Answer
Not sure. Things to check:
- Is e-mail configured properly, e.g. do you get e-mails on user registration?
- Make sure all files & dirs below twiki/data, twiki/pub and twiki/working are owned by apache.apache.
--
PeterThoeny - 2010-07-06
Mail is successfully sent when new user register.
I will check settings/ownership on files noted and provide feedback.
Thanks for the reply.
Regards.
Leon.
--
LeonDorfling - 2010-07-07
Hi
I have checked all the permissions and they are correct, and confirmed by the Unix admin.
I am not sure where the .mailnotify file must be. For the version that we are using, must it be in /data/web/ or must it be in working/work_areas/MailerContrib.
Our changes are defintley being logged to data/web/.changes.
I assume we are not getting topic change mails due to the mailnotify timestamp file not being correct or present.
Regards.
Leon.
--
LeonDorfling - 2010-07-07
Hi Peter
Any help to resolve my question yet?
Regards
Leon.
--
LeonDorfling - 2010-07-08
In TWiki-4.3 the mailer timestamps are stored in
working/work_areas/MailerContrib. In that directory you should have files of names of webs, each with a Unix timestamp in clear text. For example, there would be a
Main file with content
1275087907.
Do you run the mailnotify as user apache in a cron? Here is an example:
00 23 * * * (cd /var/www/twiki/tools; nice perl -I /var/www/twiki/bin mailnotify >/var/www/twiki/data/.mailnotify.out 2>&1)
--
PeterThoeny - 2010-07-09
Hi Peter,
Thanks for feedback.
There are no files in working/work_areas/MailerContrib? Are they automatically created or must I manually add them there?
I am manually going to create one to check if it works.
Regards
Leon.
--
LeonDorfling - 2010-07-09
They are automagically created
--
PeterThoeny - 2010-07-09
Hi Peter,
Any idea why my magic wand is not working?
If I could guess, it would have something to do with rights?
I assume that they are created when creating a new Web?
Regards.
Leon.
--
LeonDorfling - 2010-07-09
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 - 2010-09-13
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.