- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: sendmail question
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
Forums
Discussions
Discussions
Discussions
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
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
01-03-2005 07:12 AM
01-03-2005 07:12 AM
sendmail question
Have a question regarding sendmail. Is there a way to create a aliase within sendmail so when a job is run in cron as root the message indicates it is from h_hosea as opposed to root. Right now all messages coming from our unix servers indicate the sender being root@ourdomain.org would like to have sender indicate the name of the server; eg h_hosea@ourdomain.org.
Hope this makes sense, any input would be helpful. Thank you for help
WVSA
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-03-2005 07:18 AM
01-03-2005 07:18 AM
Re: sendmail question
You can add a user to the cron.allow list, login as that particular user and do a crontab -e, add the job and when the email comes out it will come from that user instead of root.
Hope this helps.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-03-2005 07:23 AM
01-03-2005 07:23 AM
Re: sendmail question
Assuming your cron entry looks like this:
* * * * * 1 /usr/contrib/bin/script 2>&1 mailx -s "Subject" someone@your.net
change it to:
* * * * * 1 /usr/contrib/bin/script 2>&1 mailx -r h_hosea@ourdomain.org -s "Subject" someone@your.net
Whether the email is accepted by the outside world will depend on whether the domain name is public and fully qualified.
Also note that outside systems like mine and aol's will not accept email from systems without valid reverse lookup addresses.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-03-2005 07:25 AM
01-03-2005 07:25 AM
Re: sendmail question
You can use the -r reply_to_add@domain.com with the mailx command and the mail would be shown as being sent by reply_to_add@domain.com to the user receiving the mail.
some_cron_job |mailx -s "subject" -r h_hosea@ourdomain.org email_addresses
Hope this helps.
Regds
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-03-2005 07:28 AM
01-03-2005 07:28 AM
Re: sendmail question
If you need to do this for more number of userids, you can use the userdb database to do the masquerading. Take a look at this thread from itrc on how to configure and user userdb database to change the sender info,
http://www1.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&docId=200000068402500
The itrc doc id is KBRC00010421.
Hope this helps.
Regds
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-03-2005 07:56 AM
01-03-2005 07:56 AM
Re: sendmail question
From:kapilraj@kapil.com
To:kapilraj@kaps.com
Subject:Test Email
>>>>>>>>
>>>>>>>>
Appended contents
>>>>>
>>>>>
save the above file onto /tmp/letter$$
then
sendmail -t /tmp/letter$$
I use this in aix but it must have the same syntax in hp as well ...
Sendmail has another switch called "-f" thru which u can send an email as a diffrent id
Kaps