FutureQuest, Inc. FutureQuest, Inc. FutureQuest, Inc.
Knowledgebase: Mailing Lists/ezmlm
Managing and Customizing Your ezmlm-idx Mailing List
Posted on 10 December 2003 08:54 AM

Many customizations can be made to your ezmlm-idx mailing lists by using the CNC Mailing Lists Manager. For example, the CNC makes it easy to modify the subject lines and body text of your administrative messages, add a subject prefix to all messages sent to the list, and add a footer ("trailer text") to outgoing messages.

Note: Legacy ("ezmlm") lists are no longer supported. If you have a legacy list, you can convert it to the newer ezmlm-idx software by using the CNC Mailing Lists Manager. (Legacy lists are marked with "legacy ezmlm"  when viewing the lists on the main CNC Mailing Lists page.)


The following guides explain how to work with your lists manually and are recommended only for Advanced users:


Adding, Removing, and Viewing Subscribers
--See http://service.FutureQuest.net/kba448


Banning Certain Addresses From Subscribing
To block all subscribe attempts from addresses, such as all subscribers using AOL addresses, you can add the following to the 'manager' file for that list. The manager file can be found at:

/big/dom/xDOMAIN/USERNAME/LISTNAME/manager
(where the italicized items above are changed to reflect your actual information)

Open the file named manager, either with the text editor in your CNC or a text editor on your local machine. Add the following as the very first line to that file:

| bouncesaying "AOL Addresses Not Permitted" sh -c 'echo "$SENDER" | grep -iq "@aol.com$"'

You can replace the @aol.com with the subscriber address pattern you would like to block and the AOL Addresses Not Permitted part to reflect the error message you would like have sent to the user.

Save your changes, and be sure to upload the file in ASCII (if the text editor in the CNC was not used).


Blocking Certain Addresses From Posting
To block all posts that are from certain addresses, you can add the following to the 'editor' file for that list. The editor file can be found at:

/big/dom/xDOMAIN/USERNAME/LISTNAME/editor
(where the italicized items above are changed to reflect your actual information)

Open the file named editor, either with the text editor in your CNC or a text editor on your local machine. Add the following as the very first line to that file:

| bouncesaying "Address not permitted to post" sh -c 'echo "$SENDER" | grep -iq "@aol.com$"'

You can replace the @aol.com with the subscriber address pattern you would like to block and the Address not permitted to post part to reflect the error message you would like have sent to the user.

Save your changes, and be sure to upload the file in ASCII (if the text editor in the CNC was not used).

Warning: If you make manual modifications to your mailing list files, your changes may be overwritten (ie lost) in the future if you edit the list properties using the CNC Mailing List Manager.


Blocking Executable Attachments
To help prevent users from sending executable attachments to an ezmlm mailing list, you can manually edit the 'editor' file for that list. The editor file can be found at:

/big/dom/xDOMAIN/USERNAME/LISTNAME/editor
(where the italicized items above are changed to reflect your actual information)

Open the file named editor, either with the text editor in your CNC or a text editor on your local machine. Add the following as the very first line to that file:

| bouncesaying "No executables" /usr/local/fqdeliver/tests/no-exe

You can replace the No executables part to reflect the error message you would like sent to the user.

Save your changes, and be sure to upload the file in ASCII (if the text editor in the CNC was not used).

The above example should bounce any messages sent to your list that have a file attachment where the file extension is any of the following:
.BAT, .CHM, .COM, .EXE, .HLP, .HTA, .LNK, .PIF, .REG, .SCR, .SHS, .VBE, .VBS, .WSF, .WSH

IMPORTANT: When testing, remember to send the email with the exe attachment from an email account that is not blocking .exe attachments itself. Otherwise, you will not receive the bounce. (As always, testing should only be done on a non-production list.)

Warning: If you make manual modifications to your mailing list files, your changes may be overwritten (ie lost) in the future if you edit the list properties using the CNC Mailing List Manager.


Changing Public List to Private
To turn a Public list into a Private list, delete the file named /public within the mailing list's directory (/big/dom/xDOMAIN/USERNAME/LISTNAME).

All existing users will remain subscribed, but new subscribers will have to be manually added via SSH (or through the CNC) - (see ezmlm-sub under Adding, Removing, or Viewing Subscribers).

Additionally, subscribers will not have access to the administrative email requests, such as the list-help@lists.domain.tld request nor the requests for retrieving messages from the list archives (for lists maintaining archives).


Modifying Owner Address
This modification will only affect the email address that receives messages sent to listname-owner@lists.yourdomain.tld. It will not change the List Owner (which is the email address messages must be "from" in order to post to Announcement lists).

By default, the List Owner will receive all messages sent to listname-owner@lists.yourdomain.tld.

To change this behavior and have the "owner" emails sent to a different address, you will need to modify the file named owner which is located within the mailing list's directory:
/big/dom/xDOMAIN/USERNAME/LISTNAME
(where the italicized items above are changed to reflect your actual information.)

You can make this change using the text editor in the CNC or by downloading the file and using your favorite text editor.

In the owner file, change ONLY the email address in the line that looks like:
&listowner@example.com

Replace the listowner@example.com part with the email address where you wish to have the "owner" email sent. Make sure that you only change that part and that you leave the & sign!

When finished, save and upload the revised file (if you didn't use the CNC). Note that you may want to make a backup of the original first, renaming it to something like owner.bak.

Now whenever a user sends a message to listname-owner@lists.yourdomain.tld, it will be forwarded automatically to your own email box. You may want to set up a special mailbox for this, for example:
listowner@yourdomain.tld


More Information
For additional information on manually working with your ezmlm-idx lists, please refer to the ezmlm-idx manual.