Using a different domain for the URL
Hi all,
Is it possible to have a Mailman list which has a list address @example.COM but which is running on another domain for its URL (eg. http://www.example.NET/mailman/...)?
Therefore variables such as 'host_name' and 'web_page_url' would refer to the example.NET domain, and only the list email address itself would be using example.COM.
Is there some way to achieve this, preferably on a per-list basis rather than site-wide?
Jezz wrote:
Is it possible to have a Mailman list which has a list address @example.COM but which is running on another domain for its URL (eg. http://www.example.NET/mailman/...)?
Therefore variables such as 'host_name' and 'web_page_url' would refer to the example.NET domain, and only the list email address itself would be using example.COM.
Actually, the host_name is the email domain and the host in web_page_url is the web domain, so what you want is
host_name = 'example.COM'
and
web_page_url = 'http://www.example.NET/mailman/'
for this list.
Or do I misunderstand?
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
"Mark Sapiro" <mark@msapiro.net> wrote in message news:PC19520120215160538054698e013c8@MSAPIRO...
Jezz wrote:
Is it possible to have a Mailman list which has a list address @example.COM but which is running on another domain for its URL (eg. http://www.example.NET/mailman/...)?
Therefore variables such as 'host_name' and 'web_page_url' would refer to the example.NET domain, and only the list email address itself would be using example.COM.
Actually, the host_name is the email domain and the host in web_page_url is the web domain, so what you want is
host_name = 'example.COM'
and
web_page_url = 'http://www.example.NET/mailman/'
for this list.
Or do I misunderstand?
--
Hmm - yes, you're right - I was misled by the help text on the "msg_footer" page in the GUI, which says that host_name is "The fully qualified domain name that the list server runs on", rather than the email domain. However I believe host_name is actually meant to be the email's domain, as you've noted. Obviously by default they are normally one and the same thing though.
Anyway, what I want basically is for all web URLs to reference example.NET, but for the list's email addresses (post/owner/bounce addresses etc) to all use example.COM (a completely different domain). So the list's email addresses are independent of the web URL.
This should ideally also affect any other applicable variables such as listinfo_url, optionsurl and so on, as well as any hard-coded (absolute) links in the admin GUI.
I don't want to use example.COM for the web URL, because I want to use that elsewhere for another website and not have it used for the Mailman web interface. I know that sounds complicated, but I'm just wondering if this is possible (and not difficult) to accomplish.
Cheers, Jeremy
Jezz wrote:
Hmm - yes, you're right - I was misled by the help text on the "msg_footer" page in the GUI, which says that host_name is "The fully qualified domain name that the list server runs on", rather than the email domain. However I believe host_name is actually meant to be the email's domain, as you've noted. Obviously by default they are normally one and the same thing though.
Yes, that text is misleading, but help text for the list's host_name attribute on the General Options page is more clear.
Also, I wouldn't say the two hosts are "normally" the same. In the simplest case, host_name comes from DEFAULT_EMAIL_HOST and the web_page_url host comes from DEFAULT_URL_HOST and these are often different even if only in that DEFAULT_URL_HOST is prefixed with www.
Anyway, what I want basically is for all web URLs to reference example.NET, but for the list's email addresses (post/owner/bounce addresses etc) to all use example.COM (a completely different domain). So the list's email addresses are independent of the web URL.
That's why every list has a web host (the host part of web_page_url) and an email host (host_name).
This should ideally also affect any other applicable variables such as listinfo_url, optionsurl and so on, as well as any hard-coded (absolute) links in the admin GUI.
It does.
I don't want to use example.COM for the web URL, because I want to use that elsewhere for another website and not have it used for the Mailman web interface. I know that sounds complicated, but I'm just wondering if this is possible (and not difficult) to accomplish.
Yes.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
"Mark Sapiro" <mark@msapiro.net> wrote in message news:PC195201202152257060671e67fe865@MSAPIRO...
Jezz wrote:
Hmm - yes, you're right - I was misled by the help text on the "msg_footer" page in the GUI, which says that host_name is "The fully qualified domain name that the list server runs on", rather than the email domain. However I believe host_name is actually meant to be the email's domain, as you've noted. Obviously by default they are normally one and the same thing though.
Yes, that text is misleading, but help text for the list's host_name attribute on the General Options page is more clear.
Also, I wouldn't say the two hosts are "normally" the same. In the simplest case, host_name comes from DEFAULT_EMAIL_HOST and the web_page_url host comes from DEFAULT_URL_HOST and these are often different even if only in that DEFAULT_URL_HOST is prefixed with www.
Anyway, what I want basically is for all web URLs to reference example.NET, but for the list's email addresses (post/owner/bounce addresses etc) to all use example.COM (a completely different domain). So the list's email addresses are independent of the web URL.
That's why every list has a web host (the host part of web_page_url) and an email host (host_name).
This should ideally also affect any other applicable variables such as listinfo_url, optionsurl and so on, as well as any hard-coded (absolute) links in the admin GUI.
It does.
I don't want to use example.COM for the web URL, because I want to use that elsewhere for another website and not have it used for the Mailman web interface. I know that sounds complicated, but I'm just wondering if this is possible (and not difficult) to accomplish.
Yes.
--
Good to know it's possible! So how is this done? I'm deducing that I accomplish this by modifying DEFAULT_EMAIL_HOST and/or DEFAULT_URL_HOST? If so, where do I find those values exactly?
Is it possible to make these two variables editable via the GUI, or can they only be modified via some setting file on the server?
On 2/15/2012 11:03 PM, Jezz wrote:
Good to know it's possible! So how is this done? I'm deducing that I accomplish this by modifying DEFAULT_EMAIL_HOST and/or DEFAULT_URL_HOST? If so, where do I find those values exactly?
Is it possible to make these two variables editable via the GUI, or can they only be modified via some setting file on the server?
host_name is visible and settable in the GUI on the General Options page. web_page_url is not settable in the GUI, but it can be set in various ways if you have sufficient access to the server. Start with the FAQ at <http://wiki.list.org/x/mIA9>.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
Moved list to another server. What is the problem here?
# bin/withlist -l -r fix_url listname -v -u domainname.com Importing fix_url... Running fix_url.fix_url()... Loading list stoptortureflights (locked) Traceback (most recent call last): File "bin/withlist", line 302, in <module> main() File "bin/withlist", line 280, in main r = do_list(listname, args, func) File "bin/withlist", line 198, in do_list m = MailList.MailList(listname, lock=LOCK) File "/usr/lib/mailman/Mailman/MailList.py", line 128, in __init__ self.Lock() File "/usr/lib/mailman/Mailman/MailList.py", line 161, in Lock self.__lock.lock(timeout) File "/usr/lib/mailman/Mailman/LockFile.py", line 243, in lock self.__write() File "/usr/lib/mailman/Mailman/LockFile.py", line 422, in __write fp = open(self.__tmpfname, 'w') IOError: [Errno 2] No such file or directory: '/var/lock/mailman/listname.lock.server.domainname.com.22719.0' #
christian stalberg wrote:
Moved list to another server. What is the problem here?
# bin/withlist -l -r fix_url listname -v -u domainname.com Importing fix_url... Running fix_url.fix_url()... Loading list stoptortureflights (locked) Traceback (most recent call last): File "bin/withlist", line 302, in <module> main() File "bin/withlist", line 280, in main r = do_list(listname, args, func) File "bin/withlist", line 198, in do_list m = MailList.MailList(listname, lock=LOCK) File "/usr/lib/mailman/Mailman/MailList.py", line 128, in __init__ self.Lock() File "/usr/lib/mailman/Mailman/MailList.py", line 161, in Lock self.__lock.lock(timeout) File "/usr/lib/mailman/Mailman/LockFile.py", line 243, in lock self.__write() File "/usr/lib/mailman/Mailman/LockFile.py", line 422, in __write fp = open(self.__tmpfname, 'w') IOError: [Errno 2] No such file or directory: '/var/lock/mailman/listname.lock.server.domainname.com.22719.0' #
It appears that this Mailman expects it's locks directory is /var/lock/mailman/ and that directory doesn't exist.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
Ok I created the locks directory but now I am getting this error:
Feb 17 17:16:01 2012 post(19147): Traceback (most recent call last): post(19147): File "/usr/lib/mailman/scripts/post", line 69, in <module> post(19147): main() post(19147): File "/usr/lib/mailman/scripts/post", line 64, in main post(19147): tolist=1, _plaintext=1) post(19147): File "/usr/lib/mailman/Mailman/Queue/Switchboard.py", line 136, in enqueue post(19147): fp = open(tmpfile, 'w') post(19147): IOError : [Errno 13] Permission denied: '/var/spool/mailman/in/1329516961.022899+e4ad547ef709f92bc2c43e86b88543fd2b8 7d705.pck.tmp'
-----Original Message----- From: Mark Sapiro [mailto:mark@msapiro.net] Sent: Friday, February 17, 2012 4:47 PM To: christian stalberg; mailman-users@python.org Subject: Re: [Mailman-Users] errors
christian stalberg wrote:
Moved list to another server. What is the problem here?
# bin/withlist -l -r fix_url listname -v -u domainname.com Importing fix_url... Running fix_url.fix_url()... Loading list stoptortureflights (locked) Traceback (most recent call last): File "bin/withlist", line 302, in <module> main() File "bin/withlist", line 280, in main r = do_list(listname, args, func) File "bin/withlist", line 198, in do_list m = MailList.MailList(listname, lock=LOCK) File "/usr/lib/mailman/Mailman/MailList.py", line 128, in __init__ self.Lock() File "/usr/lib/mailman/Mailman/MailList.py", line 161, in Lock self.__lock.lock(timeout) File "/usr/lib/mailman/Mailman/LockFile.py", line 243, in lock self.__write() File "/usr/lib/mailman/Mailman/LockFile.py", line 422, in __write fp = open(self.__tmpfname, 'w') IOError: [Errno 2] No such file or directory: '/var/lock/mailman/listname.lock.server.domainname.com.22719.0' #
It appears that this Mailman expects it's locks directory is /var/lock/mailman/ and that directory doesn't exist.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
christian stalberg wrote:
Ok I created the locks directory but now I am getting this error:
Feb 17 17:16:01 2012 post(19147): Traceback (most recent call last): post(19147): File "/usr/lib/mailman/scripts/post", line 69, in <module> post(19147): main() post(19147): File "/usr/lib/mailman/scripts/post", line 64, in main post(19147): tolist=1, _plaintext=1) post(19147): File "/usr/lib/mailman/Mailman/Queue/Switchboard.py", line 136, in enqueue post(19147): fp = open(tmpfile, 'w') post(19147): IOError : [Errno 13] Permission denied: '/var/spool/mailman/in/1329516961.022899+e4ad547ef709f92bc2c43e86b88543fd2b8 7d705.pck.tmp'
Mailman doesn't have permission to write in the qfiles directories.
Try running Mailman's "bin/check_perms -f" as root.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
participants (3)
-
christian stalberg -
Jezz -
Mark Sapiro