LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 05-07-2008, 10:45 AM   #1
ssilayaraja
Member
 
Registered: Aug 2003
Location: chennai
Posts: 115

Rep: Reputation: 15
sendmail+fetchmail+procmail consider as a spam


i have configured sendmail as a smarthost and i have configured fetchamil+ procmail for getting mail from remote server it working fine for 40 user except one user.

it that perticular user send mail to other user that mail directly goes to /home/otheruser/mail/.spam/new/somthing file

what is the reason
 
Old 05-07-2008, 11:30 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3595Reputation: 3595Reputation: 3595Reputation: 3595Reputation: 3595Reputation: 3595Reputation: 3595Reputation: 3595Reputation: 3595Reputation: 3595Reputation: 3595
Quote:
Originally Posted by ssilayaraja View Post
it that perticular user send mail to other user that mail directly goes to /home/otheruser/mail/.spam/new/somthing file
what is the reason
Check your procmail recipes. You can make procmail log verbose by setting "VERBOSE=on" and setting "LOG=~/somelogfilename" in the procmailrc. If you do not want to use your MTA you can test Procmail recipes manually by doing something like 'cat e-mailmessage | procmail -m procmailrecipefile'. To test a whole mailbox you add formail: 'cat mailbox | procmail -m procmailrecipefile'. If you set verbose and log in the recipe the log should hold clues for you to check.
 
Old 05-08-2008, 02:47 AM   #3
ssilayaraja
Member
 
Registered: Aug 2003
Location: chennai
Posts: 115

Original Poster
Rep: Reputation: 15
plz see the log file
[joshua@server2 ~]$ tail .procmaillog
Folder: /home/joshua/mail/.spam/new/1210228408.30519_1.server2 868
procmail: Executing "/usr/bin/spamassassin"
procmail: [32157] Thu May 8 12:10:27 2008
procmail: Match on "^X-Spam-Status: Yes"
procmail: Locking "/home/joshua/mail/.spam/.lock"
procmail: Assigning "LASTFOLDER=/home/joshua/mail/.spam/new/1210228827.32157_1.server2"
procmail: Unlocking "/home/joshua/mail/.spam/.lock"
procmail: Notified comsat: "joshua@0:/home/joshua/mail/.spam/new/1210228827.32157_1.server2"
Subject: [SPAM]
Folder: /home/joshua/mail/.spam/new/1210228827.32157_1.server2 941


the procmail file is

VERBOSE=on
SHELL=/bin/sh
PATH=/usr/bin:/bin:/usr/local/bin:.

DEFAULT=/var/spool/mail/joshua

MAILDIR=$HOME/mail
LOGFILE=$HOME/.procmaillog

:0fw
| /usr/bin/spamassassin
:0:

* ^X-Spam-Status: Yes
/home/joshua/mail/.spam/

:0fw
| /usr/local/bin/clamassassin

* ^X-Virus-Status: Yes
/home/joshua/mail/.virus

please give the solution
 
Old 05-08-2008, 06:43 AM   #4
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3595Reputation: 3595Reputation: 3595Reputation: 3595Reputation: 3595Reputation: 3595Reputation: 3595Reputation: 3595Reputation: 3595Reputation: 3595Reputation: 3595
Quote:
Originally Posted by ssilayaraja View Post
plz see the log file
Unfortunately your logfile doesn't tell me much, and you did not explain what you did to fill this logfile. The only things I can see is your Procmail resource file contains a "DEFAULT" line which is set to the mailspool but which should be a default mbox or maildir, four recipes of which three had a malformed layout. I think it's good to explicitly state a fifth "catchall" rule so that anything that didn't get delivered elsewhere ends up in the default mailbox or maildir.
If you are going to test this recipe file, do explain how you did it. If you use existing e-mail messages please remove any X-headers Spamassassin or Clamassassin set first.

Code:
SHELL=/bin/sh
PATH=/usr/bin:/bin:/usr/local/bin:.
VERBOSE=on
LOGFILE=$HOME/.procmaillog
LOGABSTRACT=all
DROPPRIVS=yes
MAILDIR=$HOME/mail
DEFAULT=$MAILDIR/Inbox

:0Efw
| /usr/bin/spamassassin

:0:
* ^X-Spam-Status: Yes
/home/joshua/mail/.spam/

:0Efw
| /usr/local/bin/clamassassin

:0:
* ^X-Virus-Status: Yes
/home/joshua/mail/.virus

# Catchall, last rule.
:0:
$DEFAULT
 
Old 05-08-2008, 08:15 AM   #5
ssilayaraja
Member
 
Registered: Aug 2003
Location: chennai
Posts: 115

Original Poster
Rep: Reputation: 15
sorry for asking the silly question. is procmail filtering the outgoing mail. if it is right then why the other user mail sending properly. because i am using the same syntax for all user
 
Old 05-08-2008, 12:06 PM   #6
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3595Reputation: 3595Reputation: 3595Reputation: 3595Reputation: 3595Reputation: 3595Reputation: 3595Reputation: 3595Reputation: 3595Reputation: 3595Reputation: 3595
Quote:
Originally Posted by ssilayaraja View Post
sorry for asking the silly question. is procmail filtering the outgoing mail. if it is right then why the other user mail sending properly. because i am using the same syntax for all user
I don't see not silly questions. Without configuration and logs to look at it will be impossible for you to troubleshoot this.
 
Old 05-09-2008, 02:22 AM   #7
ssilayaraja
Member
 
Registered: Aug 2003
Location: chennai
Posts: 115

Original Poster
Rep: Reputation: 15
i assingend your .procmailrc file to joshua and i sent one mail localy from ilayaraja.soundarajan to joshua that mail oes to spam see th log file
Quote:
procmail: Assigning "LOGABSTRACT=all"
procmail: Assigning "DROPPRIVS=yes"
procmail: Assuming identity of the recipient, VERBOSE=off
procmail: Assigning "MAILDIR=/home/joshua/mail"
procmail: Assigning "DEFAULT=/home/joshua/mail/Inbox"
procmail: Executing "/usr/bin/spamassassin"
procmail: [25626] Fri May 9 11:48:20 2008
procmail: No match on "^X-Spam-Status: Yes"
procmail: Executing "/usr/local/bin/clamassassin"
procmail: [25626] Fri May 9 11:48:27 2008
procmail: No match on "^X-Virus-Status: Yes"
procmail: Locking "/home/joshua/mail/Inbox.lock"
procmail: Assigning "LASTFOLDER=/home/joshua/mail/Inbox"
procmail: Opening "/home/joshua/mail/Inbox"
procmail: Acquiring kernel-lock
procmail: Unlocking "/home/joshua/mail/Inbox.lock"
procmail: Notified comsat: "joshua@6636:/home/joshua/mail/Inbox"
From joshua Fri May 9 11:48:14 2008
Subject: test mail to axisv.com
Folder: /home/joshua/mail/Inbox 1449


Last edited by ssilayaraja; 05-09-2008 at 02:25 AM.
 
Old 05-09-2008, 02:40 AM   #8
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
It doesn't look like spam

Quote:
procmail: No match on "^X-Spam-Status: Yes"
This user doesn't have an errant .forward file sitting in his home directory or something does he?
 
Old 05-09-2008, 06:16 AM   #9
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3595Reputation: 3595Reputation: 3595Reputation: 3595Reputation: 3595Reputation: 3595Reputation: 3595Reputation: 3595Reputation: 3595Reputation: 3595Reputation: 3595
Quote:
Originally Posted by ssilayaraja View Post
i assingend your .procmailrc file to joshua and i sent one mail localy from ilayaraja.soundarajan to joshua that mail oes to spam see th log file
No, the line
Code:
procmail: Assigning "LASTFOLDER=/home/joshua/mail/Inbox"
shows the e-mail was delivered to his inbox.
 
Old 05-09-2008, 07:37 AM   #10
ssilayaraja
Member
 
Registered: Aug 2003
Location: chennai
Posts: 115

Original Poster
Rep: Reputation: 15
thanks your reply

joshua is getting mail but what my question is why joshua's mail sending as spam to others

Last edited by ssilayaraja; 05-09-2008 at 08:21 AM.
 
Old 05-09-2008, 08:47 AM   #11
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3595Reputation: 3595Reputation: 3595Reputation: 3595Reputation: 3595Reputation: 3595Reputation: 3595Reputation: 3595Reputation: 3595Reputation: 3595Reputation: 3595
Maybe debug by sending e-mail from his account to others? And, with all due respect, please try to use proper punctuation. It is hard to read your questions in all lowercase and such.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Setup a Spam-Proof Vacation Autoresponder with Procmail + Sendmail LXer Syndicated Linux News 0 03-19-2008 02:50 PM
sendmail, fetchmail, procmail, permissions, etc xeon123 Linux - Software 3 10-24-2006 08:54 AM
config fetchmail,mutt,procmail,sendmail Tim Johnson Slackware 2 09-15-2006 03:20 PM
Spamassasin, sendmail procmail fetchmail ??? Satriani Linux - Software 1 06-04-2004 12:59 AM
sendmail, procmail, fetchmail manjunja Linux - Software 0 07-10-2003 03:39 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 10:25 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration