Git Product home page Git Product logo

dockerized-mailcow-mailman's People

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

dockerized-mailcow-mailman's Issues

nothing coming UP after installing

Getting following errors in mailman-core:

mailman-core | SMTP_HOST not specified, using the gateway (172.19.199.1) as default
mailman-core | List of databases
mailman-core | Name | Owner | Encoding | Collate | Ctype | ICU Locale | Locale Provider | Access privileges
mailman-core | -----------+---------+----------+------------+------------+------------+-----------------+---------------------
mailman-core | mailmandb | mailman | UTF8 | en_US.utf8 | en_US.utf8 | | libc |
mailman-core | postgres | mailman | UTF8 | en_US.utf8 | en_US.utf8 | | libc |
mailman-core | template0 | mailman | UTF8 | en_US.utf8 | en_US.utf8 | | libc | =c/mailman +
mailman-core | | | | | | | | mailman=CTc/mailman
mailman-core | template1 | mailman | UTF8 | en_US.utf8 | en_US.utf8 | | libc | =c/mailman +
mailman-core | | | | | | | | mailman=CTc/mailman
mailman-core | (4 rows)
mailman-core |
mailman-core | Postgres is up - continuing
mailman-core | Using Postfix configuration
mailman-core | Found configuration file at /opt/mailman/mailman-extra.cfg
mailman-core | HYPERKITTY_API_KEY found, setting up HyperKitty archiver...
mailman-core | HYPERKITTY_URL not set, using the default value of http://mailman-web:8000/hyperkitty
mailman-core | Traceback (most recent call last):
mailman-core | File "/usr/bin/mailman", line 8, in
mailman-core | sys.exit(main())
mailman-core | File "/usr/lib/python3.10/site-packages/click/core.py", line 1130, in call
mailman-core | return self.main(*args, **kwargs)
mailman-core | File "/usr/lib/python3.10/site-packages/click/core.py", line 1054, in main
mailman-core | with self.make_context(prog_name, args, **extra) as ctx:
mailman-core | File "/usr/lib/python3.10/site-packages/click/core.py", line 920, in make_context
mailman-core | self.parse_args(ctx, args)
mailman-core | File "/usr/lib/python3.10/site-packages/click/core.py", line 1613, in parse_args
mailman-core | rest = super().parse_args(ctx, args)
mailman-core | File "/usr/lib/python3.10/site-packages/click/core.py", line 1378, in parse_args
mailman-core | value, args = param.handle_parse_result(ctx, opts, args)
mailman-core | File "/usr/lib/python3.10/site-packages/click/core.py", line 2360, in handle_parse_result
mailman-core | value = self.process_value(ctx, value)
mailman-core | File "/usr/lib/python3.10/site-packages/click/core.py", line 2322, in process_value
mailman-core | value = self.callback(ctx, self, value)
mailman-core | File "/usr/lib/python3.10/site-packages/mailman/bin/mailman.py", line 95, in initialize_config
mailman-core | initialize(value)
mailman-core | File "/usr/lib/python3.10/site-packages/mailman/core/initialize.py", line 229, in initialize
mailman-core | initialize_2(propagate_logs=propagate_logs)
mailman-core | File "/usr/lib/python3.10/site-packages/mailman/core/initialize.py", line 187, in initialize_2
mailman-core | config.db = getUtility(IDatabaseFactory, utility_name).create()
mailman-core | File "/usr/lib/python3.10/site-packages/mailman/database/factory.py", line 57, in create
mailman-core | database.initialize()
mailman-core | File "/usr/lib/python3.10/site-packages/mailman/database/base.py", line 117, in initialize
mailman-core | self.engine = create_engine(
mailman-core | File "", line 2, in create_engine
mailman-core | File "/usr/lib/python3.10/site-packages/sqlalchemy/util/deprecations.py", line 375, in warned
mailman-core | return fn(*args, **kwargs)
mailman-core | File "/usr/lib/python3.10/site-packages/sqlalchemy/engine/create.py", line 522, in create_engine
mailman-core | entrypoint = u._get_entrypoint()
mailman-core | File "/usr/lib/python3.10/site-packages/sqlalchemy/engine/url.py", line 662, in _get_entrypoint
mailman-core | cls = registry.load(name)
mailman-core | File "/usr/lib/python3.10/site-packages/sqlalchemy/util/langhelpers.py", line 343, in load
mailman-core | raise exc.NoSuchModuleError(
mailman-core | sqlalchemy.exc.NoSuchModuleError: Can't load plugin: sqlalchemy.dialects:postgres

mailman-web error:

mailman-web | Postgres is up - continuing
mailman-web | Copying settings_local.py ...
mailman-web | Compiling locale files in /usr/lib/python3.10/site-packages
mailman-web | Traceback (most recent call last):
mailman-web | File "/opt/mailman-web/manage.py", line 10, in
mailman-web | execute_from_command_line(sys.argv)
mailman-web | File "/usr/lib/python3.10/site-packages/django/core/management/init.py", line 446, in execute_from_command_line
mailman-web | utility.execute()
mailman-web | File "/usr/lib/python3.10/site-packages/django/core/management/init.py", line 386, in execute
mailman-web | settings.INSTALLED_APPS
mailman-web | File "/usr/lib/python3.10/site-packages/django/conf/init.py", line 87, in getattr
mailman-web | self._setup(name)
mailman-web | File "/usr/lib/python3.10/site-packages/django/conf/init.py", line 74, in _setup
mailman-web | self._wrapped = Settings(settings_module)
mailman-web | File "/usr/lib/python3.10/site-packages/django/conf/init.py", line 183, in init
mailman-web | mod = importlib.import_module(self.SETTINGS_MODULE)
mailman-web | File "/usr/lib/python3.10/importlib/init.py", line 126, in import_module
mailman-web | return _bootstrap._gcd_import(name[level:], package, level)
mailman-web | File "", line 1050, in _gcd_import
mailman-web | File "", line 1027, in _find_and_load
mailman-web | File "", line 1006, in _find_and_load_unlocked
mailman-web | File "", line 688, in _load_unlocked
mailman-web | File "", line 883, in exec_module
mailman-web | File "", line 241, in _call_with_frames_removed
mailman-web | File "/opt/mailman-web/settings.py", line 65, in
mailman-web | MAILMAN_ARCHIVER_FROM = (os.environ.get('MAILMAN_HOST_IP', gethostbyname(os.environ.get('MAILMAN_HOSTNAME', 'mailman-core'))),)
mailman-web | socket.gaierror: [Errno -2] Name does not resolve
mailman-web | python3: can't open file '/usr/lib/python3.10/site-packages/manage.py': [Errno 2] No such file or directory

I can see mailman hostname is exactly pointing to my server when checking with dig. Please guide further if i am missing anything.

New lists aren't recognized by postfix

When you create a new list and try to send an e-mail, postfix responses with User doesn't exist, because postfix won't deliver it to Mailman yet. The configuration at /opt/mailman/core/var/data/postfix_lmtp ist updated but not overtaken from postfix. The workaround is to restart postifx manually:

cd /opt/mailcow-dockerized
docker-compose restart postfix-mailcow

postfix warning do not list domain in BOTH virtual_mailbox_domains and relay_domains

We have Mailcow in use and now mailman added. We have followed the README.md. Basically the setup worked fine! However, in the Mailcow postfix logfile we see the following warning:

warning: do not list domain mydomain.com in BOTH virtual_mailbox_domains and relay_domains

We created the extra.cf as specified in the README.md. We did not make any other manual adjustments to postfix. However, the domain mydomain.com is created both in Mailcow for normal mailboxes and in Mailman for mailing lists. Is this setup supported?

Mailcow without proxy

Hi

I have achieved mailcow + mailman setup without the need of Apache reverse-proxy.
I instead use custom site on mailcow nginx, so certs are already handled by mailcow.

In /opt/mailcow-dockerized :

nano docker-compose.override.yml
services:
  postfix-mailcow:
    volumes:
      - /opt/mailman:/opt/mailman
    networks:
      - docker-mailman_mailman
  nginx-mailcow:
    volumes:
      - /opt/mailman:/opt/mailman
    networks:
      - docker-mailman_mailman

networks:
  docker-mailman_mailman:
    external: true
nano data/conf/nginx/mailman.conf
server {
  ssl_certificate /etc/ssl/mail/cert.pem;
  ssl_certificate_key /etc/ssl/mail/key.pem;
  ssl_protocols TLSv1.2 TLSv1.3;
  ssl_prefer_server_ciphers on;
  ssl_ciphers ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES128-GCM-SHA256>  ssl_ecdh_curve X25519:X448:secp384r1:secp256k1;
  ssl_session_cache shared:SSL:50m;
  ssl_session_timeout 1d;
  ssl_session_tickets off;
  index index.php index.html;
  client_max_body_size 0;
  root /web;
  include /etc/nginx/conf.d/listen_plain.active;
  include /etc/nginx/conf.d/listen_ssl.active;
  server_name lists.bapla.cloud;
  server_tokens off;

  location ^~ /.well-known/acme-challenge/ {
    allow all;
    default_type "text/plain";
  }

  if ($scheme = http) {
    return 301 https://$host$request_uri;
  }

  location /static/ {
    alias /opt/mailman/web/static/;
  }

  location /favicon.ico {
    alias /opt/mailman/web/static/hyperkitty/img/favicon.ico;
  }

  location / {
    uwsgi_pass mailman-web:8080;
    include uwsgi_params;
    client_max_body_size 0;
  }
}

All other thigs are same as tutorial. Could someone test and give some feedback about that ?

I find this way simpler, and works in more cases than proxying mailcow.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.