In my mailcow, I have started receiving bounces from other servers for mails I never sent.
They usually look like this:
This is the mail system at host mail.domain.tld.
I'm sorry to have to inform you that your message could not
be delivered to one or more recipients. It's attached below.
For further assistance, please send mail to postmaster.
If you do so, please include this problem report. You can
delete your own text from the attached returned message.
The mail system
<younes.ar@sfr.fr>: host smtp-in.sfr.fr[93.17.128.123] said: 550 5.7.1 Email
4cJP5p5ms0z1LQKcv rejected per SPAM policy (in reply to end of DATA
command)
Reporting-MTA: dns; mail.domain.tld
X-Postcow-Queue-ID: DE0454421F
X-Postcow-Sender: rfc822; hello@domain.tld
Arrival-Date: Fri, 5 Sep 2025 19:49:26 +0200 (CEST)
Final-Recipient: rfc822; younes.ar@sfr.fr
Original-Recipient: rfc822;younes.ar@sfr.fr
Action: failed
Status: 5.7.1
Remote-MTA: dns; smtp-in.sfr.fr
Diagnostic-Code: smtp; 550 5.7.1 Email 4cJP5p5ms0z1LQKcv rejected per SPAM
policy
Votre compte SOCGN temporairement suspendu - Action requise.eml
Subject:
Votre compte SOCGN temporairement suspendu - Action requise
From:
hello@domain.tld
Date:
05/09/2025, 19:50
To:
younes.ar@sfr.fr
!<
Here’s what that looks like in rspamd (through mailcow UI):

The IP address is the one that’s configured in my mailcow.conf
. I did not change anything there regarding the IP config.
Other threads here (one, two) seem to indicate I’m not the only one this is happening to.
Everything seems to point to my mailcow being configured as Open Relay, but I never configured this. As far as I understand the config, it is not enabled:
$ cat data/conf/postfix/extra.cf
myhostname = mail.domain.tld
$ grep mynetworks data/conf/postfix/*.cf
data/conf/postfix/main.cf:smtpd_relay_restrictions = permit_mynetworks,
data/conf/postfix/main.cf:mynetworks_style = subnet
data/conf/postfix/main.cf:postscreen_access_list = permit_mynetworks,
data/conf/postfix/main.cf: $mynetworks,
data/conf/postfix/main.cf: permit_mynetworks,
data/conf/postfix/main.cf: permit_mynetworks,
data/conf/postfix/main.cf:parent_domain_matches_subdomains = debug_peer_list,fast_flush_domains,mynetworks,qmqpd_authorized_clients
data/conf/postfix/master.cf: -o smtpd_sender_restrictions=permit_mynetworks,reject_unlisted_sender,reject_unknown_sender_domain
data/conf/postfix/master.cf: -o smtpd_client_restrictions=permit_mynetworks,permit_sasl_authenticated,reject
data/conf/postfix/master.cf: -o smtpd_client_restrictions=permit_mynetworks,permit_sasl_authenticated,reject
data/conf/postfix/master.cf: -o smtpd_client_restrictions=permit_mynetworks,permit_sasl_authenticated,reject
data/conf/postfix/master.cf: -o smtpd_client_restrictions=permit_mynetworks,permit_sasl_authenticated,reject
data/conf/postfix/master.cf: -o smtpd_client_restrictions=permit_mynetworks,permit_sasl_authenticated,reject
data/conf/postfix/master.cf: -o smtpd_sender_restrictions=check_sasl_access,regexp:/opt/postfix/conf/allow_mailcow_local.regexp,reject_authenticated_sender_login_mismatch,permit_mynetworks,permit_sasl_authenticated,reject_unlisted_sender,reject_unknown_sender_domain
data/conf/postfix/master.cf: -o smtpd_client_restrictions=permit_mynetworks,reject
data/conf/postfix/master.cf: -o smtpd_client_restrictions=permit_mynetworks,reject
data/conf/postfix/master.cf: -o smtpd_client_restrictions=permit_mynetworks,reject
Is it possible that someone is forging their IP address so that the mailcow thinks the mail is coming from an allowed network?
Why does the mailcow even allow sending mail as unauthenticated sender?