Unix & Linux Stack Exchange
Q&A for users of Linux, FreeBSD and other Unix-like operating systems
Latest Questions
0
votes
1
answers
509
views
Installing mailman3 on Debian bookworm with external mail postfix server
I would like to install mailman3 on my debian box (bookworm), but use an already existing postfix mail server on another host (can that be done?). I have the following settings in the `mailman.cfg` file in `/etc/mailman3` [mta] # The class defining the interface to the incoming mail transport agent....
I would like to install mailman3 on my debian box (bookworm), but use an already existing postfix mail server on another host (can that be done?).
I have the following settings in the
mailman.cfg
file in /etc/mailman3
[mta]
# The class defining the interface to the incoming mail transport agent.
#incoming: mailman.mta.exim4.LMTP
incoming: mailman.mta.postfix.LMTP
# The callable implementing delivery to the outgoing mail transport agent.
# This must accept three arguments, the mailing list, the message, and the
# message metadata dictionary.
outgoing: mailman.mta.deliver.deliver
# 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:
# Where the LMTP server listens for connections. Use 127.0.0.1 instead of
# localhost for Postfix integration, because Postfix only consults DNS
# (e.g. not /etc/hosts).
lmtp_host: 127.0.0.1
lmtp_port: 8024
I have SSH tunnels in place which make port 25 on the remote mail server available from my mailman server and port 8024 on my mailman server available on port 8024 on the remote mail server (if that's what's do be done - for the 2nd part, the port 8024, I am not fully sure if my understanding is correct).
For some reasons, when starting mailman3, it tries to execute postmap
which is installed on the mail server, but not on the mailman server. I guess, that this occurs because of the config file settings for incoming:
and outgoing:
.
How can I change my configuration to get this setup working?
Or (if this is not possible): How should I configure my system to have a new system running mailman3
connect to an already existing server running postfix
.
(What I probably should mention: The mailing lists should be for the mail domain which the existing postfix
mail server is responsible for.)
TomS
(113 rep)
Dec 25, 2023, 02:20 PM
• Last activity: Dec 26, 2023, 01:21 PM
2
votes
1
answers
1423
views
How to get list of members subscribed to a list - Mailman
I have an Ubuntu server with Postfix and the Mailman list manager. My server stopped working, so I need to find a way to list the emails registered on the list of the Mailman. Note: I was able to mount the data partition, so I have all the files.
I have an Ubuntu server with Postfix and the Mailman list manager.
My server stopped working, so I need to find a way to list the emails registered on the list of the Mailman.
Note: I was able to mount the data partition, so I have all the files.
NilsonUehara
(123 rep)
Feb 21, 2014, 12:56 PM
• Last activity: Aug 17, 2023, 06:43 AM
0
votes
1
answers
295
views
What is the recommended Mailman3 web cron job configuration under Debian?
The [Mailman3 web installation instructions](https://docs.mailman3.org/en/latest/config-web.html#scheduled-tasks-required) ask for the configuration of various cron jobs. This is not specified in the [Debian Mailman3 installation instructions](https://salsa.debian.org/mailman-team/mailman-suite/-/bl...
The [Mailman3 web installation instructions](https://docs.mailman3.org/en/latest/config-web.html#scheduled-tasks-required) ask for the configuration of various cron jobs. This is not specified in the [Debian Mailman3 installation instructions](https://salsa.debian.org/mailman-team/mailman-suite/-/blob/master/debian/README.Debian) , which might suggest that the Debian
mailman3-full
package sets up what is required. Yet no cron jobs are listed in /var/spool/cron/crontabs/
.
In addition, trying to run the specified jobs from the command line (e.g. sudo -u list mailman /usr/bin/mailman-web runjobs hourly
) results in the error: ValueError: Language code already registered: ar
.
Diomidis Spinellis
(762 rep)
Jan 12, 2023, 09:55 AM
• Last activity: Jan 12, 2023, 10:07 AM
1
votes
1
answers
2033
views
How can I configure the web UI on mailman3 when installed on Debian via the mailman3-full package?
I've installed GNU Mailman 3 on Debian 11 using `apt install mailman3-full`. I'm now trying to set up the web UI for it, as list admins will not want to use the command line to manage lists. The Mailman docs say to consult the Postorius docs. The Postorius docs seem to cover initial Postorius config...
I've installed GNU Mailman 3 on Debian 11 using
apt install mailman3-full
. I'm now trying to set up the web UI for it, as list admins will not want to use the command line to manage lists.
The Mailman docs say to consult the Postorius docs. The Postorius docs seem to cover initial Postorius configuration up to creating a Django site, but give no details on how this integrates with Mailman 3 — and surely the mailman3-full
package, which includes mailman3-web
, should already have done this?
The page at https://packages.debian.org/buster/mailman3-web implies that the web UI is visible at http://«host»/mailman3
, but it is not. It *does* say it's optional, but I can't find any information on how to configure this.
lsof -nP -iTCP -sTCP:LISTEN
shows ports 8001 and 8024 are listening:
python3 20949 list 23u IPv4 97450 0t0 TCP 127.0.0.1:8024 (LISTEN)
python3 20953 list 24u IPv4 97452 0t0 TCP 127.0.0.1:8001 (LISTEN)
python3 20963 list 24u IPv4 97452 0t0 TCP 127.0.0.1:8001 (LISTEN)
python3 20964 list 24u IPv4 97452 0t0 TCP 127.0.0.1:8001 (LISTEN)
but 8001 returns JSON and 8024 is Mailman's internal LMTP port. There doesn't seem to be *any* web UI exposed.
I'm not a Python developer, and know little of uWSGI, which is mentioned on the page. The uWSGI documentation is massive, and doesn't really have any sections which look like they might be helpful.
I can't find any instructions on how to configure the mailman3-full
package so there's a working web UI — everything seems to be based around installing mailman3 from scratch, and assumes a good level of Python knowledge to boot.
Please could somebody tell me how to get the web UI working? (Or, failing that, point me to a mailing list package that works similarly and isn't Mailman?)
John Y
(155 rep)
May 28, 2022, 01:21 PM
• Last activity: May 30, 2022, 07:38 AM
2
votes
1
answers
252
views
How do I backport a package that depends on another package which only exists in testing?
I'm trying to backport `mailman3-full` from Debian Bullseye to Debian Buster. I've followed the [official guide][1], but when executing `sudo mk-build-deps --install --remove` I get an error: ``` Removing mailman3-build-deps:amd64 because I can't find python3-importlib-resources:amd64 ``` I've resea...
I'm trying to backport
mailman3-full
from Debian Bullseye to Debian Buster. I've followed the official guide , but when executing sudo mk-build-deps --install --remove
I get an error:
Removing mailman3-build-deps:amd64 because I can't find python3-importlib-resources:amd64
I've researched that package, and apparently it's only found on Bullseye (testing), so I can't just install it. How should I proceed to backport mailman3-full
? Maybe I also have to backport python3-importlib-resources
?
I've also tried adding testing repositories and just installing mailman3-full
from there, but then it wants to upgrade a lot of packages to the testing version, which I'm not comfortable with.
dieortin
(177 rep)
Apr 4, 2021, 02:00 PM
• Last activity: Apr 5, 2021, 04:43 PM
1
votes
1
answers
222
views
postfix and mailman. One list is working, others bounce
Running Ubuntu 16.04, mailman 2.1.24, postfix 3.1.0. The server runs several domains. Postfix and virtual mailboxes are running well. After much wrestling I have mailman working with one list. I then imported a list, from the previous host, and used withlist to import it. I checked that the aliases...
Running Ubuntu 16.04, mailman 2.1.24, postfix 3.1.0.
The server runs several domains. Postfix and virtual mailboxes are running well.
After much wrestling I have mailman working with one list. I then imported a list, from the previous host, and used withlist to import it. I checked that the aliases were generated, reloaded postfix, and sent a test message, which generated an unknown user bounce.
This lead me to check by creating a new list and testing it. Same message.
The list address is translated to an
@localhost
, which I understand is normal, and the generated aliases include @localhost
.
I'm not really sure how to move forward. Any thoughts?
Here's the output of postconf -n
:
append_dot_mydomain = no
biff = no
content_filter = smtp-amavis:[127.0.0.1]:10024
default_destination_concurrency_limit = 1
default_destination_rate_delay = 5s
default_process_limit = 20
header_checks = regexp:/etc/postfix/header_checks
inet_interfaces = all
inet_protocols = ipv4
mailbox_size_limit = 0
mydestination = localhost
myhostname = domain.org
mynetworks = 127.0.0.0/8, ,
readme_directory = no
recipient_delimiter = +
relay_domains = mydestination, lists.virtualdomain.org
smtp_connect_timeout = 60s
smtp_destination_concurrency_limit = 1
smtp_destination_rate_delay = 5s
smtp_extra_recipient_limit = 10
smtp_host_lookup = dns, native
smtp_tls_note_starttls_offer = yes
smtp_tls_security_level = may
smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
smtpd_client_restrictions = permit_sasl_authenticated
smtpd_recipient_restrictions = permit_sasl_authenticated, permit_mynetworks, reject_unauth_destination
smtpd_relay_restrictions = permit_sasl_authenticated, permit_mynetworks, reject_unauth_destination
smtpd_sasl_auth_enable = yes
smtpd_sasl_path = private/auth
smtpd_sasl_type = dovecot
smtpd_sender_restrictions = reject_unknown_sender_domain
smtpd_tls_CAfile = /etc/ssl/certs/cacert.pem
smtpd_tls_auth_only = no
smtpd_tls_cert_file = /etc/ssl/certs/smtpd.crt
smtpd_tls_key_file = /etc/ssl/private/smtpd.key
smtpd_tls_loglevel = 1
smtpd_tls_received_header = yes
smtpd_tls_security_level = may
smtpd_tls_session_cache_timeout = 3600s
smtpd_use_tls = yes
spamassassin_destination_recipient_limit = 1
tls_random_source = dev:/dev/urandom
virtual_alias_maps = mysql:/etc/postfix/mysql-virtual-alias-maps.cf, hash:/var/lib/mailman/data/virtual-mailman
virtual_mailbox_domains = mysql:/etc/postfix/mysql-virtual-mailbox-domains.cf
virtual_mailbox_maps = mysql:/etc/postfix/mysql-virtual-mailbox-maps.cf
virtual_transport = lmtp:unix:private/dovecot-lmtp
postconf: warning: /etc/postfix/master.cf: unused parameter: local_recipent_maps=
Shane Piscine
(11 rep)
Dec 3, 2017, 09:57 PM
• Last activity: Aug 20, 2020, 05:30 AM
8
votes
4
answers
2526
views
How do I prefix commandline output with a fixed string?
Suppose I run the command: sudo ./list_members Physicians And I want to prefix the output like this: Physicians user@domain.com Physicians user2@domain.com Physicians user3@domain.com Physicians user4@domain.com Is it possible for me to prefix StdOutput like that?
Suppose I run the command:
sudo ./list_members Physicians
And I want to prefix the output like this:
Physicians user@domain.com
Physicians user2@domain.com
Physicians user3@domain.com
Physicians user4@domain.com
Is it possible for me to prefix StdOutput like that?
Ran Dom
(181 rep)
Jul 23, 2018, 04:24 PM
• Last activity: May 19, 2020, 10:56 AM
1
votes
0
answers
417
views
Mailman auto-unsubscribe by bounce while all mail ids are valid in the list
I am working on Mailman version 2.1.12-14.el6.x86_64 and sendmail that came inbuilt with RHEL 6.0. My mailman does not directly send mails to the destined domains. It relays to another appliance called "`Ironport`" and that in turn verifies various parameters like spam, virus and so and then sends t...
I am working on Mailman version 2.1.12-14.el6.x86_64 and sendmail that came inbuilt with RHEL 6.0.
My mailman does not directly send mails to the destined domains. It relays to another appliance called "
Ironport
" and that in turn verifies various parameters like spam, virus and so and then sends to the destined domains.
But, I recently observed an issue on this setup after lot many years of usage, suddenly from few days, the maximum no of users from one of the mailing lists got auto-unsubscribed with reason "BY BOUNCE
".
I tried searching in mailman logs and many websites for the solution but nothing helped.
The only thing I could get from previous "subscribe
" log is :
/var/log/mailman/subscribe-20181028:Oct 27 09:01:05 2018 (17828) : deleted ; disabled address
/var/log/mailman/subscribe-20181028:Oct 27 09:01:05 2018 (17828) : auto-unsubscribed [reason: BYBOUNCE]
The above message is an example. Almost 142 mail ids got deleted with the above reason.
My query here is, if mailman is not sending directly the mails to the users, what is causing mailman to bounce back to the sender that leads to the auto-unsubscribe from the list.
Shashikanth Komandoor
(100 rep)
Oct 31, 2018, 06:51 AM
• Last activity: Nov 8, 2018, 09:37 AM
2
votes
0
answers
192
views
Postfix server: Mailman email double checked with SpamAssassin
I have set up postfix with spamassassin, and then added mailman for mailing list management, everything on Debian 9 Stretch: postfix: 3.1.8 mailman: 2.1.13 spamassassin: 3.4.1 The problem is that the mail that is reinjected by MailMan is re-checked by SpamAssassin for each single recipient of mailin...
I have set up postfix with spamassassin, and then added mailman for mailing list management, everything on Debian 9 Stretch:
postfix: 3.1.8
mailman: 2.1.13
spamassassin: 3.4.1
The problem is that the mail that is reinjected by MailMan is re-checked by SpamAssassin for each single recipient of mailing lists, which puts quite some burden on the system. Since the mail is already checked when originally accepted, I would like to circumvent the second spam check.
The configuration is as follows:
Mailman has
MTA='Postfix'
in the mm_cfg.py
file.
Postfix
========
main.cf
-------
virtual_alias_maps = hash:/etc/postfix/virtual, hash:/var/lib/mailman/data/virtual-mailman
master.cf
----------
smtp inet n - y - - smtpd
....
-o content_filter=spamassassin
smtps inet n - y - - smtpd
....
-o content_filter=spamassassin
submission inet n - y - - smtpd
...
-o content_filter=spamassassin
-o receive_override_options=no_milters
...
spamassassin unix - n n - - pipe
user=debian-spamd argv=/usr/bin/spamc -f -e /usr/sbin/sendmail -oi -f ${sender} ${recipient}
What would be a possible way to make SpamAssassin skip the check on email delivered from MailMan?
norbert
(121 rep)
Sep 10, 2018, 06:43 AM
• Last activity: Sep 15, 2018, 03:59 PM
9
votes
2
answers
815
views
Mailman / Postfix Configuration Assistance
I am writing for some help regarding Postfix configuration. I cannot seem to get Postfix configured properly to transfer mail to the mailing list installed on the same server. I followed many steps over the last few days, and the last one I followed is at http://www.postfix.org/VIRTUAL_README.html u...
I am writing for some help regarding Postfix configuration.
I cannot seem to get Postfix configured properly to transfer mail to the mailing list installed on the same server. I followed many steps over the last few days, and the last one I followed is at http://www.postfix.org/VIRTUAL_README.html under the section Mailing Lists.
Can someone please look at this and let me know what I am missing?
Basically, Postfix has been configured for base email to be sent to
xxx@mail-test.company.org
and I would like the mail list to use xxx@listtest.company.org
.
**DYN-DNS**
listtest.company.org A 216.111.222.85
listtest.company.org MX 216.111.222.85
listtest.company.org TXT "v=spf1 a ptr mx ip4:216.111.222.85 mx:mail-test.company.org -all"
mail-test.company.org A 216.111.222.85
mail-test.company.org MX 216.111.222.85
mail-test.company.org TXT "v=spf1 a ptr mx ip4:216.111.222.85 mx:mail-test.company.org -all"
**main.cf**
myhostname = mail-test.company.org
mydomain = company.org
myorigin = $hostname
alias_maps = hash:/etc/aliases, hash:/etc/mailman/aliases
alias_database = hash:/etc/aliases, hash:/etc/mailman/aliases
recipient_delimiter = +
virtual_alias_maps = hash:/etc/postfix/virtual
mydestination = $myhostname, listtest.$mydomain
/etc/postfix/virtual:
listname-request@listtest.company.org listname-request
listname@listtest.company.org listname
owner-listname@listtest.company.org owner-listname
/etc/aliases:
listname: "/usr/lib/mailman/mail/mailman post mailman"
owner-listname: ...
listname-request: ...
**mm_cfg.py**
DEFAULT_URL_HOST = 'listtest.company.org'
DEFAULT_EMAIL_HOST = 'listtest.company.org'
add_virtualhost(DEFAULT_URL_HOST, DEFAULT_EMAIL_HOST)
MTA = 'Postfix'
The first part of the log shows the rejection of listtest.company.org -- whereas the second part shows successful transfer to mail-test.company.org
**/var/log/maillog**
Aug 17 15:46:50 listserv postfix/smtpd: NOQUEUE: reject: RCPT from
Mail1.company.org[66.173.196.101]: 554 5.7.1 :
Relay access denied; from= to=
proto=SMTP helo=
Aug 17 15:46:50 listserv postfix/cleanup: D3F93209F1: message-
id=
Aug 17 15:46:50 listserv postfix/smtpd: disconnect from
Mail1.company.org[66.173.196.101]
Aug 17 15:46:50 listserv postfix/qmgr: D3F93209F1:
from=, size=6670, nrcpt=1 (queue active)
Aug 17 15:46:50 listserv postfix/cleanup: F37B120A3B: message-
id=
Aug 17 15:46:51 listserv postfix/qmgr: F37B120A3B:
from=, size=6819, nrcpt=1 (queue active)
Aug 17 15:46:51 listserv postfix/local: D3F93209F1:
to=, relay=local, delay=0.18,
delays=0.17/0.01/0/0, dsn=2.0.0, status=sent (forwarded as F37B120A3B)
Aug 17 15:46:51 app02-listserv postfix/qmgr: D3F93209F1: removed
Any help would be greatly appreciated.
Red Rover
(101 rep)
Aug 17, 2012, 10:02 PM
• Last activity: Oct 7, 2017, 09:34 AM
0
votes
1
answers
110
views
Mailman newlist breaks, No template found
after installing mailman on debian wheezy and running newlist mailman i get the Error: IOError: [Errno 2] No template file found: 'emptyarchive.html'
after installing mailman on debian wheezy and running
newlist mailman
i get the Error:
IOError: [Errno 2] No template file found: 'emptyarchive.html'
k4yaman
(119 rep)
Apr 19, 2017, 04:44 PM
• Last activity: Apr 19, 2017, 04:51 PM
0
votes
1
answers
317
views
What does list in crontab do?
I'm maintaining a server which runs mailman. In it I find a crontab which looks like the following: 0 8 * * * list [ -x /usr/lib/mailman/cron/checkdbs ] && /usr/lib/mailman/cron/checkdbs 0 9 * * * list [ -x /usr/lib/mailman/cron/disabled ] && /usr/lib/mailman/cron/disabled ... When I type *list* I g...
I'm maintaining a server which runs mailman. In it I find a crontab which looks like the following:
0 8 * * * list [ -x /usr/lib/mailman/cron/checkdbs ] && /usr/lib/mailman/cron/checkdbs
0 9 * * * list [ -x /usr/lib/mailman/cron/disabled ] && /usr/lib/mailman/cron/disabled
...
When I type *list* I get
> No command 'list' found ..
My searches for "crontab list", "linux list command", "mailman cron list" bring up results for listing things.
What does list in crontab do ?
What command is list refering to ?
invad0r
(230 rep)
Dec 30, 2016, 12:39 PM
• Last activity: Jan 2, 2017, 11:22 AM
-1
votes
1
answers
153
views
How to enter input in this session?
[![enter image description here][1]][1] [1]: https://i.sstatic.net/7yuvI.png I try to select the option but it doesn't work. Which key(s) do I use to enter it?

fastestsuperman
(19 rep)
Sep 20, 2016, 12:02 PM
• Last activity: Sep 20, 2016, 12:45 PM
2
votes
0
answers
173
views
How to install mailman when it needs an older version of Python?
I am working on an install of mailman 3.0.3 on Ubuntu Server 16.04 which ships with Python 3.5.1 and 2.7.11. Per Barry Warsaw that version of mailman requires Python 3.4.n. https://gitlab.com/mailman/mailman/issues/184 My choices seem to be: downgrade 3.5.1 install 3.4.4 in parallel use conda to cre...
I am working on an install of mailman 3.0.3 on Ubuntu Server 16.04 which ships with Python 3.5.1 and 2.7.11. Per Barry Warsaw that version of mailman requires Python 3.4.n. https://gitlab.com/mailman/mailman/issues/184
My choices seem to be:
downgrade 3.5.1
install 3.4.4 in parallel
use conda to create a virtual environment
another approach???
What would be the best way to accomplish this?
John
(143 rep)
Jun 13, 2016, 02:55 PM
• Last activity: Jun 13, 2016, 03:24 PM
2
votes
1
answers
208
views
How can I include an image in a Mailman footer?
I'd like the footer of a Mailman list to include an image. Is this possible? If yes, how? I tried the obvious path of just typing ` `, but that didn't work.
I'd like the footer of a Mailman list to include an image. Is this possible? If yes, how?
I tried the obvious path of just typing
, but that didn't work.
AVB
(121 rep)
Apr 6, 2013, 11:50 PM
• Last activity: Apr 7, 2013, 12:47 AM
Showing page 1 of 15 total questions