Change Apache https://hostname/mailscanner

Questions and answers about how to do stuff
Post Reply
Posts: 75
Joined: 16 Oct 2018 05:55
Location: Portugal

Change Apache https://hostname/mailscanner

Post by Alleyviper » 18 Oct 2019 16:38

Hi there,

Trying to change the https://hostname/mailscanner to something else like https://hostname/appliance

Is this possible without breaking EFA / Mailscanner?

User avatar
Posts: 1293
Joined: 18 Mar 2015 09:16

Re: Change Apache https://hostname/mailscanner

Post by pdwalker » 21 Oct 2019 03:44

I've not tried this, so these instructions may break your system - be careful.

1/ you could rename the /var/www/html/mailscanner directory to appliance
- this would likely break updates as EFA expects to find a "mailscanner" directory
- you'll need to edt your conf.php to set the right directory path (mailscanner flaw? - why doesn't it figure this out from the directory the files are in?)

2/ you could symlink the /var/www/html/mailscanner directory to /var/www/html/appliance
- my preference as it less likely to leave a broken system
- easy to test
- updates should still work
- you may have to find various places where the /mailscanner directory is hardcoded, like conf.php
- you may have to change your apache configuration for the efa vhost to make sure that it will follow the symlink

If you document all your changes and your system isn't in production, it should be easy enough to test until you have it working.

Post Reply