[tslug] sendmail

2004-04-13 Thread Minko Minkov
Hello,
I would like to ask is there any way I can run sendmail on my computer to send 
mail to anyone I like. How do I have to configure it to work with the truman 
network. I have it running but it is not working properly. The mails I send 
are never received. There is something else. when I nslookup my IP i have the 
following output:

Server: 150.199.101.1
Address:150.199.101.1#53

** server can't find 194.177.243.150.in-addr.arpa: SERVFAIL
I guess it has to return hostname.truman.edu
thanks

-
To get off this list, send email to [EMAIL PROTECTED]
with Subject: unsubscribe
-



[tslug] Sendmail attachments/Apache access log

2002-09-09 Thread Bill Sawyer

I want to write some type of script that will run as a cron job every night 
after the logs roll over.  It will do the following (excuse the pseudocode, 
it's the best way I can explain all of this).

[EMAIL PROTECTED]
MAILFILE=mail.tmp

Set $DATE with date +%Y%m%d
cp access_log.1 to $DATE.log

echo From: [EMAIL PROTECTED] (nobody)  $MAILFILE
echo To: $SENDER  $MAILFILE
echo Subject: Log files: $DATE  $MAILFILE #where date is the variable; 
excuse my horrible syntax if that doesn't work
echo \n  $MAILFILE

sendmail -t $SENDER  $MAILFILE and with $date.log attached

I guess I need to do some perl work for this one.  Help would be appreciated.

Thanks,
Bill