The proper method is to add a custom header to the email and for incoming emails detect if that particular header is present (if so, then you have a loop condition).
Custom header names should start with 'X-' so as not to conflict with predefined names, e.g.
X-Loop: cormanaz@domain.tld
In reply to Re^2: Avoiding mail loops
by varian
in thread Avoiding mail loops
by cormanaz
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |