# Wrong sending IP on outgoing email

**URL:** https://forum.yunohost.org/t/wrong-sending-ip-on-outgoing-email/42292
**Category:** Advanced use case
**Tags:** mail, postfix, english
**Created:** [May 18, 2026, 8:08pm UTC](https://forum.yunohost.org/t/wrong-sending-ip-on-outgoing-email/42292 "2026-05-18T20:08:19Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![edna](https://forum.yunohost.org/letter_avatar_proxy/v4/letter/e/dec6dc/32.png) [@edna](https://forum.yunohost.org/u/edna)
#### Post date: [May 18, 2026, 8:08pm UTC](https://forum.yunohost.org/t/wrong-sending-ip-on-outgoing-email/42292/1 "2026-05-18T20:08:19Z")

</div>

**What type of hardware are you using** : Virtual machine  
**What YunoHost version are you running** : 12.1.39  
**How are you able to access your server** : The webadmin  
SSH

### Describe your issue

I have two network interfaces on my container, one to the local network and one with a public IP.

When sending emails postfix uses the local IP as sender IP and thus get blocked.

How can i specify the sending IP in Yunohost/Postfix?

Strangely I’m quite sure this worked previously. I have however since tried to change the default domain if that might affect this.

### Share relevant logs or error messages

Headers in bounced email:

Received: from “mydomain\_com” (“hostname” [192.168.1.157])

Which result in the bounce:

said: 554 5.7.1  
Spam message rejected (in reply to end of DATA command)

---

<div class="post-metadata">

### Author: ![edna](https://forum.yunohost.org/letter_avatar_proxy/v4/letter/e/dec6dc/32.png) [@edna](https://forum.yunohost.org/u/edna)
#### Post date: [May 19, 2026, 6:54pm UTC](https://forum.yunohost.org/t/wrong-sending-ip-on-outgoing-email/42292/2 "2026-05-19T18:54:21Z")

</div>

Ok, it could be the reverse lookup that pointed wrong since i changed the default domain. Seems to work now 😕

---

<div class="post-metadata">

### Author: ![system](https://forum.yunohost.org/uploads/default/original/2X/f/f59fe8e3ee6b100b4f574d30d6e30479c68b89f0.png) [@system](https://forum.yunohost.org/u/system)
#### Post date: [June 18, 2026, 6:54pm UTC](https://forum.yunohost.org/t/wrong-sending-ip-on-outgoing-email/42292/3 "2026-06-18T18:54:32Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
