On 2024/08/02 17:43, Mark Sapiro wrote:
On 8/2/24 08:12, Roland Giesler via Mailman-users wrote:
It seems though that since I'm not running a local MTA, when then mail arrives at the mailman3 server, there's nothing that can process it. So should I run postfix in it's most basic setup to allow mail to be received or what is the best way to deal with it? Mailman3 has to receive mail like signup confirmations, etc after all, not?
If you use transport_maps on the remote MTA to relay the list mail to port 8024 on the Mailman server, Mailman's LMTP runner will receive the mail and you don't need a local MTA.
Ah, so I just have to figure out why the LMTP runner is not running.
mailman:/var/lib/mailman3# ps ax PID TTY STAT TIME COMMAND 1 ? Ss 0:07 /sbin/init 42 ? Ss 0:07 /lib/systemd/systemd-journald 90 ? Ss 0:00 /lib/systemd/systemd-networkd 98 ? Ss 0:00 /lib/systemd/systemd-resolved 101 ? Ss 0:01 /usr/sbin/cron -f -P 102 ? Ss 0:00 @dbus-daemon --system --address=systemd: --nofork --nopidfile --systemd-activation --syslog-only 106 ? Ss 0:00 /usr/bin/python3 /usr/bin/networkd-dispatcher --run-startup-triggers 107 ? Ssl 0:01 /usr/sbin/rsyslogd -n -iNONE 108 ? Ss 0:00 /lib/systemd/systemd-logind 111 ? Ss 0:07 /usr/bin/uwsgi --plugin python3 --ini /etc/mailman3/uwsgi.ini 115 pts/0 Ss+ 0:00 /sbin/agetty -o -p -- \u --noclear --keep-baud console 115200,38400,9600 linux 116 pts/1 Ss+ 0:00 /sbin/agetty -o -p -- \u --noclear --keep-baud tty1 115200,38400,9600 linux 117 pts/2 Ss+ 0:00 /sbin/agetty -o -p -- \u --noclear --keep-baud tty2 115200,38400,9600 linux 127 ? Ss 0:00 nginx: master process /usr/sbin/nginx -g daemon on; master_process on; 129 ? S 0:00 nginx: worker process 138 ? Ssl 28:01 /usr/sbin/mysqld 277 ? Sl 0:05 /usr/bin/uwsgi --plugin python3 --ini /etc/mailman3/uwsgi.ini 278 ? Ss 0:00 /bin/sh -c python3 manage.py qcluster 282 ? S 0:01 python3 manage.py qcluster 328 ? Ss 0:00 /usr/lib/postfix/sbin/master -w 331 ? S 0:00 qmgr -l -t unix -u 340 ? S 3:49 python3 manage.py qcluster 341 ? S 0:00 python3 manage.py qcluster 342 ? S 0:00 python3 manage.py qcluster 343 ? S 0:00 python3 manage.py qcluster 344 ? S 0:00 python3 manage.py qcluster 345 ? S 0:00 python3 manage.py qcluster 346 ? S 0:00 python3 manage.py qcluster 347 ? S 0:00 python3 manage.py qcluster 348 ? S 0:00 python3 manage.py qcluster 349 ? S 0:00 python3 manage.py qcluster 350 ? S 24:13 python3 manage.py qcluster 354 ? Ss 0:00 /lib/systemd/systemd --user 355 ? S 0:00 (sd-pam) 953 ? Ss 0:00 sshd: root@pts/3 972 pts/3 Ss 0:00 -bash 1284 pts/3 S 0:00 ssh -x -a -oClearAllForwardings=yes -2 root@box2.gtahardware.co.za -s sftp 1285 ? Ssl 0:00 sshfs -o uid=38,gid=38 -o allow_other root@box2.gtahardware.co.za:/etc/mailman3/data /var/lib/mailman3/data 1302 ? Ss 0:00 /usr/bin/python3 /usr/lib/mailman3/bin/master --force -C /etc/mailman3/mailman.cfg 1308 ? S 0:18 /usr/bin/python3 /usr/lib/mailman3/bin/runner -C /etc/mailman3/mailman.cfg --runner=archive:0:1 1309 ? S 0:07 /usr/bin/python3 /usr/lib/mailman3/bin/runner -C /etc/mailman3/mailman.cfg --runner=bounces:0:1 1310 ? S 0:17 /usr/bin/python3 /usr/lib/mailman3/bin/runner -C /etc/mailman3/mailman.cfg --runner=command:0:1 1311 ? S 0:16 /usr/bin/python3 /usr/lib/mailman3/bin/runner -C /etc/mailman3/mailman.cfg --runner=in:0:1 1313 ? S 0:24 /usr/bin/python3 /usr/lib/mailman3/bin/runner -C /etc/mailman3/mailman.cfg --runner=nntp:0:1 1314 ? S 0:16 /usr/bin/python3 /usr/lib/mailman3/bin/runner -C /etc/mailman3/mailman.cfg --runner=out:0:1 1315 ? S 0:18 /usr/bin/python3 /usr/lib/mailman3/bin/runner -C /etc/mailman3/mailman.cfg --runner=pipeline:0:1 1316 ? S 0:18 /usr/bin/python3 /usr/lib/mailman3/bin/runner -C /etc/mailman3/mailman.cfg --runner=rest:0:1 1317 ? S 0:01 /usr/bin/python3 /usr/lib/mailman3/bin/runner -C /etc/mailman3/mailman.cfg --runner=retry:0:1 1318 ? S 0:02 /usr/bin/python3 /usr/lib/mailman3/bin/runner -C /etc/mailman3/mailman.cfg --runner=task:0:1 1319 ? S 0:18 /usr/bin/python3 /usr/lib/mailman3/bin/runner -C /etc/mailman3/mailman.cfg --runner=virgin:0:1 1320 ? S 0:17 /usr/bin/python3 /usr/lib/mailman3/bin/runner -C /etc/mailman3/mailman.cfg --runner=digest:0:1 13459 ? S 0:01 /usr/bin/python3 /usr/lib/mailman3/bin/runner -C /etc/mailman3/mailman.cfg --runner=rest:0:1 13460 ? S 0:01 /usr/bin/python3 /usr/lib/mailman3/bin/runner -C /etc/mailman3/mailman.cfg --runner=rest:0:1 20765 ? S 0:00 pickup -l -t unix -u -c 21109 pts/3 R+ 0:00 ps ax
mailman:/var/lib/mailman3# netstat -tunap Active Internet connections (servers and established) Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name tcp 0 0 127.0.0.53:53 0.0.0.0:* LISTEN 98/systemd-resolved tcp 0 0 127.0.0.1:33060 0.0.0.0:* LISTEN 138/mysqld tcp 0 0 127.0.0.1:8001 0.0.0.0:* LISTEN 1316/python3 tcp 0 0 0.0.0.0:443 0.0.0.0:* LISTEN 127/nginx: master p tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 127/nginx: master p tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN 328/master tcp 0 0 127.0.0.1:3306 0.0.0.0:* LISTEN 138/mysqld tcp 0 0 127.0.0.1:56588 127.0.0.1:3306 ESTABLISHED 13459/python3 tcp 0 0 127.0.0.1:3306 127.0.0.1:50542 ESTABLISHED 138/mysqld tcp 0 0 127.0.0.1:3306 127.0.0.1:50530 ESTABLISHED 138/mysqld tcp 0 0 192.168.161.103:60010 197.214.119.180:22 ESTABLISHED 1284/ssh tcp 0 0 127.0.0.1:3306 127.0.0.1:59222 ESTABLISHED 138/mysqld tcp 0 0 127.0.0.1:3306 127.0.0.1:46810 ESTABLISHED 138/mysqld tcp 0 0 127.0.0.1:50530 127.0.0.1:3306 ESTABLISHED 1319/python3 tcp 0 0 127.0.0.1:46796 127.0.0.1:3306 ESTABLISHED 1318/python3 tcp 0 0 127.0.0.1:46810 127.0.0.1:3306 ESTABLISHED 1309/python3 tcp 0 0 127.0.0.1:59222 127.0.0.1:3306 ESTABLISHED 13460/python3 tcp 0 0 127.0.0.1:50542 127.0.0.1:3306 ESTABLISHED 1314/python3 tcp 0 0 127.0.0.1:3306 127.0.0.1:46796 ESTABLISHED 138/mysqld tcp 0 0 127.0.0.1:3306 127.0.0.1:56588 ESTABLISHED 138/mysqld tcp6 0 0 ::1:25 :::* LISTEN 328/master tcp6 0 0 :::443 :::* LISTEN 127/nginx: master p tcp6 0 0 :::22 :::* LISTEN 1/init tcp6 0 0 :::80 :::* LISTEN 127/nginx: master p tcp6 0 0 192.168.161.103:22 192.168.131.150:43924 ESTABLISHED 1/init udp 0 0 127.0.0.53:53 0.0.0.0:* 98/systemd-resolved
and I have in mailman.cfg:
mailman:/var/lib/mailman3# cat /etc/mailman3/mailman.cfg | grep "^[^#;]" [mailman] site_owner: mailman@fast.za.net noreply_address: noreply default_language: en sender_headers: from from_ reply-to sender email_commands_max_lines: 10 pending_request_life: 3d cache_life: 7d pre_hook: post_hook: layout: debian filtered_messages_are_preservable: no html_to_plain_text_command: /usr/bin/lynx -dump $filename listname_chars: [-_.0-9a-z] [shell] prompt: >>> banner: Welcome to the GNU Mailman shell use_ipython: no history_file: [paths.debian] var_dir: /var/lib/mailman3 queue_dir: $var_dir/queue bin_dir: /usr/lib/mailman3/bin list_data_dir: $var_dir/lists log_dir: /var/log/mailman3 lock_dir: $var_dir/locks data_dir: $var_dir/data cache_dir: $var_dir/cache etc_dir: /etc/mailman3 ext_dir: $var_dir/ext messages_dir: $var_dir/messages archive_dir: $var_dir/archives template_dir: $var_dir/templates pid_file: /run/mailman3/master.pid lock_file: $lock_dir/master.lck [database] class: mailman.database.mysql.MySQLDatabase url: mysql+pymysql://mailman3:<xxxxxxx>@localhost/mailman3?charset=utf8&use_unicode=1 debug: no [logging.debian] format: %(asctime)s (%(process)d) %(message)s datefmt: %b %d %H:%M:%S %Y propagate: no level: info path: mailman.log [webservice] hostname: localhost port: 8001 use_https: no show_tracebacks: yes api_version: 3.1 admin_user: restadmin admin_pass: <xxxxxxx> [mta] incoming: mailman.mta.postfix.LMTP outgoing: mailman.mta.deliver.deliver smtp_host: box2.gtahardware.co.za smtp_port: 465 smtp_user: <xxxxxxx> smtp_pass: <xxxxxxx> smtp_secure_mode: smtps smtp_verify_cert: yes smtp_verify_hostname: yes lmtp_host: lists.fast.za.net lmtp_port: 8024 max_recipients: 10 max_sessions_per_connection: 0 max_delivery_threads: 0 delivery_retry_period: 5d verp_delimiter: + verp_format: ${bounces}+${local}=${domain} verp_confirm_format: $address+$cookie verp_regexp: ^(?P<bounces>[^+]+?)\+(?P<local>[^=]+)=(?P<domain>[^@]+)@.*$ verp_confirm_regexp: ^(.*<)?(?P<addr>[^+]+?)\+(?P<cookie>[^@]+)@.*$ verp_confirmations: yes verp_probe_format: $bounces+$token@$domain verp_probe_regexp: ^(?P<bounces>[^+]+?)\+(?P<token>[^@]+)@.*$ verp_probes: no max_autoresponses_per_day: 10 remove_dkim_headers: no configuration: python:mailman.config.postfix [bounces] register_bounces_every: 15m [archiver.master] class: enable: no configuration: changeme clobber_date: maybe clobber_skew: 1d [archiver.mhonarc] class: mailman.archiving.mhonarc.MHonArc configuration: python:mailman.config.mhonarc [archiver.mail_archive] class: mailman.archiving.mailarchive.MailArchive configuration: python:mailman.config.mail_archive [archiver.prototype] class: mailman.archiving.prototype.Prototype [styles] default: legacy-default [nntp] user: password: host: port: remove_headers: nntp-posting-host nntp-posting-date x-trace x-complaints-to xref date-received posted posting-version relay-version received rewrite_duplicate_headers: To X-Original-To CC X-Original-CC Content-Transfer-Encoding X-Original-Content-Transfer-Encoding MIME-Version X-MIME-Version gatenews_every: 5m [dmarc] resolver_timeout: 3s resolver_lifetime: 5s org_domain_data_url: https://publicsuffix.org/list/public_suffix_list.dat cache_lifetime: 7d [urlpatterns] mailinglist: $base_url/lists/$list_id held_message: $base_url/lists/$list_id/held_messages pending_subscriptions: $base_url/lists/$list_id/subscription_requests pending_unsubscriptions: $base_url/lists/$list_id/unsubscription_requests domain: $base_url/domains/$domain
Why doesn't port 8024 show up then?