From owner-freebsd-questions@FreeBSD.ORG Wed Mar 14 21:10:28 2007 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 3CBD316A4D2 for ; Wed, 14 Mar 2007 21:10:28 +0000 (UTC) (envelope-from derek@computinginnovations.com) Received: from betty.computinginnovations.com (dsl081-227-250.chi1.dsl.speakeasy.net [64.81.227.250]) by mx1.freebsd.org (Postfix) with ESMTP id A905A13C455 for ; Wed, 14 Mar 2007 21:10:25 +0000 (UTC) (envelope-from derek@computinginnovations.com) Received: from p28.computinginnovations.com (dhcp-10-20-30-100.computinginnovations.com [10.20.30.100]) (authenticated bits=0) by betty.computinginnovations.com (8.13.8/8.12.11) with ESMTP id l2EL9v2a059282; Wed, 14 Mar 2007 16:09:58 -0500 (CDT) Message-Id: <6.0.0.22.2.20070314160910.024dc2f8@mail.computinginnovations.com> X-Sender: derek@mail.computinginnovations.com X-Mailer: QUALCOMM Windows Eudora Version 6.0.0.22 Date: Wed, 14 Mar 2007 16:09:49 -0500 To: Laszlo Nagy , freebsd-questions@freebsd.org From: Derek Ragona In-Reply-To: <45F86213.10604@designaproduct.biz> References: <45F86213.10604@designaproduct.biz> Mime-Version: 1.0 X-ComputingInnovations-MailScanner-Information: Please contact the ISP for more information X-ComputingInnovations-MailScanner: Found to be clean X-ComputingInnovations-MailScanner-From: derek@computinginnovations.com X-Spam-Status: No Content-Type: text/plain; charset="us-ascii"; format=flowed X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Subject: Re: sendmail not working? 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, 14 Mar 2007 21:10:28 -0000 You need to make sure sendmail is starting and running. Check your rc.conf and any variables that might need to be set. -Derek At 03:58 PM 3/14/2007, Laszlo Nagy wrote: > Hi All, > >Got a problem with FreeBSD 6.2 (upgraded from 6.1): cron is not sending >out e-mails. However, it is running: > >messias# ps ax | grep cron >988 ?? Ss 0:01.86 /usr/sbin/cron -s > >But, if I write this into the crontab of root: > >SHELL=/bin/csh >* * * * * echo "Test" > > >then I do not get any e-mail. This machine has an ssh tunnel that forwards >TCP/25 port to another machine. Postfix is installed on this machine, but >it is not enabled. I believe that sendmail should work for local >addresses, even if the SMTP server is not listening locally. At least, >sendmail(8) tells this: > > > With no flags, sendmail reads its standard input up to an end-of-file > or a line consisting only of a single dot and sends a copy of the mes- > sage found there to all of the addresses listed. It determines the > network(s) to use based on the syntax and contents of the addresses. > > Local addresses are looked up in a file and aliased >appropriately. > > >Here is a quick test that I did: > >messias# sendmail gandalf >Test2 >. >messias# mail >Mail version 8.1 6/6/93. Type ? for help. >"/var/mail/gandalf": 1 message > > 1 MAILER-DAEMON@messia Fri Nov 10 12:27 13/664 "DON'T DELETE THIS > MESSAGE -- FOLDER INTERNAL DATA" >& > >I have many scripts that I would like to run from cron. Probably they >throw errors, but I have no clue what are those errors, because I'm not >getting mails from cron. What should I do? > >Another question: is it possible to setup cron so that it uses a different >SMTP server for sending e-mails? If so, can I specify this for one user >only? Well, the obvious solution would be to create a special user and >create a .forward file, right? > >Thanks in advance, > > Laszlo > >_______________________________________________ >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" > >-- >This message has been scanned for viruses and >dangerous content by MailScanner, and is >believed to be clean. >MailScanner thanks transtec Computers for their support. > -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks transtec Computers for their support.