[Mailman] Mail discussion and e-newsletter lists

Hi,

my first wrong installation broke apt chain. Mailman package seems to work. I’m trying to fix my stupid actions .

Problems fixed now, Mailman installed. :slight_smile:

Thanks for the attention. :slight_smile:

Yes, you can git clone the repo and install from local files. If you really want to investigate and run the install multiple time, you might want to use ynh-dev to have a virtual machine with which you can have snapshots.

But according to your last message maybe you’re okay with it now :stuck_out_tongue:

Hello,

I’m back with my mailman installation. :slight_smile:

Posting to lists is now working but configurations in postfix and mailman where missing. I’ll give some details later.

I still have a problem. Access to mailing lists archives is missing. Adding this in mailman conf for nginx does not solve the problem.
location /pipermail {
alias /var/lib/mailman/archives/public;
autoindex on;
}

When I use the mailing list archive link, I’m back to the main Yunohost page.

Any idea ?

Cheerrs

Hey !

Thanks for keeping to look into that :stuck_out_tongue:

For pipermail, I think you also need to tell SSOwat that the page is not protected. I think you probably need to add “pipermail” at the end of this line in the install script : https://github.com/alexAubin/mailman_ynh/blob/master/scripts/install#L117 (though I didnt actually tried)

You can also manually edit the app settings in /etc/yunohost/apps/mailman (the unprotected_regex) and regen the ssowat conf with yunohost app ssowatconf if you want to avoid the full reinstallation.

Thanks for your quick answer.

I had a look at those regex rules, but the app is not public. Only YunoHost users should access Mailman and its archives. So a second path should be added to settings.yml. I can’t find how to do that.

If I modify ssowat.conf.json, pipermail access could be broken with other installations or upgrades I suppose.

Hello,

Since Sympa is definitely not lightweight enough to be suitable for small hardware or small VPS, I spent some time this weekend to rework the Mailman (2.1) app, such that it should now be usable for the mid/long-term :

  • No need anymore for a special prefix like lists.thedomain.tld (though you can still create a special domain lists.yourdomain.tld manually in YunoHost and install the app for this domain)
  • No more dirty hack of postfix conf, now uses a proper hook during postfix’s conf regen
  • Improved page for listinfo based on https://github.com/quimgil/mailman-templates/
  • Added some dirty hack to have a simpler footer instead of the ugly python/gnu/debian images…
  • Added backup/restore script
  • Cleaned the manifest and added missing fields
  • Cleaned install//remove scripts (formating + now uses standard helpers)

It would be nice if some people could test this on their machine before I flag the app as ‘working’ :wink:

2 Likes

Bonjour @Aleks ,

Merci pour ce travail :slight_smile:

Je viens juste de tester l’installation, l’inscription et désinscription à une liste publique, et procédé à la désinstallation.
Contexte : YunoHost 2.7.* installé sur base Debian 8 Jessie à jour sur un VPS avec redirection vers mon_serveur.tld par IP et non DNS.

  • Installation : pas de problème.
  • le DNS n’est pas bien configuré, il est impossible d’utiliser la fonction de confirmation d’inscription ou de désinscription par réponse au mail. Cependant le lien figurant dans le corps du message fonctionne pour ces deux opérations.
  • Désinstallation : pas de problème.

EDIT : Il faudrait voir comment franciser ces messages :wink: Peut-être puis-je aider ?


Hi @Aleks,

Thanks for this work :slight_smile:

I just tested the installation, subscription and unsubscription to a public list, and proceeded to uninstall.
Context: YunoHost 2.7. * Installed on Debian 8 Jessie updated on a VPS redirection to my_server.tld via IP not by DNS.

  • Installation: no problem.
  • If the DNS is not configured correctly, you can not use the un/subscription confirmation function by replying to the mail. However, the link in the body of the message works for both of these operations.
  • Uninstall: no problem.

EDIT: You should see how to Frenchify these messages :wink: May i could try to help ?

ppr

1 Like

Hey,

thanks a lot @ppr for the quick feedback :wink:

Not sure to understand the bullet point about DNS (are you talking about the listname-subscribe@domain.tld feature ?)

Regarding the internationalization, you are surely welcome to propose translations for the manifest :wink:

@Aleks ,

The Bullet point about DNS is that my k9-mail client on my Android doesn’t sent the mail’s reply because of bad configuration.
I’ll try from webmail Rainloop in order to test it again.
I think i should, one day, buy a domaine name and configure DNS well.

ppr

p.s. : Désolé pour mon anglais perfectible.

1 Like

@Aleks ,

I think i’ve found the issue with DNS.
It seems to appear that a minima an alias (user ?) have to be created in the script installer like that

mailman-request@DOMAIN.TLD

At this moment Google is more verbose than my K-9 mail Android client :

Réponse du serveur distant :
550 5.1.1 mailman-request@domain.tld: Recipient address rejected: User unknown in virtual mailbox table

Final-Recipient: rfc822; mailman-request@domain.tld
Action: failed
Status: 5.1.1
Remote-MTA: dns; domain.tld. (IP.of.my.server, the server for the domain domaine.tld.)
Diagnostic-Code: smtp; 550 5.1.1 mailman-request@domain.tld: Recipient address rejected: User unknown in virtual mailbox table
Last-Attempt-Date: Mon, 16 Oct 2017 12:18:31 -0700 (PDT)

ppr

Uh okay ? To me it doesn’t seem related to DNS but more to aliases …

What exactly led you to send an email to mailman-request@domain.tld ?

@Aleks ,

Have to add alias :

mailman-request@domain.tld
mailman-owner@domain.tld

Don’t fotget to remove then in the unistall script :wink:

ppr

Ok but… What led you to be willing to send emails to mailman-request@domain.tld :confused:

@Aleks ,

It’s when you subscribe to a list, you had to confirm your mail by replying message to mailman-request@domain.tld or by clicking on the link in the message.
It’s the same for unsubscribe.

ppr

Oh okay, sorry about that !

But in fact the alias already exist and should be working … c.f.

$ cat /var/lib/mailman/data/virtual-mailman | grep "request"
mailman-request@yolo.test      mailman-request@localhost

$ cat /var/lib/mailman/data/aliases | grep "request"
mailman-request:     "|/var/lib/mailman/mail/mailman request mailman"

So not sure why that doesn’t work, but that should be investigated :wink:

Hello,

Thank you soo much for this app!

Success on Yunohost 2.7.2 on Olimex Lime1 (arm) board :tada:

I’ve installed, subscribed, sent and received a mail, but I did not tried to remove yet.

On a VPS the mailman was installed successfully, (also on 2.7.2 on a Debian 8.9).

I was able to subscribe, receive the activation link and activate my registration to the list. But sending an email to the default mailman@domain.tld returned…

550 5.1.1 mailman@computhings.be: Recipient address rejected: User unknown in virtual mailbox table;

So I removed the app in the idea of installing it again (as a good noob). The removal was successful but I cannot install mailman anymore.

Warning: ./install: line 78: /var/lib/mailman/bin/mmsitepass: No such file or directory
Warning: !!
Warning: mailman’s script has encountered an error. Its execution was cancelled.
Warning: !!
Warning:
Warning: /var/lib/mailman wasn’t deleted because it doesn’t exist.
Warning: /usr/share/yunohost/hooks/conf_regen/98-postfix_mailman wasn’t deleted because it doesn’t exist.
Warning: /etc/nginx/conf.d/computhings.be.d/mailman.conf wasn’t deleted because it doesn’t exist.
Warning: The configuration file ‘/etc/postfix/main.cf’ has been manually modified and will not be updated
Success! The SSOwat configuration has been generated
Error: Installation failed

I do not know where to look (install log, etc) so if you need more info, just ask and I’ll try to provide it.

Eh okay that sounds weird …

Can you try running apt-get remove mailman --purge and try again ?

It removed mailman :mask: :thumbsup:

And I was able to install (for the second time on the same machine), and now I’ll test if the mailman@computhings.be address will work his time.

@Aleks , @tierce ,

I’ve created aliases manually on YunoHost admin’s panel for the user and domain i’ve install mailman on my instance.

ppr