Author Topic: move mysite.com/mail to mail.mysite.com  (Read 1979 times)

Offline auricular

  • Newbie
  • *
  • Posts: 2
move mysite.com/mail to mail.mysite.com
« on: January 21, 2017, 02:25:38 PM »
Hi,

I've installed roundcube via iredmail onto my ubuntu aws instance.

I need some help moving the webmail access from the standard "example.com/mail" to a subdomain "mail.example.com". this would include the imap and smtp server being located at "mail.example.com"

I believe that this requires setting up a virtual host on the apache2 server, but i have no idea how to do this.

Some instructions would be really helpfull!

Thanks,

Offline JohnDoh

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2,637
Re: move mysite.com/mail to mail.mysite.com
« Reply #1 on: January 22, 2017, 02:32:41 AM »
first of all you'll need to setup DNS for mail.example.com to point to the correct place. then there are lots of examples of how to setup virtual hosts in the apache documentation, see https://httpd.apache.org/docs/2.4/vhosts/examples.html for example.

about your imap and smtp servers is a different thing, imap is probably quite straight forward but for smtp i'd suggest you ask in your smtp server's community as there are other considerations like reverse dns and things there.
Roundcube Plugins: Contextmenu, SpamAssassin Prefs, and moreā€¦

Offline rm13

  • Full Member
  • ***
  • Posts: 129
Re: move mysite.com/mail to mail.mysite.com
« Reply #2 on: January 23, 2017, 12:04:42 AM »
If you installed iredmail, you should probably check their support forum and documentation on making changes. It installs as an "appliance" so you may want to keep consistent with it if you want to install updates.