Re: Configuring FreeBSD 6.2 to use sendmail for sending only



Chuck, I'd prefer to have the script handle the
mailing so I can test the script (with email send)
manually, independent of cron.

Still looking for specifics on setting this up and a
bourne shell script example that sends an email.
Thanks!

--- Chuck Swiger <cswiger@xxxxxxx> wrote:

On Aug 30, 2007, at 3:12 PM, L Goodwin wrote:
I wrote a shell script that backs up the file
server.
I would like to modify this script to email a
notification message to a public email address.

Use cron, which will automatically email out the
results of your
script to any email address you like.

Seems like sendmail should do the job nicely, but
I've never set it
up before.

What specific steps (including network-specific)
need
to be performed to get sendmail working for
outgoing
mail only in a secure manner?

Please see the fine Handbook:



http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/mail.html

Although, it is entirely reasonable to consider
using Postfix instead.

--
-Chuck






____________________________________________________________________________________
Be a better Heartthrob. Get better relationship answers from someone who knows. Yahoo! Answers - Check it out.
http://answers.yahoo.com/dir/?link=list&sid=396545433
_______________________________________________
freebsd-questions@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscribe@xxxxxxxxxxx"



Relevant Pages

  • SUMMARY: cron entry: nth day of every month?
    ... cron can not handle this with its own syntax. ... 21st but "command" only runs if the output of the "date" command ... What I would suggest is rather than embedding the logic in each script ... The answer is it is _not_ possible to control it only with crontab ...
    (Tru64-UNIX-Managers)
  • Re: Cron Jobs
    ... > having a cron will mean yo server is forced by the script ... > best than allowing mail dequeing by connection. ... > host server so I can get emails for my domain example.com. ...
    (RedHat)
  • [Solved] Long cronjobs terminate after 2 minutes/Ubuntu 8.10
    ... When I run the script in the foreground, it takes about 2 hours to ... Have you got your system set up so that cron sends mail to ... I configured Postfix for local mail only and updated ... I'm assuming that configuring the MTA is what did it. ...
    (Ubuntu)
  • Re: Silent Cron Jobs
    ... afaik cron mails all output from a script. ... cronjob I usually dump all stdout ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
    (Debian-User)
  • Re: changing crons From: address in emails
    ... They all say they are from the "Cron Daemon". ... know more clearly which server the cron output is from. ... Then everything you print out in the script will be captured as the body ... Why not just echo `hostname` as the first line of every script? ...
    (freebsd-questions)