/usr/local/mailman/archives/private
dir. You'll find
that dir and a matching '.mbox' dir - rename both./usr/local/mailman/lists
, rename the appropriate
dir./etc/mail/aliases.mailman
, and change the list name
appropriately.service mailman restart
cd /usr/local/mailman/bin
./mmsitepass
[passwd]sendmail-restart
pkg install mailman
mm_cfg.py
as described below.cd /usr/local
/usr/local/mailman/
:tar -xvf mailman/archives
tar -xvf mailman/lists
/usr/local/mailman/Mailman/mm_cfg.py
SUBSCRIBE_FORM_SECRET="something"
Note that if you have any hard-coded subscribe pages, this will break them.
Traceback (most recent call last): File "./newlist", line 274, in <module> main() File "./newlist", line 232, in main mlist.Save() File "/usr/local/mailman/Mailman/MailList.py", line 617, in Save self.CheckHTMLArchiveDir() File "/usr/local/mailman/Mailman/Archiver/Archiver.py", line 241, in CheckHTMLArchiveDir makelink(privdir, pubdir) File "/usr/local/mailman/Mailman/Archiver/Archiver.py", line 49, in makelink os.symlink(old, new) OSError: [Errno 2] No such file or directoryTo make a long story short, my archives/public dir was missing.
cd /usr/local/mailman/archives
ls -l
mkdir public
cd ../bin
service mailman stop
./check_perms -f
service mailman start
pkg install mailman
env "PKG_PREFIX=/usr/local" sh \ /usr/local/mailman/bin/FreeBSD-post-install x POST-INSTALLJust copy-n-paste this line -- when I did it showed no problems, but I feel better knowing that indeed there were no problems...
/usr/local/mailman/Mailman/Defaults.py
for
default values and explanations. Do NOT change this file./usr/local/mailman/Mailman/mm_cfg.py
- these will
override the values in Defaults.py
.SMTP_MAX_RCPTS = 500
Oh, and don't forget service mailman restart
.
/usr/local/mailman/lists
/usr/local/mailman/archives
cd /usr/local/mailman/bin
./check_perms -f
(re-run until clean)service mailman start
; observe fixing dir
permissions. If so, do stop, then start, and keep doing this until
no errors reported at startup. (Should not be necessary if you
did check_perms
but I'm leaving it in for generic
use.)cd /usr/local/mailman/bin
./withlist -l -r fix_url
LIST_NAME -u
[new-domain.example.org]./list_lists
ls -l ../lists
cd /usr/local/mailman/lists
find . -type d -print | tr -d "./" | xargs -I '{}' ../bin/withlist -l -r fix_url '{}' -v -u
[your new url here]mailman.aliases
with my sendmail
configuration, but if you want to regenerate your
sendmail aliases
file, use the following:cd /usr/local/mailman/bin
./genaliases > mailman.aliases
README.SENDMAIL
and README.BSD
. You will
need to use --with-cgi-gid
.
Put all your aliases into /etc/mail/aliases.mailman
so it
can put it's mailman-specific alias db here. (You can't put it in the
mailman dir due to the group-writable dir which other parts of mailman
need -- sendmail disallows aliases in a group-writable dir.) You'll add
something like the following to your .mc file:
define(`ALIAS_FILE', `/etc/mail/aliases,/usr/local/majordomo/aliases.majordomo,/etc/mail/aliases.mailman')
Check /var/log/maillog
for errors.
Creating a new list
Go to your favorite shell:
cd /usr/local/mailman/bin
./newlist
Be sure to add the -owner alias of all lists to your 'mailman' list.
Be sure that you keep around your 'mailman' list -- mailman will croak without it, as it is used for the overarching admin password. Be sure to follow the following steps for this list on making it announcement only.
Announcement-only lists: