LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Mail Server on Redhat 8.0 (https://www.linuxquestions.org/questions/linux-newbie-8/mail-server-on-redhat-8-0-a-120072/)

Big Brad 11-26-2003 04:32 AM

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

david_ross 11-26-2003 01:52 PM

What is your domain? Does it resolve a valid MX record?

Big Brad 11-26-2003 03:26 PM

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

david_ross 11-26-2003 03:51 PM

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

Big Brad 11-26-2003 06:15 PM

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

Big Brad 11-26-2003 06:23 PM

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

Big Brad 11-27-2003 04:28 AM

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

david_ross 11-27-2003 12:17 PM

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.

Big Brad 11-27-2003 09:09 PM

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

Big Brad 11-27-2003 11:46 PM

Thanks Guys but I did some more tweaking and have got it all working.

Linux Rocks
Big Brad:D


All times are GMT -5. The time now is 09:01 AM.