Koozali.org: home of the SME Server
Obsolete Releases => SME Server 7.x => Topic started by: Tillebeck on April 04, 2008, 02:43:04 PM
-
Hmmm... I just tried to post a question similar to this one but it seems to have gone missing. Forgive me if I am doing a douple post
---------------------------
Hi
I have one production server to test this on. Therefore I will ask here before doing anything stupid.
In the wiki for email (http://wiki.contribs.org/Email#Internal_Mail_Servers) it says how to change mail server for all domains or one domain only.
For the moment I create a domain for an ibay and then do for one domain at the time:
db domains setprop test.com MailServer a.b.c.d
signal-event email-update
I would like to do this once and for all for the entire server. But the server is actually also a mail server for two of the domains.
It is something like:
48 domain are web only and need to have the "MailServer" set manually
2 domains have both web and mail on this server and still need to use this server
What happens I if add an address of an internal mailserver as descibed in the wiki?
You can deliver all email for all domains on your SME server to a single internal mail server by setting the mail server address in server-manager::Configuration::E-mail::Change e-mail delivery settings::Address of internal mail server.
I am looking for a setup where all mails as default are send out through another smtp-server also for the domains created on the SME server. But mails coming in from WWW stayes on the SME server if the domain is created there (or somehow specified that it should)... I am affraid that if I activate the "Address of internal mailserver" then the production server will loose the handling of emails for all domains and not be able to retrieve mails for the two domains that are still using it.
Is that possible to do?
BR. Anders
-
you can add the internal mail server for the 48 domains, and leave the 2 alone.
I don't know what happens if you set a global internal mail server then set the 2 domains to use "localhost" (or your SME LAN IP) as the internal server - this might work, or it might create a loop of some sort and cause problems.
-
Hi mmccarn
Thanks for your reply. I guess that I am doing the "best preactice" already then. Setting the MailServer manually for each domain.
BR. Anders
-
I don't know about best practices... I only know that that's the only way I've tested / used it, so I know it works...
I don't know all of the side effects of redirecting 48 internal domains; the most I've done is about 10. At a minimum you'll get lots of extra stuff logged in /var/log/qpsmtpd/current which will reduce the overall life of your log files (that is, the oldest log file will cover more recent history than otherwise, if you see what I mean).
You could setup a virtual SME server using VMWare to test alternate configurations. I think it would be relatively simple (yet time consuming) to test - setup a virtual SME server, setup 5 or 6 domains, setup a global 'internal mail server', then set a specific 'internal mail server' pointing to either 127.0.0.1 or the virtual LAN IP for one domain, then simulate some SMTP traffic manually using telnet...
Or, you could ask the developers by opening a bug report asking for documentation update to clarify the issue... (something like New Feature Request: Documentation - 'is it possible to configure a global internal mail server in server-manager, then redirect select domains to localhost using db domains setprop test.com MailServer 127.0.0.1 to allow the SME server to process email for those domains?')
-
Hi mmccarn
Thanks for your help. I intended to try it out but never got around to that.
I will come back with the feature request.
BR. Anders