LinuxQuestions.org
Register a domain and help support LQ
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 05-09-2008, 12:04 AM   #1
jc_cpu
Member
 
Registered: May 2006
Distribution: Fedora 14
Posts: 71

Rep: Reputation: 15
Cannot send mail to the outside world.


I'm trying to set up an email server on my Fedora 8 box, but I've run into some trouble. I can send mail to any account that is local to the machine, but if I try to send an email to the outside world, I get errors like the ones below in my mail log. It says "stat=Service unavailable" when trying to send to a GMail account. I get similar results when trying to send to a yahoo account. Please note that I suppressed the server name and email addresses for confidentiality.


May 8 23:49:52 servername sendmail[5135]: m494nm7R005133: to=<outside email address>, ctladdr=<return address> (500/500), delay=00:00:04, xdelay=00:00:04, mailer=esmtp, pri=120767, relay=gmail-smtp-in.l.google.com. [209.85.201.114], dsn=5.0.0, stat=Service unavailable
May 8 23:49:52 servername sendmail[5135]: m494nm7R005133: m494nq7R005135: DSN: Service unavailable

I know that this can be fixed somehow, but I'm a email server newbie. Can someone please help me? Thanks in advance.
 
Old 05-09-2008, 12:29 AM   #2
Simon Bridge
Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 197Reputation: 197
In the "Postmaster" mailbox, you have a DSN message.
It contains clues.
 
Old 05-09-2008, 01:33 AM   #3
billymayday
Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
I don't use sendmail, but this looks a bit like you are trying to relay through gmail servers and relaying is being denied. Does that sound possible given your setup?
 
Old 05-09-2008, 08:41 AM   #4
aot2002
Member
 
Registered: Dec 2003
Location: NY
Distribution: Ubuntu 7.10
Posts: 66

Rep: Reputation: 15
Are you attempting to send mail from a home DSL or Dynamic Ip address?

if so forget it they will block you !
 
Old 05-09-2008, 10:42 PM   #5
jc_cpu
Member
 
Registered: May 2006
Distribution: Fedora 14
Posts: 71

Original Poster
Rep: Reputation: 15
Thanks for the reply aot2002. My router has a dynamic IP address, so I'm most likely being blocked.

All,

If my ISP had a valid mail relay that my computer could send mail to, how would I configure sendmail to use this? I tried google searching, but sendmail configuration looks so cryptic and I can't seem to find a nice step by step tutorial.

Thanks in advance for your help.
 
Old 05-09-2008, 11:36 PM   #6
aot2002
Member
 
Registered: Dec 2003
Location: NY
Distribution: Ubuntu 7.10
Posts: 66

Rep: Reputation: 15
try to install postfix instead its much easier when using a relay.
 
Old 05-09-2008, 11:46 PM   #7
jc_cpu
Member
 
Registered: May 2006
Distribution: Fedora 14
Posts: 71

Original Poster
Rep: Reputation: 15
Thanks for the reply, but I figured out how to do it with sendmail. After my previous post, I continued to google search and I finally found what I was looking for. It turned out to be one line in my sendmail.mc file.

---------------------------------------------------------------------------

dnl # Uncomment and edit the following line if your outgoing mail needs to
dnl # be sent out through an external mail server:
dnl #
define(`SMART_HOST', `external.mail.server.here')dnl

---------------------------------------------------------------------------

Thank you all for your help.
 
Old 05-10-2008, 10:26 AM   #8
aot2002
Member
 
Registered: Dec 2003
Location: NY
Distribution: Ubuntu 7.10
Posts: 66

Rep: Reputation: 15
im so proud of you !
 
  


Reply

Tags
solution


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
Postfix : mail cannot send to send outside ( can send/receive locally) bobbinsupport Linux - Networking 3 12-15-2007 10:40 PM
Send Mail is not delivering email to the outside World Marv Bon *BSD 13 08-20-2007 11:32 AM
with the linux proxi, backend pop3 mail client can not receive mail and send mail rubin823 Linux - Networking 0 12-21-2006 10:06 PM
Send mail from Linux machine to outside world schamie Linux - Networking 1 11-10-2005 02:15 AM
using `mail` to send email to outside world ganninu Linux - Networking 0 08-04-2003 04:35 AM


All times are GMT -5. The time now is 12:53 PM.

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