Procedure to send mass mailings using spamit 1) Need from customer: message, reply-to, from and list of addressess 2) Go into directory /export/home/kinscoe/mailruns and make a new subdirectory (i.e. campaign or use a date) 3) All loggins and reports will go in this new directory (i.e. /export/home/kinscoe/mailruns/campaign) 4) Create the file tpcmsg.txt in the subdirectory with the message you want to send. 5) Copy /usr/local/admin/spamit.pl and update the local copy to suite to taste: $ cp /usr/local/admin/spamit.pl . $from = "customersupport\@foo.com"; $replyto = "customersupport\@foo.com"; $title = "The Mega Corporation"; $subj = "Reminder"; 6) Create the file test.addresses in this directory with the list of addresses you wish to send to. Modify spamit.sh to use test.addresses and not real.addresses. 7) Now test it: $ ./spamit.pl < test.addresses >> testrun.log 8) Review the run log $ cat run.log SpamIt.pl: vers 1.1 starting at Tue Dec 3 14:53:46 2002 SpamIt.pl: vers 1.1 starting at Tue Dec 3 14:55:24 2002 SpamIt complete. 6 messages sent (0 rejected email address out of 6 total). Tue Dec 3 14:56:28 2002 elapsed time: user: 0.87 secs, system: 0.2 secs 9) Review the mailqueue: $ mailq /var/spool/mqueue is empty 10) Send the emails Create file in the local mailrun directory real.addresses with the address given to you by the client. Append the test.addresses to the real.addresses as well so they get a copy. $ cat test.addresses >> real.addresses $ tail -10 real.addresses and make sure they are there at the end of the file! Create local spamit.sh script in mailrun subdirectory: cd /export/home/kinscoe/mailruns/ ./spamit.pl < real.addresses >> run.log Now execute it as an "at" job so you don't have to stay logged in: $ at -c -f /export/home/kinscoe/mailruns//spamit.sh now Output should be similiar to: commands will be executed using /bin/csh job 1041962387.a at Tue Jan 7 12:59:47 2003 Repeat steps 6-8 above while it is running. The run.log file will have any badly formatted addresses. You can monitor the jobs progress: $ tail -f /export/home/kinscoe/mailruns//spamit.log $ tail -f /export/home/kinscoe/mailruns//run.log To find the atjob (as root): # tail /var/cron/log > CMD: 1039649136.a > kinscoe 7605 a Wed Dec 11 18:25:37 2002 The spool file will be in /var/spool/cron/atjobs Example for above: /var/spool/cron/atjobs/1039649136.a 11) Now the final step: The bounce report: First copy off the mbox for kinscoe for later anaylsis (5 days later for soft bounces): $ cp /var/mail/kinscoe kinscoe.mbox Now zero out the mbox: $ cp /dev/null /var/mail/kinscoe As time permits generate the bounce report: $ cp kinscoe.mbox | /usr/local/admin/whybounced.sh > bounces_for_DDMMYY.txt