Solaris /var/spool/clientmqueue getting filled MDeferred: Connection refused by [127.0.0.1]

  • Follow


Solaris 9 directory /var/spool/clientmqueue was getting filled with
lots of files and increasing every hour.

more qfq2T6Awft013456
V8
T1333507173
K1333585144
N40
P3541597
I0/3/702232
MDeferred: Connection refused by [127.0.0.1]
Frs
$_localhost
$r
$slocalhost
${daemon_flags}c u
SMAILER-DAEMON
MDeferred: Connection refused by [127.0.0.1]
C:comprdb1
rRFC822; comprdb1@<server>
RPF:comprdb1
H?P?Return-Path: <g>
H??Received: from localhost (localhost)



I just changed the permissions of / and /var/spool/clientmqueue to 755
and 750 respectively and its not dumping more files.
0
Reply gurpreetss (1) 4/24/2012 12:27:16 PM

Gurpreet <gurpreetss@gmail.com> wrote:
> I just changed the permissions of / and /var/spool/clientmqueue to 755
> and 750 respectively and its not dumping more files.

/ should have been 755 in the first place, but the proper permissions of
clientmqueue are 0770.

Basically, your mail system was partly broken and in order to make the errors
go away you broke it completely.  Personally, I would have figured out why
you were getting connection refused to localhost.

If you don't care about your mail system being broken, just disable sendmail
entirely.

If you want to fix the actual problem, you should check to see why the 
localhost sendmail process wasn't running.  There should be two sendmails
running.  For example:

   smmsp   874     1   0   Dec 04 ?           1:50 /usr/lib/sendmail -Ac -q15m
    root   878     1   0   Dec 04 ?          13:16 /usr/lib/sendmail -bd -q15m

-- 
Brandon Hume    - hume -> BOFH.Ca, http://WWW.BOFH.Ca/
0
Reply hume.spamfilter (184) 4/24/2012 12:59:18 PM


Gurpreet <gurpreetss@gmail.com> wrote:
> Solaris 9 directory /var/spool/clientmqueue was getting filled with
> lots of files and increasing every hour.
> 
> more qfq2T6Awft013456
> V8
> T1333507173
> K1333585144
> N40
> P3541597
> I0/3/702232
> MDeferred: Connection refused by [127.0.0.1]
> Frs
> $_localhost
> $r
> $slocalhost
> ${daemon_flags}c u
> SMAILER-DAEMON
> MDeferred: Connection refused by [127.0.0.1]
> C:comprdb1
> rRFC822; comprdb1@<server>
> RPF:comprdb1
> H?P?Return-Path: <g>
> H??Received: from localhost (localhost)
> 
> 
> 
> I just changed the permissions of / and /var/spool/clientmqueue to 755
> and 750 respectively and its not dumping more files.

easy fix.

uninstall sendmail, install postfix.

If you're running solaris 10, do this

svcadm disable sendmail


pkgrm SUNWsndr
pkgrm SUNWsndu

it may also be

pkgrm SUNWsndmr
pkgrm SUNWsndmu

install a postfix package or compile from source- it's easy.

download postfix source

untar it


create some groups

groupadd -g 60 postfix
groupadd -g 61 postdrop

create the postfix users

useradd -g 60 -u 60 -s /bin/false postfix
useradd -g 61 -u 61 -s /bin/false postdrop

set a built env. the unset is needed. 

export PATH=$PATH:/usr/local/bin:/usr/ccs/bin
unset LD_LIBRARY_PATH

make
make install

create your aliases file

touch /etc/mail/aliases
/usr/bin/newaliases


/usr/sbin/postfix start

done. you're running a modern MTA that takes English commands and has 
real documentation!










0
Reply presence (537) 4/24/2012 10:45:34 PM

2 Replies
70 Views

(page loaded in 0.061 seconds)


Reply: