LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Sendmail Not Receiving Mail (https://www.linuxquestions.org/questions/linux-server-73/sendmail-not-receiving-mail-645626/)

davidedwardgill 05-29-2008 12:11 PM

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)

datopdog 05-29-2008 12:46 PM

you need to add the domain names you accept mail for to /etc/mail/local-host-names

davidedwardgill 05-29-2008 03:20 PM

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.

datopdog 05-30-2008 06:02 AM

The user id needs to exist on the server.

Code:

id username
To check an alias
Code:

sendmail -bv alias@domain

davidedwardgill 05-30-2008 12:25 PM

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

datopdog 05-30-2008 12:33 PM

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.

davidedwardgill 05-30-2008 03:00 PM

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.

davidedwardgill 07-08-2008 02:05 PM

To find a find resolution to this problem refer to:
http://www.linuxquestions.org/questi...unkown-651845/


All times are GMT -5. The time now is 12:06 AM.