[625] in RedHat Linux List

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

Re: mh in qmail rpoblems

daemon@ATHENA.MIT.EDU (Paul Fox)
Wed Oct 23 17:32:42 1996

To: Wierdl Mate <matyi@wierdlmpc.msci.memphis.edu>
cc: redhat-list@redhat.com, mh-users@ics.UCI.EDU,
        djb-qmail@koobera.math.uic.edu
In-reply-to: matyi's message of Wed, 23 Oct 1996 15:57:30 -0500.
Reply-to: pgf@foxharp.boston.ma.us
Date: Wed, 23 Oct 1996 17:25:45 -0400
From: Paul Fox <pgf@foxharp.boston.ma.us>
Resent-From: redhat-list@redhat.com

 > 
 > 1) First I tried to send a message to myself. `send' would not send
 > because it did not find `/etc/aliases.db'. Luckily, I had a backup.
 > But: is  MH necessarily compiled so that it would not send
 > without /etc/aliases.db?
can't answer that one -- i didn't have that problem.  of course, now
that i check, i didn't delete that file.  thanks for the warning.  :-)

 >   wierdlm at zebra: loses; [USER] 553 sorry, that domain isn't in my list of allowed rcpthosts (#5.7.1)
 > post: 1 addressee undeliverable
 > send: message not delivered to anyone
 > 
 > I have this in /var/qmail/control/rcpthosts
 > 
 > 	localhost
 > 	wierdlmpc.msci.memphis.edu 

the problem is that qmail's rcpthosts is a protection against other sites using
your site as a mail relay.  it's essentially a list of who you will
_accept_ mail for.  since mh is by default built to use smtp for delivery,
it appears when you send mail as if you're violating the rcpthosts restriction.
so the mail is rejected.  delete rcpthosts, and you'll be fine.  or,
rebuild mh to use command line delivery instead of using smtp to localhost.
but there may be a problem with the stock mh code that invokes sendmail --
check the qmail archives for more info.

 > Is there anything else I should be concerned about ? For example: do I
 > have to have MH work with qmail's aliases?
two other problems you might have (i did):
	- the smtp delivery mechanism also subverts (at least part of)
	    the local masquerading that is provided by qmail.  you
	    may need to set the "me" file to the masqueraded name
	    as well.
	- mh doesn't generate Message-id headers by default.  if you're
	    running sendmail, it will add one, but qmail will not.  you
	    can turn Message-id generation on with "send: -msgid" in
	    .mh_profile.  (i just learned that one this morning.)

to use qmail's filtering mechanism most easily, since mh doesn't grok
the Maildir format (to my knowledge), i have qmail deliver to mail to
mbox format files in ~/Mailboxes, and run:
	cd ~/Mailboxes
	for x in *
	do
	    if [ -s $x ]
	    then
		echo Incorporating mail from $x...
		inc +$x -file $x -truncate -silent
	    fi
	done

to suck it into mh folders.  i have a similar script which scans the
"unseen" sequence on each folder, to help me remember which i haven't
read.

paul
---------------------
    paul fox, pgf@foxharp.boston.ma.us (arlington, ma)


--
  PLEASE read the Red Hat FAQ, Tips, HOWTO and the MAILING LIST ARCHIVES!
  ________________________________________________________________________
  http://www.redhat.com/RedHat-FAQ   http://www.redhat.com/RedHat-HOWTO 
  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