Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Discussion options

I'm looking to integrate a simple mail list manager such as https://github.com/wansing/ulist or https://github.com/bartobri/listfix

I see they tend to use sendmail to deliver new emails to the list - this means that outgoing emails on the list are not DKIM signed.

Is there a way to enable DKIM (via rspamd) signing when sendmail creates a new email, or is there an alternative to sendmail which does hook into rspamd ?

I'm testing sendmail with something like -

echo 'Subject: Test from sendmail
From: root@domain.co.uk
To: testuser@gmail.com

This is a test, please ignore' | docker exec -i mailserver sendmail -f root@domain.co.uk testuser@gmail.com

(resulting email arrives but isn't signed with DKIM)

Thanks

You must be logged in to vote

Replies: 2 comments

Comment options

Oh, I wonder if I need

non_smtpd_milters = $rspamd_milter
You must be logged in to vote
0 replies
Comment options

This is what I did to integrate the ulist list manager into docker-mailserver

Build ulist -

cd docker-data/dms/config
mkdir maillist
cd maillist
git clone https://github.com/wansing/ulist.git
cd ulist
go build ./cmd/...

Update main.cf -

cd docker-data/dms/config
add to postfix-main.cf
  non_smtpd_milters = $rspamd_milter
  transport_maps = socketmap:unix:/run/ulist/socketmap.sock:name

Update user-patches.sh -

cd docker-data/dms/config
add to user-patches.sh
  mkdir -p /run/ulist
  echo '[program:ulist]
  startsecs=0
  stopwaitsecs=55
  autostart=true
  autorestart=true
  stdout_logfile=/var/log/mail/ulist.log
  stderr_logfile=/var/log/mail/ulist.log
  command=/tmp/docker-mailserver/maillist/ulist/ulist -http 0.0.0.0:8080 -weburl https://PUBLIC_DOMAIN -superadmin ADMIN_EMAIL -starttls 587
  environment=STATE_DIRECTORY=/var/mail-state/ulist
  ' > /etc/supervisor/conf.d/ulist.conf
  supervisorctl reload

Where PUBLIC_DOMAIN is url of publically accessible list management url and ADMIN_EMAIL is the super admin email address (easiest to use an already configured email account & password)

Expose list admin port

add to compose.yaml an extra port

  services:
    mailserver:
      ...
      ports:
        ...
        - "9080:8080"  # ulist admin

Ensure your webserver PUBLIC_DOMAIN is forwarded to this host port 9080

Restart docker-mailserver

Use ADMIN_EMAIL with smtp password to log into PUBLIC_DOMAIN and create an email list.

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
🙏
Q&A
Labels
None yet
1 participant
Morty Proxy This is a proxified and sanitized view of the page, visit original site.