LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 06-01-2011, 10:29 AM   #1
abhilashop
LQ Newbie
 
Registered: Jun 2011
Posts: 1

Rep: Reputation: Disabled
Unable to send mail from linux server to outside using Sendmail


I have configured Sendmail client to send mail to outside network ( Within local domain ), but i am unable to send any mail as i am getting the following error,


[root@cclx10 mail]# cat test |sendmail -v abhilash-o.padmanabhan@hp.com
abhilash-o.padmanabhan@hp.com... Connecting to [127.0.0.1] via relay...
abhilash-o.padmanabhan@hp.com... Deferred: Connection refused by [127.0.0.1]


I have the following configuration in my "/etc/sendmail.cf" file


# SMTP daemon options

O DaemonPortOptions=Port=smtp,Addr=15.146.237.113, Name=MTA


And netstat is showing that sendmail is listening on Port 25 on the IP address which is mentioned.


[root@cclx10 mail]# netstat -an |grep 25
tcp 0 0 15.146.237.113:25831 0.0.0.0:* LISTEN
tcp 0 0 15.146.237.113:25 0.0.0.0:* LISTEN

Kindly let me know if anyone has any idea...


Thanks
Abhilash
 
Old 06-02-2011, 03:36 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Hi,

Your sendmail is listening only on the public IP. If you want to make it listen on every available interface (including local loopback 127.0.0.1), you need to edit sendmail.mc and use:
Code:
DAEMON_OPTIONS(`Port=smtp, Name=MTA')dnl
Then rebuild sendmail.cf

Regards
 
  


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
Sendmail - mail server rejected email and unable to send ghostplanet Linux - Server 4 02-24-2010 10:10 PM
Unable to send mail to outer domain using SMART_HOST in sendmail.mc adhar Linux - General 8 12-22-2009 06:17 AM
Why my 2 mail server cannot send mail to each other via Sendmail? nelson.ck.sit Linux - Newbie 4 12-09-2008 07:22 PM
sendmail to send all email to another mail server it@stcroixknits.com Linux - Software 2 10-27-2006 10:19 AM
Mail Server Issues; Can't Send E-mail (using sendmail) Vegetarian Smoker Linux - Software 1 06-18-2006 02:16 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 04:33 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