sys
- vim /etc/hosts
- apt install apache2 php-{bcmath,common,curl,fpm,gd,intl,mbstring,mysql,soap,xml,xsl,zip,cli}
- ai mailman3-full postfix
- vim /etc/mailman3/mailman.cfg
apache
- cp /etc/mailman3/apache.conf /etc/apache2/sites-available/mailman.conf
- vim /etc/apache2/sites-available/mailman.conf
- a2ensite mailman
- a2dissite 000-default.conf
- a2enmod proxy_uwsgi
- systemctl reload apache2
/etc/apache2/sites-available/mailman.conf
<VirtualHost *:80>
ServerName lists.bubuit.net
DocumentRoot /var/lib/mailman3/web/staticAlias /favicon.ico /var/lib/mailman3/web/static/postorius/img/favicon.ico
Alias /static /var/lib/mailman3/web/static<Directory "/var/lib/mailman3/web/static">
Require all granted
</Directory><IfModule mod_proxy_uwsgi.c>
ProxyPass /favicon.ico !
ProxyPass /static !
ProxyPass / unix:/run/mailman3-web/uwsgi.sock|uwsgi://localhost/
</IfModule></VirtualHost>
/etc/postfix/main.cf
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128 10.0.3.0/24
inet_interfaces = all
postfix proxy
- postconf -e 'relay_domains = lists.bubuit.net'
- postconf -e 'mailman_destination_recipient_limit = 1'
- postconf -e 'transport_maps = hash:/etc/postfix/transport'
- postmap /etc/postfix/transport
- service postfix restart
mailman
- less /usr/share/doc/mailman3/README.Debian
- mailman-web createsuperuser
- mailman-wrapper create mailman@lists.bubuit.net
/etc/aliases
www-data: root
list: root
newaliases
postfix reload
deBug
- ap mailman3-full
- ai mailman3-full
- dpkg-reconfigure mailman3
- service mailman3 status
- dpkg-reconfigure mailman3-web
- service mailman3-web status
- mailman-wrapper info
- t -n50 /var/log/mailman3/*.log
- t -n50 /var/log/mailman3/web/mailman-web.log
- t -n50 /var/log/apache2/access.log
- journalctl
- lsof -Pni
- dig mx lists.bubuit.net
/usr/lib/python3/dist-packages/django_q/conf.py:139: UserWarning:
Retry and timeout are misconfigured. Set retry larger than timeout,
failure to do so will cause the tasks to be retriggered before completion.
See https://django-q.readthedocs.io/en/latest/configure.html#retry for details.
/usr/share/mailman3-web/settings.py
Q_CLUSTER = {
'timeout': 30,
'save_limit': 100,
'orm': 'default',
'poll': 5,
}
django_mailman3.MailDomain: (models.W042)
Auto-created primary key used when not defining a primary key type,
by default 'django.db.models.AutoField'.
HINT: Configure the DEFAULT_AUTO_FIELD setting or the DjangoMailman3Config.default_auto_field attribute to point to a subclass of AutoField, e.g. 'django.db.models.BigAutoField'.
/usr/share/mailman3-web/settings.py
DEFAULT_AUTO_FIELD = 'django.db.models.AutoField'
Links
