Solved

500 pts - Pointer Connection refused in Solaris 9 and sendmail

Posted on 2006-06-29
5
818 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
  • 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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

This is an article about my experiences with remote access to my clients (so that I may serve them) and eventually to my home office system via Radmin Remote Control. I have been using remote access for over 10 years and have been improving my metho…
PRTG Network Monitor lets you monitor your bandwidth usage, so you know who is using up your bandwidth, and what they're using it for.
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.

758 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now