I am currently using the java mail api to send mails. The program is run in Unix server. I just want to know if routing is possible. Like, currently I have a program that I am running in a unix server A to send mail through a host H. Is there a way in java, where in from server A instead of sending to the actual target through host H, I want to send to unix server B, which will receive this information and send it to target through host H.
Please guide me.
Thanks in advance.
JavaMail doesn't control this at all.
Internet email is a "store and forward" protocol. You send the message to a mail server.
It's the responsibility of that mail server to route the message to the ultimate mail server, or at
least get it closer. How the mail servers do that is not your concern, and not something you
You can see the results of this routing in the "Received" headers in a message.