Skip to main content
Beantwoord

SMTPUTF8 is required, but was not offered by host smtp.kpnmail.nl

  • 6 mei 2025
  • 3 reacties
  • 23 keer bekeken

When I try to send an email to an yahoo account I see in the log of my postfix installation, the following message 

May  4 18:34:24 weurope postfix/smtp[31179]: 4523E24812EA4: to=<redacted@yahoo.com>, orig_to=<contact@redacted.com>, relay=smtp.kpnmail.nl[195.121.65.26]:587, delay=0.37, delays=0.21/0.13/0.04/0, dsn=5.6.7, status=bounced (SMTPUTF8 is required, but was not offered by host smtp.kpnmail.nl[195.121.65.26])

If I understand the problem correctly it appears that smtp.kpnmail.nl is not supporting SMTPUTF8 which is required by yahoo.

How to solve this?

Octavian

Beste antwoord door octavsly

I fixed it by encoding the subject

$preferences = ["input-charset" => "UTF-8", "output-charset" => "UTF-8"];
$encoded_subject = iconv_mime_encode("Subject", $subject, $preferences);
$mail = mail($siteOwnersEmail, $encoded_subject, $message, $headers, "-f" .  $siteOwnersEmail);




 

Bekijk origineel

3 reacties

JanD
Superuser
  • Superuser
  • 10328 reacties
  • 6 mei 2025

Dear ​@octavsly did you also try to send the mail via https://webmail.kpnmail.nl/mail/logon.asp ???

 


  • Auteur
  • Nieuwkomer
  • 2 reacties
  • 6 mei 2025

No, it is an PHP script which sends it via local postfix.
I am now investigating with the help at

https://unix.stackexchange.com/questions/195381/how-to-prevent-bounce-of-smtputf8-emails


  • Auteur
  • Nieuwkomer
  • 2 reacties
  • Antwoord
  • 6 mei 2025

I fixed it by encoding the subject

$preferences = ["input-charset" => "UTF-8", "output-charset" => "UTF-8"];
$encoded_subject = iconv_mime_encode("Subject", $subject, $preferences);
$mail = mail($siteOwnersEmail, $encoded_subject, $message, $headers, "-f" .  $siteOwnersEmail);




 


Reageer