LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-26-2003, 04:32 AM   #1
Big Brad
Member
 
Registered: Jul 2003
Location: Australia, Geelong
Distribution: Red Hat 8 & Fedora Core 3
Posts: 52

Rep: Reputation: 15
Mail Server on Redhat 8.0


Ok guys
I have got my web server going fine and dandy. Mail server time. I have managed to get this far it is not funny. I have been able to send messages from my mail server but not receieve. I can telnet into both pop and smtp servers. From the inside. So the only thing I can think of is that it is DNS problem once again. I am using sendmail and ipop3.

Thanks Brad
 
Old 11-26-2003, 01:52 PM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 66
What is your domain? Does it resolve a valid MX record?
 
Old 11-26-2003, 03:26 PM   #3
Big Brad
Member
 
Registered: Jul 2003
Location: Australia, Geelong
Distribution: Red Hat 8 & Fedora Core 3
Posts: 52

Original Poster
Rep: Reputation: 15
My domain is bjc.id.au I am pretty shure that you can surf to it at the moment.

this is what my dns records look like.


$TTL 86400
@ IN SOA ns1.bjc.id.au. support.bjc.id.au. (
18 ; serial
28800 ; refresh
7200 ; retry
604800 ; expire
86400 ; ttl
)


@ IN NS 203.27.87.149.
@ IN NS ns1.bjc.id.au.


www IN A 210.10.80.77
mail IN A 210.10.80.77
@ IN A 210.10.80.77

Hope this helps.
Got to get to school.

Thanks Brad
 
Old 11-26-2003, 03:51 PM   #4
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 66
I just sent a test message to your server and got:
Code:
This message was created automatically by mail delivery software.

A message that you sent could not be delivered to one or more of its
recipients. This is a permanent error. The following address(es) failed:

  postmaster@bjc.id.au
    SMTP error from remote mailer after RCPT TO:<postmaster@bjc.id.au>:
    host mail.bjc.id.au [210.10.80.77]: 550 5.7.1 <postmaster@bjc.id.au>... Relaying denied
make sure you have "bjc.id.au" in:
/etc/mail/local-host-names
 
Old 11-26-2003, 06:15 PM   #5
Big Brad
Member
 
Registered: Jul 2003
Location: Australia, Geelong
Distribution: Red Hat 8 & Fedora Core 3
Posts: 52

Original Poster
Rep: Reputation: 15
Ok well there is no postmaster@bjc.id.au try brad@bjc.id.au

Do my DNS setting look right.

I amm at school so I can't access my server. The school blocks port 22.

But I will try and havwe look at your suggestion tonight.

Thanks Brad
 
Old 11-26-2003, 06:23 PM   #6
Big Brad
Member
 
Registered: Jul 2003
Location: Australia, Geelong
Distribution: Red Hat 8 & Fedora Core 3
Posts: 52

Original Poster
Rep: Reputation: 15
Do I have to put in record like this

MX 10 mail.bjc.id.au

and take out


mail In A 210.10.80.77

Because all the above does is resolves mail.bjc.id.au to 210.10.80.77 do it not.


Thanks Brad
 
Old 11-27-2003, 04:28 AM   #7
Big Brad
Member
 
Registered: Jul 2003
Location: Australia, Geelong
Distribution: Red Hat 8 & Fedora Core 3
Posts: 52

Original Poster
Rep: Reputation: 15
Hay I went to that /etc/mail/local-host-names file and found nothing in there at all.

# local-host-names - include all aliases for your machine here.


How should I enter bjc.id.au into here.

Thanks Brad
 
Old 11-27-2003, 12:17 PM   #8
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 66
postmaster usually exists and is aliased to root the fact that it bounce with that message though means that it didn't even get as far as looking for the user.

Your MX record is correct the way it is. MX records should resolve to A records which in turn resolve to IPs. They should not directly resolve to IPs.

You just need to add "bjc.id.au" to local-host-names on a new line:
Code:
# local-host-names - include all aliases for your machine here.
bjc.id.au
I can't remember but I think you need to restart sendmail. If you want me to send a test message just let me know.
 
Old 11-27-2003, 09:09 PM   #9
Big Brad
Member
 
Registered: Jul 2003
Location: Australia, Geelong
Distribution: Red Hat 8 & Fedora Core 3
Posts: 52

Original Poster
Rep: Reputation: 15
Ok I am now able to send and recieve from Squrille Mail (WEBMAIL) It works fine. What was happening was that I was getting Relaying Denied. When I tried to send an e-mail to the mail server. So I fixed that by going into /etc/mail/access I think it is and putting in

mail.bjc.id.au RELAY

So the problem now is when I go back to my MS machine with outlook and try to send and recieve the receive bit works fine. The sending bit doesn't work. It comes back with that same error Relaying Denied because I am sending the e-mail to a domain that is not RELAYED but I shouldn't have to put every singal domain I send e-mail in to /etc/mail/access should I.

I will try what you suggeted. I have got WEBMIN working now so I can log in and have a look.

Thanks Brad
 
Old 11-27-2003, 11:46 PM   #10
Big Brad
Member
 
Registered: Jul 2003
Location: Australia, Geelong
Distribution: Red Hat 8 & Fedora Core 3
Posts: 52

Original Poster
Rep: Reputation: 15
Thanks Guys but I did some more tweaking and have got it all working.

Linux Rocks
Big Brad
 
  


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
redhat as webserver, ftp server, Mail server, firewall ineth Linux - Newbie 1 09-10-2005 08:14 AM
E-mail server Redhat 9.0 jvargas105 Linux - Newbie 1 10-09-2004 11:38 PM
antivirus for redhat mail server skatta Red Hat 4 05-20-2004 03:22 AM
E-MAIL server for RedHat 8 linux piglingz Linux - Software 16 04-08-2003 09:44 AM
RedHat 8.0 mail connection to MS Exchange Server dkeva Linux - Networking 2 01-20-2003 12:12 PM


All times are GMT -5. The time now is 05:57 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration