[SunHELP] How to check sendmail ?

Marek Grinberg marek.grinberg at tele2.se
Wed May 10 05:08:08 CDT 2006


Hello again,

/var/log/syslog revealed that /etc/hosts was incomplete, so I changed it 
to contain:
a.b.c.d  neat-test       loghost mailhost        neat-test.x.com

# mailq -v
Mail queue is empty

Mail to root works OK now, but when I send to an external user it fails:
# mail -t marek.grinberg at tele2.se
aaa
.
# mail
 From MAILER-DAEMON Wed May 10 11:56:11 2006
Date: Wed, 10 May 2006 11:56:11 +0200 (MET DST)
From: Mail Delivery Subsystem <MAILER-DAEMON>
Message-Id: <200605100956.LAA00379 at neat-test.x.com>
To: postmaster
To: neat
Subject: Returned mail: Local configuration error
Content-Length: 1329

This is a MIME-encapsulated message

--LAA00379.1147254971/neat-test.x.com

The original message was received at Wed, 10 May 2006 11:56:11 +0200 
(MET DST)
from root at localhost

  ----- The following addresses had permanent fatal errors -----
marek.grinberg at tele2.se

  ----- Transcript of session follows -----
553 mailhost.han.x.com config error: mail loops back to me (MX problem?)
554 marek.grinberg at tele2.se... Local configuration error

--LAA00379.1147254971/neat-test.x.com
Content-Type: message/delivery-status

Reporting-MTA: dns; neat-test.x.com
Arrival-Date: Wed, 10 May 2006 11:56:11 +0200 (MET DST)

Final-Recipient: RFC822; marek.grinberg at tele2.se
Action: failed
Status: 5.5.0
Remote-MTA: DNS; mailhost.han.x.com
Last-Attempt-Date: Wed, 10 May 2006 11:56:11 +0200 (MET DST)

--LAA00379.1147254971/neat-test.han.x.com
Content-Type: message/rfc822

Return-Path: <neat>
Received: (from root at localhost)
       by neat-test.han.x.com (8.8.8p2+Sun/8.8.8) id LAA00377
       for marek.grinberg at tele2.se; Wed, 10 May 2006 11:56:11 +0200 (MET 
DST)
Date: Wed, 10 May 2006 11:56:11 +0200 (MET DST)
From: neat
Message-Id: <200605100956.LAA00377 at neat-test.han.x.com>
To: marek.grinberg at tele2.se
Content-Type: text

aaa


--LAA00379.1147254971/neat-test.han.x.com--


?

Apparently the sendmail configuration file does not include a SMTP 
entry. How do I set it up ?

Marek


Martin Frost skrev:
> On Wed, 10 May 2006, Marek Grinberg wrote:
>
>> In a Sun E250 running Solaris 5.6 I would like to check whether sendmail 
>> is running OK.
>> Pardon my ignorance but how do I do it ?
>
> There are several things you can check. It depends a bit on what you mean
> by "running OK". If you just want to check that something is listening for
> SMTP, you can:
>
>  $ telnet localhost 25
>
> and see if you get a banner or a "Connection refused". If you want to check
> that the Sendmail daemons are running, you can do:
>
>  $ ps -ef | grep -i sendmail
>  $ ps -ef | grep smmsp
>
> and verify that you do indeed see a process listed for each. I don't know
> what Sendmail version is included in 2.6 so you might not have the smmsp
> one.
>
> If you want to test that Sendmail is not only running but actually working
> and configured properly, you will have to send a variety of test messages 
> through the system and examine the logs.
>
> If this is a machine you've recently been made responsible for and you
> don't know the history of, be aware that many people replace Sendmail with
> alternatives. You can tell whether this has happened by the banner when
> you do the telnet above. On Solaris 2.6 I think Sendmail was included in
> the core software packages. On later releases you can check for the
> presence of the Sendmail packages with:
>
>  $ pkginfo | grep SUNWsndm
>
> This should show SUNWsndmr and SUNWsndmu packages, though even this is no
> guarantee that someone hasn't simply removed or renamed the relevant files
> when installing an alternative MTA.
>
> Martin
> _______________________________________________
> SunHELP maillist  -  SunHELP at sunhelp.org
> http://www.sunhelp.org/mailman/listinfo/sunhelp
>



More information about the SunHELP mailing list