MailNinja logoMailNinjaalpha

Features

Reply rules

A reply rule looks at the code and the text the server returned, or at a bounce that arrived later in the mailbox. Top to bottom, the first match wins. The same rule works both for the live SMTP and for a report that was read after the send.

There is no separate rules page in the menu. They live in the server card, the Rules tab.

How to create a rule

The short path from zero to result:

Quick start

1
Open RulesIn the server card - the general ones and this server's rules.
2
Create a blockCodes and phrases comma-separated - one per line or as a list.
3
Pick the actionRetry, mark invalid, stop the server or the campaign.
4
SaveThe rule works both for the live answer and for a bounce from the mailbox.

What the feature does

A match is one code or phrase per line, or several comma-separated. 5.1.1 is not equal to 5.1.10: a longer code does not stick to the shorter one.

The action is one from the list. Bad address marks the address undeliverable. Retry tries again, no more than the number of attempts on that block. Stop records that the email did not go out and can additionally stop the server or the whole campaign. Leave unchanged matches the text but does not mark the address bad. That is a convenient way to catch a policy refusal without throwing the person out of the list forever.

Order matters more than the force of the wording. A general rule and a rule of only this server are looked at together, but a recipient-domain rule goes before the general block of answers. A domain in a rule is one per line, like gmail.com. As long as the line does not look like a domain, the rule does nothing. "All" covers every recipient domain.

A switched-off rule is saved and is not looked at during a send. The switch on the tab binds the general rule to this server without deleting it for the others. Deleting erases the general rule for everyone who was bound to it.

The ceilings inside a rule - the pause and the per-minute, hourly and daily limits - can only narrow the server. A softer number is ignored.

Typical codes worth separating into different blocks:

CodeWhat it means in practice
535They did not admit you. The recipient has nothing to do with it; the address is not written off
421, 450, 451They ask you to come back later. This is a retry, not the death of the address
550 about the mailboxThe address does not exist. It makes sense to mark it invalid
554Also a permanent refusal, often a policy; the program has no separate branch for it
552A permanent refusal of this email, while the mailbox is not dead forever
5xx in generalNo need to retry in bulk

A 550 with text about a missing mailbox both marks the address and stops the campaign, unless the rule says otherwise. The same number with text about a policy is a reason for the "leave unchanged" action or a server stop, not for burning the list down.

On the campaign's Reaction step, rebuilding after a temporary refusal is a neighboring switch. It does not replace a rule. The rule decides the fate of the address and the queue. The rebuild decides whether to assemble the next email anew.

Where to set it up

  1. Open Servers, the card, the Rules tab.
  2. Add a match block: a code or a phrase, then the action.
  3. Put more specific codes above general ones. A 550 with a phrase about the mailbox should be met before a bare 5xx, if their fates differ.
  4. Add a domain rule if one mailbox provider requires a different reaction. It is looked at before the general block.
  5. Enable the rule on this server. Save. A switched-off one does not participate, even if the text is already written.

How it helps

A refusal stops being one red line. 535 is fixed by the login, the list is untouched. A temporary 421 waits and retries within the attempt count. A dead mailbox drops out of the following campaigns because it is marked invalid. A policy does not disguise itself as "the address does not exist" if "leave unchanged" stands for it.

A late bounce in the mailbox passes the same blocks. No second rule "for IMAP" is needed.

What a rule consists of

  • Domains - for example gmail.com; the word all includes every recipient domain.
  • Codes and phrases - blocks one per line or comma-separated; the first suitable one is taken.
  • Action - mark the address invalid, retry 1 to 10 times, stop the server, stop the campaign, leave unchanged.
  • One block for everything - both for the live SMTP answer and for a bounce email from the mailbox.

The built-in Replies rule looks at all domains and leaves part of the replies untouched. A limits rule can only tighten: a softer number is ignored.

What the feature does not do

A rule does not guarantee delivery and does not publish DNS. It does not learn the folder. It does not raise a limit: a ceiling inside the card only narrows the server.

It does not read the thought in the refusal text better than the phrase you wrote. If the phrase is not there, a more general code higher in the list fires, or nothing fires beyond the ordinary sending behavior.

How to tell the order is right

In a trial refusal that you can trigger deliberately, exactly one action happens - and precisely from the topmost suitable block. The address with "no such mailbox" text is marked invalid. The address with a policy stayed in the list if "leave unchanged" stood. 535 did not mark the recipients. The campaign stopped only on the code where the stop is on.

Set up reply rules ↗

Frequently asked questions

Rules in short: which match wins and where it lives.

Where do the rules live?

In the server card, the Rules tab. There is no separate item in the left menu. A general rule is enabled on this server with a switch.

Which rule wins?

The first one from the top whose code or phrase matched. A recipient-domain rule is looked at before the general block of answers.

What actions are there?

Mark the address invalid, retry, stop the server, stop the campaign, leave unchanged. A retry is limited by the number of attempts on the block.

Does 5.1.1 catch 5.1.10?

No. A longer code does not count as the same match.

What to do with 550?

Text about a missing mailbox usually marks the address and stops the campaign, unless the rule says otherwise. The same number about a policy is better not marked as a dead mailbox: the leave-unchanged action exists for that.

Are 4xx and 5xx retried the same way?

No. 421, 450 and 451 are temporary and are retried. A permanent 5xx is not retried in bulk. 554 is also a permanent refusal. 552 is permanent for this email, but the mailbox is not necessarily dead forever.

Is 535 a bad recipient?

No. The server did not accept the login. The password and the port are fixed on the Connection tab; addresses in the list are not marked.