1828008 Members
2320 Online
109973 Solutions
New Discussion

sendmail

 
SOLVED
Go to solution
Jannik
Honored Contributor

sendmail

Hey,

I would like to send a mail without sender information:

echo "hej" | mail test@test.com

Is there anyway to put nothing in sender information?
jaton
5 REPLIES 5
Steven E. Protter
Exalted Contributor
Solution

Re: sendmail

There is no proper way to send without some kind of sender information. At the very least your mail will arrive with a header that shows the ip address the mail came from.

When I send mail from my dns enabled HP-UX and linux servers it comes with the user name of user_name@hostname by default.

Most incoming mail systems that are exposed to the Internet require this information anyway, many now such as my own will not accept mail from a email address that can't be verified by reverse dns lookup.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Fred Ruffet
Honored Contributor

Re: sendmail

by using mailx, you can do :
mailx test@test.com -r me@test.com
and me@test.com will be seen as sender. But sender cannot be empty (or space). So maybe you could use a generic sender name...

Regards,

Fred
--

"Reality is just a point of view." (P. K. D.)
Geoff Wild
Honored Contributor

Re: sendmail

A blank sender is a no-no....

Can not be done easily - would require writing your own rules in sendmail.cf - and as Steven points out - a lot of servers won't accept the email at all - part of anti SPAM.

Question I have - why would you want to send an email without sender information?

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Jannik
Honored Contributor

Re: sendmail

it for use in telco (sms) :-)
jaton
Naveej.K.A
Honored Contributor

Re: sendmail

Hi,

i have heard of some rulesets in sendmail like ruleset one which defines the sender of the mail message and can be altered or programmed to see that its coming from some other user.

Another way to do would use of aliasing using the /etc/mail/aliases database.

good luck tweaking sendmail.cf

With best wishes
Naveej
practice makes a man perfect!!!