Solved

500 pts - Pointer Connection refused in Solaris 9 and sendmail

Posted on 2006-06-29
5
826 Views
Last Modified: 2013-12-05
Guys, I have a server with using sendmail but only with aliases under /etc/mail/aliases.  I have configure the /etc/mail/sendmail.cf to relay through an internal gateway to send the result for the scripts to only the specific aliases.  The operating system is Solaris 9.  I do not want the sendmail process or deamon running in the server at all.  I have a file called /etc/resolv.conf, /etc/nsswitch.conf with the line <hosts:      files dns>, /etc/mail/sendmail.cf has the line for the relay configured as well as
#DSmailhost$?m.$m$.
DSXXXXXXXX01.XXXX.XXXX.mil.

The script I am running to be mail it is running and generating the report expected but the mail does not get to the destination...

Mailing any type of file with no attachments at all, the /var/log/syslog shows the following:
Jun 29 06:05:30 hostname sendmail[21683]: [ID 801593 mail.info] k5T65UvY021683: from=root, size=38542, class=0, nrcpts=1, msgid=<200606290605.k5T65UvY021683@XXXXX.XXXXX.XXXX.XXXX.mil>, relay=root@localhost
Jun 29 06:05:30 hostname sendmail[21683]: [ID 801593 mail.info] k5T65UvY021683: to=nancy.XXXX@XXX.XXX.XXXX.mil, ctladdr=root (0/0), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=68542, relay=[127.0.0.1] [127.0.0.1], dsn=4.0.0, stat=Deferred: Connection refused by [127.0.0.1]

Why or what is it that I am missing that the connection is refused?  I really need help to understand the reason... How to fix it>  
0
Comment
Question by:nlopezzapa07
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
5 Comments
 
LVL 34

Expert Comment

by:PsiCop
ID: 17010173
Note that EE has a sendmail-specific TA --> http://www.experts-exchange.com/Networking/Email_Groupware/Sendmail/

First, I thinbk it insane that you're hacking sendmail.cf directly. This is 2006, not 1996. Modify sendmail.mc and build sendmail.cf from that.

The aliases database is only consulted for E-Mail that sendmail has determined will be delivered locally. In any event, virtusertable is the better mechanism for selectively directing E-Mail to other hosts.

The "connection refused" error message suggests that sendmail still thinks it's not allowed to relay. You may need to configure the access database to permit it, I dunno. Again, don't hack sendmail.cf - use the macro configuration files and tools. You'll spend a lot less time trying to figure out things like this.
0
 

Accepted Solution

by:
nlopezzapa07 earned 0 total points
ID: 17278628
All that I had to do was to add a line to the sendmail.cf


DSmailhost$?m.$m$.

O DaemonPortOptions=Family=inet, address=127.0.0.1, Name=MTA

Thank you.

 
0
 

Author Comment

by:nlopezzapa07
ID: 17287349
Yes, you can go ahead and I PAQ this question.  

nlopezzapa07
0

Featured Post

Secure Your WordPress Site: 5 Essential Approaches

WordPress is the web's most popular CMS, but its dominance also makes it a target for attackers. Our eBook will show you how to:

Prevent costly exploits of core and plugin vulnerabilities
Repel automated attacks
Lock down your dashboard, secure your code, and protect your users

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If your business is like most, chances are you still need to maintain a fax infrastructure for your staff. It’s hard to believe that a communication technology that was thriving in the mid-80s could still be an essential part of your team’s modern I…
If you're not part of the solution, you're part of the problem.   Tips on how to secure IoT devices, even the dumbest ones, so they can't be used as part of a DDoS botnet.  Use PRTG Network Monitor as one of the building blocks, to detect unusual…
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

738 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question