Create a Stalwart no-reply Email Address

To create a no-reply@[...] email address in Stalwart, it is useful to use a dedicated Sieve filter, as described in this GitHub issue.

To do this, create a new script called no-reply-script in the administration interface (under ScriptingSystem Scripts) with the following content:

require ["envelope", "reject"];

if envelope :localpart :is "to" "no-reply" {
    reject "550 This is a no-reply address";
    stop;
}

Then enable the script (under SMTPInboundRCPT Stage) by entering 'no-reply-script' in the Run Script field.

Now all emails sent to any address starting with no-reply@ will automatically be rejected with the error message This is a no-reply address and status code 550.

Comments