# Permanent SMTP error: permanent 5.5.2

**URL:** <https://forum.delta.chat/t/permanent-smtp-error-permanent-5-5-2/3195>\
**Category:** Mutual Help\
**Created:** [July 14, 2024, 5:38pm UTC](https://forum.delta.chat/t/permanent-smtp-error-permanent-5-5-2/3195 "2024-07-14T17:38:50Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![dmei](https://forum.delta.chat/user_avatar/forum.delta.chat/dmei/32/2255_2.png) [@dmei](https://forum.delta.chat/u/dmei)\
**Post date:** [July 14, 2024, 5:38pm UTC](https://forum.delta.chat/t/permanent-smtp-error-permanent-5-5-2/3195/1 "2024-07-14T17:38:50Z")

</div>

Hallo,  
auf einem Iphone funktionierendes Profil wurde mit der klassischen Methode zu einem Windows 11 Desktop übertragen.  
Deltachat lässt sich dort öffnen, aber es werden keine Nachrichten versendet oder empfangen.  
Es erscheint die Fehlermeldung:  
“Error: Permanent SMTP error: permanent: 5.5.2  
\<[2a02:908:1e4:b920::d250]\>Helo command rejected: invalid ip address  
Message-ID:; Mr. TdWT4SU6MJ-.PcnhKe2IraN@localhost  
No hop Info”  
Kann jemand helfen?

–  
Dirk

---

<div class="post-metadata">

**Author:** ![link2xt](https://forum.delta.chat/letter_avatar_proxy/v4/letter/l/ee7513/32.png) [@link2xt](https://forum.delta.chat/u/link2xt)\
**Post date:** [July 14, 2024, 6:41pm UTC](https://forum.delta.chat/t/permanent-smtp-error-permanent-5-5-2/3195/2 "2024-07-14T18:41:19Z")

</div>

Error “invalid ip address” is generated by Postfix check “reject\_invalid\_helo\_hostname”. Delta Chat sends `[127.0.0.1]` as the HELO hostname which passes this check, so this cannot be a rejection from Postfix `smtpd` that Delta Chat connects to:

> <https://github.com/async-email/async-smtp/blob/52b55c57173c304597821df80979e1ba1d0377ac/src/extension.rs#L33-L41>

Probably Postfix fails to send message further.

---

<div class="post-metadata">

**Author:** ![dmei](https://forum.delta.chat/user_avatar/forum.delta.chat/dmei/32/2255_2.png) [@dmei](https://forum.delta.chat/u/dmei)\
**Post date:** [July 16, 2024, 9:30am UTC](https://forum.delta.chat/t/permanent-smtp-error-permanent-5-5-2/3195/3 "2024-07-16T09:30:26Z")

</div>

Many thanks for your answer.  
Curiosly the error exits since adding a new profile with the team managed mail server [nine.testrun.org](http://nine.testrun.org).  
A formerly created profile on the same PC with mail server [mail.de](http://mail.de) works fine. So it looks like the new profile or the mailserver is reasonable for the error message.  
But I do not know a way to fix.

---

<div class="post-metadata">

**Author:** ![Minim](https://forum.delta.chat/letter_avatar_proxy/v4/letter/m/ccd318/32.png) [@Minim](https://forum.delta.chat/u/Minim)\
**Post date:** [June 19, 2025, 1:30am UTC](https://forum.delta.chat/t/permanent-smtp-error-permanent-5-5-2/3195/4 "2025-06-19T01:30:44Z")

</div>

I had a similar problem trying to config Neomutt to use a chatmail address (to load the public key of a correspondent into a Deltachat client; a kludge).

Neomutt could download mails but not send them. I got this message:

> msmtp: server message: 504 5.5.2  
> : Helo command  
> rejected: need fully-qualified  
> hostname  
> msmtp: could not send mail  
> (account  
> [xxxxxxxx@nine.testrun.org](mailto:xxxxxxxx@nine.testrun.org) from  
> /home/mobian/.msmtprc)

I’ll post any progress, comments welcome.

---

<div class="post-metadata">

**Author:** ![Minim](https://forum.delta.chat/letter_avatar_proxy/v4/letter/m/ccd318/32.png) [@Minim](https://forum.delta.chat/u/Minim)\
**Post date:** [June 19, 2025, 6:03pm UTC](https://forum.delta.chat/t/permanent-smtp-error-permanent-5-5-2/3195/5 "2025-06-19T18:03:47Z")

</div>

I added

> domain 127.0.0.1

to ~/.msmtprc

Result is that sending hangs forever, then:  
msmtp: recipient address  
[xxxxxxxx@nine.testrun.org](mailto:xxxxxxxx@nine.testrun.org) not  
accepted by the server  
msmtp: server message: 504 5.5.2  
\<127.0.0.1\>: Helo command  
rejected: need fully-qualified  
hostname  
msmtp: could not send mail  
(account  
[xxxxxxxx@nine.testrun.org](mailto:xxxxxxxx@nine.testrun.org) from  
/home/mobian/.msmtprc)

So this is maybe unrelated. Suggestions, ideas?

---

<div class="post-metadata">

**Author:** ![link2xt](https://forum.delta.chat/letter_avatar_proxy/v4/letter/l/ee7513/32.png) [@link2xt](https://forum.delta.chat/u/link2xt)\
**Post date:** [June 19, 2025, 10:29pm UTC](https://forum.delta.chat/t/permanent-smtp-error-permanent-5-5-2/3195/6 "2025-06-19T22:29:17Z")

</div>

It should be `domain [127.0.0.1]` instead of `domain 127.0.0.1`. This is also what Delta Chat sends in EHLO.

---

<div class="post-metadata">

**Author:** ![Minim](https://forum.delta.chat/letter_avatar_proxy/v4/letter/m/ccd318/32.png) [@Minim](https://forum.delta.chat/u/Minim)\
**Post date:** [June 21, 2025, 1:44pm UTC](https://forum.delta.chat/t/permanent-smtp-error-permanent-5-5-2/3195/7 "2025-06-21T13:44:37Z")

</div>

Vielen Dank, so einfach war’s! Offensichtlich sind Klammern mir unsichtbar.

Jezt muss ich nur noch hinkriegen, dass die Mails von Mutt als verschlusselt beim Server erkannt sind…

---

<div class="post-metadata">

**Author:** ![r10s](https://forum.delta.chat/user_avatar/forum.delta.chat/r10s/32/1513_2.png) [@r10s](https://forum.delta.chat/u/r10s)\
**Post date:** [October 6, 2026, 3:19pm UTC](https://forum.delta.chat/t/permanent-smtp-error-permanent-5-5-2/3195/8 "2026-10-06T15:19:30Z")

</div>


