<?xml version="1.0" encoding="UTF-8" ?>

<bugzilla version="5.2"
          urlbase="https://bugzilla.altlinux.org/"
          
          maintainer="jenya@basealt.ru"
>

    <bug>
          <bug_id>36460</bug_id>
          
          <creation_ts>2019-03-30 12:41:54 +0300</creation_ts>
          <short_desc>MAILMAN_SITE_LIST = None breaks initial setup</short_desc>
          <delta_ts>2020-06-08 02:19:11 +0300</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Development</classification>
          <product>Sisyphus</product>
          <component>mailman</component>
          <version>unstable</version>
          <rep_platform>all</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Konstantin A Lepikhov (L.A. Kostis)">lakostis</reporter>
          <assigned_to name="Dmitry V. Levin">ldv</assigned_to>
          <cc>lakostis</cc>
    
    <cc>ldv</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>180196</commentid>
    <comment_count>0</comment_count>
    <who name="Konstantin A Lepikhov (L.A. Kostis)">lakostis</who>
    <bug_when>2019-03-30 12:41:54 +0300</bug_when>
    <thetext>Привет!

Довелось мне тут завести mailman с нуля и оказывается у нас для этого приходится делать лишние телодвижения:
- Если оставить настройки &quot;как есть&quot;, т.е. MAILMAN_SITE_LIST = None в /etc/mailman/mm_config.py то создание нового списка рассылки падает с ошибкой

mailman_1  | Traceback (most recent call last):
mailman_1  |   File &quot;/usr/share/mailman/bin/newlist&quot;, line 274, in &lt;module&gt;
mailman_1  |     main()
mailman_1  |   File &quot;/usr/share/mailman/bin/newlist&quot;, line 240, in main
mailman_1  |     sys.modules[modname].create(mlist)
mailman_1  |   File &quot;/usr/share/mailman/Mailman/MTA/Postfix.py&quot;, line 315, in create
mailman_1  |     _do_create(mlist, VIRTFILE, _addvirtual)
mailman_1  |   File &quot;/usr/share/mailman/Mailman/MTA/Postfix.py&quot;, line 297, in _do_create
mailman_1  |     func(mlist, fp)
mailman_1  |   File &quot;/usr/share/mailman/Mailman/MTA/Postfix.py&quot;, line 150, in _addvirtual
mailman_1  |     if (MailList(mm_cfg.MAILMAN_SITE_LIST, lock=False).host_name.lower() ==
mailman_1  |   File &quot;/usr/share/mailman/Mailman/MailList.py&quot;, line 149, in __getattr__
mailman_1  |     raise AttributeError, name
mailman_1  | AttributeError: host_name

Если же заменить MAILMAN_SITE_LIST = &apos;mailman&apos; и создать таки сначала список mailman и затем все остальные списки то ошибок не возникает. Предлагаю заменить MAILMAN_SITE_LIST = None на MAILMAN_SITE_LIST = &apos;mailman&apos; и вывести предупреждение о создании списка mailman после установки.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>180197</commentid>
    <comment_count>1</comment_count>
    <who name="Konstantin A Lepikhov (L.A. Kostis)">lakostis</who>
    <bug_when>2019-03-30 12:42:28 +0300</bug_when>
    <thetext>Перевешиваю на текущего мантейнера ;)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>188670</commentid>
    <comment_count>2</comment_count>
    <who name="Konstantin A Lepikhov (L.A. Kostis)">lakostis</who>
    <bug_when>2020-03-21 02:07:00 +0300</bug_when>
    <thetext>ping</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>190593</commentid>
    <comment_count>3</comment_count>
    <who name="Repository Robot">repository-robot</who>
    <bug_when>2020-06-08 02:19:11 +0300</bug_when>
    <thetext>mailman-5:2.1.33.0.4.0f97-alt1 -&gt; sisyphus:

 Fri May 29 2020 Dmitry V. Levin &lt;ldv@altlinux&gt; 5:2.1.33.0.4.0f97-alt1
 - 2.1.29-9-ge227cb9f -&gt; 2.1.33-4-g0f97bcba.
 - mm_config.py: reset MAILMAN_SITE_LIST to default (closes: #36460).</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>