07-15-2013
First, you have to distinguish between mail as a (network) protocol and the means (clients, servers, MTAs, ...) to use this protocol.
The mail protocol - SMTP - allows to send messages with any name as sender. As "mailx" is a very basic client it does nothing to authenticate a user at all, so: yes, in the way you presented it it would be possible to send mail using any arbitrary mail address as sender. Yes, this would work for other email addresses too, provided that your mail server (more precisely: mail transfer agent, MTA) is set up this way. In fact this is the way professional spammers work: by setting up a MTA of their own and configuring it in a sufficiently crooked way.
This is the reason why you should not trust incoming mail (solely) based on the mail address of the sender: because this could be forged.
Now, in a common setup the MTA would not allow to send mail with an arbitrary sender address and/or has rules to rewrite address information when handling mail messages. Your MTA (probably "sendmail") is perhaps set up only rudimentary to allow sending diagnostic information via mail to the admins. This is not uncommon: if a filesystem becomes nearly full or a similar condition takes place the server might generate a mail message to the admin(s). For this the MTA is installed and set up with minimal effort. This does not automatically mean it could send mail anywhere outside the companies network. If so: this is a security deficit and should be taken care of.
I hope this helps.
bakunin
This User Gave Thanks to bakunin For This Post:
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Excuse me for this question really for dummies!
I would like to know how sendmail works, obviously even in few words.
If it uses a mail server or relay to send mail, if there is some check that sendmail makes to the from address and so on...
Thank you very much. (3 Replies)
Discussion started by: alzep
3 Replies
2. Shell Programming and Scripting
hello all.
I'm not asking about the algorithm - or how it goes about computing the checksum - I'm asking how it views/looks at the files it does the cksum on.
For instance:
Say you had a directory named "dir_A"
And within this directory you had some files.
So:
dir_A
- file1
-... (5 Replies)
Discussion started by: kapolani
5 Replies
3. UNIX for Dummies Questions & Answers
If I use the "Mail" link instead of the "mail" link to ../mailx I get this error.
Mail so-n-so @whatever.com
mailx: NUL changed to @
Unknown command: "postmaster"
The email still goes through but i get the error.
If I use "mail" it goes thru without the error.
Any ideas?? (2 Replies)
Discussion started by: BG_JrAdmin
2 Replies
4. UNIX for Dummies Questions & Answers
ls displays files in tabbed output. Say a directory contains 3 files. ls will list all 3 in one line. So, I expect ls | wc -l to give 1, but it counts the nr of files and gives 3.
Can someone explain how this works? (3 Replies)
Discussion started by: krishmaths
3 Replies
5. Programming
pls explain me how this works....
DECODE (SUBSTR (field, 1, 1),'''', '''''' || field || '''','''' || field || '''')
here field is a column in an oracle table.... (7 Replies)
Discussion started by: vijay_0209
7 Replies
6. Solaris
HI,
Just another dummies questions:
How i can determine what number of inode to use when creating filesystem?
Thanks (4 Replies)
Discussion started by: lamoul
4 Replies
7. UNIX for Dummies Questions & Answers
When I try to execute script, I get message:
>aa.pl
zsh: command not found: aa.pl
but
>./aa.pl
works OK.
What to change in environment to force the former way to work?
Thank you,
Alex Z (4 Replies)
Discussion started by: zzol
4 Replies
8. Shell Programming and Scripting
Hi All,
Can anyone please provide the command for sending an mail with attachment using mailx command.
Thanks in Advance :)
Regards,
Siram. (3 Replies)
Discussion started by: Sriram.Vedula53
3 Replies
9. UNIX for Advanced & Expert Users
I have a program............
#include<stdio.h>
#include<unistd.h>
main()
{
if(fork == 0)
{
printf("Hi every body:p!!!!!!!!!!");
}
}
This program works with out any error. here fork is not a system call. It just act as a variable.But how it works without declaring it? What data type it... (19 Replies)
Discussion started by: carolsanjeevi
19 Replies
10. Shell Programming and Scripting
hi,
can any one explain the below command. run it and see and if you understand please tell me.
File=s1_abc.txt.xls.pdf
MOD_File=$(echo ${File%.*}_`date +%Y%m%d_%H%M%S%N`.${File##*.})
i asked somedays before and got the above code. i needed to add date time stamp just before the last... (2 Replies)
Discussion started by: Little
2 Replies
LEARN ABOUT CENTOS
reporter-mailx
REPORTER-MAILX(1) LIBREPORT MANUAL REPORTER-MAILX(1)
NAME
reporter-mailx - Sends contents of a problem directory via email.
SYNOPSIS
reporter-mailx [-v] -d DIR [-c CONFFILE]
DESCRIPTION
The tool reads a problem directory, composes an email message from the directory contents, and uses mailx to send the message to specified
recipient.
Properties of email messages can be specified in a configuration file, and via environment variables.
Configuration file
Configuration file contains entries in a format "Option = Value".
The options are:
Subject
The subject of the email message.
EmailFrom
The sender of the email message.
EmailTo
The recipient of the email message.
SendBinaryData
Use yes/true/on/1 to attach all binary files from the problem directory to the email. This can cause the emails to be very large.
Integration with ABRT events
reporter-mailx can be used as a reporter, to allow users report problems via email when they decide to do it. This usage is pre-configured
in /etc/libreport/events.d/mailx_event.conf:
EVENT=report_Mailx reporter-mailx
It can also be used to notify administrator automatically when a problem happens. When this is desired, modify the event configuration file
to run the tool on the post-create event:
EVENT=post-create reporter-mailx
OPTIONS
-d DIR
Path to problem directory.
-c CONFFILE
Path to configuration file. When used in ABRT event system, the file contains site-wide configuration. Users can change the values via
environment variables.
ENVIRONMENT VARIABLES
Environment variables take precedence over values provided in the configuration file.
Mailx_Subject
Subject of the email message.
Mailx_EmailFrom
Sender of the email message.
Mailx_EmailTo
Recipient of the email message. If nor the environment variable nor the corresponding option is defined, the message is send to
"root@localhost".
Mailx_SendBinaryData
Use yes/true/on/1 to attach all binary files from the problem directory to the email.
AUTHORS
o ABRT team
LIBREPORT 2.1.11 06/18/2014 REPORTER-MAILX(1)