I'm trying to get MailScanner to work
Kearney, Rob
RKearney at AZERTY.COM
Tue Dec 23 14:57:19 GMT 2003
You probably do have a configuration error. Try setting Debug = Yes in
MailScanner.conf, and restart MailScanner, then send a message to a mailbox,
and see what this states. (Jonas already stated this).
Setting Debug = Yes will process only 1 message then exit, but will print
alot of debugging messages.
>- Initially I edited the sendmail startup script in etc/init.d to meet
>to as close as the following:
>You should change this to the following two lines:
> sendmail -bd -OPrivacyOptions=noetrn -ODeliveryMode=queueonly
>-OQueueDirectory=/var/spool/mqueue.in
> sendmail -q15m
That might work, but I'd use the MailScanner init script provided.
-rob
-----Original Message-----
From: Billy A. Pumphrey [mailto:bpumphrey at WOODMACLAW.COM]
Sent: Tuesday, December 23, 2003 8:37 AM
To: MAILSCANNER at JISCMAIL.AC.UK
Subject: Re: I'm trying to get MailScanner to work
I have done some more with the help of people. Here is what more I have
done.
- Initially I edited the sendmail startup script in etc/init.d to meet
to as close as the following:
You should change this to the following two lines:
sendmail -bd -OPrivacyOptions=noetrn -ODeliveryMode=queueonly
-OQueueDirectory=/var/spool/mqueue.in
sendmail -q15m
I went and took that out and put it back to the original file. Was that
the right thing to do?
- I also notice, finally I guess, that I used the tar instructions first
with the tar then when I switched to the rpm and the rpm instructions it
quite confused me and maybe there is something still wrong left over
from the tar instructions.
- I tried these also:
chkconfig sendmail off
chkconfig MailScanner on
service sendmail stop
service MailScanner restart
- Here is more specifically how I am testing the machine.
1. I change the router to deliver port 25 to the new machine ip address
2. I send some mail from outside the network, from yahoo for instance
3. I then refresh a bunch of times on my outlook(inside the network)
4. I don't get the mail
5. I see that this test should work because as soon as I switch the
router to forward the port 25 to the old machine I get the mail
immediately after sending it from yahoo.
6. So basically I don't know where it is stopping or not getting to.
Thank You
Billy Pumphrey
-----Original Message-----
From: Billy A. Pumphrey
Sent: Monday, December 22, 2003 5:06 PM
To: MAILSCANNER at JISCMAIL.AC.UK
Subject: Re: I'm trying to get MailScanner to work
That information helped me know what's going on a little better but It
didn't help the machine work.
Here are the results:
Thank You
Billy Pumphrey
-----Original Message-----
mydomain.com esmtp:[exchange.mydomain.com]
------------------------------------------------------
I put woodendc.woodmaclaw.com esmtp:[woodmaclaw.com]
I did have .woodmaclaw.com relay:[10.1.1.2]
woodmaclaw.com relay:[10.1.1.2]
.woodmclaw.com relay:[10.1.1.2]
woodmclaw.com relay:[10.1.1.2]
-----------------------------------------------
-----------I did so:--------
then in /etc/mail/ type 'make mailertable.db' this creates a file
usable by the sendmail queue runner.
Stop sendmail and MailScanner
service MailScanner stop
service sendmail stop
------------ I got = Shutting down sm-client [FAILED] ----------------
disable sendmail in /etc/init.d
chkconfig --level 2345 sendmail off
enable MailScanner
chkconfig --level 2345 MailScanner on
start your MailScanner service
service MailScanner start
By doing ps -auxw |grep -i mail,
you should see a "sendmail: accepting connections" line, a
"sendmail: Queue Runner" line, and several /usr/bin/perl.... MailScanner
lines (it make take several seconds before you see multiple MailScanner
processes startup")
------------------------------------------------------------------
I did so and noticed that these line might not be right:
Root 29460 1.0 0.0 0 0 0 ? Z
16:58 0:00[MailScanner <defunct>]
And a lot of these:
Root 19460 0.1 0.0 0 0 0 ? Z
16:58 0:0 [MailScanner <defunct>] which I guess is about the same of the
above.
This all, of course, is assuming your MailScanner config is good
with SpamAssassin installed etc.
Thank You
Billy Pumphrey
-----Original Message-----
From: Kearney, Rob [mailto:RKearney at AZERTY.COM]
Sent: Monday, December 22, 2003 4:49 PM
To: MAILSCANNER at JISCMAIL.AC.UK
Subject: Re: I'm trying to get MailScanner to work
1. You don't want sendmail to start in addition to what mailscanner
does.
MailScanner will start a sendmail SMTP daemon process, and also a
queue
runner for outbound mail (destined for you exchange server).
Mail is delivered from externally to the
/var/spool/mqueue.in directory.
MailScanner will "Pick up that mail" and link it to
/var/spool/MailScanner/incoming/
when all is said and done, MailScanner will drop it off
into
/var/spool/mqueue
This is where the sendmail Queue Runner will pick it up
and
deliver to your exchange server.
For sendmail, make sure you have something in
/etc/mail/mailertable
described like this:
<yourdomain.com>
esmtp:[exchangeserver.domain.com]
such that if you receive mail for "mydomain.com" and exchange
server
is exchange.mydomain.com, the line reads:
mydomain.com esmtp:[exchange.mydomain.com]
This line says for email destined for mydomain.com, send via
ESMTP
to server in brackets (brackets prevent DNS lookups on MX records)
then in /etc/mail/ type 'make mailertable.db' this creates a
file
usable by the sendmail queue runner.
Stop sendmail and MailScanner
service MailScanner stop
service sendmail stop
disable sendmail in /etc/init.d
chkconfig --level 2345 sendmail off
enable MailScanner
chkconfig --level 2345 MailScanner on
start your MailScanner service
service MailScanner start
By doing ps -auxw |grep -i mail,
you should see a "sendmail: accepting connections" line, a
"sendmail: Queue Runner" line, and several /usr/bin/perl.... MailScanner
lines (it make take several seconds before you see multiple MailScanner
processes startup")
This all, of course, is assuming your MailScanner config is good
with SpamAssassin installed etc.
-rob
-----Original Message-----
From: Billy Pumphrey [mailto:bpumphrey at WOODMACLAW.COM]
Sent: Monday, December 22, 2003 4:16 PM
To: MAILSCANNER at JISCMAIL.AC.UK
Subject: I'm trying to get MailScanner to work
Hello Everyone,
I have tried plenty o things including reading all that I could find
without going insaine :). Pleae help, here are the details.
Situation wanted: To have the MailScanner machine sit in front of the
exchange machine to do the spam filtering and then relay it to the
exchange
server. (typical setup)
My knowledge leve: Good at windows, not so good at Linux.
There is a machine currently setup to do that but I screwed it up some
how. The mail will go through the MailScanner machine and pass it to
the
Exchange server but will not process any spam rules, and send mail won't
start unless I tell it to manuall.
Anyway, new machine, new install of Red Hat 9 GUI with sendmail and
spamassassin off the cd's.
- I downloaded MailScanner 4.25.14
- I tried these instructions:
http://www.sng.ecs.soton.ac.uk/mailscanner/install/linux.shtml
http://www.sng.ecs.soton.ac.uk/mailscanner/install/other.shtml
http://www.sng.ecs.soton.ac.uk/mailscanner/faq.shtml
http://www.sng.ecs.soton.ac.uk/mailscanner/serve/cache/1.html
and FAQ's and such. I'm sure that I have just missed something some
where
and hopefully someone can point it out to me. I don't even know how to
go
about testing to see if the first step was done right.
Here are some conflicts or differences that I have seen or made me
confused
on:
- does the ./install.sh make the mqueue.in folder? My experience it
didn't
and I tried making it manually via somewhere in the instructions above.
- I'm still a little confused on the path of the mail. Is it mqueue,
mqueue.in then spamassassin and so on?
Please any help on this is greatly appreciated on where to start and go.
More information about the MailScanner
mailing list