LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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 06-26-2004, 11:22 AM   #1
checta
LQ Newbie
 
Registered: Apr 2004
Posts: 21

Rep: Reputation: 15
Unhappy sendmail & host name


Hi!
I seem to be having no end of trouble with setting up my linux machine to do what i would like it too! This time around I am battling with sendmail!

I can send messages from the terminal window however there is a persistant warning
local host name (myservername) is not qualified; fix $j in config file

Sendmail seems to accept mail locally for users but not externally

I followed the instructions at www.linuxnetworking.com and found them to be quite comprehensive. However some things have me confused

i set hostname to myservername (using #hostname myservername) and the domainname to domainname1.com

1. What needs to be done (and or undone) to qualify the host name?
I have changed the local-host-names file so that it looks like this ...
Code:
domainname1.com
domainname2.com
domainname3.com
myservername.domainname1.com
myservername.domainname2.com
myservername.domainname3.com
but the error persists!
my hosts file looks like this
Code:
127.0.0.1	myservername.domainname1.com	localhost	localhost.localdomain
172.16.24.146	domainname1.com    www.domainname1.com    domainname1
172.16.24.146	domainname2.com    www.domainname2.com    domainname2
172.16.24.146	domainname3.com    www.domainname3.com    domainname3
172.16.24.146	myservername
as you can see its all over the place as i have read lots of stuff and tried to change lots of stuff to make it work out of desperation.

i have apache up and running w/ three virtual hosts (domainname1.com
domainname2.com, domainname3.com) and would like to have sendmail accept mail on the 3 domain names.

2. What should the MX record say?
www.linuxnetworking.com suggests mail.domainname.com should mine be myservername.domainname1.com ?

Any help will be greatly appreciated as i am pretty much lost at this point!

chetca
 
Old 06-27-2004, 06:18 AM   #2
pablob
Member
 
Registered: Apr 2003
Location: Madrid
Distribution: RHEL, Kubuntu, Solaris, TRU64
Posts: 382

Rep: Reputation: 31
It is not the reply you'd like to hear, but if you switch to postfix instead of sendmail, you'll get a safer system and also easier to configure.
 
Old 06-27-2004, 06:30 AM   #3
checta
LQ Newbie
 
Registered: Apr 2004
Posts: 21

Original Poster
Rep: Reputation: 15
hi pablob!
any reply is a good reply

do u (or anyone else out there) know of a good site with info on how to PAINLESSLY set up postfix ?

i am using redhat 9.0

cheers
checta
 
Old 06-27-2004, 08:42 AM   #4
Pete M
Member
 
Registered: Aug 2003
Location: UK
Distribution: Redhat 9 FC 3 SUSE 9.2 SUSE 9.3 Gentoo 2005.0 Debian Sid
Posts: 657

Rep: Reputation: 32
checta

Before you finally give up here are a few pointers, server is my machine name

/etc/hosts
127.0.0.1 server.domainname1.com server localhost.localdomain localhost

/etc/sysconfig/network
NETWORKING=yes
HOSTNAME=server

/etc/mail/local-host-names
domainname1.com
domainname2.com
domainname3.com

Best plan is to reboot to make the changes take effect

I assume all the domain names are FQDN by that I mean registered domain names ?

When you ask about MX record do you mean at your domain host or are you running your own DNS server ?

MX should be an A record of your main domain
mail.domainname1.com A 'your www IP address'

Pete
 
Old 06-27-2004, 08:59 AM   #5
checta
LQ Newbie
 
Registered: Apr 2004
Posts: 21

Original Poster
Rep: Reputation: 15
Dear Pete,
Thankyou very much for your reply this is the kind of answer I was looking for!

I will give your suggestions a go and let you know the result!

The MX record is with my domain register but I have a Zone Manager to add things like MX records.

Cheers,
checta
 
Old 06-27-2004, 09:22 AM   #6
Pete M
Member
 
Registered: Aug 2003
Location: UK
Distribution: Redhat 9 FC 3 SUSE 9.2 SUSE 9.3 Gentoo 2005.0 Debian Sid
Posts: 657

Rep: Reputation: 32
checta

When you access your Zone Manager and enter

mail.domainname1.com A 'your www IP address'

Put a '.' at the end of your domain name like this

mail.domainname1.com. A 'your www IP address'

Might be important

Pete
 
Old 06-27-2004, 09:35 AM   #7
checta
LQ Newbie
 
Registered: Apr 2004
Posts: 21

Original Poster
Rep: Reputation: 15
Thanks for the tip.
The Zone Manager is kind of funny and the tech support didnt explain it very well but your first reply made it clearer.
However, in the Zone Manager form for creating a new MX record the host field must be the fully qualified domain name which then tranlates to the IP address.
Cheers
checta
 
Old 06-27-2004, 09:53 AM   #8
checta
LQ Newbie
 
Registered: Apr 2004
Posts: 21

Original Poster
Rep: Reputation: 15
Pete!
Your a legend!
I have gotten rid of my unqualified host error!
I will have to wait for the MX records to check in and its late where i am so that'll be after work tommorrow!
I will keep plugging away with my sendmail and other setups.
I know where to come with my next problem
Thank you!

checta
 
Old 06-27-2004, 10:35 AM   #9
Pete M
Member
 
Registered: Aug 2003
Location: UK
Distribution: Redhat 9 FC 3 SUSE 9.2 SUSE 9.3 Gentoo 2005.0 Debian Sid
Posts: 657

Rep: Reputation: 32
checta

No problem

Don't forget to receive mail for your other domains you will have to modify their MX records

You can also redirect incoming mail to different user mailbox's using

/etc/mail/virtusertable

This file has to be made using the 'make' command in /etc/mail

But we'll take it one step at a time

Keep me updated

Pete
 
  


Reply



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
Sendmail Error - No Route To Host mindfrost82 Linux - Software 3 11-17-2009 04:07 AM
PostFix with a SendMail Relay Host & SSH Wrappers jgrafals Linux - Software 0 02-13-2004 10:24 AM
Sendmail and Host Configuration Chiabert Linux - Networking 2 10-15-2003 05:46 AM
sendmail: host name lookup failure GabeF Linux - Networking 3 12-04-2002 08:00 AM
Sendmail host/domain problem. Tarantismic Yak Linux - General 2 05-08-2001 06:25 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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