On Thu, 17 Mar 2005 Animesh Singh wrote :
Evening Vaibhav,
We have 2 domains hosted on 2 diff. servers in US.
<snip> Suppose you have 2 domains domain1.us.foo.org and domain2.us.foo.org
We have 2 offices (Mumbai, Nagpur).
If any mumbai users sends an email to any nagpur user, the sendmail bounces the email back saying that no such user exists.
<snip> Which server is bouncing it back ? As per your information, it sounds like you have local servers at both the locations.
I want to setup sendmail such that if it is not able to find the user on the local system it should fwd the email to the hosted server (US) so that the email will be delivered to the nagpur user's mailbox which can then be fetched by the Nagpur server's fetchmail.
<snip> Problem is this ( you have given the same name to your local server as remote server and its getting locally resolved. ) for this kind of solution you to implement complex user routing and handle the mail routes.
PS: I would request that you give all the information with domain names, which you have configured on all servers. Will be easy for us to resolve the thnigs.
Regards, Animesh.
------------------------------------------------------ domain1 = aaa.com domain2 = bbb.com
local Sendmail server in Mumbai....local users = user1.mumbai@aaa.com local Sendmail server in Nagpur....local users = user1.nagpur@aaa.com
If user1.mumbai@aaa.com sends an email to anyone@aaa.com, the sendmail should check if the user exists locally. If not found, the email should be forwarded to the hosted website where all users are configured. Similarly for both domain. I think SMART HOST should do what I want, but not sure how to define smarthost for 2 domains on a single local mail server...
Hope I am able to put the picture correct.
Thank you. Vai
On 18/03/05 07:45 -0000, vaibhav samant wrote: <snip>
local Sendmail server in Mumbai....local users = user1.mumbai@aaa.com local Sendmail server in Nagpur....local users = user1.nagpur@aaa.com
Use virtusertable to rewrite this to subdomains, and route those subdomains correctly.
Is there a reason you have not seen the FAQs?
Devdas Bhagat
I think SMART HOST should do what I want, but not sure how to define smarthost for 2 domains on a single local mail server...
Smart hosts are for mail not delivered locally. Mail routing happens as per the destination domain.
Devdas Bhagat