MailScanner forwards only " localdomain.localhost" emails to SpamAssassin Spam Checks: Found 1 spam messag

Magda Hewryk MHewryk at SYMCOR.COM
Mon Jan 6 15:42:42 GMT 2003


Hello,

I've installed and configured MailScanner v. 4.10 with SpamAssassin v.
2.43.  It works OK (rbl disabled) but only if it sees the FROM ADDRESS like
"... at localhost.localdomain" for eg. root at localhost.localdomain.
In the summary if  it is " from=<xxxx at localhost.localdomain>"  Spam Assasin
is called  and it checks  email for spam.

I accomplished it    (sending email form xxx at localhost.localdomain by
changing hosts file:
127.0.0.1          myhost  localhost.localdomain    localhost
xxx.xxx.22.22   myhost myhost.mydomain.com

At the end of mailog  you can see that Spam Check worked and found a spam
message!
/var/log/maillog:
Jan  2 11:32:38 myhost sendmail[28023]: h02GWc7o028023: from=root size=28,
class=0, nrcpts=1, msgid
=<200301021632.h02GWc7o028023 at localhost.localdomain>, relay=root at localhost
Jan  2 11:32:39 myhost  sendmail[28029]: h02GWcLh028029: from
=<root at localhost.localdomain>, size=333, class=0, nrcpts=1, msgid
=<200301021632.h02GWc7o028023 at localhost.localdomain>, proto=ESMTP,
daemon=MTA, relay=myhost [127.0.0.1]
Jan  2 11:32:39 myhost sendmail[28029]: h02GWcLh028029: to
=<magda at symcor.com>, delay=00:00:01, mailer=esmtp, pri=30328, stat=queued
Jan  2 11:32:40 myhost sendmail[28023]: h02GWc7o028023: to=maga at symcor.com,
ctladdr=root (500/500), delay=00:00:02, xdelay=00:00:02, mailer=relay,
pri=30023, relay=localhost.localdomain. [127.0.0.1], dsn=2.0.0, stat=Sent
(h02GWcLh028029 Message accepted for delivery)
Jan  2 11:32:41 myhost MailScanner[26429]: New Batch: Found 2 messages
waiting
Jan  2 11:32:41 myhost MailScanner[26429]: New Batch: Scanning 1 messages,
789 bytes
Jan  2 11:33:11 myhost MailScanner[26519]: Spam Checks: Found 1 spam
messages

PROBLEM:
If MailScanner/SpamAssassin sees that email is sent from eg.
root at myhost.mydomain.com or any other domain is doesn't call SpamAssassin
and doesn't do the spam check OR SpamAssassin doesn't do the Spam Check.
In summary if the line is like this:   from=<root at myhost.mydomain.com> or
from=<xxx at anyhost.anydomain.com> Spam Check is not performed.

This is my hosts file for the example above.
127.0.01           localhost.localdomain   localhost
xxx.xxx.22.22   myhost myhost.mydomain.com

I've disabled all rules in MailScanner.conf making sure that
domains.to.scan and whitelists  are not set up so stopping mydomain or
anydomain by rules shoudn't be the issue.


Any hint  what I'm missing here.


Thanks,

Magda Hewryk



More information about the MailScanner mailing list