From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Rezk Mekhael Newsgroups: gmane.os.tru64.managers Subject: sendmail , sophos and mailscanner Date: Mon, 23 Jun 2003 09:41:03 -0700 Sender: tru64-unix-managers-owner@ornl.gov Message-ID: <00ca01c339a6$3c972a80$96c46bc7@clunetnt> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1056386545 31380 80.91.224.249 (23 Jun 2003 16:42:25 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 23 Jun 2003 16:42:25 +0000 (UTC) Original-X-From: tru64-unix-managers-owner-gotm-tru64-unix-managers=m.gmane.org@sws1.ctd.ornl.gov Mon Jun 23 18:42:24 2003 Return-path: Original-Received: from sws1.ctd.ornl.gov ([160.91.22.101]) by main.gmane.org with smtp (Exim 3.35 #1 (Debian)) id 19UUNS-00083T-00 for ; Mon, 23 Jun 2003 18:41:10 +0200 Original-Received: (qmail 16541 invoked by uid 5); 23 Jun 2003 16:41:14 -0000 Original-Followup-To: poster Precedence: bulk Original-Received: (qmail 16532 invoked by uid 49493); 23 Jun 2003 16:41:13 -0000 Original-Received: from rezk@clunet.edu by sws1 by uid 49491 with qmail-scanner-1.14 (clamscan: 0.54. spamassassin: 2.50-cvs. Clear:SA:0(0.5/5.0):. Processed in 0.540515 secs); 23 Jun 2003 16:41:13 -0000 Original-Received: from unknown (HELO emroute1.cind.ornl.gov) (160.91.4.119) by 0 with SMTP; 23 Jun 2003 16:41:13 -0000 Original-Received: from emroute1.cind.ornl.gov (localhost [127.0.0.1]) by emroute1.cind.ornl.gov (PMDF V6.2 #30669) with ESMTP id <0HGY00B3510MFI@emroute1.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Mon, 23 Jun 2003 12:41:12 -0400 (EDT) Original-Received: from clunet.edu (robles.callutheran.edu [199.107.192.11]) by emroute1.cind.ornl.gov (PMDF V6.2 #30669) with ESMTP id <0HGY0094Z10G1W@emroute1.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Mon, 23 Jun 2003 12:41:05 -0400 (EDT) Original-Received: from laptop by clunet.edu (8.9.3/1.1.29.3/14May03-1207PM) id JAA0000060246; Mon, 23 Jun 2003 09:38:57 -0700 (PDT) Original-To: "Tru64 Group \(Tru64 Group\)" X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 X-Mailer: Microsoft Outlook, Build 10.0.2627 Importance: Normal X-Priority: 3 (Normal) X-MSMail-priority: Normal Xref: main.gmane.org gmane.os.tru64.managers:4636 X-Report-Spam: http://spam.gmane.org/gmane.os.tru64.managers:4636 Hi Managers, OS: Tru64 5.1 Machine: DS20 Mail Demon: Sendmail 8.12 I am using sendmail with mailscanner and sophos, my problem is Incoming mail ok, outgoing mail Not. the server holding the mail and not release it. Any idea ???? I need help please + I did step I and Step II I-MailScanner Installation Guide - MailScanner My copy of MailScanner is installed under /opt/MailScanner so all references in the following text apply to that location. Note that version 3 usually installed into /opt/mailscanner so you should be able to leave the old version running on your system while you get the new version installed and configured. Download the distribution and unpack it into the destination directory with a command such as # cd /opt # tar xvf MailScanner-4.01-1.tar # ln -sf MailScanner-4.01-1 MailScanner You will then need to check the paths for your particular system setup. Check the paths in each of these files: /opt/MailScanner/bin/check_mailscanner /opt/MailScanner/bin/MailScanner (just line 1) /opt/MailScanner/lib/MailScanner/SystemDefs.pm /opt/MailScanner/etc/virus.scanners.conf /opt/MailScanner/etc/MailScanner.conf /opt/MailScanner/lib/* You should also compile the "tnef" binary for your system. The source code (and compiled versions for Solaris and Linux) are in the "bin" directory in the MailScanner tar file you downloaded. I advise you put the "tnef" program into somewhere such as /opt/MailScanner/bin/tnef. You will also need to check the MailScanner.conf file to ensure that the setting for "TNEF Expander" points to where you put the program. The directories /var/spool/mqueue /var/spool/mqueue.in must be in the same filesystem for MailScanner to work. If you are using Exim instead of sendmail, please see the Exim notes. Furthermore, the incoming and quarantine directories need to be writable by the "mail" user that Exim will be running as. For extra reliability, I advise putting all the directories /var/spool/mqueue /var/spool/mqueue.in /var/spool/MailScanner/incoming /var/spool/MailScanner/quarantine in the same filesystem. Then sendmail will ensure you don't run out of disk space, and handle the situation gracefully. Configuration Options These are all documented in a separate page of their own. Starting it & Checking it The check_mailscanner script mentioned above is used both to start it running and re-start it if it fails for some reason. It is best run as root by cron, a suitable crontab entry being # 18/05/2000 JKF Ensure my e-mail virus scanner is still running 0,20,40 * * * * [ -x /opt/MailScanner/bin/check_mailscanner ] && /opt/MailScanner/bin/check_mailscanner >/dev/null 2>&1 II-MailScanner Installation Guide - Sendmail I have tested this system on sendmail version 8.9.3 and 8.11.3. Your existing sendmail installation currently listens on the SMTP port (TCP port 25) collecting messages from there, places them in a queue, and delivers them to their destination as soon as possible. This needs to be split into two separate processes, each handled by separate sendmail processes and separate queues: one provides SMTP on port 25 and builds MailScanner's incoming work queue the other handles delivery of MailScanner's output Create the Second Queue Your copy of sendmail probably uses the default queue location /var/spool/mqueue. If this directory does not exist, check your sendmail documentation and/or sendmail.cf file for the location of the QueueDirectory. Assuming it is /var/spool/mqueue, create a second queue directory alongside it called mqueue.in and set it to the same ownership and permissions as mqueue. For example, # cd /var/spool # ls -ld mqueue drwxr-x--- 2 root bin 62976 Oct 23 16:18 mqueue # mkdir mqueue.in # chown root mqueue.in # chgrp bin mqueue.in # chmod u=rwx,g=rx,o-rwx mqueue.in # ls -ld mqueue mqueue.in drwxr-x--- 2 root bin 62976 Oct 23 16:18 mqueue drwxr-x--- 2 root bin 41472 Oct 23 16:18 mqueue.in This new queue mqueue.in will be used by the copy of sendmail providing the SMTP service. Change Commands That Start Sendmail Currently, your copy of sendmail will be started by a script such as /etc/init.d/mail or /etc/rc.d/init.d/sendmail. Somewhere in this script will be the command to start sendmail itself. This should look like this: sendmail -bd -q15m You should change this to the following two lines: sendmail -bd -OPrivacyOptions=noetrn -ODeliveryMode=queueonly -OQueueDirectory=/var/spool/mqueue.in sendmail -q15m This first starts the copy of sendmail that provides SMTP service, building the work queue for MailScanner. It then starts the copy of sendmail that delivers the output from MailScanner. You also might need to change the commands used to shut down sendmail as it now needs to find 2 copies and kill them both. However, this is not critical and the system will work without it. -- Sincerely, Rezk Mekhael Manager, Internet Systems and Services ISS Department California Lutheran University 60 W. Olsen Rd. Thousand Oaks, CA 91361 Office : (805) 493-3947 Pager : (805) 230-4926 Cell : (818) 634-9410 Fax : (805) 493-3842 E-mail : Rezk@clunet.edu