Now I'm not an idiot but not a Linux or Cpanel expert.
So the problem:
GoDaddy VPS has several sites
domain1.com
domain2.com
Now the server is able to send emails to unrelated domains and it works fine. The problem is trying to get the server to send emails to domain2.com whose email is hosted on my in-house mail server.
Instead of looking at my MX records it seems to be trying to route it internally on the server and send to itself.
I thought I would add a Smarthost for domain2.com pointing to my server based on Setting up a smarthost for specific domains thedisgruntledadmin.com/cpanel-setting-up-smarthost-for-specific-domains/
I got past "Step 1", but when I got to step 2 This is what I already have in the ROUTERSTART section:
send_to_smart_host:
driver = manualroute
route_list = !+local_domains dedrelay.secureserver.net
transport = remote_smtp
Maybe that was created by the previous commands or it was already there, I don't know?
Anyway I didn't want to delete what was there and delete dedrelay.secureserver.net but when I added "route_data = ${lookup{$domain}partial-lsearch{/etc/staticroutes}}" to the bottom it says you can't use route_data and route_list together so I'm not sure how to proceed past step 2
Basically the end game is I want to specify a smarthost for domain2.com and let everything else continue to relay through dedrelay.secureserver.net
Everything I found on the forum seemed to be centered around specifying a global smart host for everything.
I'm also wondering if simply deleting !+local_domains might solve my problems by preventing the internal relaying?
Any help is enormously appreciated.
Thanks,
Kenny
So the problem:
GoDaddy VPS has several sites
domain1.com
domain2.com
Now the server is able to send emails to unrelated domains and it works fine. The problem is trying to get the server to send emails to domain2.com whose email is hosted on my in-house mail server.
Instead of looking at my MX records it seems to be trying to route it internally on the server and send to itself.
I thought I would add a Smarthost for domain2.com pointing to my server based on Setting up a smarthost for specific domains thedisgruntledadmin.com/cpanel-setting-up-smarthost-for-specific-domains/
I got past "Step 1", but when I got to step 2 This is what I already have in the ROUTERSTART section:
send_to_smart_host:
driver = manualroute
route_list = !+local_domains dedrelay.secureserver.net
transport = remote_smtp
Maybe that was created by the previous commands or it was already there, I don't know?
Anyway I didn't want to delete what was there and delete dedrelay.secureserver.net but when I added "route_data = ${lookup{$domain}partial-lsearch{/etc/staticroutes}}" to the bottom it says you can't use route_data and route_list together so I'm not sure how to proceed past step 2
Basically the end game is I want to specify a smarthost for domain2.com and let everything else continue to relay through dedrelay.secureserver.net
Everything I found on the forum seemed to be centered around specifying a global smart host for everything.
I'm also wondering if simply deleting !+local_domains might solve my problems by preventing the internal relaying?
Any help is enormously appreciated.
Thanks,
Kenny
Last edited by a moderator: