- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: mail command and email header...
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
06-14-2006 03:51 AM
06-14-2006 03:51 AM
mail command and email header...
does any know how to embed email header like 'X-script: $0" vi mail command?
Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-14-2006 03:56 AM
06-14-2006 03:56 AM
Re: mail command and email header...
Most of what is the header is based on system configuraiton and sendmail.cf configuration.
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
06-14-2006 07:31 PM
06-14-2006 07:31 PM
Re: mail command and email header...
for modify the header, i add this lines on my /etc/mail sendmail.mc AND /etc/mail/submit.mc sendmail configuration files.
define(`confRECEIVED_HEADER', `from smtp1.mydomain.fr
by smtp1.mydomain.fr $?r with $r$. id $i$?u
for $u; $|;
$.$b')dnl
define(`confMESSAGEID_HEADER', `<$t.$i@smtp1.mydomain.fr>')dnl
Hope this help you,
Joel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-14-2006 10:12 PM
06-14-2006 10:12 PM
Re: mail command and email header...
You only want to add this header to mails that you're generating from a script and are piping through the 'mail' command, right?
Using 'mail', you can't. It just isn't designed for that.
So, what are your options? Really, not that many.
Two I can think of off the top of my head.
1) Make a file 'script.muttrc', and use 'mutt -F script.muttrc -s "
my_hdr X-Script: scriptname
in the 'script.muttrc' file.
2) Create the entire message and header structure outside of any mail program, with customized header lines etc. in it, and shove the entire thing through 'sendmail -bt
Just some mthoughts.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-08-2006 11:29 PM
10-08-2006 11:29 PM
Re: mail command and email header...
I have a question. I add a custom header to my e-mails, and set up the return-path. The question would be that if the mail doesn't go to the recipient and it is returned at the return adress than is it possible to lose my header or i'll get the mail exactly as i'll sent it???
With respect Zsolt.