R: Re: mailman3 does not send to the members of the lists
Hi,
my mailman.cfg
[mailman] site_owner: admin@pratico.work 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:dbpassword@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: rest_user admin_pass: rest_pass
[mta] incoming: mailman.mta.postfix.LMTP outgoing: mailman.mta.deliver.deliver smtp_host: localhost smtp_port: 25 smtp_user: smtp_pass: lmtp_host: 127.0.0.1 lmtp_port: 8024 configuration: python:mailman.config.postfix
[archiver.hyperkitty] class: mailman_hyperkitty.Archiver enable: yes configuration: /etc/mailman3/mailman-hyperkitty.cfg
On 7/12/20 5:17 PM, blackout69 wrote:
Hi,
my mailman.cfg
Your mailman.cfg is not the issue. Your issue is Postfix is delivering list mail to Dovecot rather than Mailman. This is a Postfix configuration issue.
If you want us to look at it, postconf -n
would help.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
Hi,
my main.cf
alias_maps = hash:/etc/aliases compatibility_level = 2 content_filter = amavis:[127.0.0.1]:10024 inet_protocols = ipv4 mailbox_size_limit = 0 message_size_limit = 20480000 myhostname = mail.pratico.work non_smtpd_milters = inet:[127.0.0.1]:12301 recipient_delimiter = + smtpd_banner = $myhostname ESMTP smtpd_milters=inet:[127.0.0.1]:12301 smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_invalid_hostname, reject_non_fqdn_hostname, reject_non_fqdn_sender, reje$ smtpd_sasl_auth_enable = yes smtpd_sasl_path = private/auth smtpd_sasl_type = dovecot smtpd_tls_CApath = /etc/ssl/certs smtpd_tls_cert_file = /etc/letsencrypt/live/mail.pratico.work/fullchain.pem smtpd_tls_eecdh_grade = strong smtpd_tls_key_file = /etc/letsencrypt/live/mail.pratico.work/privkey.pem smtpd_tls_security_level = may smtp_header_checks = regexp:/etc/postfix/header_checks smtp_mime_header_checks = regexp:/etc/postfix/header_checks smtp_tls_CApath = /etc/ssl/certs smtp_tls_cert_file = $smtpd_tls_cert_file smtp_tls_key_file = $smtpd_tls_key_file smtp_tls_security_level = may smtp_use_tls = yes tls_preempt_cipherlist = yes virtual_alias_maps = mysql:/etc/postfix/mysql_virtual_alias_emails.cf, mysql:/etc/postfix/mysql_virtual_alias_maps.cf virtual_gid_maps = static:5000 virtual_mailbox_base = /var/vmail 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 virtual_uid_maps = static:5000
# Mailman related settings owner_request_special = no transport_maps = hash:/var/lib/mailman3/data/postfix_lmtp local_recipient_maps = proxy:unix:passwd.byname $alias_maps hash:/var/lib/mailman3/data/postfix_lmtp relay_domains = ${{$compatibility_level} < {2} ? {$mydestination} : {}} hash:/var/lib/mailman3/data/postfix_domains
On 7/12/20 6:11 PM, maszap@tin.it wrote:
Hi,
my main.cf
...
virtual_transport = lmtp:unix:private/dovecot-lmtp
Your list is apparently in a virtual domain and the above is overriding the transport maps below and delivering list mail to Dovecot.
virtual_uid_maps = static:5000
# Mailman related settings owner_request_special = no transport_maps = hash:/var/lib/mailman3/data/postfix_lmtp local_recipient_maps = proxy:unix:passwd.byname $alias_maps hash:/var/lib/mailman3/data/postfix_lmtp relay_domains = ${{$compatibility_level} < {2} ? {$mydestination} : {}} hash:/var/lib/mailman3/data/postfix_domains
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
Hi,
you say I have to delete these lines?
virtual_alias_maps = mysql:/etc/postfix/mysql_virtual_alias_emails.cf, mysql:/etc/postfix/mysql_virtual_alias_maps.cf virtual_gid_maps = static:5000 virtual_mailbox_base = /var/vmail 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 virtual_uid_maps = static:5000
On 7/12/20 6:30 PM, maszap@tin.it wrote:
Hi,
you say I have to delete these lines?
virtual_alias_maps = mysql:/etc/postfix/mysql_virtual_alias_emails.cf, mysql:/etc/postfix/mysql_virtual_alias_maps.cf virtual_gid_maps = static:5000 virtual_mailbox_base = /var/vmail 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 virtual_uid_maps = static:5000
I say you have to understand what you want Postfix to do and configure it appropriately. I am not a primary resource for Postfix support in general. I will help you to the extent that I can, but you might be better off posting to a Postfix list.
I would need much more information in order to know how your Postfix should be configured, and in any case, I don't have time to do any more today.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
Mark Sapiro writes:
I say you have to understand what you want Postfix to do and configure it appropriately.
I would recommend going to a Postfix list as Mark suggested. Postfix configuration is complex, and they're more likely to know the best way to do exactly what you say you want to do. I myself can't help with Postfix details, I'm an Exim user. But my list of "need to know" stuff is generic, just the answers would be very different with Exim or Sendmail or qmail!
I would need much more information in order to know how your Postfix should be configured,
In particular, whoever answers your questions will need to know:
Why are you using virtual domains for email? This doesn't need to have great detail. Mostly:
- are you supporting multiple organizations with their own domains, OR
- is this for some purpose of your own, OR
- did you just copy the virtual domain lines from some example configuration?
In the last case, you might try not even mentioning that you're using virtual domains. (That's only if you treat this as a "new install". If you're going to send them your current configs, they'll see your virtual domain stuff and want to know "why?" You may as well tell them.) They may tell you that you can do everything you want without them! Or they may tell you that virtual domains are the best way to do that, and you can be confident about it.
In the last case you could also try just deleting and seeing if your system works, as you suggested to Mark earlier. But that could also break everything related to mail on that host.
Who is receiving mail via Dovecot, and via what domain(s)? The "who" is generic (eg, "users and web applications using IMAP clients"), but the domains should be specific.
If not inconvenient, it is easiest if you give real names for the domains. If there are privacy, security, or intellectual property concerns with the domain names, you'll need to find out the conventions used by the Postfix community for dealing with that.
If you do redact your domain names in your explanation in the initial contact, make sure you explain exactly how you did that, or you will confuse everybody and have an unpleasant experience.
What domain does Mailman use to receive mail? Is Mailman the only thing that receives mail on that domain? What else, if anything, needs to received mail addressed to that domain?
What domains other than those handled by Mailman and Dovecot, if any, are processed by your Postfix MTA?
What other things, if any, besides Mailman and Dovecot directly receive mail processed by your Postfix MTA?
Anything downstream from Mailman and Dovecot doesn't need to be mentioned. If there are still problems with downstream recipients once Mailman and Dovecot are receiving mail correctly, direct those issues to us and to Dovecot, as appropriate.
You should check the channel FAQ to see whether they want your configuration in your first contact, or not. Even if they do, you might be better off to treat this as a "new install" rather than "it's broken, help me fix it".
In contacting the Postfix channel, explain "I want to ..." based on the answers to those questions. Then your question is "how do I configure mail so that Dovecot domains and users get mail, Mailman domains, lists, and administrators get mail, and any other mail handled by Postfix goes to the right place (as defined by questions 4 and 5)?"
Steve
Hi everyone, actually, by removing the following lines the lists work. virtual_alias_maps = mysql: /etc/postfix/mysql_virtual_alias_emails.cf, mysql: /etc/postfix/mysql_virtual_alias_maps.cf virtual_gid_maps = static: 5000 virtual_mailbox_base = / var / vmail 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 virtual_uid_maps = static: 5000
But it no longer runs the stakes on roundcube. What I would like to do with postfix is to run roundcube and mailman3. For setting up postfix, I followed this example: https://docs.google.com/document/d/1xIcSsoNFp2nHi7r4eQys00s9a0k2sHhu1V5Plant... For this I have used virtual domains. I am certainly wrong. But is there a documentation that explains how to do it?
Thank you in advance Max
Thank you Mark for your help, it is not my intention to make people waste time. I thought I was asking in the right list considering that, in my opinion, it was mailman3 not to send to the lists. Now I understand that postfix needs to be configured for both purposes. Thank you Max
participants (4)
-
blackout69
-
Mark Sapiro
-
maszap@tin.it
-
Stephen J. Turnbull