Sendmail / Apache DNS probs

Place to discuss Fedora and/or Red Hat

Sendmail / Apache DNS probs

Postby deepeyes » Wed Feb 18, 2004 5:50 pm

Hi Guys, this is my first post. I would firstly like to thank Void Main for his DHCP / DNS info, it is great and I got alot out of it. I now have a working DHCP server and DNS works great.

My question is...

I have setup sendmail for in office emails it all works fine but I have to use absolute paths in email addresses?

e.g. my mail server is called mail.bandtech.office, it has an ip of 10.0.0.5, I can ping, host and do rev lookups on this, all works fine....

I can send an email to user@mail.bandtech.office and they get it

but..if I send and email to user@bandtech.office I get this

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

The original message was received at Thu, 19 Feb 2004 10:39:24 +1100 from user.bandtech.office [10.0.0.200]

----- The following addresses had permanent fatal errors ----- <user@bandtech.office>
(reason: 550 5.7.1 <user@bandtech.office>... Relaying denied)

----- Transcript of session follows -----
... while talking to bandtech.office.:
>>> DATA
<<< 550 5.7.1 <user@bandtech.office>... Relaying denied
550 5.1.1 <user@bandtech.office>... User unknown
<<< 503 5.0.0 Need RCPT (recipient)

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

This also I think is related to Apache.

I can goto http://10.0.0.5
and get my test page from any machine in the office, however when I go

http://www.bandtech.office or http://mail.bandtech.office (host name od machine) I get errors

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

The dnsserver returned:

Name Error: The domain name does not exist.

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

Thanks, sorry for the length.

DE
deepeyes
user
user
 
Posts: 14
Joined: Wed Feb 18, 2004 5:08 pm
Location: Sydney Australia

Re: Sendmail / Apache DNS probs

Postby Void Main » Wed Feb 18, 2004 7:19 pm

deepeyes wrote:I have setup sendmail for in office emails it all works fine but I have to use absolute paths in email addresses?

e.g. my mail server is called mail.bandtech.office, it has an ip of 10.0.0.5, I can ping, host and do rev lookups on this, all works fine....

I can send an email to user@mail.bandtech.office and they get it

but..if I send and email to user@bandtech.office I get this

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

The original message was received at Thu, 19 Feb 2004 10:39:24 +1100 from user.bandtech.office [10.0.0.200]

----- The following addresses had permanent fatal errors ----- <user@bandtech.office>
(reason: 550 5.7.1 <user@bandtech.office>... Relaying denied)

----- Transcript of session follows -----
... while talking to bandtech.office.:
>>> DATA
<<< 550 5.7.1 <user@bandtech.office>... Relaying denied
550 5.1.1 <user@bandtech.office>... User unknown
<<< 503 5.0.0 Need RCPT (recipient)

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


I assume you have an A record and an MX record for "bandtech.office" (I assume that because it appears that the message actually made it to the server). So you are getting a relaying denied message which means you need to add "bandtech.office" to your /etc/mail/local-host-names file and restart sendmail. Let me know if this does not fix the problem.

This also I think is related to Apache.

I can goto http://10.0.0.5
and get my test page from any machine in the office, however when I go

http://www.bandtech.office or http://mail.bandtech.office (host name od machine) I get errors

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

The dnsserver returned:

Name Error: The domain name does not exist.

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


You have A records in DNS for "www.bandtech.office" and "mail.bandtech.office" and you can look them up and get the right address on both the client and the server using a DNS lookup tool (nslookup, host, dig, etc)?

Do you want all sites to serve up the same content or should there be different content based on what name you go to? If you want different content for each name you have to set up "Virtual Hosts" in the Apache configuration. If you want them all to serve the same content then you should just add some "ServerAlias" statements to your Apache configuration. If you want me to go into more detail for one method or the other let me know. Here is a copy of my voidmain Apahe configuration with virtual hosts:

http://voidmain.is-a-geek.net/files/configs/httpd.conf

No matter which method you want to use I always set the "ServerName" near the top of the file to match an entry in my /etc/hosts file that points to my ethernet adapter's IP address. Notice in the above configuration file I have it set like so:

Code: Select all
ServerName nitro.voidmain.home:80


In my /etc/hosts I have a line:

Code: Select all
10.10.0.5    nitro.voidmain.home www.nitro.voidmain.home nitro


Notice one of the names in my hosts file matches the Apache directive ServerName.
User avatar
Void Main
Site Admin
Site Admin
 
Posts: 5705
Joined: Wed Jan 08, 2003 5:24 am
Location: Tuxville, USA

Postby deepeyes » Wed Feb 18, 2004 11:03 pm

Thanks Void Main, I got the sendmail thingy working with your sugestion, stilll working on the web thing.

DE
deepeyes
user
user
 
Posts: 14
Joined: Wed Feb 18, 2004 5:08 pm
Location: Sydney Australia


Return to Fedora/Red Hat

Who is online

Users browsing this forum: No registered users and 1 guest

cron