--- Adrian Hicks wrote:
> Yes as Leonardo has stated I can use the sendmail
> command in XMail. However this will only work on
> the XMail machine; if I send a message from
> another server using the mail utility the problem
> still exists.
In the hope to be of help, I submit a bash script you
can use to send mail from any machine. I use it to
send the status of the soft RAID (/proc/mdstat) in our
VPN:
begin ---
#! /bin/bash
ENV1="HELO vpn\r\n"\
"MAIL FROM: <>\r\n"\
"RCPT TO: <[EMAIL PROTECTED]>\r\n"\
"DATA\r\n"\
"From: [EMAIL PROTECTED]"\
"To: Lista-Rede <[EMAIL PROTECTED]>\r\n"\
"Subject: Status do RAID na VPN\r\n"\
"\r\n"
ENV2=".\r\n"\
"QUIT\r\n"
(echo -ne $ENV1; cat /proc/mdstat; \
echo -ne $ENV2; sleep 3) > /dev/tcp/xmail/smtp
end ---
You can add/change anything, including the return-path
(currently empty because I don't want a reply). If you
don't like the last line, you can change it to:
echo -ne $ENV2; sleep 3) | nc xmail 25
Regards.
_______________________________________________________
Yahoo! doce lar. Faça do Yahoo! sua homepage.
http://br.yahoo.com/homepageset.html
-
To unsubscribe from this list: send the line "unsubscribe xmail" in
the body of a message to [EMAIL PROTECTED]
For general help: send the line "help" in the body of a message to
[EMAIL PROTECTED]