I need to create one KSH which will send mail to set of recipients using "mailx" command like below.
The recipients are in different domains (like yahoo, gmail, etc.).
My requirement is, if any mail is undelivered, then I need to re-direct that notification to admin user (email id).
Please let me know if it is possible to re-direct the undelivered mail notification to another mail id.
Thanks.
---------- Post updated 01-06-11 at 04:41 PM ---------- Previous update was 01-05-11 at 11:25 PM ----------
Found one workaround for this.
This will send the undelivered notification to admin@domain.com email address.
But the note here is, if the recipient email address is valid, then they will receive the email with sender as admin@domain.com.
Please suggest if there are any other workaround available.
I have used the forum to determine the format required to send attachments from hp-ux 11. the problem I have is that using mailx does not attach the file, but subsititing mailx for mail on the command line attaches the file but i'm not able to specify a subject?
The attachment has been convert... (3 Replies)
i am creating a script that will send an email to a list of recepients listed in a file.
if for some reason the mail was undelivered, is it possible to redirect the "undelivered email notification" to another email address?
thanks! (0 Replies)
Hi
I want to use mailx command to send a message included more than one file.
I tried to use uuencode in pipe but it could only generate one file.
I would avoid using an archive file :p
Thanks to read you.
Mathieu (2 Replies)
I have read through all documents in FAQ and have run into an issue with sending an email with body message text and an email attachment. I have included what I have thus far and I can get the message body to send in the email to work only. I cannot understand the uuencode even after I read the... (5 Replies)
Hi ,
I am using mailx command for sending the mails. Rightnow I am sending the attachment (by using uuencode $filename) as a seperate mail.I wanna send the attachment also with the same mail. (6 Replies)
while trying to send a mail, though the output file doesn't contain any exclamatory mark(!), i am getting that in the mail with an extra line. please help me out from this ASAP. (3 Replies)
i need to output an ls command to a file but also capture any errors from that command and output them to a log file and the screen.
if it's only possible to output them to a log file and not the screen then that's fine.
this is what i've tried so far, but it won't populate log.txt. i've... (16 Replies)
I am using ksh on an AIX box.
I would like to redirect the stdout and stderr to a file but also show them on the terminal. Is this possible? I have tried tee within my file without success.
This is the code I have so far
exec > imp.log 2>&1 | tee exec 1>&1
I am new to shell scripting, so... (3 Replies)
Hi All,
I am trying to send a mail from linux server but could'nt able to send the mail.
I tried the below syntax's so far but no luck.
mail -s “Hello world” abc@xyz.com < /usr/g/txt.log
cat "txt.log" | mailx -s "Hello world" abc@xyz.com
mailx -s “Hello world” abc@xyz.com <... (2 Replies)
Whats the difference between mail and mailx?
I'm trying to troubleshoot a problem where I can send mail from server A with this `echo $MESSAGE | mail -s "$SUBJECT" -r $FROM $RECIPIENTS` command but executing the same command from server B throws me this error (Both servers are RHEL)
... (1 Reply)