Re: Archiving
"Robert Isaac" <[email protected]>
| Newsgroups | gmane.mail.majordomo.general |
|---|---|
| Organization | Volvo Owners Club |
| Message-ID | <[email protected]> |
I think I've got my head around this now you have clarified a few things. I started with the Webmin module for Majordomo and the Webmin manual is a bit misleading about the name of the list you mail to. In the section 'Creating a Mailing List' it states: "The name forms the part of the list's email address before the @, so the resulting address will be something like [email protected]." This is where I got mislead about the address you send the email to as 'test-list@..' and should now be 'test@..'. The archiving and digest are now working , as is the Reply To: These are the aliases I now have set up, hopefully they are all OK - lists-owner: volvo lists: "|/usr/local/majordomo/wrapper majordomo" majordomo: "|/usr/local/majordomo/wrapper majordomo" owner-majordomo: lists-owner majordomo-owner: lists-owner confirm: "|/usr/local/majordomo/wrapper majordomo -a" owner-test: test-owner test: "|/usr/local/majordomo/wrapper resend -l test test-outgoing,nobody" test-owner: [email protected], test-request: "|/usr/local/majordomo/wrapper majordomo -l test" test-approval: [email protected] test-outgoing: :include:/usr/local/majordomo/lists/test,test-archiver,test-digestify test-archiver: "|/usr/local/majordomo/wrapper archive2.pl -f /usr/local/majordomo/archives/test/test -a -M" test-digestify: "|/usr/local/majordomo/wrapper digest -r -C -l test-digest test-digest-outgoing" owner-test-digest: test-owner test-digest: test, test-digest-owner: test-owner test-digest-request: "|/usr/local/majordomo/wrapper majordomo -l test-digest" test-digest-approval: test-approval test-digest-outgoing: :include:/usr/local/majordomo/lists/test-digest,nobody This list has been copied for the other lists replacing 'test' with the list name. Thanks. Bob ___________________________________________________ Robert Isaac Director and Web Administrator Volvo Owners Club www.volvoclub.org.uk Please include all previous text with reply All messages are scanned with an antivirus scanner. -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Daniel Liston Sent: 05 September 2005 22:33 To: [email protected] Cc: [email protected] Subject: Re: Archiving Hi Robert, Let me see if I can help clarify anything for you; Robert Isaac wrote: > I'm getting confused now, when sending to the list named 'test' the > email goes to test-list@... Correct? Not test@... No! Mail to [email protected] goes to the test: alias which expands into test-outgoing, not test-list. You can remove test-list from your aliases file. > These are in /etc/aliases, is there anything missing or wrong: > > test-list: :include:/usr/local/majordomo/lists/test Get rid of test-list. Anyone that writes to this address bypasses majordomo processing completely. > owner-test: test-owner Anyone in the world that writes to owner-test (including sendmail errors) will be directed to test-owner. No syntactical or logical errors here. > test: "|/usr/local/majordomo/wrapper resend -l test test-outgoing,nobody" This is where you use majordomo's resend script to examine mail destined to [email protected], enforce rules and policies from the test.config file, and redirect successful output to the test-outoing alias and the nobody alias. Majordomo is pretty useless without this one. > test-owner: [email protected], This can be written do directly from the world, or be redirected from your owner-test alias. In turn, this alias redirects mail to a real mailbox and the comma on the end prevents sendmail from advertising the alias expansion in the message headers. This line is OK too. > test-request: "|/usr/local/majordomo/wrapper majordomo -l test" This alias (or the -request part of it) is required by RFC2142 for every list your domain operates. The redirection portion of it can be a mailbox, or a program, as above. This program acts automatically to add/remove a user from your "test" list (with the proper message body content of course). > test-approval: [email protected] This alias is used for closed or moderated lists. This is also the default address majordomo uses to send notifications unless otherwise defined in your test.config file. Any human or program can send mail to this alias and it will be redirected to the mailbox you have defined. > test-outgoing: > :include:/usr/local/majordomo/lists/test,test-archiver,test-digestify Here is where life gets interesting. Mail can be sent to this alias by any user or program on the internet, as well as redirected to by the test list alias itself. Messages arriving at this alias are redistributed to each address (one per line) of the included file called test, and copies of the message are also redirected to the test-archiver and test-digestify aliases. Sendmail users can circumvent some abuse of this address by setting up a blocking mechanism in their virtusertable. > test-archiver: "|/usr/local/majordomo/wrapper archive2.pl -f > /usr/local/majordomo/archives/test/test -a -M" This is where the archiving process actually takes place. This alias has dependencies on $filedir and $filedir_suffix settings in your majordomo.cf file. The directory that stores the archive must already exist AND have the proper ownership and permissions for archive2.pl to use it. > test-digestify: "|/usr/local/majordomo/wrapper digest -r -C -l > test-digest test-digest-outgoing" This alias calls the digest program, which has a dependency on $digest_work_dir in your majordomo.cf file, it's existance, ownership, and permissions, and the variables in your test.config that start with the word digest_*. IF the conditions from your test.config file are met, the digest is created from the messages collected in the $digest_work_dir/<listname> and distributed to your test-digest-outgoing alias. > owner-test-digest: test-owner This alias has the same properties as the owner-test alias. > test-digest: test, This alias catches any mail accidently sent directly to the digest and redirects it to the primary list name for proper functionality. > test-digest-owner: test-owner Same functionality and properties as test-owner. > test-digest-request: "|/usr/local/majordomo/wrapper majordomo -l > test-digest" Allows users to sub/unsub from your digest, similar to test-request. > test-digest-approval: test-approval Same as test-approval alias. > test-digest-outgoing: > :include:/usr/local/majordomo/lists/test-digest,nobody" This alias is only used if/when conditions defined in test.config are met regarding bytes, lines, or age of the oldest message in the $digest_work_dir/<listname> The things to check if archiving is not working, since the aliases appear to be in order, are the locations defined match majordomo.cf and the ownership and permissions allow majordomo to use the defined locations/directories. Dan Liston