Feedback form : "SMTPUTF8 is required" error

3,266 views
Skip to first unread message

Thomas Francart

unread,
Jan 24, 2018, 10:56:22 AM1/24/18
to Skosmos Users
Hello

On 2 distinct deployment of Skosmos, I have encountered the same problem with no solution as of today : the mails send by the feedback form are bounced back by the mail server with the error :

SMTPUTF8 is required, but was not offered by host mail.example.com [1.2.3.4]

This happened on Debian 9 and Ubuntu.
I have no clue how to solve this. I see Skosmos is setting a "charset=UTF-8" header when sending emails, but even if I take out this header, the problem persists.

Has anyone experienced the same issue and found a solution ?

Thanks
Thomas

--

Thomas Francart - SPARNA
Web de données | Architecture de l'information | Accès aux connaissances
blog :
blog.sparna.fr, site : sparna.fr, linkedin : fr.linkedin.com/in/thomasfrancart
tel : 
 +33 (0)6.71.11.25.97
, skype : francartthomas

Osma Suominen

unread,
Jan 25, 2018, 3:12:47 AM1/25/18
to skosmo...@googlegroups.com
Hi Thomas!

Is the mail server in your control? Based on the error message, I think
it's a Postfix server which has SMTPUTF8 enabled. I have no personal
experience with this, but a brief web search found some clues, for
example this: https://github.com/hardware/mailserver/issues/166
And this:
http://postfix.1071664.n5.nabble.com/Disabling-SMTPUTF8-per-destination-td89931.html

Do you have non-ASCII characters in the strings that get included in the
feedback message headers, for example the feedback recipient address or
the vocabulary name? Is it possible to take them out? Of course, the
sender name and address is provided by the user filling the form, and
these may also contain non-ASCII (i.e. UTF-8) characters, but then the
problem would affect only those submissions.

If you can control the Postfix install, you could try changing the
settings related to SMTPUTF8, as suggested in the discussions linked to
above.

It's possible that this is something to fix in Skosmos code, but I think
we need more information.

-Osma


Thomas Francart kirjoitti 24.01.2018 klo 17:56:
> Hello
>
> On 2 distinct deployment of Skosmos, I have encountered the same problem
> with no solution as of today : the mails send by the feedback form are
> bounced back by the mail server with the error :
>
> SMTPUTF8 is required, but was not offered by host mail.example.com
> <http://mail.example.com> [1.2.3.4]
>
> This happened on Debian 9 and Ubuntu.
> I have no clue how to solve this. I see Skosmos is setting a
> "charset=UTF-8" header when sending emails, but even if I take out this
> header, the problem persists.
>
> Has anyone experienced the same issue and found a solution ?
>
> Thanks
> Thomas
>
> --
> *
> *
> *Thomas Francart* -*SPARNA*
> Web de _données_ | Architecture de l'_information_ | Accès aux
> _connaissances_
> blog : blog.sparna.fr <http://blog.sparna.fr>, site : sparna.fr
> <http://sparna.fr>, linkedin : fr.linkedin.com/in/thomasfrancart
> <https://fr.linkedin.com/in/thomasfrancart>
> tel :  +33 (0)6.71.11.25.97, skype : francartthomas
>
> --
> You received this message because you are subscribed to the Google
> Groups "Skosmos Users" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to skosmos-user...@googlegroups.com
> <mailto:skosmos-user...@googlegroups.com>.
> To post to this group, send email to skosmo...@googlegroups.com
> <mailto:skosmo...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/skosmos-users/CAPugn7V46O80oOZtm0jsQQxf_xSGvST5O1KqN-KvyzdJEkNidQ%40mail.gmail.com
> <https://groups.google.com/d/msgid/skosmos-users/CAPugn7V46O80oOZtm0jsQQxf_xSGvST5O1KqN-KvyzdJEkNidQ%40mail.gmail.com?utm_medium=email&utm_source=footer>.
> For more options, visit https://groups.google.com/d/optout.


--
Osma Suominen
D.Sc. (Tech), Information Systems Specialist
National Library of Finland
P.O. Box 26 (Kaikukatu 4)
00014 HELSINGIN YLIOPISTO
Tel. +358 50 3199529
osma.s...@helsinki.fi
http://www.nationallibrary.fi

Thomas Francart

unread,
Jan 25, 2018, 3:38:25 AM1/25/18
to Osma Suominen, Skosmos Users
Hi Osma

Thanks for the pointers, I will forward them to the sysadmins that take of the 2 respective mail servers where we have this problem. They are not under my control. The test messages we send through the form do not contain non-ASCII characters.
i will let you know.

Thanks !
Thomas


To unsubscribe from this group and stop receiving emails from it, send an email to skosmos-users+unsubscribe@googlegroups.com <mailto:skosmos-users+unsubscri...@googlegroups.com>.
To post to this group, send email to skosmo...@googlegroups.com <mailto:skosmos-users@googlegroups.com>.


--
Osma Suominen
D.Sc. (Tech), Information Systems Specialist
National Library of Finland
P.O. Box 26 (Kaikukatu 4)
00014 HELSINGIN YLIOPISTO
Tel. +358 50 3199529
osma.s...@helsinki.fi
http://www.nationallibrary.fi

--
You received this message because you are subscribed to the Google Groups "Skosmos Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to skosmos-users+unsubscribe@googlegroups.com.
To post to this group, send email to skosmo...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/skosmos-users/d986ef06-073a-1569-ec93-384e74ae3365%40helsinki.fi.

For more options, visit https://groups.google.com/d/optout.



--

Thomas Francart - SPARNA
Web de données | Architecture de l'information | Accès aux connaissances
blog :
blog.sparna.fr,
site : sparna.fr, linkedin : fr.linkedin.com/in/thomasfrancart
tel : 
 +33 (0)6.71.11.25.97
, skype : francartthomas

Joachim Dornbusch

unread,
Feb 20, 2020, 8:13:36 AM2/20/20
to Skosmos Users
Hi all,

we were faced with the same problem. We discovered an invalid character in the SMTP header coming from 
WebController::createFeedbackHeaders#280

in our Skosmos version. There is :
$headers = "MIME-Version: 1.0″ . '\n";

instead of
It doesn't crash the php interpreter as the generated header line is :

MIME-Version: 1.0″ . '

Invalid quote probably causes SMTP servers to reject the email.

--
Joachim Dornbusch
Pôle numérique recherche
Direction des Systèmes d'Information
EHESS : 54, boulevard Raspail - 75006 Paris
To unsubscribe from this group and stop receiving emails from it, send an email to skosmo...@googlegroups.com <mailto:skosmos-users+unsub...@googlegroups.com>.
To post to this group, send email to skosmo...@googlegroups.com <mailto:skosmo...@googlegroups.com>.


--
Osma Suominen
D.Sc. (Tech), Information Systems Specialist
National Library of Finland
P.O. Box 26 (Kaikukatu 4)
00014 HELSINGIN YLIOPISTO
Tel. +358 50 3199529
osma.s...@helsinki.fi
http://www.nationallibrary.fi

--
You received this message because you are subscribed to the Google Groups "Skosmos Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to skosmo...@googlegroups.com.

To post to this group, send email to skosmo...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/skosmos-users/d986ef06-073a-1569-ec93-384e74ae3365%40helsinki.fi.
For more options, visit https://groups.google.com/d/optout.

Osma Suominen

unread,
Feb 24, 2020, 10:01:32 AM2/24/20
to skosmo...@googlegroups.com
Hi Joachim,

Thank you for spotting and reporting this, and also opening the issue
report on GitHub. This has now been fixed on the master branch as well
as backported to the v2.3-maintenance branch.

Best,
Osma
> <javascript:>>:
> <http://fr.linkedin.com/in/thomasfrancart>
> <https://fr.linkedin.com/in/thomasfrancart
> <https://fr.linkedin.com/in/thomasfrancart>>
> tel : +33 (0)6.71.11.25.97, skype : francartthomas
>
> --
> You received this message because you are subscribed to the
> Google Groups "Skosmos Users" group.
> To unsubscribe from this group and stop receiving emails
> from it, send an email to skosmo...@googlegroups.com
> <javascript:>
> <mailto:skosmos-user...@googlegroups.com
> <javascript:>>.
> To post to this group, send email to
> skosmo...@googlegroups.com <javascript:>
> <mailto:skosmo...@googlegroups.com <javascript:>>.
> <https://groups.google.com/d/msgid/skosmos-users/CAPugn7V46O80oOZtm0jsQQxf_xSGvST5O1KqN-KvyzdJEkNidQ%40mail.gmail.com?utm_medium=email&utm_source=footer
> <https://groups.google.com/d/optout>.
>
>
>
> --
> Osma Suominen
> D.Sc. (Tech), I
> <https://maps.google.com/?q=.+(Tech),+I&entry=gmail&source=g>nformation
> Systems Specialist
> National Library of Finland
> P.O. Box 26 (Kaikukatu 4)
> 00014 HELSINGIN YLIOPISTO
> Tel. +358 50 3199529
> osma.s...@helsinki.fi <javascript:>
> http://www.nationallibrary.fi
>
> --
> You received this message because you are subscribed to the
> Google Groups "Skosmos Users" group.
> To unsubscribe from this group and stop receiving emails from
> it, send an email to skosmo...@googlegroups.com <javascript:>.
> To post to this group, send email to skosmo...@googlegroups.com
> <javascript:>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/skosmos-users/d986ef06-073a-1569-ec93-384e74ae3365%40helsinki.fi
> <https://groups.google.com/d/msgid/skosmos-users/d986ef06-073a-1569-ec93-384e74ae3365%40helsinki.fi>.
> For more options, visit https://groups.google.com/d/optout
> <https://groups.google.com/d/optout>.
>
>
>
>
> --
> *
> *
> *Thomas Francart* -*SPARNA*
> Web de _données_ | Architecture de l'_information_ | Accès aux
> _connaissances_
> blog : blog.sparna.fr <http://blog.sparna.fr>, site : sparna.fr
> <http://sparna.fr>, linkedin : fr.linkedin.com/in/thomasfrancart
> <https://fr.linkedin.com/in/thomasfrancart>
> tel :  +33 (0)6.71.11.25.97, skype : francartthomas
>
> --
> You received this message because you are subscribed to the Google
> Groups "Skosmos Users" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to skosmos-user...@googlegroups.com
> <mailto:skosmos-user...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/skosmos-users/62b07e37-e689-4c06-96f7-d2c98ae5f1fe%40googlegroups.com
> <https://groups.google.com/d/msgid/skosmos-users/62b07e37-e689-4c06-96f7-d2c98ae5f1fe%40googlegroups.com?utm_medium=email&utm_source=footer>.


--
Osma Suominen
D.Sc. (Tech), Information Systems Specialist
National Library of Finland
P.O. Box 15 (Unioninkatu 36)
Reply all
Reply to author
Forward
0 new messages