# mailman server mailman.rc.usf.edu /var/lib/mailman = holds message archives, and lists /etc/mailman = contains aliases file, which controls list admin info, etc. ** if changes are made to aliases, run genaliases afterwards /usr/lib/mailman/bin = contains mailman list binaries (rmlist, list_admins CASE SENSITIVE)\ /var/log/mailman = mailman logs (list posts, etc.) # Verbose debugging options * change smtpd to smtpd -v in master.cf * use debug_peer_level = n (default 2) and debug_peer_list = IP in main.cf # systemd based systems may not write to /var/log/maillog * set maillog_file = /path/to/log # Access non-public mailman list http://mailman.it.usf.edu/mailman/listinfo/LIST_NAME (obtain from bin/list_lists) # Postfix stuff PID file is located in /var/spool/postfix/pid/master.pid # Main queues Incoming/Active: Most common queues. Incoming and outgoing messages live here until they are delivered/received. Deferred: If messages can't be delivered, they arrive here for the deferred time frame. Hold: Queue where messages live indefinitely; no attempt is made to deliver, and there is no TTL. Maildrop: prepares messages first, then messages go to active # USF queues active bounce corrupt defer deferred flush hold incoming private public saved trace # Terms flushing - attempts to deliver all messages in queue, not remove them! *: The message is in the active queue, i.e. the message is selected for delivery. !: The message is in the hold queue. # Queue management # Queues: hold incoming active deferred # use ALL (in caps) to remove ALL messages in specified queue mailq: lists the mail queue and all its gory details mailq |awk '{print $1}'|egrep '^[A-Z0-9]'|egrep -v '@': get all message ids in queue postcat -q MESSAGEID|QUEUEID: view message in queue postqueue -f : # Get specific messageID's for sender: mailq|grep sender_address|awk '{print($1);}'|awk -F! '{print$1}' # Bulk queue operations on messageID's mailq|grep sender|awk '{print($1);}'|awk -F! '{print $1}'|postsuper OPTION - ###### dash signifies all messages matched from stdin # Rebuild /etc/postfix/virtual postmap /etc/postfix/virtual postsuper -d queueID: deletes messages in specified queue postsuper -d ALL hold: removes all messages in HOLD queue postsuper -h ID: moves messages to Hold queue postsuper -r: requeues messages; requeues messages in Hold to maildrop and then to incoming/active postuper -H ID: removes message from hold queue * DO NOT INCLUDE !* qshape -s queueID |head: list queue statistics for SENDER DOMAIN qshape queueID |head: list queue statistics for recipient domains postqueue -f: flush queue postfix reload: updates postfix config postaliases /etc/aliases: updates the postfix aliases hash postconf -d: list all main.cf DEFAULT configuration values postconf -n: list all MODIFIED main.cf configuration values postconf -e value: edits main.cf and reloads postfix # Convert to Maildir 1.) add home_mailbox = Maildir/ within main.cf 2.) create .procmailrc within ~userhome with "DEFAULT=$HOME/Maildir/"