04-12-2011
Well, you can shell out a mail command or do SMTP/ESMTP right in PERL. I'd log all the data in a table, and periodically send an updated report of recent activity, perhaps as a URL and summary, so there is not a cloud of emails to an active user.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I need a script to open a text file with ip's in it, ping them, split the results into the ip and time from the results and e-mail them ?
here what i've done.
its porbly wrong and not workin.its for win nt4
use Net::SMTP;
# get list of ip's to ping
open (PINGFILE, "< c:\\Documents and... (20 Replies)
Discussion started by: perleo
20 Replies
2. Post Here to Contact Site Administrators and Moderators
Is there a way to setup an e-mail job (thru my account) to send me e-mail every time a new
question or response to PERL is entered into a forum?
thanks,
djehresmann (1 Reply)
Discussion started by: djehresmann
1 Replies
3. Shell Programming and Scripting
Hi All,
Is there any way Unix shell script can directly read a mail on a mail server
(for eg. abc@xyz.com) and save it as a text file in a unix directory ?
Thanks
PRKS
---------- Post updated at 08:37 AM ---------- Previous update was at 08:36 AM ----------
I am using ksh (1 Reply)
Discussion started by: PRKS
1 Replies
4. Shell Programming and Scripting
Dear unix forum members,
I'm working on a script that will parse a mail machine's logs and print a list of email addresses in this format:
authen@domain.com | sender@domain | recipient@domain
exam
account1@domain1.com | sender2@domain2.com |... (3 Replies)
Discussion started by: puka
3 Replies
5. Shell Programming and Scripting
I have written small piece of code to send mail through perl script.Below is the code.I have executed it as #
perl perlmail.pl and the code got executed with no errors.
Still have not received any mail.
Also I have installed Mail::send module from CPAN directly but no luck.
Could any mail... (2 Replies)
Discussion started by: giridhar276
2 Replies
6. Shell Programming and Scripting
Hi Folks,
I have few mailids in a text file and need to check whether the mailid is in correct format or not.
If just to check whether the string is a mailid or not there is a perl module Email::Valid to do the business or we can implement our own logic.
But the mail_ids I am having is... (4 Replies)
Discussion started by: giridhar276
4 Replies
7. Shell Programming and Scripting
Hi All,
My requirement is i have a script A.sh .When a person A runs the script A.sh it should get locked and person B should not run the script.
i followed the below code
f_script_lock()
{
process=$1
user=`ps -ef | grep -i "$process" | grep -i 'ksh' | awk '{print $1;}'`
if ; then
... (1 Reply)
Discussion started by: mohanalakshmi
1 Replies
8. Shell Programming and Scripting
I have a existing perl program , in this program it will output a email address list to a variable ( $email_list ) , mail content to a variable ( $email_content ) , if I want to send all email to these email address with corresponding content , would aadivse how to write a perl script ?
thanks (2 Replies)
Discussion started by: ust3
2 Replies
9. Shell Programming and Scripting
Need assistance in programming perl script .
Below script works but Needs slight modification .
This script actually sends attachment as well the image in message. Runs locally but If I run in a directory path , image doesnt come but attachment comes in the message . How can i take the <img... (2 Replies)
Discussion started by: ajayram_arya
2 Replies
10. Programming
I have reviewed many examples on-line about running another process (either PERL or shell command or a program), but do not find any usefull for my needs way. (Reviewed and not useful the system(), 'back ticks', exec() and open())
I would like to run another PERL-script from first one, not... (1 Reply)
Discussion started by: alex_5161
1 Replies
LEARN ABOUT OSF1
qmail-remote
qmail-remote(8) System Manager's Manual qmail-remote(8)
NAME
qmail-remote - send mail via SMTP
SYNOPSIS
qmail-remote host sender recip [ recip ... ]
DESCRIPTION
qmail-remote reads a mail message from its input and sends the message to one or more recipients at a remote host.
The remote host is qmail-remote's first argument, host. qmail-remote sends the message to host, or to a mail exchanger for host listed in
the Domain Name System, via the Simple Mail Transfer Protocol (SMTP). host can be either a fully-qualified domain name:
silverton.berkeley.edu
or an IP address enclosed in brackets:
[128.32.183.163]
The envelope recipient addresses are listed as recip arguments to qmail-remote. The envelope sender address is listed as sender.
Note that qmail-remote does not take options and does not follow the getopt standard.
TRANSPARENCY
End-of-file in SMTP is encoded as dot CR LF. A dot at the beginning of a line is encoded as dot dot. It is impossible in SMTP to send a
message that does not end with a newline. qmail-remote converts the UNIX newline convention into the SMTP newline convention by inserting
CR before each LF.
It is a violation of the SMTP protocol to send a message that contains long lines or non-ASCII characters. However, qmail-remote will hap-
pily send such messages. It is the user's responsibility to avoid generating illegal messages.
RESULTS
qmail-remote prints some number of recipient reports, followed by a message report. Each report is terminated by a 0 byte. Each report
begins with a single letter:
r Recipient report: acceptance.
h Recipient report: permanent rejection.
s Recipient report: temporary rejection.
K Message report: success. host has taken responsibility for delivering the message to each acceptable recipient.
Z Message report: temporary failure.
D Message report: permanent failure.
After this letter comes a human-readable description of what happened.
The recipient reports will always be printed in the same order as qmail-remote's recip arguments. Note that in failure cases there may be
fewer recipient reports than recip arguments.
qmail-remote always exits zero.
CONTROL FILES
helohost
Current host name, for use solely in saying hello to the remote SMTP server. Default: me, if that is supplied; otherwise qmail-remote
refuses to run.
smtproutes
Artificial SMTP routes. Each route has the form domain:relay, without any extra spaces. If domain matches host, qmail-remote will
connect to relay, as if host had relay as its only MX. (It will also avoid doing any CNAME lookups on recip.) host may include a
colon and a port number to use instead of the normal SMTP port, 25:
inside.af.mil:firewall.af.mil:26
relay may be empty; this tells qmail-remote to look up MX records as usual. smtproutes may include wildcards:
.af.mil:
:heaven.af.mil
Here any address ending with .af.mil (but not af.mil itself) is routed by its MX records; any other address is artificially routed to
heaven.af.mil.
The qmail system does not protect you if you create an artificial mail loop between machines. However, you are always safe using smt-
proutes if you do not accept mail from the network.
timeoutconnect
Number of seconds qmail-remote will wait for the remote SMTP server to accept a connection. Default: 60. The kernel normally imposes
a 75-second upper limit.
timeoutremote
Number of seconds qmail-remote will wait for each response from the remote SMTP server. Default: 1200.
SEE ALSO
addresses(5), envelopes(5), qmail-control(5), qmail-send(8), qmail-smtpd(8), qmail-tcpok(8), qmail-tcpto(8)
qmail-remote(8)