Wanting to move the qmail queue.

2000-11-11 Thread Mark Thomas (Tech14)

Hello 'qmail list,

  I have a problem with outbound smtp mail.
  When I installed qmail, I ended up installing some of qmail in /var.
  Any outbound mail goes to the qmail queue on:
  /var/qmail/queue/mess.   There are 200 subdirectories under mess
  starting with 0 and working its way up to 199.

  My /var is only 20mb in size.  Big mistake!

  I would like to move the queue to /usr/home/vpopmail/smtp,or
  something under /usr.  I went back through the installation
  documents, and I don't see where I specified this location during the
  install, so I'm figuring it was a default.
  
  If this information is compiled during the install, how do you go
  about changing this without affecting other operations.
  If there is an easier something to do, I would be interested also.

  One other:
  How do most of you segment a hard drive of say 30gb or so?
  I have:
  /=50mb
  /var=20mb
  and
  /usr= remainder of 30gb.
  
  I am using  QMAIL+ VPOPMAIL for FreeBSD Install document By Flattie
  McGee  (Very nice instructions, Thanks very much to Flattie McGeee).

  It installs:
  
qmail-1.03.tar.gz   : qmail!
daemontools-0.70.tar.gz : Useful tools
ucspi-tcp-0.88.tar.gz   : Inetd replacement
vpopmail-4.8a.tar.gz: Virtual Domain/POP module
ezmlm-0.53.tar.gz   : Mailing List module
autorespond-1.0.0.tar.gz: Auto Responder module
gdbm-1.8.0.tar.gz   : Database routines
qmailadmin-0.30.tar.gz  : Web Control Interface
  
  I also followed up with sqwebmail-0.37a



-- 
Best regards,
 Mark  mailto:[EMAIL PROTECTED]

Quote of the Day:
"A lawyer is someone who writes an eighty-page document and calls it a brief!"





SMTP Authorization

2000-10-22 Thread Mark Thomas (Tech14)

Hello everyone,

Is there a way to setup qmail to use SMTP authorization?
Right now I am limiting sending of mail to authorized users on the
local segment(10.1.0.x).  How would I go about forcing the user to
sign in with a username/password in order to send smtp mail, rather
than disallowing totally access from outside?

Also, does this open any doors that I should be concerned with?
  

-- 
Best regards,
 Mark  mailto:[EMAIL PROTECTED]

Quote of the Day:
Unfortunately, since I went on the wagon, the wagon went and got a liquor license.





Qmail mail-MUA ./Maildir

2000-06-25 Thread Mark Thomas

> > I guess the reason I thought it wasn't working, was the fact
> that mail was
> > not seing the mail in ./Mailbox anymore, but it is actually
> qmail now and
> > not sendmail  ???
> Sorry, but i've got no idea what you mean with this :-(


Originally sendmail was actually sendmails MUA, but now there are symbolic
links to /var/qmail/bin/sendmail.
I renamed my old sendmail sendmail to sendmail.bak.  Then I made links to
/usr/lib/sendmail and /usr/sbin/sendmail to /var/qmail/sendmail.

I guess it is not configured to look in the ./Maildir directories.
I have asked enough questions here, and now I think I understand enough to
go back through the Life with Qmail and get some more insite.  I'll probably
get things straight after LWQ.

You mentioned that initializing smtp from inetd.conf was not the right way
to do this.
Qmail install:
Setup qmail-smtp in /etc/inetd.conf (all on one line):
smtp stream tcp nowait qmaild /var/qmail/bin/tcp-env tcp-env
/var/qmail/bin/qmail-smtpd

What do I need to look for when I go through LWQ as a replacement for this,
or is there another place to init rather than the inetd.conf?



MarkT.




RE: INSTALL.maildir - Clairification please!

2000-06-25 Thread Mark Thomas



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of
Steffan Hoeke
Sent: Sunday, June 25, 2000 12:44 AM
To: [EMAIL PROTECTED]
Subject: Re: INSTALL.maildir - Clairification please!


On Sat, Jun 24, 2000 at 07:31:51PM -0500, Mark Thomas wrote:
> > >  Neither does maildirmake $HOME/Maildir, although the command
> > > maildirmake is there.
> >
> > Are you running it as the user the maildir is for ?
> > >> as root, and it was working on the root user.  Then I tried the
> > >>~username/Maildir and it worked for the other 3 users.
> It shouldn't, you'll run into problems later on !!
> The ~username/Maildir **needs** to be owned by username 
> If it's not, qmail **won't** deliver mail
>
> ** OK, I went back and chown the directories to their user-owners.
> The owner was root, like you said.
> The command maildirmake $HOME/Maildir. Should it be run by the user only?
I
> was thinking this was an administrative command for setting up all users
> with a ~user/Maildir.
For existing users it's easiest to 'su username' and then run maildirmake
It is an administrative command, but it doesn't create the Maildir for every
user..

** How cool! I didn't know you could su username without a password.
** Novell/NT protects the user login. You have to change thier password to
login as the ** user..

> I did a maildirmake /usr/share/skel/Maildir and then added a user.  It did
> create the ~user/Maildir and its subs with the proper owner and rights.
> drwx.  So I think that is straight now.
it should be FBSD changes the appropriate permissions as part of adduser
IIRC.

> The other command that I ran, I dont completely understand, so I couldn't
> verify that it worked properly.  echo ./Maildir/> ~/.qmail
echo ./Maildir/> ~/.qmail creates a .qmail file in the *current* user's home
directory and tells qmail to deliver all mail for this user to the Maildir
in
it's home directory.

**OK, great. I see the .qmail with the ./Maildir. AND Bingo, we are
receiving mail in the right directory.

> I executed this from the same place I executed the other commands.
> /var/qmail/bin
not quite correct

> It seems like maybe I should have been in the users directory?
You're getting the hang of it ;-)
The other alternative is using lwq's defaultdelivery file.

> What does this actually do?
See above.

> I can send mail from all users, including root.  Local send and Internet
> send.
> I can reply to message to all users except root.  Anytime I send to root,
> the log says un 24 19:46:38 ns1 qmail: 961893998.351162 delivery 56:
> deferral: Unable_to_open_./Mailbox:_access_denied._(#4.2.1)/
> Jun 24 19:46:38 ns1 qmail: 961893998.351423 status: local 0/10 remote 0/20
Did you create an alias for root in /var/qmail/alias ?
qmail, by design, doesn't deliver mail to root !

* YES, .qmail-root with ./Maildir in the file.  I can play around with this
one and get a marage of errors from unable_to_chdir to ./Maildir to
access_denied_./Maildir.
I checked the ./Maildir and subs.  The owner is root wheel.  All of my users
have user user.  It seems that root wheel is correct though?
I removed the Maildir structure and recreated it as root with mailmakedir.
No change, still getting errors. When I deleted the entry in .qmail-root, I
got an error Uh-Oh, no line in .qmail file.  I have tried just about
everything in this file. It seems to like ./Maildir. When I use this, I get
the access denied.

> I guess I didn't get /Mailbox switched to Maildir.  I figured I could fix
> that in a bit. I have been looking in ~user/Mailbox to see if the messages
> are being received.
If you created the .qmail file containing ./Maildir/ in each home dir the
Mailbox file has become obsolete.

** Yes, this works for all users except root.

> The docs had me modify my rc file, then later had me copy
> /var/qmail/boot/home to /var/qmail/rc which overwrote my previous edit of
> ./Maildir instead of ./Mailbox. I'll go and fix that now.

 some insight in what you're doing *is* required


> Here is the file before I edit it.
> #!/bin/sh
>
> # Using splogger to send the log through syslog.
> # Using qmail-local to deliver messages to ~/Mailbox by default.
>
> exec env - PATH="/var/qmail/bin:$PATH" \
> qmail-start ./Mailbox splogger qmail
> ***
> I am changing this line to :
> qmail-start ./Maildir splogger qmail
> Is the splogger qmail correct?

The splogger qmail should work.
the ./Maildir entry is wrong, now qmail is delivering all mail to an mbox
file named Maildir
There should be a / after ./Maildir 
The line should read:
qmail-start ./Maildir/ splogger qmail

** H, I just checked this,, it is still ./Maildir without the trailing
/, but a

RE: INSTALL.maildir - Clairification please!

2000-06-25 Thread Mark Thomas



-Original Message-
From: Steffan Hoeke [mailto:[EMAIL PROTECTED]]
Sent: Sunday, June 25, 2000 12:51 AM
To: Mark Thomas
Subject: Re: INSTALL.maildir - Clairification please!


On Sat, Jun 24, 2000 at 05:02:02PM -0500, Mark Thomas wrote:
>
>
> -Original Message-
> From: Steffan Hoeke [mailto:[EMAIL PROTECTED]]
> Sent: Saturday, June 24, 2000 3:15 PM
> To: Mark Thomas
> Subject: Re: INSTALL.maildir - Clairification please!
>
>
> I simply omitted the rc files and put qmail start in my rc ;-)
> Works like a charm ;)
> (( I put csh -cf '/var/qmail/rc &' in the inetd.conf, it is working fine
> also)
Hmm, my gut tells me that's not the way to go ;)
 Right Again.  I thought it was working, but after remming it out, it still
was loading anyway from /usr/local/etc/rc.d/qmail.sh  which is a symbolic
link to /var/qmail/rc.  But I think the /usr/local/etc/rc.d/qmail.sh is what
is actually running on startup. I think this because I copied a "batch file"
that I had wrote over to the directory and gave it a .sh extension, and it
runs on boot. This is what is in the rc file.
#!/bin/sh
# Using splogger to send the log through syslog.
# Using qmail-local to deliver messages to ~/Mailbox by default.

exec env - PATH="/var/qmail/bin:$PATH" \
qmail-start ./Mailbox splogger qmail&

I had to add the & after qmail on the second line, because it would not
complete loading (ie.. apache loads just before qmail, and it would just sit
there loading apache and never move.  I had to hit ctrl-c to get it to the
login prompt, and this was unloading the qmail rc.  Also why I thought it
was running out of inetd.conf. Does your rc file have the & at the end?
I have to take another stab at converting over to ./Maildir.  When I change
the rc file over to ./Maildir, all mail works outbound, but I have trouble
on inbound.
Root still says access denied on ./Maildir when he receives a message and my
other users says that ./Maildir is a directory and errors out.  The
conversion looks pretty simple, I have to look again at the changes I made.

MarkT.



> You mention 2 features you need help with maildir2mbox is one,
> what's the other ? (the rc file(s)?)
> (( gaaack ))
> ((Until your MUA supports maildir, you'll probably want to convert maildir
> ((format to (gaaack) mbox format. I've supplied a maildir2mbox utility
> ((that does the trick, along with some tiny qail and elq and pinq wrappers
> ((that call maildir2mbox before calling Mail or elm or pine.
> ((I was trying to use man to look at some "I think manuals" in the
> /var/qmail/bin ((diretory, but you couldn't hardly read them.  Some of the
> syntax was blurbed out.
>
> What's the problem with maildir2mbox ?
> I'm not sure how to use it!  I have it in my /var/qmail/bin directory.
There are wrappers for mail, elm and pine in /var/qmail/bin called qail, elq
and pinq.
they automagically call maildir2mbox before starting mail, elm or pine 

I guess the reason I thought it wasn't working, was the fact that mail was
not seing the mail in ./Mailbox anymore, but it is actually qmail now and
not sendmail  ???

Markt

 Greetz,
  Steffan

--
http://therookie.dyndns.org





Maildir and Mailbox

2000-06-24 Thread Mark Thomas

Where does the incomming and outgoing mail actually get filed.
Each user has a Maildir subdirectory with tmp,cur,new subdirectories under
it.
It appears that I am able to receive messages, but they are not showing up
in Maildir.

I was able to send/recieve mail using the Mailbox file.  I could cat the
Mailbox file in the users directory, but since I tried to convert over to
Maildir, I havn't been able to find the incomming messages.

Mark




RE: INSTALL.maildir - Clairification please!

2000-06-24 Thread Mark Thomas

> >  Neither does maildirmake $HOME/Maildir, although the command
> > maildirmake is there.
>
> Are you running it as the user the maildir is for ?
> >> as root, and it was working on the root user.  Then I tried the
> >>~username/Maildir and it worked for the other 3 users.
It shouldn't, you'll run into problems later on !!
The ~username/Maildir **needs** to be owned by username 
If it's not, qmail **won't** deliver mail

** OK, I went back and chown the directories to their user-owners.
The owner was root, like you said.
The command maildirmake $HOME/Maildir. Should it be run by the user only? I
was thinking this was an administrative command for setting up all users
with a ~user/Maildir.
I did a maildirmake /usr/share/skel/Maildir and then added a user.  It did
create the ~user/Maildir and its subs with the proper owner and rights.
drwx.  So I think that is straight now.
The other command that I ran, I dont completely understand, so I couldn't
verify that it worked properly.  echo ./Maildir/> ~/.qmail
I executed this from the same place I executed the other commands.
/var/qmail/bin
It seems like maybe I should have been in the users directory?  What does
this actually do?

I can send mail from all users, including root.  Local send and Internet
send.
I can reply to message to all users except root.  Anytime I send to root,
the log says un 24 19:46:38 ns1 qmail: 961893998.351162 delivery 56:
deferral: Unable_to_ope
n_./Mailbox:_access_denied._(#4.2.1)/
Jun 24 19:46:38 ns1 qmail: 961893998.351423 status: local 0/10 remote 0/20

I guess I didn't get /Mailbox switched to Maildir.  I figured I could fix
that in a bit. I have been looking in ~user/Mailbox to see if the messages
are being received.
The docs had me modify my rc file, then later had me copy
/var/qmail/boot/home to /var/qmail/rc which overwrote my previous edit of
./Maildir instead of ./Mailbox. I'll go and fix that now.
Here is the file before I edit it.
#!/bin/sh

# Using splogger to send the log through syslog.
# Using qmail-local to deliver messages to ~/Mailbox by default.

exec env - PATH="/var/qmail/bin:$PATH" \
qmail-start ./Mailbox splogger qmail
***
I am changing this line to :
qmail-start ./Maildir splogger qmail
Is the splogger qmail correct?

ONE MORE:
Where should the ~alias/Mailbox be, and who should be the owner.
Basic alias, ie.. Postmaster, MAILER-DAEMON, root.
All I did according to the doc was touch ~alias/.qmail-postmaster,
~alias/.qmail-mailer-daemon, ~alias/.qmail-default and ~alias/.qmail-root.
Then I chmod 644 qmail.*
These empty files are in /var/qmail/alias.  They are 0 byte files. Do they
need something in them relating to the alias?  The doc says look at
dot-qmail.0 for details, but the file has a bunch of characters just thrown
in where some of the important stuff is, and I don't want to make any
changes where I don't know what I am doing. I have to do some reading on man
to make it find the file where it is now.  It is still in the src diretory.
For some reason, it didn't get copied over to the regular man directories.

I hate to ask so many questions, but it is one of the best ways to figure
these things out.  My experience is with Novell/NT and desktops.  This is my
first stab at Unix.

I want to go back, if the original writer of the Install documents doesn't
mind and do a modification of these documents for FreeBSD 4.0, in
particular.  I know I would have been glad to get my hands on something like
this before I got started.
I already have a bunch of documentation on setting up Apache 1.3.12 that I
want to put out for some other people to get ahold of.  I find alot of
people asking the same questions that I had trouble with. Same thing with
DNS.  I am going to take my other PIII 600 and setup a second box with this
one to reference when I do a final re-write on the install differences for
FreeBSD.  It was mostly diretory differences and file name differences, but
it sure makes it easy when the doc says go here and edit this, and it is
really there to be edited.

Thanks for everyones comments.  I really appreciate the help.  I hope to
help others in return.  When I get finished with the docs that I am going to
re-write for FreeBSD, I'll send some periodic mails to the list so others
will know where to find them.

Thanks again,
Mark Thomas.
Special thanks to you, Steffan Hoeke...

-Original Message-
From: Steffan Hoeke [mailto:[EMAIL PROTECTED]]
Sent: Saturday, June 24, 2000 3:20 PM
To: Mark Thomas
Subject: Re: INSTALL.maildir - Clairification please!


On Sat, Jun 24, 2000 at 02:00:53PM -0500, Mark Thomas wrote:
> Yes, I have tried Life with Qmail.
> I got into trouble when I got to creating the rc.0 directories that don't
> exist on FreeBSD.  So, I stopped and went back to the INSTALL.
>
> I found workarounds for everything except the (gaaak) maildir2mbox, bu

INSTALL.maildir - Clairification please!

2000-06-24 Thread Mark Thomas

Would someone help me out here just a bit.  I am Sooo, confused!
Any pointers or documents that explain some of this would be greatly
appreciated..
TIA,,
MarkT.

Here's where I am in the INSTALL.maildir document.
Here's how to set up qmail to use maildir for your incoming mail:
< This Command does not work
< Neither does maildirmake $HOME/Maildir, although the command
maildirmake is there.
< What is the deal with the "%" as the first portion of the command?

   % maildirmake $HOME/Maildir
   % echo ./Maildir/ > ~/.qmail

Make sure you include the trailing slash on Maildir/.

The system administrator can set up Maildir as the default for everybody
by creating a maildir in the new-user template directory and replacing
./Mailbox with ./Maildir/ in /var/qmail/rc.
< maildir in the new-user template??  create directory called
maildir?
< where is the new-user template directory on FreeBSD? What is the
new-user < template file called by default?

Until your MUA supports maildir, you'll probably want to convert maildir
format to (gaaack) mbox format. I've supplied a maildir2mbox utility
that does the trick, along with some tiny qail and elq and pinq wrappers
that call maildir2mbox before calling Mail or elm or pine.
<* Does mail(MUA), I think binmail, support maildir?  This is what came
default on <* the bare system load. How do you implement maildir2mbox
and (gaaack)?




Remove from List

1999-10-21 Thread Mark Thomas

I  deleted my old mail on how to get off of the list.  I need to remove
myself for a couple of weeks.
Where does the remove request get mailed to?
Thanks,
MarkT.





RE: qmail-smtpd-wrapper error. -Reply

1999-09-20 Thread Mark Thomas

Well, dad, I hate it when your right!  You sound like a man who has much
patience.
Ok, we got to tarball a greenhorn today !  I have to admit, I earned this
one!
You guys have to understand, I'm very new to Linux, but not to the game.  I
feel like a hungry fella standing at a McDonalds in another country with
both hands behind my back and I can't speak the language.  I'm hungry, but
I'm still having Funnn!
---)))A couple of comments below:

-Original Message-
From: Dave Sill [mailto:[EMAIL PROTECTED]]
Sent: Monday, September 20, 1999 11:37 AM
To: [EMAIL PROTECTED]
Subject: Re: qmail-smtpd-wrapper error. -Reply


Mark Thomas <[EMAIL PROTECTED]> wrote:

>I;m sorry, I failed to answer one of your questions.
>The remmed line.  Nothing was remmed out at that point. I should have
>removed the line before posting.  I had remmed the line about ulimit,
>because I was getting "502 unimplemented (#5.5.1)" when performing a
>telnet to 127.0.0.1 25 to test the mail server on port 25.

Hmm, that "502 unimplemented (#5.5.1)" message came from qmail-smtpd
when you entered and unrecognized command. So your SMTP service was
working fine.
))) I thought it was going to tell me "helo dude"! I usually try to
refrain from )))  getting too friendly with a computer.  Until,it makes
me a cup of coffee, )))  I'll just have to command /parameter it to
death.

>Well, I found out late last night/early this morning, that I did have
inbound
>mail working also, it was just that I was using 'mail' that evidently was
>looking in a different subdir (I think "/home/mcthomas/mbox) and the new
>inbound mail was sitting in (/home/mcthomas/Mailbox).

Did you look at /home/mcthomas/Mailbox with ls and more and see
the messages there? Or did you expect the mail command to find your
mailbox? As you've learned the hard way, the mail command has to be
told where to look.
)  I have to admit, I was a bit confused with the Qmail being of
Mbox
)format, with Mailbox name and ./Mailbox default delivery shown as
)  ~user/Mailbox.  It must be a Unix/Linux thing ~user/Mailbox to
mean
) wherever your home user directory is/Mailbox.  I'll have to admit,
I did
) look for it, I did see it, but I expected it to be like a
queue/subdir ) insead of a file full of messages.  But, now, I dream
about it! 

>Of course I found
>this out after I had quit using the LWQ document and went back to the
>INSTALL document, and then nothing worked.  I found the
>/var/adm/messages file with all of the previous mail that was inbound
>also. Oh well, I'm going to "Reload again and Retry" damn, that sounds like
>NT.

So everything you set up using LWQ worked? Your only problem was not
telling your mail reader where your mailbox was?
))) Yep, and the bad thing about it (as I wipe the puppy prints from my
))) forehead), I did do a "set", and saw where "mail" was pointing. I
couldn't ))) find an Autoexec.bat to fix, and I forgot to go back and
find/fix it later.

>Sendmail came on my system by default (Slackware 3.6).  The INSTALL
>document said to use some other mail system rather than 'mail' like 'mailx'
>but the symlink pointed to the same file.  I was doomed anyway.
>Qmail must not have its own mail client.?

No, qmail doesn't have its own mail client. It's an MTA, not an
MUA. The standard MUA's work fine with qmail.
---))) Figured this out after I broke everything!

>I know this is not that complicated of an install, I just have to compile
my
>own instructions/fixes from both of the documents to get it to work.
>How did you guys get it installed?

I used the INSTALL directions, but, then, I'm an experienced system
administrator.
- Ouch!, Well, the INSTALL document looked alot different after
going
- through your LWQ. I felt like I could give it a run for the money.


You say you need to compile your own instructions/fixes to get it to
work. I'd be happy to work with you to incorporate any changes
necessary into LWQ.
-  Thanks, I'll be happy to add comments that I would feel would
make LWQ -  more newbie proof.

- I'll take another shot at it in a nite or two, Until then, stay
tuned for - part deux..  I think I'll have a beer!

Thanks to everyone for the support!  I dare not say "Uncle"!! 

MarkT.



RE:(Clarification) Installation Quesiton on Qmail. -Reply

1999-09-20 Thread Mark Thomas

Thanks a million.
I went back in and hosebagged my install, but I am going to redo it tonight. 
I'm sure this is some of what I was missing.  I did load the ucspi-tcp and
daemontools.
Markt.


>>> "Serban Udrea" <[EMAIL PROTECTED]> 09/20/99 01:34pm >>>
Hello,

I hope I'm not making late and useless interference, but I have also
Slackware Linux (4.0.0 kernel 2.2.6) running and installed qmail 1.03,
ucspi-tcp 0.84 and daemontools 0.61. 

The first thing I want to say is that if you (Mark) also intend to use
daemontools 0.61 the startup/shutdown script in LWQ is no longer valid.

I'm using the following approach:

1. The rc.M file in /etc/rc.d looks as follows (just the part concerning
qmail):

# Commented out the sendmail lines

# Start the sendmail daemon:
# if [ -x /usr/sbin/sendmail ]; then
#  echo "Starting sendmail daemon (/usr/sbin/sendmail -bd -q15m)..."
#  /usr/sbin/sendmail -bd -q15m
# fi

#
# Start the qmail system
#
if [ -x /etc/rc.d/rc.qmail ]; then
 echo "Starting qmail ..."
 . /etc/rc.d/rc.qmail
fi

2. rc.qmail is a link to /var/qmail/rc

3. /var/qmail/rc looks as follows

#!/bin/sh
cd /var/qmail/services
/usr/bin/env - PATH="/usr/local/bin:/var/qmail/bin" ./svscan &

4. Note that I've created a directory /var/qmail/services. There I have a
copy of svscan. I had to cd to /var/qmail/services and start svscan there
because it didn't work otherwise.

5. /var/qmail/services contains two subdirectories: startup and smtpd
both
containing a script run and a subdirectory log which again contains a
script run (for details please look at the documentation of daemontools
0.61 at ftp://koobera.math.uic.edu/www/daemontols.html - I got on this
site from www.qmail.org)

6. As an example I give here the run scripts in:

/var/qmail/services/startup 



#!/bin/sh

# Using qmail-local to deliver messages to ~/Mailbox by default.

exec /usr/bin/env - PATH="/var/qmail/bin" \
qmail-start ./Mailbox



and /var/qmail/services/startup/log



#!/bin/sh

# Using multilog to log messages from qmail-send in /var/qmail/log/qmail

exec /usr/bin/env - PATH="/usr/local/bin" \
multilog t /var/qmail/log/qmail '-*'


7. Note that /var/qmail/services/startup and /var/qmail/services/smtpd
have the sticky bit set.

NOTE: I'm not sure that this is a really good way to setup qmail but till
now it worked and I rebooted the system two or three times to see if
everything works after and it does.

Best regards,

Serban




Re: qmail-smtpd-wrapper error. -Reply

1999-09-20 Thread Mark Thomas

I;m sorry, I failed to answer one of your questions.
The remmed line.  Nothing was remmed out at that point. I should have
removed the line before posting.  I had remmed the line about ulimit,
because I was getting "502 unimplemented (#5.5.1)" when performing a
telnet to 127.0.0.1 25 to test the mail server on port 25.  It was a long
shot, but I thought I would take it out temporarily and try it to see if it was
causing the problem.  It was added to the file per the document
instructions also, and the errors were related to this file.

Well, I found out late last night/early this morning, that I did have inbound
mail working also, it was just that I was using 'mail' that evidently was
looking in a different subdir (I think "/home/mcthomas/mbox) and the new
inbound mail was sitting in (/home/mcthomas/Mailbox).  Of course I found
this out after I had quit using the LWQ document and went back to the
INSTALL document, and then nothing worked.  I found the
/var/adm/messages file with all of the previous mail that was inbound
also. Oh well, I'm going to "Reload again and Retry" damn, that sounds like
NT.
Sendmail came on my system by default (Slackware 3.6).  The INSTALL
document said to use some other mail system rather than 'mail' like 'mailx'
but the symlink pointed to the same file.  I was doomed anyway.
Qmail must not have its own mail client.?
I know this is not that complicated of an install, I just have to compile my
own instructions/fixes from both of the documents to get it to work.
How did you guys get it installed?

MarkT.


>>> Chris Johnson <[EMAIL PROTECTED]> 09/20/99 06:37am >>>
On Sun, Sep 19, 1999 at 10:46:11PM -0500, Mark Thomas wrote:
> 937728523.256241 tcpserver: warning: dropping connection, unable to
run
> /var/qmail/bin/qmail-smtpd-wrapper: access denied
> 937728523.256449 tcpserver: end 16854 status 28416
> 937728523.256503 tcpserver: status: 0/40
> 
> This is the /var/qmail/bin/qmail-smtpd-wrapper
> #/bin/bash

The line above needs to be:

#!/bin/bash

And make sure that qmail-smtpd-wrapper is executable.

> # remmed the next line out due to errors.
> ***MCT**

What's the above line? It needs to be commented out.

> ulimit -d 1024
> exec /var/qmail/bin/qmail-smtpd $ {1+"$@"}

Chris



RE: qmail-smtpd-wrapper error.

1999-09-20 Thread Mark Thomas

Thanks Chris,  I did a cut and paste from the Living with Qmail document,
the "Bang" wasn't there.
To prevent certain denial-of-service attacks against qmail-smtpd, you should
create a simple wrapper in /var/qmail/bin/qmail-smtpd-wrapper that looks
like:
#/bin/bash
ulimit -d 1024
exec /var/qmail/bin/qmail-smtpd ${1+"$@"}

To Reply to Lorens Kockum:

This appears to be on inbound mail, rights problems would have to be with
the daemon running the inbound mail process? Can you assign rights to a
daemon? Just for my curiosity, what is he a part of "user,group,other".
Anyway, There are execute rights on the file.  Thanks for your comment also.
darkstar:~# cd /var/qmail/bin
darkstar:/var/qmail/bin# ls -Falc qmail-smtpd-wrapper
-rwxr-xr-x   1 root root  163 Sep 19 22:15 qmail-smtpd-wrapper*


Thanks,
MarkT.




-Original Message-
From: Chris Johnson [mailto:[EMAIL PROTECTED]]
Sent: Monday, September 20, 1999 6:37 AM
To: Mark Thomas
Cc: Qmail List
Subject: Re: qmail-smtpd-wrapper error.


On Sun, Sep 19, 1999 at 10:46:11PM -0500, Mark Thomas wrote:
> 937728523.256241 tcpserver: warning: dropping connection, unable to run
> /var/qmail/bin/qmail-smtpd-wrapper: access denied
> 937728523.256449 tcpserver: end 16854 status 28416
> 937728523.256503 tcpserver: status: 0/40
>
> This is the /var/qmail/bin/qmail-smtpd-wrapper
> #/bin/bash

The line above needs to be:

#!/bin/bash

And make sure that qmail-smtpd-wrapper is executable.

> # remmed the next line out due to errors.
> ***MCT**

What's the above line? It needs to be commented out.

> ulimit -d 1024
> exec /var/qmail/bin/qmail-smtpd $ {1+"$@"}

Chris



qmail-smtpd-wrapper error.

1999-09-19 Thread Mark Thomas

Does anyone have any suggestions on an install document for users with
minimal Linux experience.  I have tried the LWQ and I can send mail, and
receive mail locally, and send mail out to any host on the internet, but I
can't receive any.  I have worked strictly off of this document up to now,
and doing a little extra digging around, I found this. It looks like my
server1 sending mail to my linux server, and dropping connection sounds like
what may be happening.  I do not get errors back on the sending side.  Maybe
the next few hours, I'll get a retry notification back. DNS records are
correct and my MX records point to my servername.

Anyone have any ideas on what might be the problem here.
And if you don't have any suggestions about this, how about an install doc
that you've heard some successfull newbies working with.  Or a way to
Uninstall the whole thing.

937728522.446395 tcpserver: status: 0/40
937728523.216507 tcpserver: status: 1/40
937728523.216853 tcpserver: pid 16854 from 24.4.41.201
937728523.256106 tcpserver: ok 16854
c283817-b.btnrug1.la.home.com:24.4.46.125:25
c283817-a.btnrug1.la.home.com:24.4.41.201::1084
937728523.256241 tcpserver: warning: dropping connection, unable to run
/var/qmail/bin/qmail-smtpd-wrapper: access denied
937728523.256449 tcpserver: end 16854 status 28416
937728523.256503 tcpserver: status: 0/40

This is the /var/qmail/bin/qmail-smtpd-wrapper
#/bin/bash
# remmed the next line out due to errors.
***MCT**
ulimit -d 1024
exec /var/qmail/bin/qmail-smtpd $ {1+"$@"}



New qmail install help.

1999-09-19 Thread Mark Thomas

I'm not getting any information about qmail from syslog (/var/log/messages).
It would be nice to see the errors from qmail.

_
Qmail starts when the server boots up,(Starting qmail: qmail-send
qmail-smtpd, just before iBCS, apache, samba and gpm starts) but ps shows no
deamons after the boot is completed.
darkstar:~# ps
  PID TTY STAT TIME COMMAND
  130   1 S0:00 -bash
  131   2 S0:00 /sbin/agetty 38400 tty2 linux
  132   3 S0:00 /sbin/agetty 38400 tty3 linux
  133   4 S0:00 /sbin/agetty 38400 tty4 linux
  134   5 S0:00 /sbin/agetty 38400 tty5 linux
  135   6 S0:00 /sbin/agetty 38400 tty6 linux
 1240  p0 S0:00 -bash
 1517  p0 R0:00 ps

IF I start qmail manually, without stopping it first, even though it looks
like it is not running, this is the error I get:
darkstar:~# qmail start
Starting qmail: qmail-send qmail-smtpdsupervise: fatal: unable to acquire
lock: temporary failure
___ Now if I manually Stop, then Start
__
darkstar:~# qmail stop
Stopping qmail: qmail-smtpd qmail-send.
darkstar:~# qmail start
Starting qmail: qmail-send qmail-smtpd.
darkstar:~# ps
  PID TTY STAT TIME COMMAND
I took out the agetty,ps,bash lines to compress the doc.
 1130  p0 S0:00 supervise /var/supervise/qmail/send /var/qmail/rc
 1133  p0 S0:00 supervise /var/supervise/qmail/smtpd
tcpserver -v -x/etc/tcp.smtp.cdb -u1005 -g101 0 smtp /var/qmail/bin/qmail-s
 1171  p0 S0:00 supervise /var/supervise/qmail/send /var/qmail/rc
 1172  p0 R0:00 ps
The document I am reading says to look for 4 qmail daemons.

__
IF I keep running the ps command, I can catch the lspawn and splogger
loading and then immediately unloading. I caught this on screen.
darkstar:/etc/rc.d# ps
  PID TTY STAT TIME COMMAND
 7033  p0 S N  0:00 supervise /var/supervise/qmail/send /var/qmail/rc
 7037  p0 S N  0:00 supervise /var/supervise/qmail/smtpd
tcpserver -v -x/etc/tcp.smtp.cdb -u1005 -g101 0 smtp /var/qmail/bin/qmail-s
 7072  p0 S N  0:00 qmail-lspawn ./Mailbox
 7073  p0 R N  0:00 qmail-start ./Mailbox splogger qmail
 7074  p0 R N  0:00 qmail-start ./Mailbox splogger qmail
 7075  p0 S N  0:00 supervise /var/supervise/qmail/send /var/qmail/rc
 7076  p0 R0:00 ps

I read in the document, if you have problems with qmail loading and
unloading, put a
nohup in front of the supervise command. Here's the entries out of the qmail
script.
case "$1" in
  start)
echo -n "Starting qmail: qmail-send"
nohup supervise /var/supervise/qmail/send /var/qmail/rc |
setuser qmaill cyclog /var/log/qmail &

echo -n " qmail-smtpd"
nohup supervise /var/supervise/qmail/smtpd
tcpserver -v -x/etc/tcp.smtp.cdb \
-u$QMAILDUID -g$NOFILESGID 0 smtp \
/var/qmail/bin/qmail-smtpd-wrapper 2>&1 | setuser qmaill accustamp |
\
setuser qmaill cyclog /var/log/qmail/smtpd &

_
This is a test from the TEST.deliver which probably is not going to work
without daemons loaded, but here it is anyway.
darkstar:~$ whoami
mcthomas
darkstar:~$  echo to: mcthomas | /var/qmail/bin/qmail-inject
bash: /var/qmail/bin/qmail-inject: Permission denied
** No rights?  See below!
darkstar:~$ ls -Falc /var/qmail/bin/qmail-inject
/bin/ls: /var/qmail/bin/qmail-inject: Permission denied
darkstar:~$ su -
Password:
darkstar:~# echo to: mcthomas | /var/qmail/bin/qmail-inject
qmail-inject: fatal: qq trouble in home directory (#4.3.0)
darkstar:~# ls -Falc /var/qmail/bin/qmail-inject
-rwxr-xr-x   1 root qmail   33096 Sep 18 10:18
/var/qmail/bin/qmail-inject*
darkstar:~#

___

funny thing about all of this is, it appears to be working, but only for
mail to and from users on this box.  Although it does send outbound mail
correctly. It does not receive inbound mail.
Any Ideas would be appreciated.
MarkT.





RE:(Clarification) Installation Quesiton on Qmail. init.d directory and qmail script file.

1999-09-19 Thread Mark Thomas

Thanks for your reply, you are correct at all points.
We all appreciate the time you guys spend documenting these things for the
community. I chose your document because I have little or no Linux
experience (1Week), and the INSTALL and FAQ documents were a bit above my
head.  Thanks for your HOWTO!
I have included some info on my Slackware file structure. It may help
clarify the document for Slackware users. qmail-start-stop-script.txt and
support files of the /etc/rc.d directory.  rc.local-Startup file  and
rc.0-stop script.
I also have some issues with the links, since the rc.? are files and not
directories.
I appreciate your help.
Mark Thomas.

See Below: ((>>>>

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of
Dave Sill
Sent: Saturday, September 18, 1999 1:27 PM
To: [EMAIL PROTECTED]
Cc: Mark Thomas
Subject: Re: Installation Quesiton on Qmail. init.d directory and qmail
script file.

Mark Thomas <[EMAIL PROTECTED]> wrote:
>
> I). I am installing qmail 1.03 from Dave Sill's "Life with Qmail" dated
July
> 21, 1999.  I am in section # 2.8.2 System Startup Files, and it says to
> install a script file I just created "qmail" to launch qmail at boot into
my
> init.d directory.
> The document says it should be in one of the following locations:
> /etc/init.d
> /etc/rc.d/init.d
> /sbin/init.d
> I have no such directory on my system. (Slackware 3.6)

LWQ says "should" because it's impossible to cover every possibility.
((>>>>  I attached a text file with info about the rc.d directory
((>>>> structure on Slackware.  Please review!

> It appears that Slackware uses /etc/rc.d for the initialization files.  I
> think the qmail script file that will start qmail on boot should be
located
> here? Can anyone verify this for me?
What's the structure of /etc/rc.d? What subdirectories does it have?
((>>>> Structure included in the text file with info from above.

> setuser (qmaill) cyclog /var/log/qmail & ** Is
> qmaill a typo, or variable of somekind?
qmaill is a user (in /etc/passwd) which you should have set up in 2.5.4.
((>>>>  Yes, it was. I cut and pasted the text and didn't notice the
extra ((>>>> character, in qmail(l)

> setuser qmaill cyclog /var/log/qmail/(smtpd &) ***
> I have a qmail-smtpd file here.
Are you sure about that? LWQ certainly doesn't create a qmail-smtpd file
under /var/log/qmail.
((>>>> Right again-> I guess I was just about frazzeled here! 

It's probably a good idea to read through the entire Installation section
before attempting one's first installation. I'll add a note to that effect.

((>>>>  All except whats left could have been answered if I
((>>>>  would have read the entire section prior to the sections
install.
((>>>>  MarkT.


 inittab
 rc.0
 rc.local

**
Would it be appropriate to add the:
"qmail start"  somewhere in the rc.local script (bottom section of file)? 
"qmail stop"   somewhere in the rc.0 or rc.6 local script (top section)?
ALSO:
Creating links at the bottom of 2.8.2:
ln -s ../init.d/qmail RCDIR/rc0.d/K30qmail
ln -s ../init.d/qmail RCDIR/rc1.d/K30qmail
ln -s ../init.d/qmail RCDIR/rc2.d/K30qmail
ln -s ../init.d/qmail RCDIR/rc3.d/K30qmail
ln -s ../init.d/qmail RCDIR/rc4.d/K30qmail
ln -s ../init.d/qmail RCDIR/rc5.d/K30qmail
ln -s ../init.d/qmail RCDIR/rc6.d/K30qmail

With Slackware:
ln -s /etc/rc.d/qmail /etc/rc.d/rc.0(K30qmail)
rc.0,4,6,K,N, and S are files. 
Do I need to manually enter some data in the rc.? files, or create some files in a 
location for the links?
***

If Sendmail is currently installed, running the command 
"find RCDIR -name "*sendmail" -print" will give you numbers 
that should work for your system. 
I tried this also, the only files I have on my system that fit the 
*sendmail criteria was sendmail, setup.sendmail and REMOVE.sendmail.

**I received this reply from my previous post.  It gives some info on Slackware.

Slackware doesn't use the System V-style init scripts that this
documentation refers to.  Slackware uses old-style /etc/rc.d scripts.

What this probably means is that you need to stick your qmail start/stop script 
somewhere else, then manually edit by hand the various scripts in /etc/rc.d to run the 
qmail start/stop script.  
Going from memory, /etc/rc.d/rc.local would be a good

Installation Quesiton on Qmail. init.d directory and qmail script file.

1999-09-18 Thread Mark Thomas

I Have a couple of questions about the qmail install. What I have doesn't
look right to me.

I). I am installing qmail 1.03 from Dave Sill's "Life with Qmail" dated July
21, 1999.  I am in section # 2.8.2 System Startup Files, and it says to
install a script file I just created "qmail" to launch qmail at boot into my
init.d directory.
The document says it should be in one of the following locations:
/etc/init.d
/etc/rc.d/init.d
/sbin/init.d
I have no such directory on my system. (Slackware 3.6)
It appears that Slackware uses /etc/rc.d for the initialization files.  I
think the qmail script file that will start qmail on boot should be located
here? Can anyone verify this for me?

II).  Should I Chmod this file for X execute privledges? The document didn't
say.

III). I looked over the script and it references several files and
subdirectories that don't exist.  I have not received any errors in the
install up to this point.
I have attached the script file, and have put directories and files that
don't exist here in (file/dir) (parenthesis)..

case "$1" in
  start)
echo -n "Starting qmail: qmail-send"
supervise /var/(supervise)/qmail/send /var/qmail/rc |** I don't
have supervise directory
setuser (qmaill) cyclog /var/log/qmail & ** Is
qmaill a typo, or variable of somekind?

echo -n " qmail-smtpd"
supervise /var/supervise/qmail/smtpd tcpserver -v -x/etc/(tcp.smtp.cdb)
\  ** This file doesn't exist.
-u$QMAILDUID -g$NOFILESGID 0 smtp \
/var/qmail/bin/(qmail-smtpd-wrapper) 2>&1 | setuser qmaill accustamp
| \ ** I have qmail-smtpd but no wrapper.
setuser qmaill cyclog /var/log/qmail/(smtpd &) ***
I have a qmail-smtpd file here.

I'm a bit confused here!
I am running Slackware 3.6 on Kernel 2.0.35 on a 486/66Dx with 32Meg Ram.  I
have two NICS, both setup and working.  I can ping local network and
internet by name or IP address.  I have  the Samba Server 1.9.18p10 running.
Everything working fine.
I am going to continue with the install, and hope I don't hose anything, but
I just don't think its going to work.

ANY COMMENTS WOULD BE GREATLY APPRECIATED.
TIA
MarkT.

 qmail


RE: http://pobox.com/~djb/ezmlm.html

1999-09-18 Thread Mark Thomas

Hold on a minute!  I you said what I think you said, I have a really odd
problem here.  I am reading the installation documentation for Qmail 1.03.
All over the document, it says to go read this or that, or download this or
that from the Pobox.com address.
When you double click on this address(or cut and paste it), do you get to
this site, or do you get errors.  Http://www.pobox.com/~djb/qmail.html

Because, if you can get there, I have a real funny problem.  Because I use
Pobox.com for my mail redirector, and I frequent their site, I just can't
get to ~djb/ under pobox.com.
Please clarify,,
MarkT.
Thanks,


-Original Message-
From: Chris Johnson [mailto:[EMAIL PROTECTED]]
Sent: Saturday, September 18, 1999 2:52 AM
To: Mark Thomas
Cc: [EMAIL PROTECTED]
Subject: Re: http://pobox.com/~djb/ezmlm.html


On Sat, Sep 18, 1999 at 01:54:40AM -0500, Mark Thomas wrote:
> I am trying to setup qmail for the first time.  Being a newbie to Linux, I
> need all of the help I can get.  I keep seing references to this, but I
> cannot see anything under pobox.com/.
>
> I even got this message after signing up to this mailing list.
> See http://pobox.com/~djb/qmail.html for more information about qmail.
> Please read http://pobox.com/~djb/qmail/faq.html before sending your
> question to the qmail mailing list.

Just follow these instructions literally. Don't try to "see anything under
pobox.com," whatever that might mean. Access the cited URLs, and there you
will
find the desired information.

Chris



http://pobox.com/~djb/ezmlm.html

1999-09-17 Thread Mark Thomas

I am trying to setup qmail for the first time.  Being a newbie to Linux, I
need all of the help I can get.  I keep seing references to this, but I
cannot see anything under pobox.com/.

I even got this message after signing up to this mailing list.
See http://pobox.com/~djb/qmail.html for more information about qmail.
Please read http://pobox.com/~djb/qmail/faq.html before sending your
question to the qmail mailing list.

I use a pobox.com address myself, and have never seen any reference to qmail
out there?  I have tried several html documents from the Qmail.org home page
that points there that are not available.
Anybody have any clues.  I can get to pobox.com and login and change my
redirects, passwords, etc.  Getting to the pobox.com server is not a
problem.
Also Setting up User Masquerading, mentions adding statements to your
environment.  Is this one of the .files in my home directory?


MarkT.