LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 09-14-2004, 09:04 PM   #1
kevinm2
Member
 
Registered: Aug 2004
Distribution: Redhat 7.2
Posts: 73

Rep: Reputation: 15
sendmail error 553 5.1.8 error "domain doesnot exist"


I am getting the follwoing error

----- Transcript of session follows -----
... while talking to pbimailc.prodigy.net.:
>>> MAIL From:<nobody@gt_s2.mydomain.com> SIZE=8265
<<< 553 5.1.8 <nobody@gt_s2.mydomain.com>... Domain of sender address nobody@gt_s2.mydomain.com does not exist
501 5.6.0 Data format error

When I am at the server typing
# telenet mydomain.com 25
I can send a mail to joe@aol.com from kevin@mydomain.com.

But from outlook when I send an e-mail to joe@aol.com from kevin@mydomain.com, i get yet another error "550 5.71. saying that relaying is denied"

my files are as follow:
Under /etc/hosts
127.0.0.1 gt_s2 localhost.localdomain localhost
127.0.0.1 gt_s2.mydomain.com
192.168.1.120 gt_s2.mydomain.com

Under /etc/HOSTNAME
gt_s2.mydomain.com

Under /etc/mail/access (Ofcourse I create the db file with makemap hash command)
localhost.localdomain RELAY
localhost RELAY
127.0.0.1 RELAY
MyStaticIP RELAY
192.168.1 RELAY
gt_s2.mydomain.com RELAY

Under /etc/mail/ip_allow
MyStaticIP

Under /etc/mail/local-host-name
mydomain.com
localhost.localdomain
local host
192.168.1.120

Under /etc/mail/name_allow
mydomain.com

Under /etc/mail/relay_allow
mydomain.com
192.168.1.120
gt_s2.mydomain.com

Need be I could place ny sendmail.mc file also. I just don't know what is it that I am doing wrong? Please advise!
 
Old 09-15-2004, 02:30 AM   #2
subhasis_ray
Member
 
Registered: Jul 2001
Location: india
Distribution: RedHat 7.1,7.2,7.3, 8.0,9.0,Fedora,EL2.1,EL3.0
Posts: 103

Rep: Reputation: 16
Hi,

About the relaying denied problem of yours, you can try this:

vi /etc/mail/sendmail.cf
search for "relay" (without the doublequotes )

u should see a line like
FR-o /etc/mail/relay-domains

enter the domains that u want to relay for, 1 per line in this file /etc/mail/relay-domains
for your clients on outlook express, enter the network address that the clients belong to.

- Subhasis
 
Old 09-15-2004, 03:33 AM   #3
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: 31
kevinm2

From your post I assume that

gt_s2 is your host or machine name

mydomain.com is a FQDN which will resolve via DNS

It looks like Sendmail is trying to resolve gt_s2.mydomain.com via DNS which it obviously cannot do unless your DNS record has a CNAME or alias of gt_s2


Edit /etc/mail/access
localhost.localdomain RELAY
localhost RELAY
127.0.0.1 RELAY
MyStaticIP RELAY
192.168.1 RELAY
gt_s2.mydomain.com RELAY

To

localhost.localdomain RELAY
localhost RELAY
127.0.0.1 RELAY
MyStaticIP RELAY
192.168.1 RELAY
mydomain.com RELAY

Now mail from user@mydomain.com should resolve via DNS

No guarantees but worth a try

Pete
 
Old 09-15-2004, 10:23 AM   #4
kevinm2
Member
 
Registered: Aug 2004
Distribution: Redhat 7.2
Posts: 73

Original Poster
Rep: Reputation: 15
Thank you guys it worked. I added the IP address of my outlook machine to the access file, and it start working.

It's funny how sometimes you don't see the obvious in this business!


Now that I have your attention. Any idea how I can setup the server so it syncs it's date and time with a valid source. Can you also recommend a source. Thanks again. -- Kevin

Last edited by kevinm2; 09-15-2004 at 10:25 AM.
 
Old 09-15-2004, 11:54 PM   #5
subhasis_ray
Member
 
Registered: Jul 2001
Location: india
Distribution: RedHat 7.1,7.2,7.3, 8.0,9.0,Fedora,EL2.1,EL3.0
Posts: 103

Rep: Reputation: 16
hi,

good things are working....

for syncing time and date use ntp. (network time protocol)

Regards

Subhasis
 
Old 09-16-2004, 12:46 AM   #6
kevinm2
Member
 
Registered: Aug 2004
Distribution: Redhat 7.2
Posts: 73

Original Poster
Rep: Reputation: 15
Is ntp a service installed in Linux by default or I have to install and configure it. I would appreciate it, If you could give me another lead. Thanks again. -- Kevin
 
Old 09-16-2004, 01:10 AM   #7
subhasis_ray
Member
 
Registered: Jul 2001
Location: india
Distribution: RedHat 7.1,7.2,7.3, 8.0,9.0,Fedora,EL2.1,EL3.0
Posts: 103

Rep: Reputation: 16
Hi Kevin,

NTP is a service that is usually installed. Check for it bu issuing the command:

# rpm -qa | grep ntp

it should return atleast.
ntp-4.1.2-0.rc1.2

your package version might be different, depending on what version of Linux u r using. If it is not installed, then find the package on the installation disks, and then running the command:

# rpm -ivh <package-name>

After that, find out a good ntp server, there are a number of good servers listed in http://www.eecis.udel.edu/~mills/ntp/clock2b.html
pick any one from there and add it to your /etc/ntp.conf file under the Heading "# --- GENERAL CONFIGURATION ---"

then restart the ntpd daemon

# service ntpd restart

and set it so that the ntpd id started at bootup
# chkconfig ntpd on

Thats about all that needs to be done

Cheers

Subhasis
 
Old 09-16-2004, 01:12 AM   #8
subhasis_ray
Member
 
Registered: Jul 2001
Location: india
Distribution: RedHat 7.1,7.2,7.3, 8.0,9.0,Fedora,EL2.1,EL3.0
Posts: 103

Rep: Reputation: 16
Hey Kevin,

Just a passing thought..... if the config below is for your server, I would strongly suggest that you upgrade the kernel from 2.4.7 to sonething latest in the 2.4 series.

Server Host: gt_s2 (127.0.0.1)
Database Host: localhost (127.0.0.1)
Server OS: Linux 2.4.7-10
Database: MySQL 4.0.20-log
Server: Apache/2.0.50 (Unix)
mod_perl/1.99_13 Perl/v5.8.4
mod_ssl/2.0.50 OpenSSL/0.9.7d
PHP/4.3.8 DAV/2
PHP Version: 4.3.8 (Zend: 1.3.0)

-Subhasis
 
Old 09-16-2004, 01:39 AM   #9
kevinm2
Member
 
Registered: Aug 2004
Distribution: Redhat 7.2
Posts: 73

Original Poster
Rep: Reputation: 15
Thank you very much. I will give it a try in the morning.
 
  


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
Postgresql error FATAL: user "root" does not exist" cgetty Ubuntu 4 06-21-2005 03:11 PM
CVS-"no repository exist" ERROR sm_it_101 Programming 2 10-06-2004 05:28 AM
sendmail error (domain does not exist) kwelling Slackware 4 07-09-2004 06:16 AM
RH9 NIS login error: "home directory does not exist" airrr Linux - Networking 2 08-06-2003 02:47 PM
sendmail error 553 'DOMAIN NAME REQUIRED' yaya Linux - General 1 09-06-2001 11:58 AM


All times are GMT -5. The time now is 07:31 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration