LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-17-2011, 10:13 AM   #1
pshankland
Member
 
Registered: Feb 2006
Location: UK
Distribution: CentOS 5.5
Posts: 46

Rep: Reputation: 15
Question CentOS 5.6 Sendmail - Send to 'other' SMTP server


Hi,

I am having a few problems with configuring Sendmail on a fresh install of CentOS 5.6 32Bit and was after some help.

I have a couple of CentOS boxes installed and want them to send Emails to my domain account via our existing internal Lotus Domino SMTP server. I have followed a lot of online documents about how to configure this (such as http://cri.ch/linux/docs/sk0009.html) but when I try am not even getting anything in my SMTP servers logs for a connection.

What I have basically done is uncomment the following:

define(`SMART_HOST', `your-smtp-server')

and added the IP address of my SMTP server (have tried FQDN as well). The SMTP server doesn't require authentication so I assume I don't need to do anything else than above. I have then completed the following:

m4 /etc/mail/sendmail.mc > /etc/mail/sendmail.cf

and then restarted sendmail. When I then try "sendmail -bv peter.shankland@domain.tld" I get the following:

peter.shankland@domain.tld... deliverable: mailer relay, host 172.29.1.76, user peter.shankland@domain.tld

which looks hopeful. However, now when I run "sendmail peter.shankland@domain.tld" I don't get anything delivered. I have telnet'd (on port 25) into the SMTP server with no problems from the CentOS box so it isn't an access issue.

Any suggestions?

Thanks.
 
Old 08-17-2011, 10:15 AM   #2
pshankland
Member
 
Registered: Feb 2006
Location: UK
Distribution: CentOS 5.5
Posts: 46

Original Poster
Rep: Reputation: 15
I forgot to include the undeliverable mail info:

==========================================================================
Date: Wed, 17 Aug 2011 16:11:54 +0100
From: Mail Delivery Subsystem <MAILER-DAEMON@ntp1.domain.tld>
To: <ts-admin@ntp1.domain.tld>
Subject: Returned mail: see transcript for details
Auto-Submitted: auto-generated (failure)

[-- Attachment #1 --]
[-- Type: text/plain, Encoding: 7bit, Size: 0.4K --]

The original message was received at Wed, 17 Aug 2011 16:11:54 +0100
from localhost.localdomain [127.0.0.1]

----- The following addresses had permanent fatal errors -----
<peter.shankland@domain.tld>
(reason: 550 Host unknown)

----- Transcript of session follows -----
550 5.1.2 <peter.shankland@domain.tld>... Host unknown (Name server: 172.29.1.76: host not found)

[-- Attachment #2 --]
[-- Type: message/delivery-status, Encoding: 7bit, Size: 0.3K --]

Reporting-MTA: dns; ntp1.domain.tld
Received-From-MTA: DNS; localhost.localdomain
Arrival-Date: Wed, 17 Aug 2011 16:11:54 +0100

Final-Recipient: RFC822; peter.shankland@domain.tld
Action: failed
Status: 5.1.2
Remote-MTA: DNS; 172.29.1.76
Diagnostic-Code: SMTP; 550 Host unknown
Last-Attempt-Date: Wed, 17 Aug 2011 16:11:54 +0100

[-- Attachment #3 --]
[-- Type: message/rfc822, Encoding: 7bit, Size: 0.5K --]

Date: Wed, 17 Aug 2011 16:11:51 +0100
From: ts-admin@ntp1.domain.tld

hello

==========================================================================

Thanks.
 
Old 08-18-2011, 02:23 AM   #3
pshankland
Member
 
Registered: Feb 2006
Location: UK
Distribution: CentOS 5.5
Posts: 46

Original Poster
Rep: Reputation: 15
Sorry to bump but anyone got any suggestions?

Thanks.
 
Old 08-18-2011, 03:04 AM   #4
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,

Quote:
550 5.1.2 <peter.shankland@domain.tld>... Host unknown (Name server: 172.29.1.76: host not found)
Your domain (domain.tld) does not have an MX record to point to your mailserver, or the nameserver in /etc/resolv.conf cannot find it.
Can you send email to gmail.com or other external mail server? And what gives:
Code:
dig mx domain.tld
Also, you can put the IP address of your smarthost into square brackets, so sendmail doesn't try to resolve it.
Code:
define(`SMART_HOST', `[172.29.1.76]')
 
1 members found this post helpful.
Old 08-18-2011, 03:33 AM   #5
pshankland
Member
 
Registered: Feb 2006
Location: UK
Distribution: CentOS 5.5
Posts: 46

Original Poster
Rep: Reputation: 15
Smile

Hi, thanks so much for the reply

Code:
define(`SMART_HOST', `[172.29.1.76]')
Worked perfectly!!

Thanks.
 
  


Reply

Tags
sendmail



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
CentOS mail setup - sendmail via external SMTP server taing@jtkdev.com Linux - Networking 1 07-31-2011 05:29 AM
[SOLVED] Sendmail to use Gmail's SMTP to send mail lpallard Linux - Software 12 05-01-2011 01:05 PM
sendmail can't send to my smtp-server boggiTBU Linux - Server 1 09-03-2007 05:22 AM
can't send email, smtp or sendmail dtra Linux - Software 1 11-19-2005 06:00 PM
SENDMAIL as an SMTP RELAY SERVER that can send email to internet. how? kublador Linux - Software 7 10-25-2003 08:43 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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