Koozali.org: home of the SME Server

redirecting mail to an internal mail server.

Offline axessit

  • *****
  • 213
  • +0/-0
redirecting mail to an internal mail server.
« on: November 05, 2010, 04:41:20 AM »
I am trying to get my server temporarily redirecting MX records for a client's domain as my SME points to an internet address for "xyzcompany". At the moment I have xyzcompany's mail server connected on my LAN. I don't want my server thinking the mail server is on some random public IPaddress (as correctly configured by an ISP), because at the moment it temporarily sits behind MY mail server and firewall. I don't want MY SME to have the domain, because if I do, it won't send email to the xyzcompany mail server, it will try and think it resides on MY server and deliver the mail there.

I am happy the xyzcompany will receive mail, but I need to generate some mail from another domain other than xyzcompany so I can set up some mail rules and test them. And I don't want my SME thinking it is the mail server for xyzcompany. So, how do I change MY SME to recognise mail for xyzcompany goes to a local mail server?

So far I have tried

1) creating the domain in MY SME [192.168.2.5] and redirecting the "mail.xyzcompany" to the local IP [192.168.2.10] in the hostname and addresses as suggested by a search of this forum.
2) trying to create an MX template fragment as described in http://forums.contribs.org/index.php/topic,45713.0.html
3) hijacking someone else's thread that looks like it wants to do the same thing but for a different reason.

I am not trying to test the server can receive email for the sake of receiving email, I am trying to set up some specific rules for specfic users - namely that some users can't send/receive email from the internet and some can. I have used the
Code: [Select]
db accounts setprop groupname/username Visible internalto disable receiving mail from the internet.




Offline janet

  • *****
  • 4,812
  • +0/-0
Re: redirecting mail to an internal mail server.
« Reply #1 on: November 05, 2010, 05:26:37 AM »
axessit

Quote
I don't want MY SME to have the domain, because if I do, it won't send email to the xyzcompany mail server, it will try and think it resides on MY server and deliver the mail there.

Not correct. You can setup Mail delegation to another server for one or more domains.

Quote
So, how do I change MY SME to recognise mail for xyzcompany goes to a local mail server?

Also the same answer, setup Mail Delegation for the domain in question, See FAQ under Email. Link at top of Forum.
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline axessit

  • *****
  • 213
  • +0/-0
Re: redirecting mail to an internal mail server.
« Reply #2 on: November 06, 2010, 12:54:48 AM »
Brilliant - that did it. Thanks Mary.