LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 12-23-2012, 05:16 AM   #1
decenter
Member
 
Registered: Sep 2011
Distribution: Fedora release 21 (Twenty One)
Posts: 156

Rep: Reputation: 19
How to configure SMART_HOST For sendmail


Hello,

I'm trying to use sendmail to send email via a SMTP server, since the server is in internal network. The SMTP server is in public network. I used this documentation

http://www.dnsexit.com/support/mailrelay/sendmail.html

and configured SMART_HOST. But, when I send email, the SMTP server rejects the email due to the fact that it is coming of root@localhost.com

Code:
(reason: 550-Verification failed for <root@localhost.com>)

   ----- Transcript of session follows -----
... while talking to mail.server.com.:
>>> DATA
<<< 550-Verification failed for <root@localhost.com>
<<< 550-The mail server could not deliver mail to root@localhost.com.  The account or domain may not exist, they may be blacklisted, or missing the proper dns entries.
But I used telnet to send email, it works and comes in to the inbox.

Code:
[root@localhost mail]# telnet 127.0.0.1 25
Trying 127.0.0.1...
Connected to 127.0.0.1.
Escape character is '^]'.
220 localhost ESMTP Sendmail 8.14.4/8.14.4; Sun, 23 Dec 2012 15:40:38 +0530
HELO server
250 localhost Hello localhost [127.0.0.1], pleased to meet you
MAIL from:tempid@id.com
250 2.1.0 tempid@id.com... Sender ok
RCPT to:id@id.com
250 2.1.5 id@id.com... Recipient ok
DATA
354 Enter mail, end with "." on a line by itself
Subject:Test mail vid record
from:tempid@id.com
to:id@id.com
test email not working?
.
250 2.0.0 qBNAAcZZ002661 Message accepted for delivery
quit
221 2.0.0 localhost closing connection
Connection closed by foreign host.
Any light on this?
 
Old 12-23-2012, 06:59 AM   #2
Ser Olmy
Senior Member
 
Registered: Jan 2012
Distribution: Slackware
Posts: 3,340

Rep: Reputation: Disabled
Quote:
Originally Posted by decenter View Post
and configured SMART_HOST. But, when I send email, the SMTP server rejects the email due to the fact that it is coming of root@localhost.com

Code:
(reason: 550-Verification failed for <root@localhost.com>)

   ----- Transcript of session follows -----
... while talking to mail.server.com.:
>>> DATA
<<< 550-Verification failed for <root@localhost.com>
<<< 550-The mail server could not deliver mail to root@localhost.com.  The account or domain may not exist, they may be blacklisted, or missing the proper dns entries.
It clearly says that mail cannot be delivered to root@localhost.com, which makes sense if the domain doesn't exist.

You could capture the traffic with tcpdump to verify that the recipient address is indeed the problem, rather than the sender.
 
Old 12-23-2012, 10:19 PM   #3
decenter
Member
 
Registered: Sep 2011
Distribution: Fedora release 21 (Twenty One)
Posts: 156

Original Poster
Rep: Reputation: 19
The issue is not that. I'm sending mail from a localhost via sendmail (configured SMART_HOST). The mail server rejects the email from localhost and send a failure message back and even that is getting rejected.
 
Old 12-23-2012, 10:45 PM   #4
njainn
LQ Newbie
 
Registered: Oct 2012
Posts: 2

Rep: Reputation: Disabled
Can u ping the server in outside n/w , if not then check gateway and add the n/w in the routing table then it will work
route add -net n/w name/netmask device-name
 
Old 12-24-2012, 12:50 AM   #5
decenter
Member
 
Registered: Sep 2011
Distribution: Fedora release 21 (Twenty One)
Posts: 156

Original Poster
Rep: Reputation: 19
No. Routing issue is not there. I checked this document: http://www.cyberciti.biz/faq/configu...-a-smart-host/

In that document, they didn't say about where to enter SMTP usrernames and password.
 
  


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 with SMART_HOST venikathir Linux - Server 8 09-30-2011 07:16 AM
Sendmail Problems (using smart_host) c00kie Linux - Server 3 01-03-2008 08:55 PM
Sendmail, SMART_HOST, and website ScooterB Linux - Server 1 01-10-2007 04:38 AM
sendmail SMART_HOST configuration henrycoffin Linux - Enterprise 0 12-18-2006 08:59 AM
smart_host configuration in sendmail.mc sln Linux - General 5 12-02-2003 03:36 AM

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

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