I've had Scalix 11beta working happily for a couple of weeks, and decided to try adding clamav and mailwasher as sendmail milters, for spam and virus protection..
but, after getting them working, I'm no longer rejecting messages for addresses that don't exist. Instead, all mail is being accepted, regardless of addressing. e.g. maillog says:\
Code: Select all
Nov 18 13:52:59 mail sendmail[4110]: kAI2qxjq004110: from=tester@isp.net, size=0, class=0, nrcpts=1, proto=ESMTP, daemon=MTA, relay=localhost.localdomain [127.0.0.1]
Nov 18 13:52:59 mail sendmail[4115]: kAI2qxY9004115: from=<tester@isp.net>, size=909, class=0, nrcpts=1, msgid=<455E758D.4090700@isp.net>, proto=ESMTP, relay=root@localhost
Nov 18 13:53:00 mail sendmail[4116]: kAI2qxLh004116: from=<tester@isp.net>, size=1097, class=0, nrcpts=1, msgid=<455E758D.4090700@isp.net>, proto=ESMTP, daemon=MTA, relay=localhost.localdomain [127.0.0.1]
Nov 18 13:53:00 mail sendmail[4116]: kAI2qxLh004116: Milter: data, discard
Nov 18 13:53:00 mail sendmail[4116]: kAI2qxLh004116: discarded
Nov 18 13:53:00 mail sendmail[4115]: kAI2qxY9004115: to=<bunyip2@mydomain.com>, delay=00:00:01, xdelay=00:00:01, mailer=relay, pri=30909, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (kAI2qxLh004116 Message accepted for delivery)
So I did some reading, and thought I needed to set up the /etc/mail/relay-domains and /etc/mail/mailertable files to let sendmail know how to refer messages for recipient verification..
Unfortunately, I'm now getting messages that bounce, but worryingly its not becase recipient doesn't exist..
Code: Select all
The original message was received at Sat, 18 Nov 2006 13:17:26 +1100
from localhost.localdomain [127.0.0.1]
----- The following addresses had permanent fatal errors -----
<doodad@mydomain.com>
(reason: 553 5.3.5 system config error)
----- Transcript of session follows -----
553 5.3.5 mail.mydomain.com. config error: mail loops back to me (MX problem?)
554 5.3.5 Local configuration error
The maillog for these says that the message was accepted still..:
Code: Select all
Nov 18 14:19:07 mail sendmail[4676]: kAI3J7mE004676: from=tester@isp.net, size=0, class=0, nrcpts=1, proto=ESMTP, daemon=MTA, relay=localhost.localdomain [127.0.0.1]
Nov 18 14:19:08 mail sendmail[4681]: kAI3J8Pi004681: from=<tester@isp.net>, size=900, class=0, nrcpts=1, msgid=<455E7BAD.2070307@isp.net>, proto=ESMTP, relay=root@localhost
Nov 18 14:19:08 mail sendmail[4682]: kAI3J8Di004682: from=<tester@isp.net>, size=1087, class=0, nrcpts=1, msgid=<455E7BAD.2070307@isp.net>, proto=ESMTP, daemon=MTA, relay=localhost.localdomain [127.0.0.1]
Nov 18 14:19:08 mail sendmail[4682]: kAI3J8Di004682: Milter: data, discard
Nov 18 14:19:08 mail sendmail[4682]: kAI3J8Di004682: discarded
Nov 18 14:19:08 mail sendmail[4681]: kAI3J8Pi004681: to=<moocow@mydomain.com>, delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30900, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (kAI3J8Di004682 Message accepted for delivery)
So.. the question is, should I be even altering the relay-domains file? I noticed it wasn't being used at all when I only had Scalix with Sendmail as its frontend.
My sendmail.mc has this at the end (I removed the clamav stuff until I get just one milter working):
Code: Select all
MAILER(smtp)dnl
MAILER(procmail)dnl
dnl MAILER(cyrusv2)dnl
INPUT_MAIL_FILTER(`mailwasher_server', `S=unix:/var/run/mwserver/mpd.sock, F=T, T=S:4m;R:4m')
define(`confINPUT_MAIL_FILTERS', `mailwasher_server')
I've run omsendin to get the scalix integration back (I have the Mscalix and Momxport lines at the end of sendmail.cf).
Can anyone shed some light on why I'm not bouncing mail to invalid local addresses? Or can I not get sendmail to check with scalix before running the milter?