[5168] in RedHat Linux List

home help back first fref pref prev next nref lref last post

Re: sendmail ->qmail problems, help

daemon@ATHENA.MIT.EDU (Wierdl Mate)
Tue Nov 19 12:27:53 1996

To: mmalecha@utmem1.utmem.edu
cc: redhat-list@redhat.com
In-reply-to: Your message of "Mon, 18 Nov 1996 21:15:04 EST."
             <199611190336.VAA14348@pathology.utmem.edu> 
Date: Tue, 19 Nov 1996 11:24:26 -0600
From: Wierdl Mate <matyi@wierdlmpc.msci.memphis.edu>
Resent-From: redhat-list@redhat.com
Reply-To: redhat-list@redhat.com

> In <199611181542.KAA29446@redhat.com>, on 11/18/96 at 09:43 AM,
>    Wierdl Mate <matyi@wierdlmpc.msci.memphis.edu> said:
> 
> >> Here what to do to make qmail work:
> 
> Thanks a lot Mate, your hint were _very_ helpfull.  I am almost there, but
> not quite.  I had additional small problems with installation.  /config/me
> did not get created, I had to enter it by hand, I entered my domain name
> there.  Is there soemthing else I need to enter in me file?  

Nope, just the fully qualified D name has to be put in
/var/qmail/control/me (I hope you did not mean "config" instead of
"control").

> Also install
> script from qmail-0.92-1.i386.rmp did a little bit of a mess with adding
> some qmail users.  I had to edit /etc/passwd by hand. 

Unfortunately, qmail-0.92-1.*.rmp repeated the problem in  qmail-0.91-1.i386.rmp. There
is  a (repeated) syntax error in qmail-0.92-1.src.rmp (used to create
the .rpm) which caused problems in /etc/passwd, /etc/group, etc. The
error is in the spec file which repeatedly start a conditional like 

if [ `grep "^qmaild" /etc/passwd` ]; then 
   echo "qmail already in /etc/passwd, no need to add."
 else    

The problem is that `grep "^qmaild" /etc/passwd` has to be (double) quoted
otherwise it is not treated as a string. The correct line is 

if [ -n "`grep "^qmaild" /etc/passwd`" ]; then 

But if you solved this
problem in another way, do not worry about it.

> Now I am able to
> send mail to remote domains, but have a problem with sending it to the
> localhost.  Entries in /var/log/maillog say: 
> 
> "qmail: delivery 1 deferred: Uh-oh:_home_directory_is_writable._(#4.7.0)/"
> 
> and nothing gets delivered to local mailbox.   

Now, this is a known problem (I was hoping it was going to be solved
for qmail-.92.rpm). By default, qmail does not allow group
write permission on the home directories. This is for security
reasons, but it does not apply to redhat since it has user-private
groups. There are two solutions here:

1) just do 
chmod g-w /home/you

(and for the other users)

2) Recompile qmail from the src.rpm. You need to set ALIAS_PATERNALISM
to 002 in conf-unusual.h . This means that change the line 

#define ALIAS_PATERNALISM 022 /* stat bits not allowed in ~ and ~/.qmail */ 

to 

#define ALIAS_PATERNALISM 002 /* stat bits not allowed in ~ and ~/.qmail */ 

in conf-unusual.h. After fixing the above syntax errors in the spec
file as well, just build the rpm.

Since I am not a professional, I do not want (dare) to  upload an
rpm, but I hope somebody will  upload a qmail-0.92-2.rpm with the
above corrections. I also recommend including a summary of what one
has to do before installing qmail (remove sendmail with the --nodeps
option) and afterward (set MAIL, MAILDROP, etc). 


Mate

M\'at\'e Wierdl
Department of Mathematical Sciences
University of Memphis,
E-mail: matyi@moni.msci.memphis.edu


--
  PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
  ________________________________________________________________________
  http://www.redhat.com/RedHat-FAQ   http://www.redhat.com/RedHat-Errata
  http://www.redhat.com/RedHat-Tips  http://www.redhat.com/mailing-lists
  ------------------------------------------------------------------------
To unsubscribe: mail -s unsubscribe redhat-list-request@redhat.com < /dev/null


home help back first fref pref prev next nref lref last post