========================================================= mail to ISP sendmail.mc file: define(`SMART_HOST', `') MASQUERADE_AS(`') FEATURE(`allmasquerade') FEATURE(`masquerade_envelope') then generate the sendmail.cf file by executing the following as root: m4 /etc/sendmail.mc > /etc/sendmail.cf ========================================================= Exim moving mailboxes (/var/mail) to /var/mail/domain (1) Change your configuration so that if /var/mail/$local_part exists, it uses that; otherwise it uses /var/mail/$domain/$local_part. (This can be done with ${if exists ....} in the file name.) (2) Use exim_lock to move individual mailboxes by a command such as exim_lock mv /var/mail/xxx /var/mail/domain/xxx assuming that will do a rename. If the mailboxes are on different partitions, you will have to copy and then delete the old one, all under exim_lock. --------------------------- ## delivery attempted on frozen messages if 12 hours old auto_thaw = 12h ========================================================= Procmail :0 w: -Lists-/Linux/SVLUG-L/$LOCKEXT * ^Sender: *svlug-admin | rcvstore +-Lists-/Linux/SVLUG-L --------------------------- BOSE=off MAILDIR=$HOME/mail LOGFILE=$MAILDIR/.procmaillog LOGABSTRACT=all FROM=`formail -rt -xTo:` SPAMMER=`if grep -i '^From' 2>/dev/null | fgrep -i -f ${MAILDIR}/.SPAMMERS >/dev/null 2>/dev/null ; then echo yes ; else echo no ;fi` #------------------------------------------------------------------------------- # move spammers to SPAM #------------------------------------------------------------------------------- :0 H: * SPAMMER ?? yes SPAM #------------------------------------------------------------------------------- # remove email with .vbs attachements (only viruses) #------------------------------------------------------------------------------- :0 H: * .*name=.*\.vbs.* SPAM :0 B: * .*name=.*\.vbs.* SPAM #------------------------------------------------------------------------------- # remove dups #------------------------------------------------------------------------------- :0 Whc: .msgid.lock | formail -D 8192 .msgid.cache :0 a: SPAM my $HOME/mail/.SPAMMERS contains (amongst other): @arabia.com @fmric.or.jp @culpepper.com @desertmail.com @mail.com echo "svlug.org 550 I can't unsubscribe so its your problem now" >> /etc/mail/access ; makemap hash /etc/mail/access < /etc/mail/access