Re: mail command option for return address on linux



Sam <sam@xxxxxxxxxxxxxx> wrote:
[deleted]
Prakash writes:

Hello All,

I am migrating/porting Solaris scripts to Linux Platform.
One of script uses mailx command on Solaris and we don't have mailx on
Linux.
Company policy is not to install mailx rpm on production server for
some security reason.

Your company should also have a policy of firing whoever sets such a policy,
for incompetence. Really, there is no such security reason, at all.

Perhaps someone heard of the very ancient mailx (Berkeley Mail) bug by
which you could get it to execute commands embedded in mail messages?

At the time that was, amongst others, (ab)used in News control
messages in order to try to get info from News systems for later breakin
attempts. (News admin accounts often used Berkeley Mail to mail News
control messages to the News admin.) Of course all of this is over a
decade ago.

[deleted]

Forget the mail command. Use the sendmail command, and provide whatever you
want to provide, in your From: header, and the -f option.

And there ain't no way your rocket scientists are going to remove the
sendmail command, since a lot of stuff is going to break if they do.

Does 'Linux' have the ssmtp (send-only sendmail look-alike) command by
default? If so, that might be another option.

But I agree with you, sendmail is the best option, i.e. make it a UNIX
solution instead of a Linux one. I.e. better a de facto standard than no
standard.

[deleted]
.



Relevant Pages

  • Stupid mailx question
    ... I am trying to port some scripts that were writen in tru64 over to linux ... and when I try to execute the script that uses mailx to send a uuencoded ... attachment that takes in a command as standard input from a file and ... run a script or command but yet it is listed in the man page. ...
    (Tru64-UNIX-Managers)
  • Re: ot: anyone know about mailx differences between solaris and linux?
    ... This option tells mailx to take the details of to:, ... on linux, the -t option is not recognised ... This is what was going into the mailx -t command as an ...
    (uk.rec.motorcycles)
  • [PATCH 19-rc2] Fix misc .c/.h comment typos
    ... Implements an interface for i2c compatible eeproms to run under linux. ... Changed struct initializer syntax to the currently preferred notation ... ** Packet is an actual packet structure to be filled in with the packet ... -** as the command processore doesn't process the command packet in any way. ...
    (Linux-Kernel)
  • Re: [opensuse] deleting
    ... during the installation of jre 1.5.0 (according to the install ... i'm learning and having fun with my new toy, the command line interface. ... understand and use linux more efficiently. ... /bin/sh is the Bourne Shell. ...
    (SuSE)
  • Re: how i will open (from Java Application) the MS word format /html documentsin repective Applicati
    ... documentsin repective Applications in Linux OS? ... What I did in the Linux version of our product was require an external ... I create a URI object around it and use that. ... array by separating the CDE command line at the spaces, ...
    (comp.lang.java.programmer)