LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (http://www.linuxquestions.org/questions/linux-server-73/)
-   -   Sendmail routes via 127.0.0.1 instead of using external server (http://www.linuxquestions.org/questions/linux-server-73/sendmail-routes-via-127-0-0-1-instead-of-using-external-server-705196/)

casey0999 02-16-2009 06:54 PM

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

datopdog 02-18-2009 06:37 AM

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.

casey0999 02-18-2009 12:49 PM

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

Thanks

datopdog 02-19-2009 01:18 AM

Code:

sendmail -bv external@external_domain

andrew.petter 06-28-2011 10:27 AM

I have the same problem, have anyone got any solution ??


All times are GMT -5. The time now is 07:51 AM.