LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking > Linux - Wireless Networking
User Name
Password
Linux - Wireless Networking This forum is for the discussion of wireless networking in Linux.

Notices


Reply
  Search this Thread
Old 12-15-2004, 07:14 PM   #1
manudath
Member
 
Registered: Oct 2004
Posts: 42

Rep: Reputation: 15
Sendmail - problem receiving external mail


Hi all,

I have setup a mail server that is currently capable of sending and receiving mails within the localhost, and also able to send mails to any external account such as gmail or yahoomail...

My main problem is that I am simply not able to receive any mails outside my domain like gmail... (I am a student in a university and use the university DNS as my primary DNS)

I already have a mail server (set up by someone else and is working fine...) and I wanted to add a new mail server similar to the existing one. I have the MX record setup in our DNS....

I compared most configurations with both these systems and found most of them same.

Can anyone please tell me what might be the problem?

Thanks a lot,
Manudath
 
Old 12-15-2004, 10:08 PM   #2
hostprotect
Member
 
Registered: Nov 2004
Posts: 56

Rep: Reputation: 15
My money is on the fact that they are filtering the SMTP and IMAP/POP ports out.
 
Old 12-15-2004, 10:42 PM   #3
manudath
Member
 
Registered: Oct 2004
Posts: 42

Original Poster
Rep: Reputation: 15
Hi,

I dont know whether they are filtering smtp or other ports because the server that is currently running works fine...

Anyway, I did an "iptables -L" on the new machine and this is the line I got for smtp... Can you please let me know whether this is of any help?

ACCEPT tcp -- anywhere anywhere state NEW tcp dpt:smtp

I wasnt able to figure out what the -- are for.... Also the last part "state NEW ..." was a little cryptic...
 
Old 12-15-2004, 10:48 PM   #4
manudath
Member
 
Registered: Oct 2004
Posts: 42

Original Poster
Rep: Reputation: 15
Hi,

This is the error when I tried to send from my gmail account...

Technical details of failure:
PERM_FAILURE: SMTP Error (state 10): 550 root@xxx.xx.xx ...Relaying denied

What can I do to solve this?

Thanks a lot....
 
Old 12-16-2004, 06:00 AM   #5
kees-jan
Member
 
Registered: Sep 2004
Distribution: Debian, Ubuntu, BeatrIX, OpenWRT
Posts: 273

Rep: Reputation: 30
Your mailserver probably doesn't recognise xxx.xx.xx as its local hostname. You have to tell it that mail sent to xxx.xx.xx should be treated local.

What mailserver are you using anyway? And what tools to configure it?

Groetjes,

Kees-Jan
 
Old 12-16-2004, 12:52 PM   #6
manudath
Member
 
Registered: Oct 2004
Posts: 42

Original Poster
Rep: Reputation: 15
I am using Sendmail 8.12 on Redhat Enterprise WS...

I used the standard procedure -> download tar, compile, build and install sendmail... and tweak the sendmail.mc to configure.... (basically there was hardly any changes that I made... everything looked ok)
 
Old 12-17-2004, 02:56 AM   #7
kees-jan
Member
 
Registered: Sep 2004
Distribution: Debian, Ubuntu, BeatrIX, OpenWRT
Posts: 273

Rep: Reputation: 30
According to the documentation, sendmail calls "gethostname" followed by "gethostbyname" to establish its identity. So the result of this (whatever that is for your system) should be the same as the stuff behind the @ sign in your e-mail addresses, and the same as the hostname in your DNS entries.

If this is not (like I said before), then you need to rename your host or define alternate identities, which is described here

Groetjes,

Kees-Jan
 
Old 12-21-2004, 02:14 PM   #8
manudath
Member
 
Registered: Oct 2004
Posts: 42

Original Poster
Rep: Reputation: 15
Hmm... After some testing, I found that nothing was wrong in the configurations.... It was just that my DNS was not allowing this particular hostname...

I changes the hostname to the one that is working now, and restarted the system, I was easily able to make it work...

Anyways, Thanks a lot for the replies...
 
  


Reply


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
problem receiving pop3 mail from postfix mail server GEN_Electric Linux - Software 2 02-14-2005 03:43 PM
Qmail Problem....? (Receiving mail) ysg08 Linux - Networking 3 01-17-2005 02:30 PM
sendmail and external mail server levand Linux - Networking 10 12-17-2004 10:45 AM
configure sendmail to use external mail server Drogo Linux - Software 0 09-16-2004 10:16 PM
problems with sendmail receiving mail isostat1 Linux - Newbie 2 01-12-2004 09:28 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking > Linux - Wireless Networking

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