I've found out the reason : In the Solaris 9 server, it could route mails because /etc/resolv.conf is there (ie it has DNS function and the Windows domain PC hostname could be resolved) while resolv.conf is missing in the Solaris 10 box. Donald Kinney's reply is worth mentioning as it may apply to other people's case : You should take a look at srv10's sendmail.cf file. Should be under /etc/mail check to see if you are using acess entries. From the error messages on srv10, it looks like you might be. Edit the access file to add in the subnets of systems you want to allow relaying for. For example 10.51.6 RELAY Would allow any host system with an IP between 10.51.6.1 and 10.51.6.254 to relay through the srv10 sendmail system. Once you've added in the required entries, rebuild the access_db files, and you should be good. Thanks U On Thu, Feb 5, 2009 at 9:11 PM, sunhux G <sunhux@gmail.com> wrote: > hi > > I have a Solaris 10 server (which has been hardened by an ex-colleague). > > When login to this server, I could send email to external parties & > messages show : > Feb 5 21:00:02 svr10 sendmail[23559]: [ID 801593 mail.info] > n15D02VZ023559: from=<elsdev@xxx.com.sg>, size=535, class=0, nrcpts=1, > msgid=<12145976.121233838802074.JavaMail.elsdev@xxx.com.sg>, proto=ESMTP, > daemon=MTA-v4, relay=svr10.domain.gov.sg [10.51.yyy.xx] > Feb 5 21:00:07 svr10 sendmail[23558]: [ID 801593 mail.info] > n15D01o3023556: to=<solhim@xxx.com.sg>, delay=00:00:06, xdelay=00:00:06, > mailer=relay, pri=120535, relay=mailhost.sla.gov.sg [10.235.129.28], > dsn=2.0.0, stat=Sent (n15D061c040616 Message accepted for delivery) > > > However, when I point my PCs to this Solaris 10 server as SMTP gateway, > they're > not able to send emails out though from the PCs, "telnet Solaris10_server > 25" > responds. The messages file showed the following when the PCs fails > to email thru: > > Feb 5 21:04:04 svr10 sendmail[25276]: [ID 702911 mail.info] starting > daemon (8.13.8+Sun): SMTP+queueing@00:15:00 > Feb 5 21:04:04 svr10 sendmail[25275]: [ID 702911 mail.info] starting > daemon (8.13.8+Sun): queueing@00:15:00 > Feb 5 21:04:15 svr10 sendmail[25377]: [ID 801593 mail.notice] > n15D4F0r025377: ruleset=check_rcpt, arg1=<gproger@gmail.com>, > relay=[10.51.6.104], reject=550 5.7.1 <xxx@gmail.com>... Relaying denied. > IP name lookup failed [10.51.6.104] > Feb 5 21:04:15 svr10 sendmail[25377]: [ID 801593 mail.info] > n15D4F0r025377: from=<sender@xxx.gov.sg>, size=0, class=0, nrcpts=0, > proto=ESMTP, daemon=Daemon0, relay=[10.51.6.104] > > The PC sendemail logs showed following when it fails to email through : > > Feb 05 21:07:48 PChost sendemail[3148]: WARNING => The recipient < > xxx@gmail.com> was rejected by the mail server, error follows: > Feb 05 21:07:48 PChost sendemail[3148]: WARNING => Received: 550 > 5.7.1 <xxx@gmail.com>... Relaying denied. IP name lookup failed > [10.51.6.104] > Feb 05 21:07:48 PChost sendemail[3148]: ERROR => Exiting. No recipients > were accepted for delivery by the mail server. > > > root # more hosts.allow > # > ALL: localhost > sshd: ALL > sendmail: ALL > > root # ps -ef | grep sendmail > root 13448 22426 0 20:33:21 pts/3 0:00 grep sendmail > smmsp 9741 1 0 Feb 02 ? 0:01 /usr/lib/sendmail -Ac > -q15m > root 9742 1 0 Feb 02 ? 0:08 /usr/lib/sendmail -bd > -q15m -C /etc/mail/local.cf > Why sendmail is reading /etc/mail/local.cf is still a mystery to me > but even if I kill the pid 9742 & manually rerun it with > "/usr/lib/sendmail -bd -q15m -C /etc/mail/sendmail.cf", > sendmail still fails to route mails > > > Problem is not with the PCs because when these PCs point to another > Solaris 9 server, the emails get through. > > > ================================================= > > On the Solaris 10 server, this is the script I used to send email out : > (this works as the script runs from within the server itself) : > > set -x > DT="`date`" > telnet localhost 25<<! > HELO localhost > MAIL FROM:<yyy@domain.gov.sg <yyy@domain.gov.sg>> > RCPT TO:<xxx@gmail.com> > DATA > From: <xxx.domain.gov.sg> > Message-Id: <jag51 direct smtp itsel> > Subject: testing > To: <xxx@gmail.com <xxx@gmail.com>> > Date: $DT > Content-Type: text > $DT > Testing email > `cat /tmp/test.log` > . > QUIT > ! _______________________________________________ sunmanagers mailing list sunmanagers@sunmanagers.org http://www.sunmanagers.org/mailman/listinfo/sunmanagersReceived on Sat Feb 7 06:16:03 2009
This archive was generated by hypermail 2.1.8 : Thu Mar 03 2016 - 06:44:13 EST