The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
ksh : using mailx and attachments madmat Shell Programming and Scripting 2 08-01-2005 08:06 PM
Email Attachments fabbas UNIX for Dummies Questions & Answers 1 10-18-2004 07:36 AM
multiple attachments edog FAQ Submission Queue 5 01-06-2003 11:09 AM
multiple attachments edog How do I send email? 5 01-06-2003 11:09 AM
mail attachments Multithreaded UNIX for Dummies Questions & Answers 1 03-20-2001 04:12 PM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1  
Old 06-22-2007
Registered User
 

Join Date: Jun 2007
Posts: 2
sendmail attachments

Dear all,

I've been working with AIX for, um, 15 years now and I have read all I can about the above, but I am stuck. Everything seems to point to using sendmail on the command line to embed a uuencoded attatchment will not work.

Using something like "(cat plain.txt;uuencode attach.file targ.type) | mail addr@server" works fine, but I need to use the features of sendmail that allow the sender's identity to be changed.

We currently use the latter function in a unix password reset script to e-mail the generated password to the user's MS Outlook account, but we hide the sender and replace it with the helpdesk so if they reply, the mail ends up in a sensible place as there is no route to direct mail back tot he unix host.

Is there anything in the mail command that would allow the function?

I am aware that this could be used for devious reasons, so if anyone would prefer to respond directly rather than posting, I would hope that could be arranged.


Thanks, in advance,
Robin
Reply With Quote
Forum Sponsor
  #2  
Old 06-22-2007
vgersh99's Avatar
Moderator
 

Join Date: Feb 2005
Location: Boston, MA
Posts: 3,003
I don't know about AIX, but .on Solaris' "mailx" one can specify a '-r ReturnAddress' and have all replies to the original email go to the 'ReturnAddress' instead of what's been specified in the 'To:'.
Reply With Quote
  #3  
Old 06-22-2007
reborg's Avatar
Administrator
 

Join Date: Mar 2005
Location: Ireland
Posts: 3,592
This might also be a more generic way of dealing with it.

multiple attachments
Reply With Quote
  #4  
Old 06-22-2007
Registered User
 

Join Date: May 2007
Location: Glasgow, Scotland
Posts: 59
Code:
"(cat plain.txt;uuencode attach.file targ.type) | /usr/lib/sendmail -oi addr@server"
You can tack on whatever other sendmail options you want as well, like -f to specify the envelope return address etc.

HTH,

-c

p.s. not sure where the sendmail binary is in AIX, assuming /usr/lib as per solaris, but i just don't have an AIX machine available at this minute to double check!
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 02:04 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0