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.