![]() |
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX for Advanced & Expert Users Expert-to-Expert. Learn advanced UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Sendmail relay problem | soliberus | SUN Solaris | 4 | 03-06-2008 05:03 AM |
| sendmail + procmail + spamassassin | sx3v1l_1n51de | SUN Solaris | 1 | 05-20-2005 02:55 PM |
| local mail relay problem in Sendmail | RajaRC | Linux | 0 | 09-13-2004 04:53 AM |
| Sendmail open relay | skotapal | UNIX for Dummies Questions & Answers | 2 | 11-05-2003 11:12 AM |
| Sendmail Relay | Solaris | Security | 4 | 06-28-2002 10:30 AM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Problem with sendmail procmail spamassasin & relay
I have been working on setting up a mail relay. I have just about everything working except for the procmail part. The configuration is as follows:
Internet -> mailrelay -> mail server | spamassassin server I have spamassassin running on a seperate server and have configured spamc to connect to it. I have this in my cf file: MAILER(procmail)dnl LOCAL_CONFIG CPprocmail LOCAL_RULESETS LOCAL_RULE_0 R$* < @ $=w > $* $#procmail $@ /etc/mail/procmailrc $: $1<@$2.procmail.>$3 R$* < @ $=w. > $* $#procmail $@ /etc/mail/procmailrc $: $1<@$2.procmail.>$3 R$* < @ $=R > $* $#procmail $@ /etc/mail/procmailrc $: $1<@$2.procmail.>$3 R$* < @ $=R. > $* $#procmail $@ /etc/mail/procmailrc $: $1<@$2.procmail.>$3 R$* < @$* .procmail. > $* $1<@$2.>$3 Already filtered, map to original address In my procmailrc file I have: DROPPRIVS=yes VERBOSE=on LOGFILE=/var/log/procmail.log :0fw * < 256000 | /usr/local/bin/spamc :0 * ^X-Spam-Status: Yes /dev/null :0 w ! -oi -f "$@" My threshold for spamd is 15 at the moment for finding spam. It looks like sendmail send the new mail off to procmal and process it: I see this in the log: procmail: Assigning "LASTFOLDER=/dev/null" procmail: Opening "/dev/null" Subject: [SPAM] More length and width Folder: /dev/null 4175 procmail: [21421] Wed Jul 23 00:05:51 2008 procmail: No match on "^X-Spam-Status: Yes" procmail: No match on "^^rom[ ]" procmail: Executing "/usr/lib/sendmail,-oi,-oi,-f,ilan@escortcorp.com,sfair_funw@hardlink.net.procmail" procmail: Match on "< 256000" procmail: Executing "/usr/local/bin/spamc" procmail: Match on "< 256000" procmail: Executing "/usr/local/bin/spamc" procmail: [21402] Wed Jul 23 00:05:52 2008 procmail: Assigning "LASTFOLDER=/usr/lib/sendmail -oi -oi -f " Subject: 20m reward for capture of Osama Folder: /usr/lib/sendmail -oi -oi -f 1137 procmail: [21421] Wed Jul 23 00:05:52 2008 procmail: Assigning "LASTFOLDER=/usr/lib/sendmail -oi -oi -f " Subject: Visit to See our Newly Opened Discount Store and KEEP your bucks INTA Folder: /usr/lib/sendmail -oi -oi -f 25378 procmail: [21441] Wed Jul 23 00:05:54 2008 procmail: Match on "^X-Spam-Status: Yes" procmail: Assigning "LASTFOLDER=/dev/null" It is deleting spam Like I would expect. The problem is what it does with the good mail. It seems to try to send it back to sendmail and then I never see it again. I do see procmail jobs running where they have rewritten the address to end in .procmail, but it just sort of disappears. Any idea on where I could be missing things? solaris 5.8 sendmail 8.14.2 spamassassin 3.25 procmail 3.22 |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|