- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- how to change sender account before send a message...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-29-2004 07:21 PM
тАО03-29-2004 07:21 PM
I need to make the sender from sendmail appears as another user account for example (apps11i@fin01.paltel.ora) to be (apps11i@fin01.paltel.net)
Regards
Burhan Koni
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-29-2004 07:41 PM
тАО03-29-2004 07:41 PM
SolutionOn the host sending the mail, change your sendmail.cf to enable the genericstable feature - look for:
# Generics table (mapping outgoing addresses)
Kgenerics dbm -o /etc/mail/genericstable
in your sendmail.cf
In the /etc/mail directory, create a file called genericstable and in there put your desired address (should all be on one line):
apps11i@fin01.paltel.ora apps11i@fin01.paltel.net
Now create the map:
makemap dbm /etc/mail/genericstable < /etc/mail/genericstable
This will create a map file for use by sendmail.
Stop/restart sendmail, and send a test mail. As long as your host (and you relay maybe if you have internal relaying) can resolve fin01.paltel.net your mail should be deliverd.
Col.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-29-2004 08:00 PM
тАО03-29-2004 08:00 PM
Re: how to change sender account before send a message using sendmail
cat > /tmp/message.txt
From: bob@kohala.com
Subject: Hello dude
To: nicolas.dumeige@orga.com
[you message]
^D
Send it
cat /tmp/message.txt | /usr/lib/sendmail -t
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-29-2004 09:33 PM
тАО03-29-2004 09:33 PM
Re: how to change sender account before send a message using sendmail
From the sendmail man page;
-fname Sets the name of the ``from'' person (i.e., the
sender of the mail) to name. If the user of the -f
option is not a ``trusted'' user (normally root,
daemon, and network) and if the name set using the -f
option and the login name of the person actually
sending the mail are not the same, it results in an
X-Authentication-Warning in the mail header.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-01-2004 01:02 AM
тАО04-01-2004 01:02 AM
Re: how to change sender account before send a message using sendmail
Check thread http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=54607
for a complete setup of the genericstable feature.
Alternatively (in scripts) use "sendmail -t" or
mail and build your own mail headers:
/usr/bin/mail recipient.somewhere.com <<_EOF_
From: Faked_From_Address
To: Recipient (may be faked too)
Reply-To: If_necessary
Subject: Some Subject
some data in mail body.
_EOF_
Regards,
Armin