From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Tom Linden Newsgroups: gmane.os.tru64.managers Subject: SUMMARY: Open Relay Sendmail on 5.1A? Date: Mon, 02 Sep 2002 08:51:07 -0700 Sender: tru64-unix-managers-owner@ornl.gov Message-ID: References: <3D737184.8030405@oakland.edu> NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=Windows-1252 Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1030982480 7950 127.0.0.1 (2 Sep 2002 16:01:20 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 2 Sep 2002 16:01:20 +0000 (UTC) Return-path: Original-Received: from sws1.ctd.ornl.gov ([160.91.20.101]) by main.gmane.org with smtp (Exim 3.35 #1 (Debian)) id 17ltde-00023z-00 for ; Mon, 02 Sep 2002 18:01:18 +0200 Original-Received: (qmail 10750 invoked by uid 5); 2 Sep 2002 16:02:48 -0000 Original-Followup-To: poster Precedence: bulk Original-Received: (qmail 10741 invoked by uid 49493); 2 Sep 2002 16:02:48 -0000 Original-Received: from tom@kednos.com by sws1 by uid 49491 with qmail-scanner-1.14 (clamscan: 0.24. Clear:. Processed in 0.406684 secs); 02 Sep 2002 16:02:48 -0000 Original-Received: from unknown (HELO emroute1.cind.ornl.gov) (160.91.4.119) by 0 with SMTP; 2 Sep 2002 16:02:48 -0000 Original-Received: from emroute1.cind.ornl.gov (localhost [127.0.0.1]) by emroute1.cind.ornl.gov (PMDF V6.1-1 #39060) with ESMTP id <0H1T00DVMJ8NAP@emroute1.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Mon, 02 Sep 2002 12:02:48 -0400 (EDT) Original-Received: from freja.kednos.com (freja.kednos.com [206.160.220.7]) by emroute1.cind.ornl.gov (PMDF V6.1-1 #39060) with SMTP id <0H1T00G8XJ8EL3@emroute1.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Mon, 02 Sep 2002 12:02:39 -0400 (EDT) Original-Received: from unknown.hostname (206.160.220.11) by freja.kednos.com (V5.1-15H, OpenVMS V7.3 Alpha); Mon, 02 Sep 2002 09:02:25 -0700 (PDT) In-Reply-To: <3D737184.8030405@oakland.edu> Original-To: Tru64 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) Importance: Normal X-Priority: 3 (Normal) X-MSMail-priority: Normal Xref: main.gmane.org gmane.os.tru64.managers:1549 X-Report-Spam: http://spam.gmane.org/gmane.os.tru64.managers:1549 Below is the original post with some responses, which ranged from stopping it running as a demon to removing it, certainly takes care of the open-relay problem. However, if you wanted to run as a POP server you would need to allow a one-hop relay from known IP. I didn't look into this, but maybe someone who has can add an ADDENDUM. I installed 5.1A this past week and didn't do a lot of custom configuring, but I discovered this morning numerous returned mail messages stem from use of this machine as an open relay. Firstly, I am a bit astonished that 5.1a ships with this feature turned on. In this day and age you would think that you should have to take an overt action to turn it on! In any event, I just killed the sendmail process, since I run smtp on OpenVMS and don't need it here, but for reference, how do I turn it off, so I won't have this problem again when I reboot? > >Tru64 Sendmail comes default with relay on. You can do too things, make >your server a client (man mailsetup) and turn sendmail off, or contact >HP or your support contact and get the patch to turn off Relay. > >Finally, you can download sendmail (see sendmail.org for details) and >use their sendmail.cf or use their sendmail distro. You could also use >postfix et.al. > >Sellers > Remove or rename the files that start it, probably: /sbin/rc3.d/S40sendmail When the system starts up and goes multiuser, level 3, it runs everything in /sbin/rc3.d that starts with an S. - Jerry Berkman, UC Berkeley I had the same problem :-( Go to /sbin/rc3.d and either rm or mv the Sxxsendamil entry where xx is a two digit number. James W. Caldwell [caldwell@heimdal.compchem.ucsf.edu] init-scripts are in /sbin/init.d, either move the link in /sbin/rc3.d or the script itself away. FYI, there are a lot of other daemons that are probably unneeded. see the list archives Timo Aaltonen [tjaalton@cc.hut.fi] mv /sbin/rc3.d/S40sendmail /sbin/rc3.d/T40sendmail will stop it from starting up as a daemon, but still allow it to send messages. If you're the paranoid sort just chmod 000 /usr/sbin/sendmail Lucas Carey [lcarey@odd.bio.sunysb.edu] What we do here is turn off sendmail from accepting incoming SMTP connections. In /sbin/init.d/sendmail file, we remove the -bd option so that sendmail is startup as follows: nohup $SBIN/sendmail -q15m ${ARGS} 2> /dev/null & This allows mail to go out from this system, but no mail is accepted. Works for us. A. Mahendra Rajah [Mahendra.Rajah@URegina.CA] Tru64 has always been behind the curve with independent internet app distribution. Upon OS installation, I always grab the latest sendmail source. I have step-by-step directions for 8.12.5 if you need them. Relaying is turned off by default in 8.11 and 8.12 (and I *think* 8.10). J Bacher [jb@jbacher.com] --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.381 / Virus Database: 214 - Release Date: 8/2/2002