From: Roger Realsen (roger.realsen@wareforce.com)
Date: Wed Dec 11 2002 - 11:40:28 EST
Thanks to all for the many responses. Below find the different options that
were recommended.
++++++++++++++++++++++++++++++++++++++++++++++++
SET THE MASQUERADE OPTION
In the server's sendmail.cf:
---- # who I masquerade as (null for no masquerading) (see also $=M) DM ---- After the DM put "domain.com", so you have: # who I masquerade as (null for no masquerading) (see also $=M) DMdomain.com Save, kill and restart sendmail and test. Emails should then bear a "From" header of "user@domain.com" instead of user@server.domain.com <mailto:user@server.domain.com> . +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ IN THE COMMAND LINE I think it's -r then the user: "mailx -r myrealemail@company.com <mailto:myrealemail@company.com> -m -s "SOME SUBJECT" john_doe@company.com < some_file_name" ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ "FORGE" THE MESSAGE HEADER If you want to forge the mail header (that's what you're doing in essence!) you can generate a file that starts with mail header stuff like this: From: User Name <username@servername.mycompany.com> To: john_doe@company.com Reply-To: username@servername.mycompany.com Return-Path: username@servername.mycompany.com Subject: MWAIS (Mail Without An Interesting Subject) <<the rest of your mail starts here, mind the one blank line!>> The file can then be emailed with the following command: /usr/lib/sendmail -t filename -----Original Message----- From: Roger Realsen [mailto:roger.realsen@wareforce.com] Sent: Tuesday, December 10, 2002 10:37 AM To: Hewlett Packard (hpux-admin@dutchworks.nl) Subject: [HPADM] MAIL - Send From Question Gurus HP9000 D250 HPUX 11.0 The above server is not utilized as client email at all. We have an Exchange system in place for our users. Our users do log in to the above server though and through an application they all use, generate email from this server. In most cases the application will generate a file and command line syntax as follows: "mailx -m -s "SOME SUBJECT" john_doe@company.com < some_file_name" Now, when the email is received by John Doe the FROM is set as the user who initiated the program. So it looks something like this: "username@servername.mycompany.com" Now I kind of understand why that is doing that. I was wondering if there is a way to set the FROM address in a command line so that I can have the REPLY feature work properly when someone receives the email. Any help appreciated. Sincerely, Roger Realsen Director of IT WF Acquisition Sub, Inc. 19 Morgan Irvine, CA 92618 PH: (949) 472-9000 FX: (949) 452-1413 Email: roger.realsen@wareforce.com -- ---> Please post QUESTIONS and SUMMARIES only!! <--- To subscribe/unsubscribe to this list, contact majordomo@dutchworks.nl Name: hpux-admin@dutchworks.nl Owner: owner-hpux-admin@dutchworks.nl Archives: ftp.dutchworks.nl:/pub/digests/hpux-admin (FTP, browse only) http://www.dutchworks.nl/htbin/hpsysadmin (Web, browse & search)
This archive was generated by hypermail 2.1.7 : Sat Apr 12 2008 - 11:02:23 EDT