{"id":2427,"date":"2015-07-20T15:13:09","date_gmt":"2015-07-20T15:13:09","guid":{"rendered":"https:\/\/qbytes.cloud\/?p=2427"},"modified":"2015-07-20T15:13:09","modified_gmt":"2015-07-20T15:13:09","slug":"set-up-mailman-on-centos-6-6","status":"publish","type":"post","link":"https:\/\/www.qbytes.cloud\/index.php\/2015\/07\/20\/set-up-mailman-on-centos-6-6\/","title":{"rendered":"Set up mailman on CentOS 6.6"},"content":{"rendered":"<p>Here is how to install the mailman mailing list on CentOS 6.6.<br \/>\nInstall Mailman via yum:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n\n# yum install mailman\n\n<\/pre>\n<p>Next, edit its Apache configuration file:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n# cd \/etc\/httpd\/conf.d\n# vi mailman.conf\nRedirectMatch ^\/mailman&#x5B;\/]*$ http:\/\/domain.com\/mailman\/listinfo\n\n<\/pre>\n<p>Uncomment the redirect parameter and enter the correct domain name.<br \/>\nSet the site master password:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n# \/usr\/lib\/mailman\/bin\/mmsitepass password\n<\/pre>\n<p>This password can be used to access any list or any page. Edit the Mailman configuration file:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n\n# vi \/usr\/lib\/mailman\/Mailman\/mm_cfg.py\nDEFAULT_URL_HOST = \u2018domain.com\u2019\nDEFAULT_EMAIL_HOST = \u2018domain.com\u2019\n\n<\/pre>\n<p>The URL host parameter usually matches the domain name from the above Apache configuration file. The email host should match the origin of the mail (i.e. the part after the @ of the email address, whether it is host.domain.com or domain.com).<br \/>\nCheck for updates:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n\n# cd \/usr\/lib\/mailman\n# bin\/update\nUpgrading from version 0x0 to 0x2010cf0\ngetting rid of old source files\nno lists == nothing to do, exiting\n\n\n<\/pre>\n<p>If you get this error:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n# bin\/update\nTraceback (most recent call last):\n  File &quot;bin\/update&quot;, line 48, in &lt;module&gt;\n    from Mailman import mm_cfg\n  File &quot;\/usr\/lib\/mailman\/Mailman\/mm_cfg.py&quot;, line 86, in &lt;module&gt;\n    DEFAULT_URL_HOST   = coldriverdata.com\nNameError: name &#039;coldriverdata&#039; is not defined\n\n<\/pre>\n<p>Check that the format is correct with the domains <\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n# vi \/usr\/lib\/mailman\/Mailman\/mm_cfg.py\nDEFAULT_URL_HOST = \u2018domain.com\u2019\nDEFAULT_EMAIL_HOST = \u2018domain.com\u2019\n<\/pre>\n<p>* Notice the &#8220;&#8216;&#8221;<\/p>\n<p>Create the mailman site list and set up the aliases:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n\n&gt; cd \/usr\/lib\/mailman\n&gt; bin\/newlist mailman\n\n<\/pre>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n\nEnter the email of the person running the list: minh@minhtech.com\nInitial mailman password: password\nTo finish creating your mailing list, you must edit your \/etc\/aliases (or\nequivalent) file by adding the following lines, and possibly running the\n`newaliases\u2019 program:\n\n## mailman mailing list\nmailman: \u201c|\/usr\/lib\/mailman\/mail\/mailman post mailman\u201d\nmailman-admin: \u201c|\/usr\/lib\/mailman\/mail\/mailman admin mailman\u201d\nmailman-bounces: \u201c|\/usr\/lib\/mailman\/mail\/mailman bounces mailman\u201d\nmailman-confirm: \u201c|\/usr\/lib\/mailman\/mail\/mailman confirm mailman\u201d\nmailman-join: \u201c|\/usr\/lib\/mailman\/mail\/mailman join mailman\u201d\nmailman-leave: \u201c|\/usr\/lib\/mailman\/mail\/mailman leave mailman\u201d\nmailman-owner: \u201c|\/usr\/lib\/mailman\/mail\/mailman owner mailman\u201d\nmailman-request: \u201c|\/usr\/lib\/mailman\/mail\/mailman request mailman\u201d\nmailman-subscribe: \u201c|\/usr\/lib\/mailman\/mail\/mailman subscribe mailman\u201d\nmailman-unsubscribe: \u201c|\/usr\/lib\/mailman\/mail\/mailman unsubscribe mailman\u201d\n\n<\/pre>\n<p>Hit enter to notify mailman owner\u2026<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n\n&gt; vi \/etc\/aliases\n## mailman mailing list\nmailman: \u201c|\/usr\/lib\/mailman\/mail\/mailman post mailman\u201d\nmailman-admin: \u201c|\/usr\/lib\/mailman\/mail\/mailman admin mailman\u201d\nmailman-bounces: \u201c|\/usr\/lib\/mailman\/mail\/mailman bounces mailman\u201d\nmailman-confirm: \u201c|\/usr\/lib\/mailman\/mail\/mailman confirm mailman\u201d\nmailman-join: \u201c|\/usr\/lib\/mailman\/mail\/mailman join mailman\u201d\nmailman-leave: \u201c|\/usr\/lib\/mailman\/mail\/mailman leave mailman\u201d\nmailman-owner: \u201c|\/usr\/lib\/mailman\/mail\/mailman owner mailman\u201d\nmailman-request: \u201c|\/usr\/lib\/mailman\/mail\/mailman request mailman\u201d\nmailman-subscribe: \u201c|\/usr\/lib\/mailman\/mail\/mailman subscribe mailman\u201d\nmailman-unsubscribe: \u201c|\/usr\/lib\/mailman\/mail\/mailman unsubscribe mailman\u201d\n\n<\/pre>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n\n# newaliases\n\n<\/pre>\n<p>After creating the list, add the listed aliases to the bottom of the aliases file, and then run newaliases.<br \/>\nFinally, restart Apache and start mailman:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n\n# \/etc\/init.d\/httpd restart\nStopping httpd: &#x5B; OK ]\nStarting httpd: &#x5B; OK ]\n\n# \/etc\/init.d\/mailman start\nStarting mailman: &#x5B; OK ]\n\n<\/pre>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n\n# chkconfig \u2013level 2345 mailman on\n\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Here is how to install the mailman mailing list on CentOS 6.6. Install Mailman via yum: # yum install mailman Next, edit its Apache configuration file: # cd \/etc\/httpd\/conf.d # vi mailman.conf RedirectMatch ^\/mailman&#x5B;\/]*$ http:\/\/domain.com\/mailman\/listinfo Uncomment the redirect parameter and enter the correct domain name. Set the site master password: # \/usr\/lib\/mailman\/bin\/mmsitepass password This password &#8230; <a title=\"Set up mailman on CentOS 6.6\" class=\"read-more\" href=\"https:\/\/www.qbytes.cloud\/index.php\/2015\/07\/20\/set-up-mailman-on-centos-6-6\/\" aria-label=\"Read more about Set up mailman on CentOS 6.6\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2,63],"tags":[],"class_list":["post-2427","post","type-post","status-publish","format-standard","hentry","category-administration","category-mailman"],"_links":{"self":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/posts\/2427","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/comments?post=2427"}],"version-history":[{"count":0,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/posts\/2427\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/media?parent=2427"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/categories?post=2427"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/tags?post=2427"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}