Koozali.org: home of the SME Server

Route mail externally for specific domain

Jacob Vennervald

Route mail externally for specific domain
« on: July 02, 2003, 01:59:57 PM »
Hi

I have a minor problem with one of my domains set up in the SME server. I only host the website for the domain, but the mail is still handled externally. I can't seem to find the place to set this up.
I know how to set it up by hand but if I do it like that it will just get overridden next time a make any changes through the server-manager.
Can anybody help me?

Cheers,
Jacob Vennervald

guestHH

Re: Route mail externally for specific domain
« Reply #1 on: July 02, 2003, 02:43:08 PM »
look in the server manager at e-mail setting.
-> delegate mail server
-> smtp server

Maybe the -> hostnames page will help too

Jacob Vennervald

Re: Route mail externally for specific domain
« Reply #2 on: July 02, 2003, 05:53:22 PM »
In the server manager i have a menu called "E-mail retrieval" and if I enter this I have something called "Delegate mail server". Is this what you're talking about?
If I enter an ip of an external smtp server in this field will all outgoing mail be handled by this smtp server?
I can't find anything called "smtp server"

Cheers,
Jacob Vennervald

Jacob Vennervald

Re: Route mail externally for specific domain
« Reply #3 on: July 02, 2003, 06:51:30 PM »
I tried the "Delegate mail server", but this forwards mail for all domains set up in the SME server which means that when I send a mail to someone with an account on the SME server the mail bounces back and  forth between the SME server and the external SMTP server because the SME server sends all mails to the external SMTP server and the SMTP server looks for MX record for the domain which tells it to send the mail back to the SME server.

I need a solution where I can redelegate mail for specific domains to an external SMTP server.

Any ideas?

Cheers,
Jacob Vennervald

Graeme Fleming

Re: Route mail externally for specific domain
« Reply #4 on: July 02, 2003, 09:26:57 PM »
dungog.net Virtual Domain extn - costs a coupla bucks but well worth it

Ed

Re: Route mail externally for specific domain
« Reply #5 on: July 03, 2003, 12:41:17 AM »
Hi,

This is generally done by asking who ever is managing the dns entry to set the MX record to the external server that is handling the email.

Ed

Jacob Vennervald

Re: Route mail externally for specific domain
« Reply #6 on: July 03, 2003, 12:19:16 PM »
I'm sorry but no it's not.
I have 5 domains. 4 of these are supposed to be hosted with both mail and www on the SME server but only one of these are supposed to be hosted with mail only.
Let's call the last domain extmail.com and the others intmail.com.
Now if I just set up all the domains as usual the SME server will setup local DNS saying that mail for all domains are handled by the SME server and it will setup the mailserver to handle mail for all domains.
This means that when I send mail to intmail.com from the internal network it will work fine, but when I send mail to extmail.com from the internal network it wont work, because the SME server will think that it is supposed to handle mail for that domain which again means that the mail wont get send to the correct mailserver on the outside.
Now this problem cannot be solved in the basic SME server by using the web interface, because it's not possible to do individual DNS settings or mail settings per domain. This is badly needed.

I've made it work now, but only by configuring SME by hand.
I've reconfigured the DNS server by setting the MX record to point to the correct mailserver and I've added the following line to the file /etc/e-smith/templates/var/qmail/control/virtualdomains/template-end :
"extmail.com:"
After this I issued the command
"/sbin/e-smith/expand-template /var/qmail/control/virtualdomains"
to generate the configuration and finally I restarted the DNS server and the Qmail server.

Thanks for helping out.

Cheers,
Jacob Vennervald