Wrong domain used in moderation message

Bug #266328 reported by Brouhaha
2
Affects Status Importance Assigned to Milestone
GNU Mailman
Fix Released
Medium
Unassigned

Bug Description

Mailman 2.1.7 is running on host foo.example.com, with
a mailing list on virtual domain bar.example.com. If a
posting will be moderated, an email is sent to the
poster offering a chance to cancel the message.
However, the cancel URL is on foo.example.com, rather
than bar.example.com.

The cancel URL works, but it exposes the real hostname,
whereas it should only show the virtual domain.

[http://sourceforge.net/tracker/index.php?func=detail&aid=1461054&group_id=103&atid=100103]

Revision history for this message
Mark Sapiro (msapiro) wrote :

The most likely cause of this is that the list attribute
web_page_url has the foo.example.com host name instead of
bar.example.com.

This in turn is caused by creating the list with the wrong
or the default host.

If this is the case, links in the web interface will likely
also be to foo.example.com, and the list won't appear on the
bar.example.com admin and listinfo overview pages. You can
fix this (assuming your VIRTUAL_HOSTS dictionary is correct
- add_virtualhost() directives in mm_cfg.py - by running
bin/fix_url.py on the list (just run bin/fix_url.py for
instructions).

Revision history for this message
Sf-robot (sf-robot) wrote :

This Tracker item was closed automatically by the system. It was
previously set to a Pending status, and the original submitter
did not respond within 14 days (the time period specified by
the administrator of this Tracker).

Revision history for this message
Brouhaha (brouhaha) wrote :

That is NOT the problem, as can be seen in the attached
example of a moderation message. The message header shows
that it came from lists.brouhaha.com, which is the correct
virtual domain for the list, as configured, but the
moderation link in the message has the hostname
donnybrook.brouhaha.com, which is the primary hostname of
the machine.

I confirmed the list configuration using config_list:

% ~mailman/bin/config_list -o - test1 | grep ^host_name
host_name = 'lists.brouhaha.com'

The only occurrence of "donnybrook" in the output of
config_list is in a comment:
% ~mailman/bin/config_list -o - test1 | grep donnybrook
#
href="http://donnybrook.brouhaha.com/mailman/admin/test1/archive">Archival

(This comment generated by config_list is wrong, which is a
defect in config_list.)

Revision history for this message
Brouhaha (brouhaha) wrote :

Never mind, I found the problem. I misunderstood your
explanation. I don't understand how this particular list
got this way, though, as it was created after the virtual
domain was set up and other lists on it were working fine
with the correct hostname. Oh well.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.