Re: Mail is not working (any way to send message when daemon is down)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Oct 09, 2003 at 03:18:05PM -0700, Chris W. Parker wrote:
> 
> p.s. someone correct me if i am wrong!! thanks!


# Do a mail header, then add body.

( printf "\
>From $from@$mydomain `date`\n\
Return-Path: <$from@$mydomain>\n\
To: Master of the Domain and all that Lies Herein\n\
Subject: Init Status Report\n\
Date: `date`\n\
From: `basename $0`@`hostname -s`\n\
Message-Id: <`date '+%s'`@$mydomain>\n\n\n\
  Status Report\n\n"

cat_or_some_other_cmd_goes_here_to_flesh_out_the_bod ) \
 |procmail -d $mailto_dude           # <---- delivery is here, bypassing smtp

Crude paste from one of my scripts, with minor mods that might need
some testing first, but works as I use it all the time to bypass spam
checks from stmpd.

-- 
Hal Burgiss
 


-- 
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list

[Index of Archives]     [CentOS]     [Kernel Development]     [PAM]     [Fedora Users]     [Red Hat Development]     [Big List of Linux Books]     [Linux Admin]     [Gimp]     [Asterisk PBX]     [Yosemite News]     [Red Hat Crash Utility]


  Powered by Linux