Operating System - HP-UX
1827245 Members
2172 Online
109716 Solutions
New Discussion

Not showing who sent the mesaage using mailx

 
Jeff Paciolla_1
Frequent Advisor

Not showing who sent the mesaage using mailx

Hi All -
I am sending messages from my HP-UX box to peoples pagers using an automated script. This works fine. My question is, is there anyway to not show in the text of the message on the pager who the message came from. I have already stopped the subject from coming across, I just want to stop the Fr:sender.name@xyz.com from appearing. My customers pagers are charged based on characters received, and I want to limit that cost.

Thanks
JEff
4 REPLIES 4
Jacob_2
Advisor

Re: Not showing who sent the mesaage using mailx

Jeff,

We had a similar problem ,to reduce our pager fee, we needed to cut the subject and the sender.
Unfortunately the sender couldnot be masked off of obvious spamming threats.

However when we spoke to the pager service provider,we managed to get it done.
Only they can control this field.
Jack Marshall
Occasional Advisor

Re: Not showing who sent the mesaage using mailx

You can't remove it, but you could use "mail" to cut it down...

/tmp/mailheader contains, e.g.:
To: PAGERLIST
Importance: high
Reply-To: user.name
Subject: Please call

/tmp/details contains your text.

#cat /tmp/details | (cat /tmp/mailheader - | mail PAGERNO)


Hope this is useful.
Frank Slootweg
Honored Contributor

Re: Not showing who sent the mesaage using mailx

Perhaps you should have a look at "sendmail -t". It is more 'flexible' than mailx(1) and sendmail will be called anyway.

Just form a message with

Any header lines, i.e. stuff like "To:".
A blank line.
The text body of the message.

and pipe that message to "sendmail -t".

Perhaps you can limit the amount of received data by using "Bcc:" instead of "To:".
As others have mentioned, you probably can not really suppress "From:" because if you do, you will probably get a "Sender:" line in its place.
Shannon Petry
Honored Contributor

Re: Not showing who sent the mesaage using mailx

All of the RFC's for sending email require that the sender is specified. There is no mail server I know of (publicly available) that strips the senders email from messages.

In turn, every mail server requires a sender's name to accept/receive email.

Obviously spammers would love to have a program which does this for them. :) They would love even more mail servers that took crap from no-one!


Follow the advice of the previous poster, and talk to the pager company. They may allow this to be removed or restricted to a code/department name, etc...

Regards,
Shannon
Microsoft. When do you want a virus today?