6746MAILQ-TIP: A Mailq Parsing Scripthttp://www.cow.net/mailqtip/MAILQ-TIP was written because in a high-capacity mailing site using Sendmail, typing mailq can be an exercise in frustration as you attempt to parse which hosts are the most problematic, why mail isn't travelling, and generally attempting to understand what's going on with sendmail. All the information is there, but you can't just figure out the big problems "at-a-glance" when thousands of queued messages are scrolling by.
Description
MAILQ-TIP is a perl script that uses the mailq command that comes as part of Sendmail and generates a pair of HTML report pages from the resultant information. It will also send a summary to the local screen as it does this.
Example Reports (Screenshots)
Here is an example of a typical report generated by MAILQ-TIP, using extremely falsified domains and assuming that your site gets a very significant amount of traffic. Low-traffic sites will be bored silly by the reports generated. If you get more than 1,000 mail messages in your queue on a typical day, this script might be of use to you; otherwise, it's not for youCGI and Perl > Scripts and Programs > Email Systems > Email UtilitiesOct 10, 2006
This one will refuse executable attachments in emails (uncompressed or zipped) during the SMTP connection. Also will check the text and header fields of the email according to the regexps you define. This filter protects our mailboxes about 100,000 times a day.
in sendmail.mc
INPUT_MAIL_FILTER(`tigra_mail', `S=inet:999@localhost, F=T, T=S:10s;R:10s;E:30s')dnl
in rc.local (update the path if needed)
perl /usr/scripts/tigra_mail_filter.pl > /dev/null &
Attachment: tigra_mail_filter.pl (8.61kb)
This file has been downloaded 461 times
With many people all utilizing the same mail resources, a method for integrating the learning of all users spam that wasn't flagged properly was needed. Searching google I found several good resources on setting up & using imap and sa-learn, however all (that i have found) have the processing happen assuming Spamassassin & the imap server were located on the same machine. If you have a secured network or a large network, you will most likely have your MTA/Virus/Spam functions on separate servers from the users mail servers.
To solve this problem I integrated perl Mail::IMAPClient into a quick script that works with sa-learn. This allows your spamassassin host to be any server and connect to one (or many, easily modified...hmm) central imap server(s) and process spam & ham classifications according to the users of those systems
MAILATTACH - Send email with an attachment from a command line
# Version 0.2
# Copyleft 2005 - Nathan E. Pralle
#
# DESCRIPTION: This utility allows you to send an email with a file
# attachment, MIME-encoded, from the command line. Handy when you
# are SSH-ed in somewhere and can't get to a visual email client.
#
# SYNTAX: mailattach to_address subject body file1 file2 file3...
The Autoresponder and Mailing List Manager AMLM Pro is a powerful autoresponder and mailing list management software that is reliable, powerful, easy to setup and affordable.
Joining mailing list will entitle you
to receive occasional emails informing you of news and
updates to the site and any special offers that may be
of interest to you.