# ******************************* # MANDATORY CONFIGURATION SECTION # ******************************* # You *MUST* customize these values to your site # Your user name [used with their email addresses when returning mail] $your_name="Your Name"; # Your email address [optional] # If you include this, your email address will be signed at the bottom # of the rejection letter. This should allow system administrators to respond # to you but stop autoresponders. If you do not wish your email address # to be signed, you may comment this out. Since the mail that was sent to # you is rejected, your email address is probably contained in the headers. # Future versions of the script will allow for increased anonyminity $your_email='your@email_address'; # Full path to your mailbox $mailbox='/var/mail/ian'; # List of machines whose mail ports you will use # [if commented out, it should be determined from hostname] # Note: This should just be your normal mail server. However, if you want to make # it difficult to trace where the mail came from you can use someone elses. Some # SMTP ports will identify the IP address of the machine connecting to them # and will ignore the value in $hello_from. If your mail server does this, then # consider using the mail spammers tactics against them and try a machine like # that doesn't check. You can find out if it checks by examining the response # headers from a test spam message (using the subject). @smtp_hosts=("axxis.com"); # The name of the machine this script is running on (don't fake this) # [if commented out, it should be determined from the 'hostname' command] #$hostname="axxis.com"; # ******************************* # OPTIONAL CONFIUGRATION SECTION # ******************************* # You really ought to configure some of these options, especially # the exception, ignore, and spammers lists. # File to log activity to: $logfile="$home_dir/mail_log"; # Directory to log junk mail to $junkdir="$home_dir/junkmail"; # File to write mail to in case there is a problem with your mailbox $mail_error="$home_dir/mail_error"; # This file contains a listing of email addresses (one per line). Any email # address matching these patterns are let through. Make sure that this file # exists -- even if it is just empty $exceptionfile="$home_dir/from_exceptions"; # This file contains a listing of email addresses (one per line). Any email # address matching these patterns are let through. Make sure that this file # exists -- even if it is just empty $to_exceptionfile="$home_dir/to_exceptions"; # This file contains a listing of mail programs that are commonly used for # junk mail (one per line). $junkmailerfile="$home_dir/junkmailers"; # This file contains a listing of sites that should be rejected (one per line) # If any of these sites are detected in the mail headers the mail is tagged as spam. # Make sure that this file exists -- even if it is just empty (of course this program # wouldn't be that useful in that case).... # # Note: these are actually to be used as regular expressions.. I haven't # tested getting fancy with these, but you should be able to use wildcards.. $spammerfile="$home_dir/spam_sites"; # This file contains a list of words in the subject that will result in a # mail message being tagged as spam $spamsubjectfile="$home_dir/spam_subjects"; # Email addresses that are identified as spam that match # these patterns are removed with no email response # I like to leave my mail host in the ignores just so a rejected mail message # Doesn't trigger a response to my postmaster @ignores=('postmaster@','localhost'); # From what machine should this mail appear to have been send from # [if commented out, it will default to $hostname] # This creates an email header like: (if smtp1.interramp.com is your smtp_host1) # Received: from no_more_spam.com by smtp1.interramp.com (8.6.12/SMI-4.1.3-PSI-irsmtp) # Note: if you fake the name, it could cause problems depending on who you use # as a SMTP port. Use a test spam message (using the subject) to make sure your # fake name is acceptable. Please refrain from using names like "fuckyou.com" # or legitamate names of Internet sites. $hello_from="no_more_spam.com"; # Uncomment this line if you do not want the script to send mail to [sender]@site # This is useful for testing, or if you just don't want to raise a stink #$no_sender=1; # Subject of rejected letters $rejected_subject="REJECTED MAIL"; # Email with this subject are automatic junk (use this for testing) # Note: this will automatically set $no_post=1; $autoreject_subject="THIS IS A SPAM MAIL TEST"; # Email with this subject are always let through @okay_subjects=("I AM NOT SPAM","THIS IS ANOTHER OKAY SUBJECT"); # Forward mail # If set to 0, do not forward mail [DEFAULT] # If set to 1, then forward only okay mail to "$forward_mail_to" # If set to 2, then forward all mail to "$forward_mail_to" adding [ ] $forward_mail=0; # What email address should email be forwarded to? $forward_mail_to='your@email_address'; # This is added at the bottom of the headers followed by # ($explanation) -- use this to sort forwarded junk mail client side $forwarded_junk_mail_tag="X-JUNK:"; # If this is set to "1", addresses of the form 123432@somewhere.com # are tagged as spam. $check_num_only_addresses=1;