Solved

mailscanner/sendmail integration problem

Posted on 2004-08-24
3
631 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
  • 2
3 Comments
 
LVL 40

Accepted Solution

by:
jlevie earned 400 total points
Comment Utility
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
Comment Utility
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
Comment Utility
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

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Granting full access permission allows users to access mailboxes present in their database. By giving full access permission one can open and read the content of any mailbox but cannot send emails from that mailbox.
This process describes the steps required to Import and Export data from and to .pst files using Exchange 2010. We can use these steps to export data from a user to a .pst file, import data back to the same or a different user, or even import data t…
To show how to create a transport rule 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 >> Rules tab.:  To cr…
The video tutorial explains the basics of the Exchange server Database Availability groups. The components of this video include: 1. Automatic Failover 2. Failover Clustering 3. Active Manager

728 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

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now