1

Topic: mail forwarding loop

hello

using iredmail pro

we are trying to forward emails between two email ids

sample forwarding settings
if any email comes to user@abc.com then the same is to forwarded to user@xyz.com and
if any email comes to user@xyz.com then the same is to forwarded to user@abc.com

this causes a back and forth loop.

is there some way to prevent this by having a single email delivery only.

thanks
rajesh

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2 (edited by Cthulhu 2024-07-02 02:27:36)

Re: mail forwarding loop

Untested sieve script for both mailboxes:

require "copy";

if address :is "X-Delivered-To" "user@abc.com" {
  redirect :copy "user@xyz.com";
  stop;
} elsif address :is "X-Delivered-To" "user@xyz.com" {
  redirect :copy "user@abc.com";
  stop;
}