Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

mailscanner/sendmail integration problem

Posted on 2004-08-24
3
Medium Priority
?
652 Views
Last Modified: 2013-12-17
Hi.

I've got a slackware server with sendmail 8.12.11, and spamassassin installed and working happily for multiple domains.

I've recently installed clamav and mailscanner and know nothing about it except what the documentation tells me and other websites tutorial's.

I'm running mailscanner, (bin/check_mailscanner ) with MailScanner.conf setup to use clamav but I cant see anything in /var/log/maillog about MailScanner working apart from the initial 5-child setups. No logs of mail scanning, virus scanning etc. I've sent an eicar file to myself on the same server but it appears to come through unimpeded.

could anyone give me a general kinda overview on the theory/schematics of mailscanner's operation and how the heck to get sendmail to get mailscanner to scan a mail it gets please? :)

thanks

Daryn
0
Comment
Question by:daryn
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 40

Accepted Solution

by:
jlevie earned 1600 total points
ID: 11880411
That sounds like you haven't modified the sendmail configuration to place incomming email in an input-only queue for MailScanner to pick up. In that case MailScanner will start, but it'll never have any work to do and email will bypass it.

Usually, one creates /var/spool/mqueue.in and changes the normal Sendmail MTA process to start like:

sendmail -L mta -bd --ODeliveryMode=queueonly -OQueueDirectory=/var/spool/mqueue.in

and, of course, specifies /var/spool/mqueue.in in MailScanner.conf.
0
 

Author Comment

by:daryn
ID: 11881712
so if this is a portion of my sendmail startup script in rc.sendmail :

# Start sendmail:
sendmail_start() {
  if [ -x /usr/sbin/sendmail ]; then
    echo "Starting sendmail MTA daemon:  /usr/sbin/sendmail -L sm-mta -bd -q25m"
    /usr/sbin/sendmail -d99 -L sm-mta -bd -q25m
    echo "Starting sendmail MSP queue runner:  /usr/sbin/sendmail -L sm-msp-queue -Ac -q25m"
    /usr/sbin/sendmail -d99 -L sm-msp-queue -Ac -q25m
  fi
}

then I would replace the "/usr/sbin/sendmail -d99 -L sm-mta -bd -q25m" with
"/usr/sbin/sendmail -d99 -L sm-mta -bd -q25m --ODeliveryMode=queueonly -OQueueDirectory=/var/spool/mqueue.in"

right?

thanks v. much

Daryn
0
 
LVL 40

Expert Comment

by:jlevie
ID: 11888297
Right, that would start a sendmail process that listens for inbound connections and places the messages in the input-only queue. MailScanner will pick up the messgaes from ther, scan them and place the result in /var/spool/mqueue. You also need a queue runner to pick up messgaes from /var/spool/mqueue and deliver them, like:

/usr/sbin/sendmail -L sm-mtq -bd -q25m
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

As tax season makes its return, so does the increase in cyber crime and tax refund phishing that comes with it
This article outlines some of the reasons why an email message gets flagged as spam on a recipient's end.
In this video we show how to create a Resource Mailbox in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: Navigate to the Recipients >> Resources tab.: "Recipients" is our default selection …
In this video we show how to create an email address policy in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.:  First we need to log into the Exchange Admin Center. Navigate to the Mail Flow…
Suggested Courses

604 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question