Change the underlying URL for mailman

The situation: we have our main website externally hosted (not on virtual min). As an example I will call this sheeprun.com. So sheeprun.com is externally hosted. We want to set up a mail server, roundcube and mailman for emails for this domain. We have managed to do this see https://www.virtualmin.com/node/40488.

Everything is working except for the mailman URL.

So we have a VM we create on vultr called emailbox.sheeprun.com. On emailbox.sheeprun.com we create a virtual server webmail.sheeprun.com which serves: email for sheeprun.com, it servers webmail via roundcube, and it servers mailman lists for sheeprun.com

The problem is our dns for sheeprun.com points to an external site. So mailman URL’s are getting resolved to eg http://sheeprun.com/pipermail/devops/ which don’t work since the external site knows nothing about mailman. So we want them resolved to http://emailbox.sheeprun.com/pipermail/devops/

What is the easiest way to change the URL that mailman uses. (I looked in /etc/mailman/mm_cfg.py but I wasn’t sure what to change here)

Thanks in advance!

Anybody?

Hey, have you snooped around in the /etc/apache2/sites-available directory?

If you grep for piper, you should find the default site file contains:

Alias /pipermail /var/lib/mailman/archives/public

(I current have it commented out like this)

#Alias /pipermail /var/lib/mailman/archives/public

This isn’t exactly what you were asking for, I know.