LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 02-16-2009, 06:54 PM   #1
casey0999
LQ Newbie
 
Registered: Jul 2003
Location: California & London
Posts: 15

Rep: Reputation: 0
Unhappy Sendmail routes via 127.0.0.1 instead of using external server


Hello-

I had sendmail working at one point on my Fedora system, but under Fedora 6 I no longer can send emails. I am attempting to send mail from the local machine to external email addresses, using my sbcglobal server (which works from another Windows system).

Problem is, when I use sendmail -v to see what's happening, mail is being delivered to my localhost 127.0.0.1 instead of to the external smtp server: smtp.sbcglobal.yahoo.com

The first line of the log is:
scott@xxxx.com... Connecting to [127.0.0.1] via relay... (instead of my external SMTP server)

I have the following lines, as before, in my sendmail.mc file, and have set up the authinfo database correctly I believe:
define(`SMART_HOST', `smtp.sbcglobal.yahoo.com')dnl
FEATURE(`authinfo')dnl
LOCAL_DOMAIN(`mydomain.com')dnl
MASQUERADE_AS(`mydomain.com')dnl
FEATURE(`masquerade_envelope')dnl
FEATURE(`allmasquerade')dnl
FEATURE(`masquerade_entire_domain')dnl

Probably something simple, but I can't figure out why mail isn't being routed to the sbcglobal server instead of 127.0.0.1

THANKS in advance
Scott
 
Old 02-18-2009, 06:37 AM   #2
datopdog
Member
 
Registered: Feb 2008
Location: JHB South Africa
Distribution: Centos, Kubuntu, Cross LFS, OpenSolaris
Posts: 806

Rep: Reputation: 41
Code:
cd /etc/mail
make restart
That will create a new sendmail.cf file for you editing the sendmail.mc file alone is not enough as sendmail uses the cf file not the mc file.
 
Old 02-18-2009, 12:49 PM   #3
casey0999
LQ Newbie
 
Registered: Jul 2003
Location: California & London
Posts: 15

Original Poster
Rep: Reputation: 0
yes, I already re-create the .cf file after any change to the .mc, so I don't think that's it.

Thanks
 
Old 02-19-2009, 01:18 AM   #4
datopdog
Member
 
Registered: Feb 2008
Location: JHB South Africa
Distribution: Centos, Kubuntu, Cross LFS, OpenSolaris
Posts: 806

Rep: Reputation: 41
Code:
sendmail -bv external@external_domain
 
Old 06-28-2011, 10:27 AM   #5
andrew.petter
LQ Newbie
 
Registered: Jun 2011
Posts: 1

Rep: Reputation: Disabled
I have the same problem, have anyone got any solution ??
 
  


Reply

Tags
configuration, sendmail


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 : relay=[127.0.0.1] [127.0.0.1], dsn=4.0.0, stat=Deferred: Connection refuse macadam Linux - Software 0 09-23-2007 02:44 PM
Sendmail Relay-Domains From External Server littlenicker Linux - Networking 3 05-25-2005 11:45 AM
sendmail and external mail server levand Linux - Networking 10 12-17-2004 09:45 AM
configure sendmail to use external mail server Drogo Linux - Software 0 09-16-2004 09:16 PM
sendmail on 127.0.0.1 only whysyn Slackware 4 07-11-2004 07:00 AM


All times are GMT -5. The time now is 08:28 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration