LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 05-29-2008, 12:11 PM   #1
davidedwardgill
Member
 
Registered: Apr 2008
Location: Michigan
Distribution: RedHat EE 5
Posts: 37

Rep: Reputation: 15
Sendmail Not Receiving Mail


I can send mail out without any complication. Using the mail with the -s argument.

When I go to check my mail. Or type mail, it says that their is no mail for me!

I am sending mail two different ways:

[****@localhost ~]# echo "hello me" | mail -s "test" DavidGill@**********.com

and then through my account with yahoo.

thanks for the help in advance
_________________________________________________________
Here is the error from my maillog when I use the mail -s command.

May 29 12:28:21 localhost sendmail[29956]: m4TGSLFH029954: SYSERR(root): MX list for DOMAIN.com. points back to localhost.localdomain
May 29 12:28:21 localhost sendmail[29956]: m4TGSLFH029954: to=<David.Gill@DOMAIN.com>, ctladdr=<root@localhost.localdomain> (0/0), delay=00:00:00, xdelay=00:00:00, mailer=esmtp, pri=120359, relay=DOMAIN.com., dsn=5.3.5, stat=Local configuration error
May 29 12:28:21 localhost sendmail[29953]: m4TGSL4h029953: to=David.Gill@DOMAIN.com, ctladdr=root (0/0), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30054, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (m4TGSLFH029954 Message accepted for delivery)
May 29 12:28:21 localhost sendmail[29956]: m4TGSLFH029954: to=DavidGill\t, ctladdr=<root@localhost.localdomain> (47/0), delay=00:00:00, mailer=local, pri=120359, dsn=5.1.1, stat=User unknown
May 29 12:28:21 localhost sendmail[29956]: m4TGSLFH029954: to=DavidGill\t, ctladdr=root (47/0), delay=00:00:00, mailer=local, pri=120359, dsn=5.1.1, stat=User unknown
May 29 12:28:21 localhost sendmail[29956]: m4TGSLFH029954: m4TGSLFH029956: postmaster notify: User unknown
May 29 12:28:21 localhost sendmail[29956]: m4TGSLFH029956: to=DavidGill\t, ctladdr=root (47/0), delay=00:00:00, mailer=local, pri=1619, dsn=5.1.1, stat=User unknown
May 29 12:28:21 localhost sendmail[29956]: m4TGSLFH029956: to=DavidGill\t, ctladdr=root (47/0), delay=00:00:00, mailer=local, pri=1619, dsn=5.1.1, stat=User unknown
May 29 12:28:21 localhost sendmail[29956]: m4TGSLFH029956: m4TGSLFI029956: return to sender: User unknown
May 29 12:28:21 localhost sendmail[29956]: m4TGSLFI029956: to=DavidGill\t, ctladdr=root (47/0), delay=00:00:00, mailer=local, pri=2643, dsn=5.1.1, stat=User unknown
May 29 12:28:21 localhost sendmail[29956]: m4TGSLFH029956: Losing ./qfm4TGSLFH029956: savemail panic
May 29 12:28:21 localhost sendmail[29956]: m4TGSLFH029956: SYSERR(root): savemail: cannot save rejected email anywhere
_________________________________________________________

Here is the error I get when I attempt to receive mail from outside my system. I fixed this yesterday by adding in the IP of the smtp server, but realisticly, I can't do that. Also, after I added that in I didn't receive the 550 error, I also never received the mail either! I couldn't find an entry in the maillog!
I tried putting yahoo.com relay and pcknights.com relay, in the /etc/mail/access file.
Am I hashing the access database right?
I use makemap hash /etc/mail/access.db < /etc/mail/access

May 28 17:09:06 localhost sendmail[26899]: m4SL95C1026899: ruleset=check_rcpt, a
rg1=<DavidGill@DOMAIN.com>, relay=web905.biz.mail.mud.yahoo.com [216.252.100
.45], reject=550 5.7.1 <DavidGill@DOMAIN.com>... Relaying denied
May 28 17:09:06 localhost sendmail[26899]: m4SL95C1026899: from=<dave.gill@yourp
cknights.com>, size=0, class=0, nrcpts=0, proto=SMTP, daemon=MTA, relay=web905.b
iz.mail.mud.yahoo.com [216.252.100.45]
_________________________________________________________
Here is my my generic-linux.mc file.

divert(-1)
#
# Copyright (c) 1998, 1999 Sendmail, Inc. and its suppliers.
# All rights reserved.
# Copyright (c) 1983 Eric P. Allman. All rights reserved.
# Copyright (c) 1988, 1993
# The Regents of the University of California. All rights reserved.
#
# By using this file, you agree to the terms and conditions set
# forth in the LICENSE file which can be found at the top level of
# the sendmail distribution.
#
#
#
# This is a generic configuration file for Linux.
# It has support for local and SMTP mail only. If you want to
# customize it, copy it to a name appropriate for your environment
# and do the modifications there.
#

divert(0)dnl
VERSIONID(`$Id: generic-linux.mc,v 8.1 1999/09/24 22:48:05 gshapiro Exp $')
OSTYPE(linux)dnl
DOMAIN(DOMAIN)dnl
define(RELAY_MAILER_ARGS, TCP $h 465)dnl
MAILER(local)dnl
MAILER(smtp)dnl

_________________________________________________________
here is my DOMAIN.m4 or my domain m4 file


[root@localhost ~]# more /usr/share/sendmail-cf/domain/DOMAIN.m4
divert(-1)
#
# Copyright (c) 1998, 1999 Sendmail, Inc. and its suppliers.
# All rights reserved.
# Copyright (c) 1983 Eric P. Allman. All rights reserved.
# Copyright (c) 1988, 1993
# The Regents of the University of California. All rights reserved.
#
# By using this file, you agree to the terms and conditions set
# forth in the LICENSE file which can be found at the top level of
# the sendmail distribution.
#
#

#
# The following is a generic domain file. You should be able to
# use it anywhere. If you want to customize it, copy it to a file
# named with your domain and make the edits; then, copy the appropriate
# .mc files and change `DOMAIN(generic)' to reference your updated domain
# files.
#
divert(0)
VERSIONID(`DOMAIN.m4 04/05.08')
define(`confFORWARD_PATH', `$z/.forward.$w+$h:$z/.forward+$h:$z/.forward.$w:$z/.
forward')dnl
define(`confMAX_HEADERS_LENGTH', `32768')dnl
FEATURE(`redirect')dnl
FEATURE(`use_cw_file')dnl
EXPOSED_USER(`root')
MASQUERADE_AS(DOMAIN.com)
FEATURE(masquerade_envelope)
FEATURE(genericstable)

_________________________________________________________
Here is my linux.m4 file

[root@localhost ~]# more /usr/share/sendmail-cf/ostype/linux.m4
divert(-1)
#
# Copyright (c) 1998-2000 Sendmail, Inc. and its suppliers.
# All rights reserved.
# Copyright (c) 1983 Eric P. Allman. All rights reserved.
# Copyright (c) 1988, 1993
# The Regents of the University of California. All rights reserved.
#
# By using this file, you agree to the terms and conditions set
# forth in the LICENSE file which can be found at the top level of
# the sendmail distribution.
#
#

divert(0)
VERSIONID(`$Id: linux.m4,v 8.13 2000/09/17 17:30:00 gshapiro Exp $')
define(`confEBINDIR', `/usr/sbin')
ifdef(`PROCMAIL_MAILER_PATH',,
define(`PROCMAIL_MAILER_PATH', `/usr/bin/procmail'))
FEATURE(local_procmail)

Last edited by davidedwardgill; 07-08-2008 at 02:05 PM.
 
Old 05-29-2008, 12:46 PM   #2
datopdog
Member
 
Registered: Feb 2008
Location: JHB South Africa
Distribution: Centos, Kubuntu, Cross LFS, OpenSolaris
Posts: 806

Rep: Reputation: 41
you need to add the domain names you accept mail for to /etc/mail/local-host-names
 
Old 05-29-2008, 03:20 PM   #3
davidedwardgill
Member
 
Registered: Apr 2008
Location: Michigan
Distribution: RedHat EE 5
Posts: 37

Original Poster
Rep: Reputation: 15
Wow, I put in my fully qualified domain name, but now my domain. That fixed the 550 reject error.

Now I am getting 550 5.1.1 user unknown error.

I've tried using the alias, which I have updated using the newaliases command. Then tried without the aliase name, and just the regular user ID.

Thanks Again for the help and the helpful responce.
 
Old 05-30-2008, 06:02 AM   #4
datopdog
Member
 
Registered: Feb 2008
Location: JHB South Africa
Distribution: Centos, Kubuntu, Cross LFS, OpenSolaris
Posts: 806

Rep: Reputation: 41
The user id needs to exist on the server.

Code:
id username
To check an alias
Code:
sendmail -bv alias@domain
 
Old 05-30-2008, 12:25 PM   #5
davidedwardgill
Member
 
Registered: Apr 2008
Location: Michigan
Distribution: RedHat EE 5
Posts: 37

Original Poster
Rep: Reputation: 15
It works if I don't use the .com
Otherwise it fails out.

I checked my domain.m4 file and I have the full name listed, 'lkelctric.com'. I would assume my dns is properly configured because I can ping the domain name.

[root@localhost ~]# sendmail -bv DavidGill@DOMAIN
DavidGill@DOMAIN... deliverable: mailer esmtp, host DOMAIN, user DavidGill@DOMAIN
[root@localhost ~]# sendmail -bv DavidGill@DOMAIN.com
DavidGill@DOMAIN.com... User unknown

Last edited by davidedwardgill; 07-08-2008 at 02:06 PM.
 
Old 05-30-2008, 12:33 PM   #6
datopdog
Member
 
Registered: Feb 2008
Location: JHB South Africa
Distribution: Centos, Kubuntu, Cross LFS, OpenSolaris
Posts: 806

Rep: Reputation: 41
if you have the domain in /etc/mail/local-host-names then you do not need to edit the mc and add the domain there.

It seems like you have messed up your config by adding stuff that is not required to the mc files.
 
Old 05-30-2008, 03:00 PM   #7
davidedwardgill
Member
 
Registered: Apr 2008
Location: Michigan
Distribution: RedHat EE 5
Posts: 37

Original Poster
Rep: Reputation: 15
What I ment was the domain listing for the domain.m4 file. Which I thought was required.

My .mc and .m4 files are listed above.

I have removed the define(RELAY_MAILER_ARGS, TCP $h 465)dnl line, because i was using that earlier just to fittle around, and forgot to take it out till you just mentioned a possible problem with the .mc file...

That didn't do any good for the unknown user error.

thanks again for the help, and suggestions. I was getting to my wits ends with sendmail.
 
Old 07-08-2008, 02:05 PM   #8
davidedwardgill
Member
 
Registered: Apr 2008
Location: Michigan
Distribution: RedHat EE 5
Posts: 37

Original Poster
Rep: Reputation: 15
To find a find resolution to this problem refer to:
http://www.linuxquestions.org/questi...unkown-651845/
 
  


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
Sendmail not receiving mail Raidmax Slackware 4 08-20-2007 03:00 PM
Sendmail not receiving mail please help Raidmax Slackware 19 07-26-2006 05:03 PM
problem receiving pop3 mail from postfix mail server GEN_Electric Linux - Software 2 02-14-2005 02:43 PM
Sendmail - problem receiving external mail manudath Linux - Wireless Networking 7 12-21-2004 01:14 PM
problems with sendmail receiving mail isostat1 Linux - Newbie 2 01-12-2004 08:28 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

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