Yep tried that.
[root@m1 ~]# /etc/init.d/MailScanner status
Checking MailScanner daemons:
MailScanner: [ OK ]
incoming sendmail: head: cannot open `/var/run/sendmail.in.pid' for reading: No such file or directory
[FAILED]
outgoing sendmail: [ OK ]
[root@m1 ~]# vi /etc/mail/sendmail.cf
[root@m1 ~]# lsof -i:25
COMMAND PID USER FD TYPE DEVICE SIZE NODE NAME
omsmtpd 20119 root 4u IPv4 456224 TCP m1.metrofire.com.au:smtp (LISTEN)
omsmtpd 20119 root 5u IPv4 456225 TCP 10.1.1.99:smtp (LISTEN)
sendmail 32393 root 4u IPv4 470850 TCP localhost.localdomain:smtp (LISTEN)
I have an additional alias network address at the moment which I don't think matters...?
this is what happens when I send an email.
[root@m1 ~]# echo testmgs | mail -s testmsg
steves@metrofire.com.au
/var/log/maillog
Mar 26 23:57:45 m1 sendmail[2948]: k2QDviCl002948: from=root, size=54, class=0, nrcpts=1, msgid=<200603261357.k2QDviCl002948@m1.metrofire.com.au>, relay=root@localhost
Mar 26 23:57:46 m1 sendmail[2949]: k2QDvje9002949: from=<root@m1.metrofire.com.au>, size=351, class=0, nrcpts=1, msgid=<200603261357.k2QDviCl002948@m1.metrofire.com.au>, proto=ESMTP, daemon=MTA, relay=localhost.localdomain [127.0.0.1]
Mar 26 23:57:46 m1 sendmail[2948]: k2QDviCl002948: to=steves@metrofire.com.au, ctladdr=root (0/0), delay=00:00:02, xdelay=00:00:01, mailer=relay, pri=30054, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (k2QDvje9002949 Message accepted for delivery)
Mar 26 23:57:46 m1 sendmail[2953]: k2QDvje9002949: to=<steves@metrofire.com.au>, ctladdr=<root@m1.metrofire.com.au> (0/0), delay=00:00:00, xdelay=00:00:00, mailer=scalix, pri=120351, relay=m1, dsn=2.0.0, stat=Sent (Ok)
This is interesting, when I send an email to "steves" (localuser) it goes to
/var/spool/mail/steves But when I send the message to
steves@metrofire.com.au it
goes to the Scalix mailing queue (I think, that is what it looks like)
MailScanner does not scan the message ...
Thanks