sendmail problem on Solaris 10

Hi All,

I am facing problem while sending mail using "mail" & "sendmail" commands from my Solaris 10 system. When I send the mail, it moves it to dead.letter & generates following error messages in /var/log/syslog file;

Feb 22 14:20:14 ppip1n sendmail[8601]: [ID 801593 mail.info] l1M8oDEE008601: to=nikhil.verma@timesgroup.com, ctladdr=ppi (201/202), delay=00:00:01, xdelay=00:00:00, mailer=relay, pri=60859, relay=smtp.timesgroup.com. [10.100.209.206], dsn=5.0.0, stat=Service unavailableFeb 22 14:20:14 ppip1n sendmail[8601]: [ID 801593 mail.info] l1M8oDEE008601: to=bivash.dasgupta@timesgroup.com, ctladdr=ppi (201/202), delay=00:00:01, xdelay=00:00:00, mailer=relay, pri=60859, relay=smtp.timesgroup.com. [10.100.209.206], dsn=5.0.0, stat=Service unavailableFeb 22 14:23:55 ppip1n sendmail[29729]: [ID 702911 mail.info] starting daemon (8.13.4+Sun): queueing@00:15:00
Feb 22 14:23:55 ppip1n sendmail[29730]: [ID 702911 mail.info] starting daemon (8.13.4+Sun): SMTP+queueing@00:15:00
Feb 22 14:27:50 ppip1n sendmail[20796]: [ID 801593 mail.info] l1M8vowf020796: from=ppi, size=859, class=0, nrcpts=2, msgid=<200702220857.l1M8vowf020796@timesgroup.com>, relay=ppi@localhost
Feb 22 14:27:50 ppip1n sendmail[20796]: [ID 801593 mail.info] l1M8vowf020796: to=nikhil.verma@timesgroup.com, ctladdr=ppi (201/202), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=60859, relay=smtp.timesgroup.com. [10.100.209.206], dsn=5.0.0, stat=Service unavailableFeb 22 14:27:50 ppip1n sendmail[20796]: [ID 801593 mail.info] l1M8vowf020796: to=bivash.dasgupta@timesgroup.com, ctladdr=ppi (201/202), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=60859, relay=smtp.timesgroup.com. [10.100.209.206], dsn=5.0.0, stat=Service unavailableFeb 22 15:45:14 ppip1n sendmail[17697]: [ID 801593 mail.info] l1MAF98P017697: from=ppi, size=13, class=0, nrcpts=1, msgid=<200702221015.l1MAF98P017697@timesgroup.com>, relay=ppi@localhost
Feb 22 15:45:17 ppip1n sendmail[17697]: [ID 801593 mail.info] l1MAF98P017697: to=root@localhost, ctladdr=ppi (201/202), delay=00:00:08, xdelay=00:00:03, mailer=relay, pri=30013, relay=smtp.timesgroup.com. [10.100.209.206], dsn=5.0.0, stat=Service unavailableFeb 22 15:46:02 ppip1n sendmail[21357]: [ID 801593 mail.info] l1MAFvr8021357: from=ppi, size=12, class=0, nrcpts=1, msgid=<200702221015.l1MAFvr8021357@timesgroup.com>, relay=ppi@localhost
ppip1n:/var/log]

Note : Everything was working fine before 2 days, but suddenly it started giving me the above errors.

While configuring the sendmail initially I had followed following procedure & everything were working fine after configuring;

  1. In /usr/lib/mail/cf/submit.mc
    FEATURE(`msp', `[127.0.0.1]')dnl

  2. I changed this to
    FEATURE(`msp', `[smtp.abc.com]')dnl

  3. Then I did "make submit.cf" and copied the submit.cf file to /etc/mail.

  4. Restarted sendmail with "svcadm refresh smtp"

Note : smtp.abc.com entry added in /etc/host file also.

Everything was working fine, but suddenly it started giving me above mentioned errors. Nothing is changed as long as configurations of files are concerned, please help me out to resolve this issue.

Note : I am able to telnet to smtp.abc.com server perfectly.

Thanks & Regards,
jumadhiya.

Please help me out to resolve this issue...!!!

ppip1n:/]ps -ef |grep sendmail
ppi 11770 10516 0 16:57:34 pts/4 0:00 grep sendmail
smmsp 29729 1 0 14:23:56 ? 0:00 /usr/lib/sendmail -Ac -q15m
root 29730 1 0 14:23:56 ? 0:00 /usr/lib/sendmail -bd -q15m
ppip1n:/]svcs -a |grep sendmail
online 14:23:55 svc:/network/smtp:sendmail
ppip1n:/]

Thanks & Regards,
jumadhiya.

Try checking that DNS is working for smtp.abc.com - check for reverse lookup, mx for the site (abc.com), etc.

Did you look at the dead.letter ? Also, please use the search function and search for a database re-build on sendmail, I posted some thoughs few days ago, but I can't remember where :slight_smile: also try "mailq -v -d"

Hi Sysgate,

When I configured sendmail for the first time, it was working absolutely fine. I was able to send mail using mail , mailx & sendmail commands. Suddenly it started giving me an error & whatever I send....goes to dead.letter.

Feb 22 15:14:45 ppidn sendmail[1883]: [ID 801593 mail.info] l1M9iZDK001883: to=nikhil.verma@timesgroup.com, ctladdr=ppi (201/202), delay=00:00:10, xdelay=00:
00:01, mailer=relay, pri=30015, relay=smtp.timesgroup.com. [10.100.209.206], dsn=5.0.0, stat=Service unavailable

I tried to telnet the IP address of smtp server using "telnet IP Address 25"......it works fine.

Please find the output of mailq command requested by you;

ppidn:/var/log]mailq -v -d

Version 8.13.4+Sun
Compiled with: DNSMAP LDAPMAP LOG MAP_REGEX MATCHGECOS MILTER MIME7TO8
MIME8TO7 NAMED_BIND NDBM NETINET NETINET6 NETUNIX NEWDB NIS
NISPLUS PIPELINING SCANF STARTTLS TCPWRAPPERS USERDB
USE_LDAP_INIT XDEBUG
getla: 0
setoption Verbose (v)=T
setoption SevenBitInput (7)=False
setoption AliasWait (a)=10
setoption AliasFile (A)=/etc/mail/aliases
setoption MinFreeBlocks (b)=100
setoption BlankSub (B)=.
setoption HoldExpensive (c)=False
setoption DeliveryMode (d)=background
setoption TempFileMode (F)=0600
setoption HelpFile (H)=/etc/mail/helpfile
setoption SendMimeErrors (j)=True
setoption ForwardPath (J)=$z/.forward.$w+$h:$z/.forward+$h:$z/.forward.$w:$z/.forward
setoption ConnectionCacheSize (k)=2
setoption ConnectionCacheTimeout (K)=5m
setoption UseErrorsTo (l)=False
setoption LogLevel (L)=9
setoption CheckAliases (n)=False
setoption OldStyleHeaders (o)=True
setoption DaemonPortOptions (O)=Name=MTA-v4, Family=inet
Daemon MTA-v4 flags:
setoption DaemonPortOptions (O)=Name=MTA-v6, Family=inet6
Daemon MTA-v6 flags:
setoption DaemonPortOptions (O)=Port=587, Name=MSA, M=E
Daemon MSA flags: <NOETRN>
setoption PrivacyOptions (p)=authwarnings
setoption QueueDirectory (Q)=/var/spool/mqueue
setoption Timeout (r).queuereturn=5d
setoption Timeout (r).queuewarn=4h
setoption SuperSafe (s)=True
setoption StatusFile (S)=/etc/mail/statistics
setoption FallbackSmartHost (0xd5)=mailhost$?m.$m$.
setoption SmtpGreetingMessage (0x90)=$j Sendmail $v/$Z; $b
setoption UnixFromLine (0x91)=From $g $d
setoption OperatorChars (0x92)=.:%@!^/[]+
setoption PidFile (0x9f)=/var/run/sendmail.pid
drop_privileges(0): Real[UG]id=201:202, get[ug]id=1:202, gete[ug]id=0:25, RunAs[UG]id=0:0
getauthinfo: ppi@localhost

============ SYSTEM IDENTITY (after readcf) ============
(short domain name) $w = timesgroup
(canonical domain name) $j = timesgroup.com
(subdomain name) $m = com
(node name) $k = ppidn

setoption HoldExpensive (c)=F
setoption DeliveryMode (d)=
dropenvelope 0x140c94: id=<null>, flags=4001<OLDSTYLE,METOO>
gatherq:
/var/spool/mqueue is empty
Total requests: 0

====finis: stat 0 e_id=NOQUEUE e_flags=4001<OLDSTYLE,METOO>
ppidn:/var/log]

# more dead.letter
From ppi Thu Feb 22 14:59:41 2007
Return-Path: <ppi>
Received: (from ppi@localhost)
by timesgroup.com (8.13.4+Sun/8.13.4/Submit) id l1M9Tfos021648
for nikhil.verma@timesgroup.com; Thu, 22 Feb 2007 14:59:41 +0530 (IST)
Date: Thu, 22 Feb 2007 14:59:41 +0530 (IST)
From: PPI Global User <ppi>
Message-Id: <200702220929.l1M9Tfos021648@timesgroup.com>
MIME-Version: 1.0
Content-Type: text/plain

Test mail

From ppi Thu Feb 22 15:02:22 2007
Return-Path: <ppi>
Received: (from ppi@localhost)
by timesgroup.com (8.13.4+Sun/8.13.4/Submit) id l1M9WM89023656
for nikhil.verma@timesgroup.com; Thu, 22 Feb 2007 15:02:22 +0530 (IST)
Date: Thu, 22 Feb 2007 15:02:22 +0530 (IST)
From: PPI Global User <ppi>
Message-Id: <200702220932.l1M9WM89023656@timesgroup.com>

Test Mail ....

#2

From ppi Thu Feb 22 15:14:35 2007
Return-Path: <ppi>
Received: (from ppi@localhost)
by timesgroup.com (8.13.4+Sun/8.13.4/Submit) id l1M9iZDK001883
for nikhil.verma@timesgroup.com; Thu, 22 Feb 2007 15:14:35 +0530 (IST)
Date: Thu, 22 Feb 2007 15:14:35 +0530 (IST)
From: PPI Global User <ppi>
Message-Id: <200702220944.l1M9iZDK001883@timesgroup.com>

Test Mail #3

Please suggest something........!!!

Thanks & Regards,
jumadhiya.

Hi Sysgate,

When I try to send mail using verbose mode, it gives me following output.

ppidn:/etc/mail]mailx -v nikhil.verma@timesgroup.com
Subject: Test Mail

This is a test mail...!!!
EOT
ppidn:/etc/mail]nikhil.verma@timesgroup.com... Connecting to smtp.timesgroup.com. via relay...
220 smtp2.timesgroup.com ESMTP Postfix
>>> EHLO timesgroup.com
250-smtp2.timesgroup.com
250-SIZE 5242880
250-VRFY
250-ETRN
250-AUTH DIGEST-MD5 LOGIN PLAIN
250-AUTH=DIGEST-MD5 LOGIN PLAIN
250 8BITMIME
>>> MAIL From:<ppi@timesgroup.com> SIZE=98
250 Ok
>>> RCPT To:<nikhil.verma@timesgroup.com>
554 <ppi@timesgroup.com>: Sender address rejected: Access denied
>>> RSET
250 Ok
/PPI/media/ppi/dead.letter... Saved message in /PPI/media/ppi/dead.letter
Closing connection to smtp.timesgroup.com.
>>> QUIT
221 Bye

ppidn:/etc/mail]

What could be the problem for "Sender address rejected: Access denied" error.

Thanks & Regards,
jumadhiya.

The mailserver is configured not to relay from unknown senders (usually by domain).

ppi@localhost is not a known sender and is therefore not relayed,

Reborg,

You mean to say that something is blocked from Microsoft Exchange server side...???

Note : In my case, I need to send mails from Solaris 10 system using mail, mailx & sendmail commands to exchange server.

Regards,
jumadhiya.

Can someone help me out to resolve my sendmail problem for Solaris 10.

Regards,
jumadhiya.

ppidn:/etc/mail]echo \$Z | /usr/sbin/sendmail -bt -d0
Version 8.13.4+Sun
Compiled with: DNSMAP LDAPMAP LOG MAP_REGEX MATCHGECOS MILTER MIME7TO8
MIME8TO7 NAMED_BIND NDBM NETINET NETINET6 NETUNIX NEWDB NIS
NISPLUS PIPELINING SCANF STARTTLS TCPWRAPPERS USERDB
USE_LDAP_INIT XDEBUG

============ SYSTEM IDENTITY (after readcf) ============
(short domain name) $w = timesgroup
(canonical domain name) $j = timesgroup.com
(subdomain name) $m = com
(node name) $k = ppidn

ADDRESS TEST MODE (ruleset 3 NOT automatically invoked)
Enter <ruleset> <address>
> 8.13.3
> ppidn:/etc/mail]

hello,

i think your problem is very simple,
just ask the local or remote smtp admin to add your user or domain in approved sender list

cheers...