E-mail notification are not sent

Author Message

Pascal France

Saturday 20 May 2006 9:05:30 am

Hi,

I followed the steps described here:
http://ez.no/doc/ez_publish/technical_manual/3_7/features/notifications

I created a "Keep me update" button:

<form method="post" action={'/content/action'|ezurl}>
{section show=$user_current.is_logged_in}
<input type="hidden" name="ContentNodeID" value="{$node.node_id}" />
<input type="image" src={"bouton.png"|ezimage()} align="middle" name="ActionAddToNotification" value="Keep me updated" />
{/section}
</form>

I created a "Avis de mise à jour" role assigned to Guest account:

"Avis de mise à jour"
Policies [1]
Module 	      Fonction 	Limitation
notification 	use 	   No limitations

Once logged-in as "pascal", I display the "notification/settings" page where I set a "once a day" digest notification. Then I choose a folder I want to be kept update.
The node is well added as "Node notification".

So, I run:

./runcronjobs.php

But any e-mail is sent whereas my eZ e-mail system works fine.

Pascal

PS: When I run the runcronjobs.php script the output begin by:

PHP Warning:  mime_magic: type regex  BEGIN[[:space:]]*[{]  application/x-awk invalid in Unknown on line 0

What does this mean ?

Ce qui embellit le désert c'est qu'il cache un puits... quelque part... (A. de Saint-Exupéry) - http://luxpopuli.fr/eZ-Publish

Kristof Coomans

Saturday 20 May 2006 12:01:20 pm

Do you see this wen running the cronjobs:

Running cronjobs/notification.php
Starting notification event processing

If that shows up, your notification cron script is executed.

independent eZ Publish developer and service provider | http://blog.coomanskristof.be | http://ezpedia.org

Pascal France

Saturday 20 May 2006 12:53:56 pm

Hi Kritof,

I founded the runcronjob.php options ( -d for example ) and now I can see these output error messages:

Error: (eZSMTPTransport::sendMail())
Error sending SMTP mail: Bad address syntax

Error: (eZSMTPTransport::sendMail())
Error sending SMTP mail: Bad address syntax

Error: (eZSMTPTransport::sendMail())
Error sending SMTP mail: Bad address syntax

Error: (eZSMTPTransport::sendMail())
Error sending SMTP mail: Bad address syntax

But I don't understand which file is concerned by these errors.

Pascal

Ce qui embellit le désert c'est qu'il cache un puits... quelque part... (A. de Saint-Exupéry) - http://luxpopuli.fr/eZ-Publish

Kristof Coomans

Sunday 21 May 2006 1:58:03 am

There seems to be an issue with sending e-mail through SMTP. The "bad address syntax" message comes from the SMTP server you're connecting too.

Googling on SMTP + "bad address syntax" will probably give you some usable information. Of course the easiest solution would be checking the log files of the smtp server to see why exactly the address got refused.

independent eZ Publish developer and service provider | http://blog.coomanskristof.be | http://ezpedia.org

Pascal France

Sunday 21 May 2006 4:33:10 am

Hi Kristof,

It's my own SMTP server and I already checked the logs:
tail -f -n50 /var/log/mail.log
but any mail is sent.

When I do notification tests from my from scratch eZP 3.7.6 installation, notification e-mails are sent and all works perfectly. So, my SMTP server works fine too.

From my actual site (which is also a 3.7.6 version), I removed all guest accounts and created a new one (the same I created for tests above).
Then, I checked all kernel/classes/notification/* files: they are the same than the files in my test installation. I compared runcronjobs.php, and all settings/*.ini files too. They are the same than my test installation. (I'm not surprised because I did an upgrade -- 3.7.5 to 3.76 -- two days ago).
Now, when I run the runcronjobs.php script, I have no more e-mail syntax errors, but any e-mail is sent !!!

Is there some other config files I should check ?

A little thing: I use phpMyAdmin. When I browse my test database, I can't browse the "eznotificationcollection", "eznotificationcollection_item" and "eznotificationevent" tables (I can display the structure of these tables, but I'm not allowed to click the "Borwse" button) whereas I can do it in my actual site database.

Pascal

Ce qui embellit le désert c'est qu'il cache un puits... quelque part... (A. de Saint-Exupéry) - http://luxpopuli.fr/eZ-Publish

Pascal France

Sunday 21 May 2006 5:37:38 am

Hi Kristof,

Here are the end lines of my smtp logs:

First one (working):

142 cyrus/master[29080]: about to exec /usr/lib/cyrus/bin/lmtpd
143 cyrus/lmtpunix[29080]: executed
144 cyrus/lmtpd[29080]: accepted connection
145 cyrus/lmtpd[29080]: lmtp connection preauth'd as postman
146 cyrus/lmtpd[29080]: duplicate_check: <node.114.eznotification@www.linuxorable.net/ez_test3.7.5/index.php> user.X           0
147 cyrus/lmtpd[29080]: mystore: starting txn 2147489357
148 cyrus/lmtpd[29080]: mystore: committing txn 2147489357
149 cyrus/lmtpd[29080]: duplicate_mark: <node.114.eznotification@www.linuxorable.net/ez_test3.7.5/index.php> user.X           1148212986
150 postfix/pipe[29078]: D6C3FFB85F: to=<X@linuxorable.net>, relay=cyrus, delay=1, status=sent (xxx.linuxorable.net)
151 postfix/qmgr[29060]: D6C3FFB85F: removed

Second one (not working):

142 cyrus/lmtpd[29183]: accepted connection
143 cyrus/lmtpd[29183]: lmtp connection preauth'd as postman
144 postfix/pipe[29181]: 57AC8FB85F: to=<X@linuxorable.net>, relay=cyrus, delay=0, status=bounced (data format error. Command output: X:     Message contains invalid header )
145 postfix/cleanup[29178]: 7DF87FB862: message-id=<20060521121036.7DF87FB862@xxx.linuxorable.net>
146 postfix/qmgr[29060]: 7DF87FB862: from=<>, size=3319, nrcpt=1 (queue active)
147 postfix/qmgr[29060]: 57AC8FB85F: removed
148 cyrus/lmtpd[29183]: accepted connection
149 cyrus/lmtpd[29183]: lmtp connection preauth'd as postman
150 cyrus/lmtpd[29183]: duplicate_check: <20060521121036.7DF87FB862@xxx.linuxorable.net> user.pascal          0
151 cyrus/lmtpd[29183]: mystore: starting txn 2147489372
152 cyrus/lmtpd[29183]: mystore: committing txn 2147489372
153 cyrus/lmtpd[29183]: duplicate_mark: <20060521121036.7DF87FB862@xxx.linuxorable.net> user.pascal          1148213436
154 postfix/pipe[29181]: 7DF87FB862: to=<pascal@linuxorable.net>, relay=cyrus, delay=0, status=sent (xxx.linuxorable.net)
155 postfix/qmgr[29060]: 7DF87FB862: removed

As you can see, line 144 (second logs) there is a "data format error" message.
I tried to disable FCKeditor without success.

Any idea ?

Pascal

Ce qui embellit le désert c'est qu'il cache un puits... quelque part... (A. de Saint-Exupéry) - http://luxpopuli.fr/eZ-Publish

Pascal France

Sunday 21 May 2006 9:56:24 am

Hi,

I solved the problem.
If, like me, we use Postfix and Cyrus-IMAP, we should have these settings:

In main.cf (postfix):

strict_rfc821_envelopes = yes
strict_7bit_headers = no

In imapd.conf (Cyrus-IMAP):

reject8bit: no
munge8bit: no/yes

"munge8bit:no" allows accents on characters.
"munge8bit:yes" replaces each stressed characters by a X.

Cordially

Pascal

Ce qui embellit le désert c'est qu'il cache un puits... quelque part... (A. de Saint-Exupéry) - http://luxpopuli.fr/eZ-Publish

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 19 2025 03:41:14
Script start
Timing: Jan 19 2025 03:41:14
Module start 'layout'
Timing: Jan 19 2025 03:41:14
Module start 'content'
Timing: Jan 19 2025 03:41:15
Module end 'content'
Timing: Jan 19 2025 03:41:15
Script end

Main resources:

Total runtime0.9116 sec
Peak memory usage4,096.0000 KB
Database Queries69

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0049 589.1797152.6250
Module start 'layout' 0.00490.0026 741.804739.4453
Module start 'content' 0.00740.9027 781.2500609.6641
Module end 'content' 0.91020.0013 1,390.914120.1563
Script end 0.9115  1,411.0703 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00310.3450160.0002
Check MTime0.00140.1548160.0001
Mysql Total
Database connection0.00070.080410.0007
Mysqli_queries0.828490.8758690.0120
Looping result0.00070.0714670.0000
Template Total0.877596.320.4388
Template load0.00180.201420.0009
Template processing0.875796.061320.4378
Template load and register function0.00020.025210.0002
states
state_id_array0.00110.124110.0011
state_identifier_array0.00130.138420.0006
Override
Cache load0.00160.1801690.0000
Sytem overhead
Fetch class attribute can translate value0.00100.106520.0005
Fetch class attribute name0.00150.161280.0002
XML
Image XML parsing0.00921.011720.0046
class_abstraction
Instantiating content class attribute0.00000.002190.0000
General
dbfile0.00921.0124160.0006
String conversion0.00000.001040.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
7content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
21content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
7content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
10content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 49
 Number of unique templates used: 7

Time used to render debug report: 0.0002 secs