Script: Disable Guest Posting from all Mailing Lists

Articles and documents provided by support staff covering Mailtraq features and general operation.

Script: Disable Guest Posting from all Mailing Lists

Postby Elric Pedder » Fri Jul 19th, 2013 12:38am

This script will prevent anyone who is not a member of a mailing list from posting to that list for all mailing lists.

Code: Select all
function CheckList(list)
  if (list.ObjectType == 6) // Is "list" a mailing list?
    if (list.GuestAlias.Flags & 4) // can guests post?
      var flags = list.GuestAlias.Flags;
      Output.Write(list.Name + " : " + flags);
      flags &= ~4;
      Output.WriteLine(' ' + flags);
      list.GuestAlias.Flags = flags;

var list = Server.Mailslots;
for (var i = 0; i < list.Count; i++)
Mailtraq Development and Escalation Support
Novitraq Incorporated
User avatar
Elric Pedder
Mailtraq Escalation Support
Posts: 2675
Joined: Tue Nov 23rd, 2004 1:16pm
Location: Montreal, Canada

Return to Mailtraq Knowledgebase and FAQ

Who is online

Users browsing this forum: No registered users and 1 guest