Blame
Date:
Wed Feb 1 05:00:29 2023 UTC
Message:
Daily backup
01
2023-01-22
jrmu
version=pmwiki-2.2.130 ordered=1 urlencoded=1
02
2023-01-22
jrmu
agent=w3m/0.5.3+git20210102
03
2023-01-22
jrmu
author=jrmu
04
2023-01-22
jrmu
charset=UTF-8
05
2023-01-22
jrmu
csum=
06
2023-01-22
jrmu
ctime=1625737290
07
2023-01-22
jrmu
host=38.87.162.8
08
2023-01-22
jrmu
name=Mlmmj.Install
09
2023-01-22
jrmu
rev=9
10
2023-01-22
jrmu
targets=Opensmtpd.Configure,Opensmtpd.Test,Crontab.Edit
11
2023-01-22
jrmu
text=(:title Installing mlmmj:)%0a%0a[[https://mlmmj.org/docs/readme|mlmmj]] (Mailing List Management Made Joyful) is a simple and lightweight mailing list manager. It is MIT-licensed and written in C. It works with OpenSMTPd and requires no daemons so it can run on very small servers.%0a%0a!! Before we begin%0a%0aYou will need to [[opensmtpd/configure|configure]] and [[opensmtpd/test|test OpenSMTPd]].%0a%0a!! Install%0a%0a[@%0a$ doas pkg_add mlmmj%0a@]%0a%0aYou can also [[http://mlmmj.org/downloads|compile from source]].%0a%0a!! Documentation %0a%0aConsult [[http://mlmmj.org/docs/readme|/usr/local/share/doc/mlmmj/README]]%0a%0aOpenSMTPd and mlmmj, by default, use the delimiter +. For instance, mlmmj-test+subscribe@example.com accepts request to subscribe to the mlmmj-test email list. No special configuration is required.%0a%0aTo create an initial mailing list, we first create a directory for mlmmj, then run mlmmj-make-ml:%0a%0a[@%0a$ doas mkdir /var/spool/mlmmj%0a$ doas chown _smtpd:_smtpd /var/spool/mlmmj/ %0a$ doas -u _smtpd mlmmj-make-ml%0aCreating Directorys below /var/spool/mlmmj. Use '-s spooldir' to change%0aWhat should the name of the Mailinglist be? [mlmmj-test] :%0aThe Domain for the List? [] : example.com%0aThe emailaddress of the list owner? [postmaster] : postmaster%0a@]%0a%0aReplace mlmmj-test and example.com with your real list name and domain.%0a%0aFor each mailing list, add an entry into /etc/mail/virtuals (see [[http://man.openbsd.org/aliases|aliases(5)]] and [[https://man.openbsd.org/smtpd.conf|smtpd.conf(5)]]):%0a%0a[@%0amlmmj-test: "|/usr/local/bin/mlmmj-receive -L /var/spool/mlmmj/mlmmj-test/"%0a@]%0a%0aReplace mlmmj-test with your real list name.%0a%0aCreate a log file:%0a%0a[@%0a$ doas touch /var/log/mlmmj.log%0a@]%0a%0aThen run this command once:%0a%0a[@%0a/usr/local/bin/mlmmj-maintd -F -d /var/spool/mlmmj/ >>/var/log/mlmmj.log 2>&1%0a@]%0a%0aThen add the task to your [[crontab/edit|crontab]]:%0a%0a[@%0a0 */2 * * * /usr/local/bin/mlmmj-maintd -F -d /var/spool/mlmmj/ >>/var/log/mlmmj.log 2>&1%0a@]%0a%0aNOTE: mlmmj sends email from 127.0.0.1, which should be added to /etc/mail/hosts; localhost is not enough.%0a%0a(:if false:)%0aNormally the mailing list is only handled on the server, all emails sent to it are for virtual users, or external users. If you have a need to send to a local user, meaning someone with a /home/bangcat directory, you need to modify /etc/mail/smtpd.conf to add a 'table locals file:/etc/mail/locals' and an action to forward email to local users like 'action "local" mbox alias %3clocals>'. The /etc/mail/locals should have a line for each local user that needs to get email.%0aThis is not required in most cases.%0a(:ifend:)%0a%0aTo sign up to the mailing list, simply email mlmmj-test+subscribe@example.com%0aReplace mlmmj-test with your list name, and example.com with your domain name.%0a%0aList files are located at /var/spool/mlmmj/%3cmailing-list-name>.%0a
12
2023-01-22
jrmu
time=1639919070
13
2023-01-22
jrmu
title=Installing mlmmj
14
2023-01-22
jrmu
author:1639919070=jrmu
15
2023-01-22
jrmu
diff:1639919070:1625760144:=45,57c45,46%0a%3c Create a log file:%0a%3c %0a%3c [@%0a%3c $ doas touch /var/log/mlmmj.log%0a%3c @]%0a%3c %0a%3c Then run this command once:%0a%3c %0a%3c [@%0a%3c /usr/local/bin/mlmmj-maintd -F -d /var/spool/mlmmj/ >>/var/log/mlmmj.log 2>&1%0a%3c @]%0a%3c %0a%3c Then add the task to your [[crontab/edit|crontab]]:%0a---%0a> Add a task to your [[crontab/edit|crontab]]:%0a> %0a
16
2023-01-22
jrmu
host:1639919070=38.87.162.8
17
2023-01-22
jrmu
author:1625760144=jrmu
18
2023-01-22
jrmu
diff:1625760144:1625760111:=56c56%0a%3c (:ifend:)%0a---%0a> (:endif:)%0a
19
2023-01-22
jrmu
host:1625760144=38.81.163.143
20
2023-01-22
jrmu
author:1625760111=jrmu
21
2023-01-22
jrmu
diff:1625760111:1625759627:=53d52%0a%3c (:if false:)%0a56d54%0a%3c (:endif:)%0a
22
2023-01-22
jrmu
host:1625760111=38.81.163.143
23
2023-01-22
jrmu
author:1625759627=jrmu
24
2023-01-22
jrmu
diff:1625759627:1625757424:=3,4c3,4%0a%3c [[https://mlmmj.org/docs/readme|mlmmj]] (Mailing List Management Made Joyful) is a simple and lightweight mailing list manager. It is MIT-licensed and written in C. It works with OpenSMTPd and requires no daemons so it can run on very small servers.%0a%3c %0a---%0a> [[https://mlmmj.org/docs/readme|mlmmj]] (Mailing List Management Made Joyful) is a simple and lightweight mailing list manager. It is MIT-licensed and written in C It works with OpenSMTPd and requires no daemons so it can run on very small servers.%0a> %0a21,22c21,23%0a%3c OpenSMTPd and mlmmj, by default, use the delimiter +. For instance, mlmmj-test+subscribe@example.com accepts request to subscribe to the mlmmj-test email list. No special configuration is required.%0a%3c %0a---%0a> OpenSMTPd and mlmmj both use the default delimiter + so nothing needs to be changed.%0a> For instance, mlmmj-test+subscribe@example.com accepts request to subscribe to the mlmmj-test email list.%0a> %0a45,46c46,47%0a%3c Add a task to your [[crontab/edit|crontab]]:%0a%3c %0a---%0a> Add a task to your crontab%0a> %0a51c52%0a%3c NOTE: mlmmj sends email from 127.0.0.1, which should be added to /etc/mail/hosts; localhost is not enough.%0a---%0a> The mlmmj tools send all email from 127.0.0.1, which needs to be explicitly added to the /etc/mail/hosts file, having 'localhost' present is not enough.%0a
25
2023-01-22
jrmu
host:1625759627=38.81.163.143
26
2023-01-22
jrmu
author:1625757424=jrmu
27
2023-01-22
jrmu
diff:1625757424:1625756432:=21c21,22%0a%3c OpenSMTPd and mlmmj both use the default delimiter + so nothing needs to be changed.%0a---%0a> OpenSMTPd and mlmmj both use the default delimiter +, so nothing needs to be changed.%0a> %0a46,47c47%0a%3c Add a task to your crontab%0a%3c %0a---%0a> A seperate line will be required for each mailing list. Once you have added all the mailing list aliases you need, make sure you run:%0a49c49%0a%3c 0 */2 * * * /usr/local/bin/mlmmj-maintd -F -d /var/spool/mlmmj/ >>/var/log/mlmmj.log 2>&1%0a---%0a> $ doas newaliases%0a51c51,56%0a%3c %0a---%0a> That will update the mail system without needing to restart it.%0a> %0a> The alias modification is required to send email to the mailing list handling software, however, there is still some other things that need to be done periodically to keep your mailing lists working smoothly. You need to add a task to your crontab that looks like:%0a> 0 */2 * * * /bin/sh -c "/usr/local/bin/mlmmj-maintd -F -d /var/spool/mlmmj >>/var/log/mlmmj.log 2>&1"%0a> The above is needed, and not like how the documentation shows it. If you don't add the '/bin/sh -c' you will get a weird 'file not found' error in your crontab logs. Use this form of the command so that mlmmj-maintd is run on all mailing lists running. The documentation shows a slightly different syntax that can be used for a specific mailing list, but that is not suggested.%0a> %0a57,60c62%0a%3c To sign up to the mailing list, simply email mlmmj-test+subscribe@example.com%0a%3c Replace mlmmj-test with your list name, and example.com with your domain name.%0a%3c %0a%3c List files are located at /var/spool/mlmmj/%3cmailing-list-name>.%0a---%0a> You are now done with the initial setup. You should start back on the official read me file at https://mlmmj.org/docs/readme to fine tune your setup. Although you can sign up people manually with mlmmj-sub, it is better to have the actual users send mail to the mailing list to do that themselves. All the files you need to tweak for an individual list will be located at /var/spool/mlmmj/%3cmailing-list-name>.%0a
28
2023-01-22
jrmu
host:1625757424=38.81.163.143
29
2023-01-22
jrmu
author:1625756432=jrmu
30
2023-01-22
jrmu
diff:1625756432:1625755780:=3,4c3,4%0a%3c [[https://mlmmj.org/docs/readme|mlmmj]] (Mailing List Management Made Joyful) is a simple and lightweight mailing list manager. It is MIT-licensed and written in C It works with OpenSMTPd and requires no daemons so it can run on very small servers.%0a%3c %0a---%0a> [[https://mlmmj.org/docs/readme|mlmmj]] (Mailing List Management Made Joyful) is a simple and lightweight mailing list manager. It is written in C and works with OpenSMTPd. It requires no daemons so it can run on very small servers. It's MIT licensed.%0a> %0a15,16d14%0a%3c You can also [[http://mlmmj.org/downloads|compile from source]].%0a%3c %0a25,26c23,24%0a%3c To create an initial mailing list, we first create a directory for mlmmj, then run mlmmj-make-ml:%0a%3c %0a---%0a> In order to start to get the mailing list up and running, we need to create an initial mailing list. The tool mlmmj-make-ml is used to start this process. Running this and all other modifications to your email list must keep _smptd as the owner of all files. %0a> This can be be done a few ways:%0a28,29d25%0a%3c $ doas mkdir /var/spool/mlmmj%0a%3c $ doas chown _smtpd:_smtpd /var/spool/mlmmj/ %0a31,34c27%0a%3c Creating Directorys below /var/spool/mlmmj. Use '-s spooldir' to change%0a%3c What should the name of the Mailinglist be? [mlmmj-test] :%0a%3c The Domain for the List? [] : example.com%0a%3c The emailaddress of the list owner? [postmaster] : postmaster%0a---%0a> $ doas -u _smtpd %3ccommand to edit files>%0a36,40c29%0a%3c %0a%3c Replace mlmmj-test and example.com with your real list name and domain.%0a%3c %0a%3c For each mailing list, add an entry into /etc/mail/virtuals (see [[http://man.openbsd.org/aliases|aliases(5)]] and [[https://man.openbsd.org/smtpd.conf|smtpd.conf(5)]]):%0a%3c %0a---%0a> You can make your modifications normally, then at the end when you are ready to test them run:%0a42c31%0a%3c mlmmj-test: "|/usr/local/bin/mlmmj-receive -L /var/spool/mlmmj/mlmmj-test/"%0a---%0a> $ doas chown -R _smtpd:_smtpd /var/spool/mlmmj%0a44,47c33,42%0a%3c %0a%3c Replace mlmmj-test with your real list name.%0a%3c %0a%3c A seperate line will be required for each mailing list. Once you have added all the mailing list aliases you need, make sure you run:%0a---%0a> You can run a shell as the _smtpd user; this should probably only be used when modifying files under your /var/spool/mlmmj/mlmmj-test directory for tweaking of headers and setup of each specific mailing list. %0a> %0a> To start, run mlmmj-make-ml and use all default suggestions. Make sure you keep _smtpd as the owner /var/spool/mlmmj directories as stated above.%0a> %0a> Now for each mailing list you want, you will need to add an entry into the /etc/mail/aliases file. For more information on this, refer to the opensmtp wiki page.%0a> %0a> Each mailing list needs to have email sent to the mlmmj-receive program to properly handle requests. This is accomplished by adding a command like the following into the /etc/mail/aliases file:%0a> [@%0a> mlmmj-test: "|/usr/local/bin/mlmmj-receive -L /var/spool/mlmmj/mlmmj-test/"%0a> @]%0a
31
2023-01-22
jrmu
host:1625756432=38.81.163.143
32
2023-01-22
jrmu
author:1625755780=jrmu
33
2023-01-22
jrmu
diff:1625755780:1625755002:=10a11%0a> There is nothing special required to get the core package installed in OpenBSD, simply:%0a15,21c16%0a%3c !! Documentation %0a%3c %0a%3c Consult [[http://mlmmj.org/docs/readme|/usr/local/share/doc/mlmmj/README]]%0a%3c %0a%3c OpenSMTPd and mlmmj both use the default delimiter +, so nothing needs to be changed.%0a%3c %0a%3c For instance, mlmmj-test+subscribe@example.com accepts request to subscribe to the mlmmj-test email list.%0a---%0a> The documentation says to make sure you setup a recipient delimiter, which is already at the default of +. This is what is used to separate commands from mailing list identification. For instance, mailto:mlmmj-test+subscribe@orange.ircnow.org is a request to subscribe to the mlmmj-test email list.%0a
34
2023-01-22
jrmu
host:1625755780=38.81.163.143
35
2023-01-22
jrmu
author:1625755002=jrmu
36
2023-01-22
jrmu
diff:1625755002:1625737290:=1,10c1%0a%3c (:title Installing mlmmj:)%0a%3c %0a%3c [[https://mlmmj.org/docs/readme|mlmmj]] (Mailing List Management Made Joyful) is a simple and lightweight mailing list manager. It is written in C and works with OpenSMTPd. It requires no daemons so it can run on very small servers. It's MIT licensed.%0a%3c %0a%3c !! Before we begin%0a%3c %0a%3c You will need to [[opensmtpd/configure|configure]] and [[opensmtpd/test|test OpenSMTPd]].%0a%3c %0a%3c !! Install%0a%3c %0a---%0a> This page will show you how to install the mlmmj mailing list package on OpenBSD. It covers mostly installation as maintenance and tweaking of how it will work is covered very well in the official documentation at https://mlmmj.org/docs/readme%0a
37
2023-01-22
jrmu
host:1625755002=38.81.163.143
38
2023-01-22
jrmu
author:1625737290=bangcat
39
2023-01-22
jrmu
diff:1625737290:1625737290:=1,44d0%0a%3c This page will show you how to install the mlmmj mailing list package on OpenBSD. It covers mostly installation as maintenance and tweaking of how it will work is covered very well in the official documentation at https://mlmmj.org/docs/readme%0a%3c There is nothing special required to get the core package installed in OpenBSD, simply:%0a%3c [@%0a%3c $ doas pkg_add mlmmj%0a%3c @]%0a%3c %0a%3c The documentation says to make sure you setup a recipient delimiter, which is already at the default of +. This is what is used to separate commands from mailing list identification. For instance, mailto:mlmmj-test+subscribe@orange.ircnow.org is a request to subscribe to the mlmmj-test email list.%0a%3c %0a%3c In order to start to get the mailing list up and running, we need to create an initial mailing list. The tool mlmmj-make-ml is used to start this process. Running this and all other modifications to your email list must keep _smptd as the owner of all files. %0a%3c This can be be done a few ways:%0a%3c [@%0a%3c $ doas -u _smtpd mlmmj-make-ml%0a%3c $ doas -u _smtpd %3ccommand to edit files>%0a%3c @]%0a%3c You can make your modifications normally, then at the end when you are ready to test them run:%0a%3c [@%0a%3c $ doas chown -R _smtpd:_smtpd /var/spool/mlmmj%0a%3c @]%0a%3c You can run a shell as the _smtpd user; this should probably only be used when modifying files under your /var/spool/mlmmj/mlmmj-test directory for tweaking of headers and setup of each specific mailing list. %0a%3c %0a%3c To start, run mlmmj-make-ml and use all default suggestions. Make sure you keep _smtpd as the owner /var/spool/mlmmj directories as stated above.%0a%3c %0a%3c Now for each mailing list you want, you will need to add an entry into the /etc/mail/aliases file. For more information on this, refer to the opensmtp wiki page.%0a%3c %0a%3c Each mailing list needs to have email sent to the mlmmj-receive program to properly handle requests. This is accomplished by adding a command like the following into the /etc/mail/aliases file:%0a%3c [@%0a%3c mlmmj-test: "|/usr/local/bin/mlmmj-receive -L /var/spool/mlmmj/mlmmj-test/"%0a%3c @]%0a%3c A seperate line will be required for each mailing list. Once you have added all the mailing list aliases you need, make sure you run:%0a%3c [@%0a%3c $ doas newaliases%0a%3c @]%0a%3c That will update the mail system without needing to restart it.%0a%3c %0a%3c The alias modification is required to send email to the mailing list handling software, however, there is still some other things that need to be done periodically to keep your mailing lists working smoothly. You need to add a task to your crontab that looks like:%0a%3c 0 */2 * * * /bin/sh -c "/usr/local/bin/mlmmj-maintd -F -d /var/spool/mlmmj >>/var/log/mlmmj.log 2>&1"%0a%3c The above is needed, and not like how the documentation shows it. If you don't add the '/bin/sh -c' you will get a weird 'file not found' error in your crontab logs. Use this form of the command so that mlmmj-maintd is run on all mailing lists running. The documentation shows a slightly different syntax that can be used for a specific mailing list, but that is not suggested.%0a%3c %0a%3c The mlmmj tools send all email from 127.0.0.1, which needs to be explicitly added to the /etc/mail/hosts file, having 'localhost' present is not enough.%0a%3c %0a%3c Normally the mailing list is only handled on the server, all emails sent to it are for virtual users, or external users. If you have a need to send to a local user, meaning someone with a /home/bangcat directory, you need to modify /etc/mail/smtpd.conf to add a 'table locals file:/etc/mail/locals' and an action to forward email to local users like 'action "local" mbox alias %3clocals>'. The /etc/mail/locals should have a line for each local user that needs to get email.%0a%3c This is not required in most cases.%0a%3c %0a%3c You are now done with the initial setup. You should start back on the official read me file at https://mlmmj.org/docs/readme to fine tune your setup. Although you can sign up people manually with mlmmj-sub, it is better to have the actual users send mail to the mailing list to do that themselves. All the files you need to tweak for an individual list will be located at /var/spool/mlmmj/%3cmailing-list-name>.%0a
40
2023-01-22
jrmu
host:1625737290=38.81.163.143
IRCNow