pro100sanya wrote:Just finished installation. Currently i have postmaster@myserver.com, but for some reason root email address looks like root@mail.myserver.com. I am misunderstanding something. Why root has such address?
May be i should update /etc/hosts and provide host name not related to my domain in any case?
Like 127.0.0.1 mysuperhostname localhost ?
Let me describe the main idea of what i am doing: i want a private vps with all services i need.
Email, file hosting, docs, messaging etc. I live in russia and tired of sanctions, censorship etc...
So i've decided to move to my own server. And final goal is to have set of services, that will be accessible like this:
mail.myserver.com - for roundcube
ldap.myserver.com
cloud.myserver.com - for files
docs... etc.
I've started with email as supposed it is most complicated in installation.
If you could suggest me a scenario, how to correctly setup iredmail for my purposes, i will be really thankful!
I am going to use nginx and ldap.
I'm not using LDAP but that portion of the configuration is irrelevant to this. Alright, well then your best bet is to think up of a creative name for your server, like "cobra.myserver.com" this would also in the future allow you to spread services across multiple VPSes. I have 3 VPSes set up like this, "%name%.webdevguru.co.uk", then DNS manages what is on each server, most things are on one so most records point to "raven.webdevguru.co.uk", feel free to run DIG on my domain to see how all of my records are placed.
Once you decide on a name, and have had your server reset [best option], set your FQDN [or mysuperhostname] to "%name%.myserver.com" and your local hostname to "%name%".
-----
Just as a random thrown in tip, if you're wanting Data as well
pro100sanya wrote:cloud.myserver.com - for files
then I recommend ownCloud, it'll provide you with CalDAV, CardDAV and WebDAV [Cloud//Files] with a nice WebUI and apps for several devices, along with proper compatibility with the WebDAV protocol. Works very nicely and authenticates directly against SASL IMAP. [Replacing Ugly SOGo] I can help you configure this too.
-----
After you set your hostname and hosts, reboot to make the changes apply. Then begin the iRedMail Installation, use "myserver.com" as your primary domain and configure everything how you want. If this works for you then I will help you with the NGinx setup for Roundcube Mail, I'll give you my conf to use as a template but lets get this first part working first.
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Just to clear up, your DNS Records later would look like [@ being root domain === "myserver.com"]
@ => A :IP.AD.DR.00
cloud.@ => CNAME:@
mail.@ => CNAME:@
etc...
@ => TXT *2 for DKIM and SPF
@ => MX,Priority10:mail.@