EzMLM Commands

From QmailToaster
Revision as of 09:17, 4 April 2024 by Ebroch (talk | contribs)
Jump to navigation Jump to search

Back

1. Create a mailing list
  A. Create domain
     1) # /home/vpopmail/bin/vadddomain mydomain.com 'password'
  B. Create ezmlm mailling list w/features ezmlm flags
       Flags: -5 List owner
       Flags: -Afpqut (No archive, Subject prefix, Public, Service requests, List members only, Trailer)
     1) # ezmlm-make -5 postmaster@mydomain.com -Afpqut \
                        /home/vpopmail/domains/mydomain.com/mydomain-list \
                        /home/vpopmail/domains/mydomain.com/.qmail-mydomain-list \
                        mydomain-list mydomain.com
     2) # chown -R vpopmail:vchkpw /home/vpopmail/domains/mydomain.com/mydomain-list
     3) # echo "Reply-To: <#l#>@<#h#>" >> /home/vpopmail/domains/mydomain.com/mydomain-list/headeradd
2. Remove a mailing list
  A. # rm -rf /home/vpopmail/domains/mydomain.com/mydomain-list \
              /home/vpopmail/domains/mydomain.com/.qmail-mydomain-list*
3. Change mailing list features
  A. Remove subject prefix
     1) # ezmlm-make -+ -F /home/vpopmail/domains/mydomain.com/mydomain-list \
                           /home/vpopmail/domains/mydomain.com/.qmail-mydomain-list \
                           mydomain-list mydomain.com
  B. Add subject prefix
     1) # ezmlm-make -+ -f /home/vpopmail/domains/mydomain.com/mydomain-list \
                           /home/vpopmail/domains/mydomain.com/.qmail-mydomain-list \
                           mydomain-list mydomain.com
  C. More to come...
4. Allow mailing list to be archived publically
  A. For 'www.mail-archive.com' add 'archive@mail-archive.com' to your lists' subscribers
     1) Remove X-No-Archive flag
       a) # vi /home/vpopmail/domains/mydomain.com/mydomain-list/headeradd
         1) Remove line: X-No-Archive: yes
     2) Access www.mail-archive.com mailing list
       a) Open browser and browse to https://www.mail-archive.com/mydomain-list@mydomain.com/
5. Add users to a mailing list
  A. ezmlm-sub /home/vpopmail/domains/mydomain.com/mydomain-list < list.txt (list.txt is a file one email address per line)
  B. ezmlm-sub /home/vpopmail/domains/mydomain.com/mydomain-list user@domain.tld user2@domain.tld ...
6. Remove users from mailing list
  A. ezmlm-unsub /home/vpopmail/domains/mydomain.com/mydomain-list user@domain.tld user2@domain.tld ...
7. List/Backup users in mailing list
  A. ezmlm-list /home/vpopmail/domains/mydomain.com/mydomain-list <stdout>
  B. ezmlm-list /home/vpopmail/domains/mydomain.com/mydomain-list > mydomain-list.txt