smarsh_df
Posts: 1
Score: 0
Joined: 10/30/2008
Status: offline
|
We need to try and figure out how to route outbound mail by sender domain (locally hosted on Icewarp server) through a relay server. We do something similar for custom recipient router in the SMTP Service Routing tab by configuring the redirect.dat file. However it is explained that this function works with the RCPT TO command during SMTP and not the Sender portion of that command. Does anyone know how to accomplish custom routing controlled by the sending company or domain or user? ******Instructions contained within redirect.dat file but it appears that this works on recipient only not sender******** It is also possible to use variables %%alias%%, %%domain%% or %%current_recipient%%. The redirection in following cases is applied on any message no matter whether the recipient is local or not and no matter whether it is outgoing or incoming message. It simply works on any RCPT TO command during SMTP. This system might be used to relay messages to a special server for instance: domain=%%alias%%@domain;;relayserver domain=%%current_recipient%%;;relayserver Example: aol.com=%%alias%%@aol.com;;relay.isp.com This causes that all messages for somebody@aol.com will be sent directly to relay.isp.com server instead of using standard DNS lookup for aol.com company.com=%%alias%%@company.com;1;user:pwd@relay.isp.com This causes that all messages for existing local user in company.com domain will be sent through relay.isp.com mail server with SMTP authentification (user:pwd) will be sent routed through relay.isp.com server company.com=%%alias%%@company.com;;username%domain.com:passwd@relay.isp.com This causes that all messages for somebody@company.com will be sent directly through relay.isp.com server instead of using standard DNS lookup for company.com with SMTP authentication against full email address (username%domain:password@relayserver). localdomain.com=%%current_recipient%%;;customer-server.com This causes that all messages for any_alias@localdomain.com will be redirected to customer-server.com, the recipient will be the primary alias of the original recipient's account
|