Possible to send an email to a Linux Server?

Thread Tools Search this Thread
# 1  
Possible to send an email to a Linux Server?

Hello All,

I was curious if its possible to send an email (in reverse) to a linux server from an email client (like Lotus Notes, Outlook, etc...)?

I know it's possible to send an email FROM a Linux Server TO a email address, but I tried to just 'reply' to the Linux Servers
address that sent it to me but I get a "DELIVERY FAILURE: 550 Host Unknown"? I've created quite a few scripts that use
the mail command to send notifications about certain things, like Performance Monitoring data, and stuff like that. But I was
just curious if something like this is possible?

I just figured if you could send emails then maybe you could receive them too...?

Any thoughts would be great!

Thanks in Advance,
# 2  
Indeed most email servers running on UNIX and Linux aren't one-way mail servers as much as mail transport agents -- MTA, for short -- which send, receive, and pass along emails as appropriate.

You can't just send an email "to the server", though, all email uses email addresses.

You used to be able to specify manual routing for email, in fact had to, but this was in the deep dark days before DNS.
This User Gave Thanks to Corona688 For This Post:
# 3  
Hey Corona, thanks for the reply!

Ah ha... Ok, that makes sense.
Thanks for the info... I'll look into MTA, and play around with it a bit. Other then that it's not really a big deal. I was just curious..!

Thanks Again for the info,
# 4  
On a LAN, you could use sth like user@hostname, where user exists on hostname, and hostname is resolved on the LAN, be it by hosts file, or by DNS. And, of course, an MTA must be running on hostname, listening on the mail port (smtp, 25).
This User Gave Thanks to RudiC For This Post:
# 5  
Hey RudiC, thanks for the reply!

Sorry, is that "sth" (i.e. "S T H", couldn't tell)..?

For the way you describe is that through the command line?
Also, I'm not too familiar with MTA, so if I can send an email to MY work email address through the CLI and it gose through, does that infer that
MTA is in fact running on the server?

The server in question is: (*I know its a pretty old version...)
SLES 10.2 (i686)

Thanks Again,

---------- Post updated at 04:39 PM ---------- Previous update was at 04:37 PM ----------

Also, I just came across this while googling around a bit, could this be what I'm looking for?

email - How do I painlessly receive mail in linux and feed it to Rails? - Stack Overflow

# 6  
sth = something
You could use netstat to check if the MTA is listening on that node. Then just try and
mail user@hostname

and see what happens... or try
mail root@localhost

# 7  
Hey RudiC, thanks for the reply!

Ok, so I ran the 1st command and successfully sent an email to my work email address.

In netstat I can see the following for smtp... I wasn't sure if that's what I was supposed to be looking for in netstat?
 netstat -at | grep -i smtp
tcp        0      0 localhost:smtp          *:*                     LISTEN

Is that what you wanted me to check for in netstat, a listening smtp port?

Thanks Again,

Previous Thread | Next Thread
Thread Tools Search this Thread
Search this Thread:
Advanced Search

Test Your Knowledge in Science: Computers
Difficulty: Easy
In most programming languages, the operator ++ is equivalent to the statement "+= 1".
True or False?

10 More Discussions You Might Find Interesting

1. UNIX and Linux Applications

Send email from outlook to server

Hi, I am sending an email from Microsoft Outlook 2010 (microsoft exchange) to a unix server. I am not receiving the email in server but I am getting the following error in outlook. Your message: From: x@y.com Subject: Could not be delivered because the domain name was... (4 Replies)
Discussion started by: Neethu
4 Replies

2. Shell Programming and Scripting

send email from unix server

HI Guys, I want send email from my script ..and i have tried below command still no luck. ( uuencode $Adm "Test.txt" ) | mailx -s "Test" P***.P****@at***.com mailx -s "test mail" P****.P***@at***.com < $Admin Any other option.... (2 Replies)
Discussion started by: asavaliya
2 Replies

3. UNIX for Dummies Questions & Answers

Configuring mail to send email from server to client

Hi, I want to send an email from server to my gmail account for all critical messages reported in the server. Kindly help me in configuring the same. Regards Rochit (1 Reply)
Discussion started by: rochitsharma
1 Replies

4. Shell Programming and Scripting

Send email from sendmail on AIX using exchange server as SMTP server

i am new in AIX i am trying to write a script to take a backup for specific files on server to and check error log if backup success send email to administrator , script done except for sending mail , i try to configure sendmail on aix to use our exchange server to send emails but still get error... (0 Replies)
Discussion started by: ahmed_salah
0 Replies

5. Shell Programming and Scripting

Script to send email after comparing the folder permissions to a certain permission & send email

Hello , I am trying to write a unix shell script to compare folder permission to say drwxr-x-wx and then send an email to my id in case the folders don't have the drwxr-x-wx permissions set for them . I have been trying to come up with a script for few days now , pls help me:( (2 Replies)
Discussion started by: nairshar
2 Replies

6. Solaris

Send an email from Solaris using Linux email server

Hello everyone I have a problem and I need your help: I have a Solaris 10 and Solaris 8 UNIX Servers, and Linux Centos4 as email server. I need send an email from Solaris servers preferably using Centos4 email server. I have no mail service configured in my Solaris computers (1 Reply)
Discussion started by: aflores
1 Replies

7. AIX

how to configure server to send email in AIX

Hi, anyone can guide me how to configure server to send email in AIX. My server is in a closed network, what do I need to configure and how? SMTP gateway? mail server? Thanks and best regards Solomon (4 Replies)
Discussion started by: chongkls77
4 Replies

8. UNIX for Advanced & Expert Users

How to know whether I am able to send email from unix server or not?

How to know whether I am able to send email from unix server or not? I ma trying to send mail to my gmail id using command sendmail -s "Subject" abc@gmail.com Hi How are you? . It showed that You are not allowed to send mail. My question is there any file which contains the list of... (0 Replies)
Discussion started by: siba.s.nayak
0 Replies

9. UNIX for Dummies Questions & Answers

how to send mail from server to client's email-id

i want to send email from server to the client's email-id. server is solaris. please help me out.i want to send mail to the email-id not to the var/spool/mail. (8 Replies)
Discussion started by: parmeet
8 Replies

10. UNIX for Dummies Questions & Answers

Send email to another server on AIX

I am trying to send an email to another server but i don't seem to be able to do it. I can receive mail form other servers but not send out. I am using IBM AIX 4.x Any knows whcih configuration file i need to set ? or any network port to look out for ? (1 Reply)
Discussion started by: owls
1 Replies

Featured Tech Videos