From owner-freebsd-questions@FreeBSD.ORG Wed Dec 13 20:44:54 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 2E99816A407 for ; Wed, 13 Dec 2006 20:44:54 +0000 (UTC) (envelope-from lane@joeandlane.com) Received: from elasmtp-spurfowl.atl.sa.earthlink.net (elasmtp-spurfowl.atl.sa.earthlink.net [209.86.89.66]) by mx1.FreeBSD.org (Postfix) with ESMTP id B754E43C9F for ; Wed, 13 Dec 2006 20:43:22 +0000 (GMT) (envelope-from lane@joeandlane.com) Received: from [66.47.111.183] (helo=joeandlane.com) by elasmtp-spurfowl.atl.sa.earthlink.net with asmtp (Exim 4.34) id 1GuayC-0001Qc-PM for freebsd-questions@freebsd.org; Wed, 13 Dec 2006 15:44:53 -0500 Received: from joeandlane.com (localhost.localnet.local [127.0.0.1]) by joeandlane.com (8.13.8/8.13.1) with ESMTP id kBDKlSHk052857 for ; Wed, 13 Dec 2006 14:47:28 -0600 (CST) (envelope-from lane@joeandlane.com) Received: from localhost (localhost [[UNIX: localhost]]) by joeandlane.com (8.13.8/8.13.1/Submit) id kBDKlSTq052856 for freebsd-questions@freebsd.org; Wed, 13 Dec 2006 14:47:28 -0600 (CST) (envelope-from lane@joeandlane.com) X-Authentication-Warning: joeandlane.com: lholcombe set sender to lane@joeandlane.com using -f From: Lane To: freebsd-questions@freebsd.org Date: Wed, 13 Dec 2006 14:47:27 -0600 User-Agent: KMail/1.9.4 References: <20061206034909.27125.qmail@web37214.mail.mud.yahoo.com> <200612131333.20652.lane@joeandlane.com> <7a4a15bd0612131231q3fd8e9eat198da67d41cbef48@mail.gmail.com> In-Reply-To: <7a4a15bd0612131231q3fd8e9eat198da67d41cbef48@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200612131447.28141.lane@joeandlane.com> X-CD-SOLUTIONS-MailScanner-Information: Please contact the ISP for more information X-CD-SOLUTIONS-MailScanner: Found to be clean X-CD-SOLUTIONS-MailScanner-From: lane@joeandlane.com X-ELNK-Trace: e56a4b6ca9bdfda11aa676d7e74259b7b3291a7d08dfec7989e2038e6fd22abbdcad69cbb0f9e9c7350badd9bab72f9c350badd9bab72f9c350badd9bab72f9c X-Originating-IP: 66.47.111.183 Subject: Re: how do I see security logs without turning on sendmail? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 13 Dec 2006 20:44:54 -0000 On Wednesday 13 December 2006 14:31, Tuareg wrote: > On 12/13/06, Lane wrote: > > Tuareg, > > > > What happens when you do this: > > > > telnet localhost > > telnet localhost 25 > Trying 127.0.0.1... > telnet: connect to address 127.0.0.1: Operation timed out > telnet: Unable to connect to remote host > > > Does the connection time out? Or do you get a sendmail prompt? > > > Yes, the connection time out. > No, I don't get the sendmail prompt, because there is no sendmail running. > > ps axwww | grep sendmail > 47237 p0 R+ 0:00.00 grep sendmail > > > I'm sort of mixed up on the order of the posts, here. But let me see if I > > > can > > rephrase the problem .... and then possibly help you find a solution ... > > > > It seems to me that the problem is that you cannot determine how to make > > FreeBSD 6.x do like other hosts under your influence, so that it will > > send email from root@localhost to another (possibly a hub) server? Is > > that correct? > > Yes, we have older versions of FreeBSD (4.x and 5.x) running on remote > servers > where we can't interrupt the service, in this servers, we can send e-mails > to our > main e-mail server, were we get reports of scripts. > > In those servers, we don't have running sendmail, look: > > ps axwww | grep sendmail > 19702 p0 D+ 0:00.00 grep sendmail > % > %telnet localhost 25 > Trying 127.0.0.1... > telnet: connect to address 127.0.0.1: Permission denied > telnet: Unable to connect to remote host > > But, we are able to send emails: > > mail -v user@main.server.com > Subject: Test > Testing from FreeBSD 4.6-RELEASE > . > EOT > user@main.server.com... Connecting to main.server.com via esmtp... > 220 main.server.com ESMTP > > >>> EHLO server.FreeBSD.4.6-RELEASE > > 250-main.server.com Hello > 250-8BITMIME > 250-SIZE 31457280 > 250-ETRN > 250-DSN > 250 PIPELINING > > >>> MAIL From: SIZE=78 > > 250 Sender OK > > >>> RCPT To: > > 250 Recipient OK > > >>> DATA > > 354 Enter your message, followed by a dot on a line by itself > > >>> . > > 250 AYQ81844 Message accepted for delivery > user@main.server.com... Sent (AYQ81844 Message accepted for delivery) > Closing connection to main.server.com > > >>> QUIT > > 221 main.server.com Goodbye > > > First I assume that these other FreeBSD installations are also using > > > sendmail. > > If that is NOT correct then your best hope is to replicate your mta > > configuration from those other hosts. In fact that might not be a bad > > idea > > regardless of what they are running :) > > You are right, all this installations are also using sendmail. > > But again, assuming you want to run sendmail and ONLY allow the localhost > to > > > transmit out to another host for collection and/or distribution, enter > > this > > value into /etc/rc.conf: > > > > sendmail_enable="NO" > > > > Now edit /etc/mail/freebsd.mc. Locate the term "SMART_HOST," uncomment > > that > > line, and enter the IP address or fully qualified domain name of your > > upstream server in place of 'your.isp.mail.server' > > > > Note: If 'your.isp.mail.server' is NOT resolvable on the localhost, then > > you > > must use the IP address. When you use the IP address, you must put it in > > [square brackets], like [192.168.2.1]. > > > > Now from /etc/mail, type > > > > make all install > > > > then shutdown and restart the server using your method of choice, or just > > type > > > > /etc/rc.d/sendmail restart > > > > And try to send email again. All should work now. > > > > But you must remember to configure the TARGET mail server to allow this > > host > > to send. I'll leave that as an exercise for you. > > > > lane > > Have some doubts... about this procedure.. I'm going to explain why.... > > In this server (from the example, server.FreeBSD.4.6-RELEASE, where we can > send e-mail, but sendmail it's not running, rc.conf contains: > sendmail_enable="NONE", sendmail it's not running: > > ps axwww | grep sendmail > 19702 p0 D+ 0:00.00 grep sendmail > > And how I showed you in this messages, we are able to send messages, well.. > root can do it, as a normal user I can't: > > mail -v user@main.server.com > Subject: TEST > Testing from FreeBSD 4.6-RELEASE > . > EOT > collect: Cannot write ./dfkBDJDkW19705 (bfcommit, uid=xxx): Permission > denied > queueup: cannot create queue temp file ./tfkBDJDkW19705, uid=xxx: > Permission denied > > The older sysadmin who made this configuration with FreeBSD 4.6-RELEASE, > quit the job and didn't leave any documentation, a how to, nothing, were he > explain how he did this. > > That's the reason why we are looking to repeat this configuration with > FreeBSD 6.1-RELEASE, but couldn't do it.. yet. > > Thank you for your help. > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to > "freebsd-questions-unsubscribe@freebsd.org" Tuareg, Post /etc/rc.conf from one of the servers that does what you want and that should lead us to what mta is handling email. Also, please post a copy of ls -al /usr/local/etc/rc.d from that same working server, just in case there is a custom script starting the mta. lane