If you are just setting up a mail-bridge (means just a poller connected to a sender for mail forwarding) you will need to set the sender property ignoreTOProperty to trueprovide a sender property ignoreMessageProperties as List, containing a list of to ignore message properties. Inside you should at least define the org.apache.servicemix.mail.to value, otherwise the receiver will be the receiver of the original mail. That would just forward the original mail to the account you are polling from generating a nice mail loop. Be warned! The ignoreTOProperty This property is available in servicemix-mail-2008.02 and above only! If you are using an older version you need to write your own mail marshaler to fix this problem. |