Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 14 Mar 2007 16:09:49 -0500
From:      Derek Ragona <derek@computinginnovations.com>
To:        Laszlo Nagy <gandalf@designaproduct.biz>, freebsd-questions@freebsd.org
Subject:   Re: sendmail not working?
Message-ID:  <6.0.0.22.2.20070314160910.024dc2f8@mail.computinginnovations.com>
In-Reply-To: <45F86213.10604@designaproduct.biz>
References:  <45F86213.10604@designaproduct.biz>

next in thread | previous in thread | raw e-mail | index | archive | help
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:
>
><man 8 sendmail>
>       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.
></man 8 sendmail>
>
>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.




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6.0.0.22.2.20070314160910.024dc2f8>