OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
Re: Spamassassin wiht postfix problem

From: Anandh G (anandhg02yahoo.com)
Date: Mon Feb 28 2005 - 03:40:23 CST


> Show us all the log entries of a looping message,
> and the output of "postconf -n". Also show all
>changes you made to master.cf.

I had attached all the required information.
################## mailog ######################
------------- mail processed 1st time ----------------
Feb 28 14:09:24 server spamd[6206]: connection from
localhost.localdomain [127.0.0.1] at port 4561
Feb 28 14:09:25 server spamd[6206]: info: setuid to
spamfilter succeeded
Feb 28 14:09:27 server spamd[6206]: processing message

<20050228083901.D18857ED0Cserver.example.com> for
spamfilter:513.
Feb 28 14:09:27 server postfix/smtpd[6344]: disconnect
from localhost.localdomain[127.0.0.1]
Feb 28 14:09:33 server spamd[6206]: clean message
(0.3/5.0) for spamfilter:513 in 8.5 seconds, 352
bytes.
Feb 28 14:09:33 server spamd[6206]: result: . 0 -
ALL_TRUSTED,AWL,MISSING_SUBJECT,NO_REAL_NAME,UNDISC_RECIPS
scantime=8.5,size=352,mid=<20050228083901.D18857ED0Cserver.example.com>,autolearn=no
Feb 28 14:09:34 server sendmail[6352]: j1S8dYpD006352:
Authentication-Warning:server.example.com: spamfilter
set sender to rootexample.com using -f
Feb 28 14:09:34 server sendmail[6352]: j1S8dYpD006352:
from=rootexample.com, size=581, class=0, nrcpts=1,
msgid=<20050228083901.D18857ED0Cserver.example.com>,
relay=spamfilterlocalhost

Feb 28 14:09:34 server postfix/smtpd[6344]: connect
from localhost.localdomain[127.0.0.1]
Feb 28 14:09:34 server postfix/smtpd[6344]:
E96DB7EDD2: client=localhost.localdomain[127.0.0.1]
Feb 28 14:09:34 server postfix/cleanup[6347]:
E96DB7EDD2:
message-id=<20050228083901.D18857ED0Cserver.example.com>
Feb 28 14:09:35 server postfix/qmgr[6342]: E96DB7EDD2:
from=<rootexample.com>, size=1053, nrcpt=1 (queue
active)
Feb 28 14:09:35 server sendmail[6352]: j1S8dYpD006352:
to=anandhgexample.com, ctladdr=rootexample.com
(513/514), delay=00:00:01, xdelay=00:00:01,
mailer=relay, pri=30569, relay=[127.0.0.1]
[127.0.0.1], dsn=2.0.0, stat=Sent (Ok: queued as
E96DB7EDD2)
Feb 28 14:09:35 server postfix/smtpd[6344]: disconnect
from localhost.localdomain[127.0.0.1]
Feb 28 14:09:35 server postfix/pipe[6348]: D18857ED0C:
to=<anandhgexample.com>, orig_to=<anandhg>,
relay=filter, delay=34, status=sent
(server.example.com)
Feb 28 14:09:35 server postfix/qmgr[6342]: D18857ED0C:
removed

------------- mail processed 2nd time ----------------
Feb 28 14:09:35 server spamd[6204]: connection from
localhost.localdomain [127.0.0.1] at port 4566
Feb 28 14:09:35 server spamd[6204]: info: setuid to
spamfilter succeeded
Feb 28 14:09:36 server spamd[6204]: processing message

<20050228083901.D18857ED0Cserver.example.com> for
spamfilter:513.
Feb 28 14:09:45 server spamd[6204]: clean message
(0.3/5.0) for spamfilter:513 in 10.3 seconds, 1033
bytes.
Feb 28 14:09:48 server spamd[6204]: result: . 0 -
ALL_TRUSTED,AWL,MISSING_SUBJECT,NO_REAL_NAME,UNDISC_RECIPS
scantime=10.3,size=1033,mid=<20050228083901.D18857ED0Cserver.example.com>,autolearn=no
Feb 28 14:09:49 server sendmail[6359]: j1S8dneY006359:
Authentication-Warning: server.example.com: spamfilter
set sender to rootexample.com using -f
Feb 28 14:09:50 server sendmail[6359]: j1S8dneY006359:
from=rootexample.com, size=1033, class=0, nrcpts=1,
msgid=<20050228083901.D18857ED0Cserver.example.com>,
relay=spamfilterlocalhost

Feb 28 14:09:50 server postfix/smtpd[6344]: connect
from localhost.localdomain[127.0.0.1]
Feb 28 14:09:50 server postfix/smtpd[6344]:
0C4677ED0C: client=localhost.localdomain[127.0.0.1]
Feb 28 14:09:50 server postfix/cleanup[6347]:
0C4677ED0C:
message-id=<20050228083901.D18857ED0Cserver.example.com>
Feb 28 14:09:50 server sendmail[6359]: j1S8dneY006359:
to=anandhgexample.com, ctladdr=rootexample.com
(513/514), delay=00:00:01, xdelay=00:00:00,
mailer=relay, pri=31021, relay=[127.0.0.1]
[127.0.0.1], dsn=2.0.0, stat=Sent (Ok: queued as
0C4677ED0C)
Feb 28 14:09:50 server postfix/qmgr[6342]: 0C4677ED0C:
from=<rootexample.com>, size=1511, nrcpt=1 (queue
active)
Feb 28 14:09:50 server postfix/smtpd[6344]: disconnect
from localhost.localdomain[127.0.0.1]
Feb 28 14:09:50 server postfix/pipe[6354]: E96DB7EDD2:
to=<anandhgexample.com>, relay=filter, delay=16,
status=sent (server.example.com)
Feb 28 14:09:50 server postfix/qmgr[6342]: E96DB7EDD2:
removed

......
Mail processing continues
......

###################################################
The mail will be processing for some time(10-15 time)
and it will be returned back to the sender as
Mailer-Daemon.

################## master.cf ######################
smtp inet n - n - - smtpd
  -o content_filter=filter

filter unix - n n - - pipe
   user=spamfilter argv=/usr/bin/spamc -f -e
   /usr/sbin/sendmail -oi -f ${sender} ${recipient}
###################################################
I also tried adding the following in master.cf
smtp unix - - n - - smtp -o
  content_filter=filter
But with the same problem.

################ main.cf ######################
[rootserver postfix]# postconf -n
alias_database = hash:/etc/postfix/aliases
alias_maps = hash:/etc/postfix/aliases
command_directory = /usr/sbin
config_directory = /etc/postfix
daemon_directory = /usr/libexec/postfix
debug_peer_level = 2
disable_dns_lookups = yes
home_mailbox = Maildir/
html_directory = /usr/share/doc/postfix-2.1.4/html
inet_interfaces = all
mail_owner = postfix
mailq_path = /usr/bin/mailq.postfix
manpage_directory = /usr/share/man
mydestination = $mydomain, $myhostname
mydomain = nextgen.com
myhostname = server.nextgen.com
mynetworks = 202.41.131.0/24, 127.0.0.0/8
myorigin = $mydomain
newaliases_path = /usr/bin/newaliases.postfix
queue_directory = /var/spool/postfix
readme_directory =
/usr/share/doc/postfix-2.1.4/README_FILES
sample_directory =
/usr/share/doc/postfix-2.1.4/samples
sendmail_path = /usr/sbin/sendmail.postfix
setgid_group = postdrop
unknown_local_recipient_reject_code = 550
###################################################

Plz help me.

=====
Regards,
Anandh G

                
__________________________________
Do you Yahoo!?
Read only the mail you want - Yahoo! Mail SpamGuard.
http://promotions.yahoo.com/new_mail