Outlook Rejects Your Server’s Mail With 550 5.7.515: Five Questions

On this pageRead the bounce before you touch DNS
  1. Read the bounce before you touch DNS
  2. Question 1: 550 5.7.515 while DMARC says pass
  3. Question 2: 550 5.7.1 S3150 block list with clean records
  4. Question 3: “Message lacks SPF/DKIM/DMARC Auth Records” (AS9031519)
  5. Question 4: SPF passes, DKIM fails, only at Outlook
  6. Question 5: Outlook and Hotmail junk after fixing SPF, DKIM and DMARC
  7. Does Outlook require DMARC for small senders?
  8. What this means for you
550 5.7.515: a mail sorting gate checks each envelope's signature and return address against the sender name and sends one back

Mail from your server to an Outlook.com or Hotmail address bounced with 550 5.7.515, and a test message shows spf=pass and dkim=pass. The code means Microsoft judged the domain in your From address as not authenticated enough. Re-checking the SPF record, the usual first move, often misses the cause, because what matters is which domain each check passed for. In a 36-row alignment matrix computed locally, SPF and DKIM passed in every row and DMARC still failed in 12. Read the bounce code first, then compare the DKIM d= domain and the Return-Path domain with the From.

Read the bounce before you touch DNS

Microsoft uses different codes for different problems. A domain problem shows up as 5.7.515. A block on your sending address or its network shows up as 5.7.1 with a block list name, and changing your domain’s records does not lift it. Mail filed as Junk produces no bounce at all.

On a Postfix server the remote reply sits in the delivery log line, after said:. Pull the last few with one command (on Ubuntu the file is /var/log/mail.log):

sudo grep -E 'status=bounced.*(5\.7\.515|S3150|AS9031519)' /var/log/mail.log | tail -n 5
What you seeWhat it points atFirst thing to readWhere the fix lives
550 5.7.515 Access denied, sending domain ... does not meet the required authentication levelYour From domain failed SPF, DKIM or aligned DMARCheader.d= and smtp.mailfrom= next to header.from= in a test messageSPF record, DKIM signing, DMARC record (Questions 1 and 4)
550 5.7.1 naming block list S3150The sending IP or its networkThe IP in the bounce, its PTR nameOutlook.com sender form, not DNS (Question 2)
550 5.7.1 ... lacks SPF/DKIM/DMARC Auth Records (AS9031519)The November 2026 incident; missing DMARC record_dmarc TXT record of the From domainPublish a DMARC record (Question 3)
No bounce, message in JunkSpam filtering verdictX-Forefront-Antispam-Report header at the recipientReputation and content (Question 5)

Before the questions: get a raw copy

Most checks below read the headers of a real message. Send one from your server to a mailbox you control and save its raw source as message.eml with the client’s download-original option. In a re-test, source pasted from a browser window lost trailing spaces and failed with body hash mismatch although the message was signed correctly. Its Authentication-Results header is that receiver’s verdict, not Microsoft’s; the lab outputs below stand in for it. The five questions come from Microsoft’s forums in 2026. Most askers used an ISP or hosted service; the answers are for people running their own mail server.

Question 1: 550 5.7.515 while DMARC says pass

A pass on DMARC does not protect you from 550 5.7.515, because Microsoft checks SPF and DKIM on their own as well. The published rule targets senders of more than 5,000 messages a day; see what Microsoft has written about small senders.

A user testing from a school address asked on Microsoft Q&A on March 26, 2026 why messages bounced with 5.7.515. The headers showed SPF fail, DKIM pass and DMARC pass, and the asker called it “a false positive authentication alignment failure”. The only reply asked for the domain.

Microsoft’s support page for the 550 5.7.515 non-delivery report says both SPF (the DNS list of servers allowed to send for a domain) and DKIM (the signature) must pass. DMARC, the policy that ties them to the From domain, must pass with at least one of them aligned. An SPF fail is enough, whatever DMARC says.

Below, a correctly signed message arrives from an IP missing from the SPF record. All outputs here come from Postfix 3.8.6 and OpenDKIM 2.11.0 from the Ubuntu 24.04 archive. They were checked with dkimpy 1.1.8, pyspf 2.0.14 and authheaders 0.16.3 against a local DNS zone. Results were computed locally with open-source verifiers, not Microsoft’s output. ar.py, the matrix and the canonicalization table come from lab helper scripts you do not need.

$ ar.py sink/002.eml 198.51.100.83 bounce@example.net mail.example.net
Authentication-Results: mx.example.org; spf=fail reason="SPF fail - not authorized" smtp.helo=mail.example.net smtp.mailfrom=bounce@example.net; dkim=pass header.d=example.net; dmarc=pass (Used From Domain Record) header.from=example.net policy.dmarc=reject

SPF is checked for the envelope sender, the MAIL FROM address that later shows up as Return-Path. On a self-hosted setup an SPF fail usually means another machine sends with your domain there, such as a web server or a new VPS after a move. Sometimes the record still lists an old IP; see finding DNS records that still point at a deleted server. In the lab output, example.net, 192.0.2.47 and selector dec2026 stand in for your own values.

dig +short TXT example.net
dig +short TXT _dmarc.example.net

The FAQ in Microsoft’s April 2025 announcement for high-volume senders says an SPF check “might fail” past 10 DNS lookups. In pyspf 2.0.14 a record with 11 includes still returned pass for an IP in the third include. It gave permerror for an IP matched after the tenth lookup and for an IP matched by none of them. So one record can pass for one sender and break for another. Microsoft does not document its count, so stay at 10 or fewer.

DMARC alignment: relaxed and strict, read by d=

The opposite case confuses more people: SPF and DKIM pass, and DMARC fails. DMARC alignment means the domain that passed must match the From domain. RFC 7489, section 3.1 defines two modes. Relaxed (the default) accepts any domain with the same organizational domain, so news.example.net aligns with example.net. Strict (adkim=s or aspf=s in the DMARC record) needs the exact same name.

Two signed lab messages show the trap. The first has its From on a subdomain with strict alignment, signed with the parent d=example.net. A third-party sender signed the second with its own d= and bounce domain:

# From: alerts@strict.example.net, signed by OpenDKIM d=example.net, MAIL FROM bounce@example.net (sink/005)
Authentication-Results: mx.example.org; spf=pass reason="sender SPF authorized" smtp.helo=mail.example.net smtp.mailfrom=example.net; dkim=pass header.d=example.net; dmarc=fail (Used From Domain Record) header.from=strict.example.net policy.dmarc=reject

# From: alerts@example.net, signed by a third party d=example.org s=esp1, MAIL FROM bounces@bounces.example.org
Authentication-Results: mx.example.org; spf=pass reason="sender SPF authorized" smtp.helo=mail.example.net smtp.mailfrom=bounces.example.org; dkim=pass header.d=example.org header.i=@example.org; dmarc=fail (Used From Domain Record) header.from=example.net policy.dmarc=reject

On a single self-hosted server, sign with d= equal to the From domain and use an envelope sender on the same domain. Keep alignment relaxed. In the lab matrix, eight combinations that passed in relaxed mode failed in strict mode. In each, a parent domain or a subdomain such as bounce.example.net stood where strict mode wants the exact From name.

OpenDKIM takes d= from the KeyTable: the example.net before the first colon in the line below. The SigningTable picks a key by From address. These are lines from the lab config; Ubuntu’s own file uses a local socket (local:/run/opendkim/opendkim.sock) instead of the TCP one that the Postfix outputs in Question 4 assume:

# /etc/opendkim.conf (lab, excerpt)
Canonicalization        relaxed/simple
Socket                  inet:8891@127.0.0.1
KeyTable                refile:/etc/opendkim/KeyTable
SigningTable            refile:/etc/opendkim/SigningTable
# /etc/opendkim/KeyTable (excerpt)
dec2026._domainkey.example.net example.net:dec2026:/etc/opendkim/keys/dec2026.private
# /etc/opendkim/SigningTable (excerpt)
*@example.net dec2026._domainkey.example.net
*@strict.example.net dec2026._domainkey.example.net
*@news.example.net dec2026._domainkey.example.net

The lab signed the subdomain From because the SigningTable lists *@strict.example.net. In a separate re-test configured with a single Domain example.net instead of tables, OpenDKIM did not sign that From at all until SubDomains yes was added.

Lab note: a helper script applied the RFC rules to 36 combinations of From, MAIL FROM and d=, all with SPF and DKIM passing. DMARC failed in 12, two of them in relaxed mode (trimmed):

 # From domain        MAIL FROM dom        DKIM d=            mode  SPF   SPFal  DKIM  DKal  DMARC
10 example.net        bounce.example.net   news.example.net   s/s   pass  False  pass  False FAIL
17 example.net        bounces.example.org  example.org        r/r   pass  False  pass  False FAIL
20 news.example.net   example.net          example.net        s/s   pass  False  pass  False FAIL
22 news.example.net   example.net          news.example.net   s/s   pass  False  pass  True  pass
35 news.example.net   bounces.example.org  example.org        r/r   pass  False  pass  False FAIL

Question 2: 550 5.7.1 S3150 block list with clean records

S3150 is a block on the sending IP address or its network, so fixing your SPF, DKIM and DMARC records does not lift it. For a bounce from a Hotmail or Outlook.com mailbox, use the delisting form for Outlook.com: open it from Microsoft’s delist article.

In a Microsoft Q&A thread of May 26, 2026, a small platform sending low-volume notifications reported a “persistent S3150 block” while SPF, DKIM and DMARC passed and the PTR was forward-confirmed. Requests at sender.office.com never produced a confirmation mail. An advisor pointed to an Outlook.com support form and delist@microsoft.com.

Microsoft’s article describes sender.office.com for “banned sending IP” bounces in the 5.7.606-649 range from Microsoft 365 and does not mention S3150. A 5.7.511 bounce goes by mail to delist@microsoft.com with the full bounce text (NDR) and the IP; Microsoft says it will reply within 48 hours.

In five S3150 threads from 2025 and 2026 collected for this piece, passing SPF, DKIM and DMARC did not prevent the block, and no record change lifted it. In a NethServer community write-up from August 21, 2026, the author was delisted after asking for a human review in a support ticket. Another poster, refused again, wrote “Here we go again with all this drama” on November 26 and asked about relaying instead.

Before you fill in the form, check that the IP’s PTR name (reverse DNS) resolves back to the same IP and that Postfix announces a matching name in HELO. Microsoft does not say this lifts S3150. The lab’s second address shows a mismatch (on a real server, drop @127.0.0.10):

$ postconf myhostname smtp_helo_name
myhostname = mail.example.net
smtp_helo_name = $myhostname
$ dig @127.0.0.10 -x 192.0.2.48 +noall +answer
48.2.0.192.in-addr.arpa. 60	IN	PTR	host-48.provider.example.org.

An A lookup for host-48.provider.example.org then returned NXDOMAIN (no such name), so the PTR does not point back. The PTR record belongs to whoever holds the IP range, so ask your provider how it is set. If myhostname is missing from /etc/postfix/main.cf, Postfix falls back to the host’s own name.

Question 3: “Message lacks SPF/DKIM/DMARC Auth Records” (AS9031519)

Publish a DMARC record if your domain has none. This bounce came from a short Microsoft incident in November 2026, and judging by the fixes people reported, it mostly hit domains without one.

The asker was on the receiving end. A Microsoft Q&A question of November 6, 2026 reported that “About 50% of my clients that have emailed me since yesterday” got a bounce reading 550 5.7.1 Message rejected: Message lacks SPF/DKIM/DMARC Auth Records (AS9031519). Several commenters fixed it for their own domains by adding a DMARC record with p=none.

Computerworld reported on November 9 (updated November 10) that refusals began on November 5 under incident EX1545193, and that Microsoft called the issue resolved on November 10. The Register wrote that Microsoft’s incident report blamed an update to the spam enforcement rules for mail being “incorrectly marked and blocked”, and that the rejections were intermittent.

Some bounces cited SPF instead (Computerworld lists 5.7.23). Publish the record wherever your domain’s DNS is hosted; Hostry’s free DNS hosting works for domains registered at any registrar:

_dmarc.example.net.  3600  IN  TXT  "v=DMARC1; p=none; rua=mailto:dmarc-rua@example.net"

dig +short TXT _dmarc.example.net

A comment in the thread claimed p=none tells receivers to ignore SPF and DKIM. A volunteer moderator replied that both are still checked. Move to p=quarantine once the aggregate reports at the rua address show your own mail aligning.

Question 4: SPF passes, DKIM fails, only at Outlook

Start by checking whether the message was signed at all. When DKIM fails only for mail from one sending path, such as a desktop client or a web app, the signature was usually never added. Otherwise it broke after signing, or the key in DNS does not match.

An August 6, 2026 thread on Microsoft Community Hub fits the first case. Outlook desktop sending through an ISP’s SMTP server got 5.7.515 with SPF pass, DKIM fail and DMARC pass, while webmail worked. “It only fails when using Outlook to send,” the asker wrote. The accepted answer said DKIM signing must be enabled on the SMTP service Outlook uses, and that changing ports will not help. For your own Postfix, the lab reproduced the causes below.

Is the message signed at all?

OpenDKIM runs as a milter, a filter Postfix hands each message to. Without non_smtpd_milters, Postfix calls it only for mail arriving over SMTP. Mail from the sendmail command (PHP’s mail(), cron, most web apps) leaves unsigned, and Postfix logs no warning:

$ postconf smtpd_milters non_smtpd_milters milter_default_action
smtpd_milters = inet:127.0.0.1:8891
non_smtpd_milters =
milter_default_action = accept
$ sendmail -f bounce@example.net customer@example.org < raw/msg-plain.txt
sink/011.eml: no DKIM-Signature header
$ postconf -e 'non_smtpd_milters = $smtpd_milters'; postfix reload
$ sendmail -f bounce@example.net customer@example.org < raw/msg-plain.txt
opendkim[24484]: 5C8EFD00A0: DKIM-Signature field added (s=dec2026, d=example.net)

The second silent case is a dead OpenDKIM. With milter_default_action = accept, Postfix delivered the message unsigned, and the only traces were warning lines like these:

postfix/smtpd[24024]: warning: milter inet:127.0.0.1:8891: can't read SMFIC_OPTNEG reply packet header: Connection reset by peer
postfix/smtpd[24024]: warning: connect to Milter service inet:127.0.0.1:8891: Connection refused
postfix/smtp[24028]: D13CAD0097: to=<customer@example.org>, relay=127.0.0.1[127.0.0.1]:2525, ... status=sent (250 OK saved)

Search with sudo grep -i milter /var/log/mail.log, which catches all of them. The lab set accept to show this silent case; Postfix’s built-in default is tempfail. In a separate re-test with tempfail and OpenDKIM stopped, mail from the sendmail command waited in the queue and left signed once OpenDKIM was back. SMTP clients got 451 4.7.1 Service unavailable - try again later instead, so an app that submits over SMTP must retry. We would take that over unsigned mail reaching Outlook.com.

Was the message changed after signing?

A DKIM signature covers a hash of the body and of chosen headers. Canonicalization sets how strictly they are compared: simple tolerates almost no change, relaxed ignores trailing whitespace and treats runs of spaces as one (RFC 6376, section 3.4). Ubuntu 24.04’s packaged /etc/opendkim.conf ships with:

Canonicalization	relaxed/simple

The second half is the body, hashed simple. Removing one trailing space broke the signature; the same edit passed under relaxed/relaxed. A footer broke every mode, and extra empty lines at the end broke none (dkimpy output, trimmed):

=== signed with c=relaxed/simple (Ubuntu default conf) (sink/002.eml)
  footer appended to body                          dkim=FAIL  ValidationError: body hash mismatch [...]
  trailing space removed ("-- " -> "--")           dkim=FAIL  ValidationError: body hash mismatch [...]
  two extra empty lines at end                     dkim=pass
=== signed with c=relaxed/relaxed (sink/008.eml)
  footer appended to body                          dkim=FAIL  ValidationError: body hash mismatch [...]
  trailing space removed ("-- " -> "--")           dkim=pass
  two extra empty lines at end                     dkim=pass

Set Canonicalization relaxed/relaxed and restart OpenDKIM (sudo systemctl restart opendkim). It absorbs whitespace edits; a footer still breaks it.

The other cause of a dkim body hash mismatch in Postfix is order. The milter signs during cleanup, and anything that rewrites the message later breaks the signature. The lab rule in /etc/postfix/header_checks was /^Subject: (.*)$/ REPLACE Subject: [EXT] ${1}. It passed in header_checks (before signing) and failed in smtp_header_checks (after):

# header_checks = regexp:/etc/postfix/header_checks   (same cleanup pass as the milter)
sink/013.eml sig#0 d=example.net s=dec2026 c=relaxed/simple: dkim=pass

# smtp_header_checks = regexp:/etc/postfix/header_checks   (smtp client, after signing)
sink/014.eml sig#0 d=example.net s=dec2026 c=relaxed/simple: dkim=fail
   dkimpy log: DEBUG b'DKIM-Signature' valid: False

Post-queue content filters (scanners or disclaimer tools that take mail from Postfix and hand it back on a second port) behave the same way. With signing on port 25 and a footer added by the filter, dkimpy reported body hash mismatch. Signing on the re-injection port fixed it. Here is the lab’s master.cf; the omitted line, marked […], defines the labfilter transport that hands mail to the filter on port 10025. That line depends on the filter you run, so take it from the filter’s own documentation:

[...]
smtp       inet  n       -       y       -       -       smtpd -o content_filter=labfilter:[127.0.0.1]:10025 -o smtpd_milters=
127.0.0.1:10026 inet n   -       n       -       -       smtpd -o content_filter= -o receive_override_options=no_unknown_recipient_checks,no_header_body_checks -o smtpd_authorized_xforward_hosts=127.0.0.0/8 -o mynetworks=127.0.0.0/8 -o smtpd_milters=inet:127.0.0.1:8891

Keep no_header_body_checks on the re-injection port. Without it the lab’s header_checks ran twice and the Subject became [EXT] [EXT] Invoice 4471 is ready. In the lab layout that signed on port 25, that second rewrite broke the signature.

An 8-bit body sent to a relay without 8BITMIME (support for raw 8-bit text) is a less obvious case. Postfix converted it to quoted-printable after signing, and the body hash broke; sent to a next hop offering 8BITMIME, it verified.

With always_bcc, both the main copy and the BCC copy still verified in the lab run.

Does the key in DNS match the one you sign with?

Run dkimverify < message.eml on your saved copy. On Ubuntu 24.04 it comes in the python3-dkim package, version 1.1.6; the lab used dkimpy 1.1.8 from PyPI, and the re-test got the same messages from 1.1.6. For a mismatched key (022), a missing selector (025) and a footer added after signing (015), dkimverify printed this. For the changed body it crashed, and the last traceback line names the cause:

$ dkimverify < sink/022.eml
signature verification failed
exit=1
$ dkimverify < sink/025.eml
signature verification failed
exit=1
$ dkimverify < sink/015.eml
Traceback (most recent call last):
[...]
dkim.ValidationError: body hash mismatch (got b'r1TfqxaaBlJN4ZDYzxNpdHHQc01t8iHHdJ6GY0OBWP4=', expected b'rRxAhpD6k3OVx+L51p3NMq1vLp5bvdGpMfcNPzzJP/I=')
exit=1

The CLI does not tell a wrong key from a missing selector; dkimpy’s logger does. This one-liner was not part of the lab run. It prints the key errors after ERROR:root: and valid: False after DEBUG:root:; a changed body still ends in the traceback above:

python3 -c "import dkim,logging,sys; logging.basicConfig(level=logging.DEBUG); print(dkim.DKIM(sys.stdin.buffer.read(), logger=logging.getLogger()).verify())" < message.eml
  • missing public key: no TXT record under that selector, for example a typo in s= or a key published under another selector.
  • Incorrect padding or could not parse RSA public key: the p= value is truncated or empty. A 2048-bit key cut at 255 characters, the limit of one TXT string, gave the first.
  • valid: False with no key error: the private key does not match the published one, or a signed header changed in transit.
  • body hash mismatch: the body changed after signing (see above).
sink/023.eml sig#0 d=example.net s=trunc c=relaxed/simple: dkim=fail
   dkimpy log: ERROR KeyFormatError: Incorrect padding
sink/025.eml sig#0 d=example.net s=dec2025 c=relaxed/simple: dkim=fail
   dkimpy log: ERROR missing public key: b'dec2025._domainkey.example.net.'

OpenDKIM’s own check was run as opendkim-testkey -x /etc/opendkim.conf -d example.net -s dec2026 -k /etc/opendkim/keys/dec2026.private -vvv, with the selector changed per test. It printed “keys do not match” for a truncated key and for a key from another pair alike. In these lab cases it did not tell the two faults apart.

Question 5: Outlook and Hotmail junk after fixing SPF, DKIM and DMARC

Mail that lands in Junk was accepted and has usually passed authentication. The spam-filter headers on the delivered copy name the filter that decided.

The Microsoft Community Hub post of July 7, 2026 is a typical case: mail from a new domain landed in Junk at Outlook.com and Microsoft 365 recipients. Authentication passed; the spam confidence level (SCL) was 5. “This appears to be a domain reputation cold-start issue,” the asker wrote. A September 10 reply advised reading CAT, SFV and BCL; those values were never posted.

Microsoft’s page on anti-spam message headers documents Microsoft 365; we could not confirm which of these fields a consumer Outlook.com mailbox shows. Get the source of a delivered copy (a test mailbox, or a recipient forwarding it as an attachment) and find three headers:

grep -iE '^(Authentication-Results|X-Forefront-Antispam-Report|X-Microsoft-Antispam):' message.eml

Long headers can wrap onto indented continuation lines, and grep prints only the first one, so read each header in full in the file.

In Microsoft 365 the SCL value inside X-Forefront-Antispam-Report does not decide the verdict; the page says to read CAT and DIR instead. DIR is the direction of the message, and INB means inbound. CAT:SPM means spam, HSPM high-confidence spam, BULK bulk mail, and SPOOF spoofing. SFV:SPM means spam filtering marked the message, while SFV:NSPM means it did not. BCL, in X-Microsoft-Antispam, is the bulk complaint level: higher means more likely to draw complaints.

First check compauth in Authentication-Results, Microsoft’s composite authentication result, which uses the From domain as its basis. A compauth=fail sends you back to Question 1; compauth=pass with CAT:SPM points at reputation or content. The SCL page adds that 5 or higher generally means the message is considered bad.

For a new domain or IP, both replies in the thread advise steady volume without bursts of test mail, plus a request through Outlook.com sender support.

Does Outlook require DMARC for small senders?

On paper, no. Microsoft’s written rule covers high-volume senders, and it has not published a separate one for small senders. In November it behaved as if one existed for a few days.

The Outlook announcement of April 2, 2025 applies to domains sending more than 5,000 messages per day to outlook.com, hotmail.com and live.com addresses. SPF and DKIM must pass; DMARC must be at least p=none and align with one of them. Enforcement began May 5, 2025, with failures rejected as 550 5.7.515 rather than sent to Junk as first planned. Safe Senders entries do not override it. For senders under 5,000 a day, the FAQ says enforcement targets large senders first and all senders benefit.

What this means for you

Read the bounce code in your mail log before editing any record, because an IP block and a domain failure need different fixes. For 550 5.7.515, send one message to a mailbox you control and compare the From domain with header.d= and smtp.mailfrom=. If you run mail on your own KVM VPS, these are the checks to keep:

  1. The SPF record lists every IP that sends with your domain in MAIL FROM, within the 10-lookup limit.
  2. OpenDKIM signs with d= equal to the From domain, with Canonicalization relaxed/relaxed.
  3. non_smtpd_milters = $smtpd_milters is set, and milter_default_action = tempfail makes mail wait or be retried while OpenDKIM is down.
  4. Nothing rewrites the message after the last milter pass.
  5. A DMARC record exists, starting at p=none with a rua address.
  6. The PTR name and HELO name match and resolve to the sending IP.

Hostry Engineering

Hostry Engineering is the team behind Hostry, a hosting provider operating since 2006: KVM VPS in 18+ locations, dedicated servers in Europe and the US, cPanel hosting, domains and free DNS. Commands and configuration in these articles are checked against official documentation before publishing.

All articles by Hostry Engineering

Keep reading in VPS

All topics