Why does mailman see or use @dur for the FQDN when it should be dur.bounceme.net?
thufir@dur:~$ thufir@dur:~$ thufir@dur:~$ sudo newlist mailman Enter the email of the person running the list: hawat.thufir@gmail.com Initial mailman password: Create a new, unpopulated mailing list.
Usage: /usr/sbin/newlist [options] [listname [listadmin-addr [admin-password]]]
Options:
-l language
--language=language
Make the list's preferred language `language', which must be a two
letter language code.
-u urlhost
--urlhost=urlhost
Gives the list's web interface host name.
-e emailhost
--emailhost=emailhost
Gives the list's email domain name.
-q/--quiet
Normally the administrator is notified by email (after a
prompt) that their list has been created. This option suppresses the prompt and notification.
-h/--help
Print this help text and exit.
You can specify as many of the arguments as you want on the command line: you will be prompted for the missing ones.
Every Mailman list has two parameters which define the default host name for outgoing email, and the default URL for all web interfaces. When you configured Mailman, certain defaults were calculated, but if you are running multiple virtual Mailman sites, then the defaults may not be appropriate for the list you are creating.
You also specify the domain to create your new list in by typing the command like so:
newlist --urlhost=www.mydom.ain mylist
where `www.mydom.ain' should be the base hostname for the URL to this virtual hosts's lists. E.g. with this setting people will view the general list overviews at http://www.mydom.ain/mailman/listinfo. Also, www.mydom.ain should be a key in the VIRTUAL_HOSTS mapping in mm_cfg.py/Defaults.py if the email hostname to be automatically determined.
If you want the email hostname to be different from the one looked up by the VIRTUAL_HOSTS or if urlhost is not registered in VIRTUAL_HOSTS, you can specify `emailhost' like so:
newlist --urlhost=www.mydom.ain --emailhost=mydom.ain mylist
where `mydom.ain' is the mail domain name. If you don't specify emailhost but urlhost is not in the virtual host list, then mm_cfg.DEFAULT_EMAIL_HOST will be used for the email interface.
For backward compatibility, you can also specify the domain to create your new list in by spelling the listname like so:
mylist@www.mydom.ain
where www.mydom.ain is used for urlhost' but it will also be used for
emailhost' if it is not found in the virtual host table. Note that
'--urlhost' and '--emailhost' have precedence to this notation.
If you spell the list name as just `mylist', then the email hostname will be taken from DEFAULT_EMAIL_HOST and the url will be taken from DEFAULT_URL (as defined in your Defaults.py file or overridden by settings in mm_cfg.py).
Note that listnames are forced to lowercase.
The list admin address need to be a fully-qualified address, like owner@example.com, not just owner.
Illegal list name: mailman@dur thufir@dur:~$ thufir@dur:~$ cat /etc/hosts 127.0.0.1 localhost 127.0.1.1 dur.bounceme.net # The following lines are desirable for IPv6 capable hosts ::1 ip6-localhost ip6-loopback fe00::0 ip6-localnet ff00::0 ip6-mcastprefix ff02::1 ip6-allnodes ff02::2 ip6-allrouters thufir@dur:~$ thufir@dur:~$ cat /etc/hostname dur.bounceme.net thufir@dur:~$ thufir@dur:~$ hostname dur.bounceme.net thufir@dur:~$ thufir@dur:~$ cat /etc/lsb-release DISTRIB_ID=Ubuntu DISTRIB_RELEASE=12.04 DISTRIB_CODENAME=precise DISTRIB_DESCRIPTION="Ubuntu 12.04 LTS" thufir@dur:~$
The help page:
https://help.ubuntu.com/community/Mailman
doesn't provide any troubleshooting which I see. However, I'm not the only one to get this message:
http://mail.python.org/pipermail/mailman-users/2006-August/052587.html
However, I see no solution available.
thanks,
Thufir
Thufir wrote:
Why does mailman see or use @dur for the FQDN when it should be dur.bounceme.net?
thufir@dur:~$ thufir@dur:~$ thufir@dur:~$ sudo newlist mailman [...] Illegal list name: mailman@dur
What is the contents of mm_cfg.py?
In particular, what are the settings for DEFAULT_URL_HOST and DEFAULT_EMAIL_HOST and is there an
add_virtualhost(DEFAULT_URL_HOST, DEFAULT_EMAIL_HOST)
line following any settings for these?
-- Mark Sapiro mark@msapiro.net The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
On 08/27/2012 11:52 AM, Mark Sapiro wrote: [...]
What is the contents of mm_cfg.py?
In particular, what are the settings for DEFAULT_URL_HOST and DEFAULT_EMAIL_HOST and is there an
add_virtualhost(DEFAULT_URL_HOST, DEFAULT_EMAIL_HOST)
line following any settings for these?
Thanks, I think it's working now:
root@dur:/etc/mailman# root@dur:/etc/mailman# newaliases root@dur:/etc/mailman# root@dur:/etc/mailman# root@dur:/etc/mailman# cat /etc/aliases usenet: root root@dur:/etc/mailman# root@dur:/etc/mailman# root@dur:/etc/mailman# nano /etc/aliases root@dur:/etc/mailman# root@dur:/etc/mailman# cat /etc/aliases usenet: root
## mailman mailing list mailman: "|/var/lib/mailman/mail/mailman post mailman" mailman-admin: "|/var/lib/mailman/mail/mailman admin mailman" mailman-bounces: "|/var/lib/mailman/mail/mailman bounces mailman" mailman-confirm: "|/var/lib/mailman/mail/mailman confirm mailman" mailman-join: "|/var/lib/mailman/mail/mailman join mailman" mailman-leave: "|/var/lib/mailman/mail/mailman leave mailman" mailman-owner: "|/var/lib/mailman/mail/mailman owner mailman" mailman-request: "|/var/lib/mailman/mail/mailman request mailman" mailman-subscribe: "|/var/lib/mailman/mail/mailman subscribe mailman" mailman-unsubscribe: "|/var/lib/mailman/mail/mailman unsubscribe mailman"
root@dur:/etc/mailman# root@dur:/etc/mailman# diff mm_cfg.py mm_cfg.py.1 66c66 < DEFAULT_EMAIL_HOST = 'dur.bounceme.net'
DEFAULT_EMAIL_HOST = 'dur' 69c69 < DEFAULT_URL_HOST = 'dur.bounceme.net'
DEFAULT_URL_HOST = 'dur' root@dur:/etc/mailman#
I was just banging my head against this last night. Mailman is all setup now?
-Thufir
I think I got it:
root@dur:/etc/mailman# root@dur:/etc/mailman# newlist mailman Enter the email of the person running the list: hawat.thufir@gmail.com Initial mailman password: To finish creating your mailing list, you must edit your /etc/aliases (or equivalent) file by adding the following lines, and possibly running the `newaliases' program:
## mailman mailing list mailman: "|/var/lib/mailman/mail/mailman post mailman" mailman-admin: "|/var/lib/mailman/mail/mailman admin mailman" mailman-bounces: "|/var/lib/mailman/mail/mailman bounces mailman" mailman-confirm: "|/var/lib/mailman/mail/mailman confirm mailman" mailman-join: "|/var/lib/mailman/mail/mailman join mailman" mailman-leave: "|/var/lib/mailman/mail/mailman leave mailman" mailman-owner: "|/var/lib/mailman/mail/mailman owner mailman" mailman-request: "|/var/lib/mailman/mail/mailman request mailman" mailman-subscribe: "|/var/lib/mailman/mail/mailman subscribe mailman" mailman-unsubscribe: "|/var/lib/mailman/mail/mailman unsubscribe mailman"
Hit enter to notify mailman owner...
root@dur:/etc/mailman# root@dur:/etc/mailman# ll total 52 drwxr-xr-x 3 root list 4096 Aug 27 11:46 ./ drwxr-xr-x 170 root root 12288 Aug 27 11:17 ../ -rw-r--r-- 1 root root 2477 Oct 19 2011 apache.conf drwxr-xr-x 2 root root 4096 Aug 26 16:32 en/ -rw-r--r-- 1 root root 0 Aug 26 16:32 leftover -rw-r--r-- 1 root root 4370 Aug 27 11:48 mm_cfg.py -rw-r--r-- 1 root root 4344 Aug 27 11:46 mm_cfg.py.1 -rwxr-xr-x 1 root root 6240 Oct 19 2011 postfix-to-mailman.py* -rwxrwxr-x 1 root root 4090 Oct 19 2011 qmail-to-mailman.py* root@dur:/etc/mailman# root@dur:/etc/mailman# diff mm_cfg.py mm_cfg.py.1 66c66 < DEFAULT_EMAIL_HOST = 'dur.bounceme.net'
DEFAULT_EMAIL_HOST = 'dur' 69c69 < DEFAULT_URL_HOST = 'dur.bounceme.net'
DEFAULT_URL_HOST = 'dur' root@dur:/etc/mailman#
thanks,
Thufir
participants (2)
-
Mark Sapiro
-
Thufir