apt install python3-pip
apt install mailman3 -y
- Nos indica si deseamos instalar la base de datos
- Podemos ver la versión y otra información con
mailman info
GNU Mailman 3.1.1 (Between The Wheels)
Python 3.6.9 (default, Jul 17 2020, 12:50:27)
[GCC 8.4.0]
config file: /etc/mailman3/mailman.cfg
db url: sqlite:////var/lib/mailman3/data/mailman.db
devmode: DISABLED
REST root url: http://localhost:8001/3.1/
REST credentials: restadmin:cu/FlqxEgleQanNYKW9yKsPPJ5fL/iJVOyyorciBmTRXvouP
- Aquí nos indica cual es el archivo de configuración
config file: /etc/mailman3/mailman.cfg
nano /etc/mailman3/mailman.cfg
# How to connect to the outgoing MTA. If smtp_user and smtp_pass is given,
# then Mailman will attempt to log into the MTA when making a new connection.
smtp_host: localhost
smtp_port: 25
smtp_user:
smtp_pass:
X
# How to connect to the outgoing MTA. If smtp_user and smtp_pass is given,
# then Mailman will attempt to log into the MTA when making a new connection.
smtp_host: correo.siua.ac.cr
smtp_port: 25
smtp_user:admin@siua.ac.cr
smtp_pass:AC2
- Ahora habilitamos el sistema para soportar MYSQL
- Instalamos
pip3 install pymysql
-----------------------------------------------
class: mailman.database.sqlite.SQLiteDatabase
X
#class: mailman.database.sqlite.SQLiteDatabase
-----------------------------------------------
#class: mailman.database.mysql.MySQLDatabase
X
class: mailman.database.mysql.MySQLDatabase
-----------------------------------------------
url: sqlite:///$DATA_DIR/mailman.db
X
#url: sqlite:///$DATA_DIR/mailman.db
-----------------------------------------------
#url: mysql+pymysql://mailman3:mmpass@localhost/mailman3?charset=utf8&use_unicode=1
X
url: mysql+pymysql://remoto:RB0@mysqlp.siua.ac.cr/bd_sis_mailman_siua?charset=utf8&use_unicode=1
-----------------------------------------------
crontab -e
@daily /usr/lib/mailman3/bin/mailman digests --periodic
0 8 * * * /usr/lib/mailman3/bin/mailman notify
- Ahora vamos a instalar la interfaz gráfica
pip3 install Django>=1.11