LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 08-04-2009, 03:14 AM   #1
smartgupta
Member
 
Registered: Sep 2008
Posts: 81

Rep: Reputation: 15
Not able to Send mail


Hi All,

I am trying to send a mail from my application through SMTP in Linux red hat but unable to send a mail

As unix has more security,So as per me,it is due to security reason..
Please let me know what care should be taken during sending a mail from any application?

So please let me know what I need to do to send a mail properly.
what files i need to check and need to be modified to disable the security..

Thanks in advance..

Last edited by smartgupta; 08-04-2009 at 04:44 AM.
 
Old 08-04-2009, 05:12 AM   #2
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
You could start by giving more info
distribution, what application, error messages ....
 
Old 08-04-2009, 06:23 AM   #3
smartgupta
Member
 
Registered: Sep 2008
Posts: 81

Original Poster
Rep: Reputation: 15
means when I am trying to send mail from telnet.it is connecting to the server but after that became hang..

Quote:

telnet xx.xx.xx.xx 25
Trying xx.xx.xx.xx...
Connected to xx.xx.xx.xx.
Escape character is '^]'.
220 xx-xx.xx.org Microsoft ESMTP MAIL Service, Version: 6.0.3790.3959 ready at Tue, 4 Aug 2009 19:17:40 +0800
250 xx-xx.xx.org Hello [SolarisBox-ip]
afterthat,mail server is not responding.
So please help me to fix it.

thanks in advance...
 
Old 08-04-2009, 08:12 AM   #4
vishesh
Member
 
Registered: Feb 2008
Distribution: Fedora,RHEL,Ubuntu
Posts: 661

Rep: Reputation: 66
You might check Firewall and selinux settings.
use 'system-config-securitylevel' if you are on redhat linux.
From command line

You check can selinux status using
#sestatus
and firewall setting using
#iptables -L
You can flush firewall settings using
#iptables -F
and to make selinux off
#setenforce 0


Thanks
 
Old 08-04-2009, 08:37 AM   #5
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
Quote:
You might check Firewall and selinux settings.
Since he is connected, I don't think it's a firewall issue.

what happens when you type
Code:
helo dude
after the welcome messages ?
If you telnet, it is an interactive shell.

Last edited by repo; 08-04-2009 at 08:39 AM.
 
Old 08-04-2009, 11:41 PM   #6
unixfool
Member
 
Registered: May 2005
Location: Northern VA
Distribution: Slackware, Ubuntu, FreeBSD, OpenBSD, OS X
Posts: 782
Blog Entries: 8

Rep: Reputation: 158Reputation: 158
Where are you telneting from? Are you telneting to localhost or an actual IP. Your mailserver may be configured to only listen on port 25 via localhost so that the system's daemons can send error messages and such to existing accounts. In a setup like that, you won't be able to use sendmail for outbound e-mail. You can test this by attempting to telnet to port 25 from another machine (and not just get a prompt but attempt to manipulate the server from the telnet session, as you could if you telneted to port 80 to another machine).
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Send mail to root but it send to other email smart_jija Solaris / OpenSolaris 5 07-01-2009 01:33 AM
can mail command be used to send mail onto global mail servers like yahoo etc dale_chip Linux - Newbie 4 08-12-2008 08:33 AM
Postfix : mail cannot send to send outside ( can send/receive locally) bobbinsupport Linux - Networking 3 12-15-2007 10:40 PM
with the linux proxi, backend pop3 mail client can not receive mail and send mail rubin823 Linux - Networking 0 12-21-2006 10:06 PM
Server does'nt send mail until shutdown and LAN can't send or receive. Wolfy Linux - Networking 0 08-02-2004 07:31 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 10:41 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration