Global
The default is false. Normally a recipient for whom relaying is not allowed is rejected with a final 5XX refusal — and the message bounces at the sender immediately.
With true a temporary 4XX refusal is returned instead. The sending server does not bounce the message but keeps trying.
The manual names the purpose directly: the line helps out while acceptance rules are being edited. While you change the configuration, you get the chance to look at the log, find refusals that should not be there and fix the rules before messages bounce.
The other half: a temporary refusal hides the error from you. A bounced message is noticed right away — through a complaint, a report. A message the sender silently retries for the seventh day is not noticed in any way except the log nobody looks at.
The Hub sets acceptance rules by construction, with three patterns in the base configuration, and edits them not by hand but by regeneration. Debug mode would have helped in exactly the case we once had: role addresses were bounced with 550, and we did not find out right away that DMARC reports were being lost.
What to set. The line is temporary by purpose:
| Value | When |
|---|---|
| false (default) | the acceptance rules have settled — the permanent state |
| true | for the duration of a rule edit, with a switch-off date set in advance |
The second makes sense to enable together with watching the log: without that, the mode only postpones the problem while showing nothing.
# for the duration of the rule edit — together with watching the log relay-debug truerelay-address /^(dmarc|postmaster|abuse)@/
what people get wrong and how it ends2 mistakes▶
our experience
§ 3.3.1.54.4
1 relation
grep -n 'relay-debug' /etc/pmta/config grep -i 'relaying denied' /var/log/pmta/pmta.log | tail -20
3 articles
◇Accept, route, deliverA message’s path inside the node: accept, decide where, deliver — and all the settings live between these three steps.◇How a message gets into the engineSix described submission methods: extended SMTP, four language bindings and a directory the node watches on disk.◇Who is allowed to submit mail and for whom to accept itOut of the box, the node accepts submission only from the machine itself; two different questions — “who can send through us” and “for whose addresses we accept mail” — are answered by different directives.