LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Qmail - Starting From Scratch (https://www.linuxquestions.org/questions/linux-newbie-8/qmail-starting-from-scratch-209351/)

dadepfan 07-25-2004 01:38 AM

Qmail - Starting From Scratch
 
I'm starting this thread to use instead of the "Qmail Error" thread (which I sort of Commandeered) so that those who subscribed to that thread early will not be bothered by all our posts.

I have been attempting to install Qmail and a host of supporting software, using the "how-to" page located here:

http://sylvestre.ledru.info/howto/ho...l_vpopmail.php

I got this location from the sig of another poster, and he (DonBoy) has been good enough to provide me with a constant supply of advice. Here was one of the last posts on the "Qmail Error" thread:

Quote:

Originally posted by Donboy
ummm, no you misunderstood.., maybe I confused you somewhere. You actually need qmail-pop3d. When a user wants to login to your system and check their email, qmail-pop3d is responsible for checking their username and password to be sure they are real users. Once they are approved, qmail-pop3d will download messages from their /home/vpopmail/domains folders and deliver the messages to the end user.

I hate to say it, but I'm afraid you may want to think about starting over. Don't get depressed. This stuff takes time. If anyone could do it, you'd have 11 year olds running servers! And I can also tell you that I went through this myself a couple of times before I finally got it right. The problem is... you're not used to seeing the output of these commands and you don't' know if everything is going like it should be going.

Just take your time and walk through each step VERY carefully and be sure you do exactly what it says. I know you've done this already, but after doing it again, you'll be faster because you'll know what to expect from these commands and you'll feel better about having done it right.

I also suggest dumping webmin for this. God only knows what kind of things webmin is doing to your configuration, and if it's doing something I don't know about, I may become lost and unable to help you because I don't know what things webmin has changed behind our backs. You should be able to install everything from a simple shell.

Another tip... don't just copy a hunk of commands and paste them into your shell window. Do each line at a time to be sure it works. You may also want to have a text window open and paste the same commands into there too, so eventually you'll have a script that you can run all at once and install a whole bunch of stuff knowing it will work fine because you've tested it already. This will allow you to start over and not lose much time because you've already got your commands sorted out.

On the bright side, it looks like you've got chkconfig all figured out! I can tell you're not comfortable using the command line, but believe me... once you get a good handle on it, you'll never use anything else. It's way too convenient.

Just hang in there... take it slow... and post back here when you hit even the smallest snag. I'm not going anywhere, and I don't mind helping. Yes it'll take a little longer, but once you've done it once, you'll never need anyone's help again because you'll KNOW what you're doing.

We'll start from there....

dadepfan 07-25-2004 01:44 AM

Sooo... I'm starting over.

I will start by shutting down Qmail. and going through the How-To and deleting all the files and directories I had added. I will also see if there is an easy way to uninstall Qmail as well.

Stay tuned!

:cry:

D.

win32sux 07-25-2004 01:45 AM


have you tried http://www.qmailrocks.org/ ??

=)


[EDIT]

at the time i posted originally i really didn't understand what this thread was about as i was really sleepy, so my original post was unintentionally quite rude when taken in that context...


Donboy 07-25-2004 02:10 AM

Hey dadepfan, I'm still here with you.

To kill qmail, just go to the /etc/inittab file and comment out that line that says SV:123456:respawn:/command/svscanboot. Now do "kill -HUP 1" and it should stop qmail completely.

Do a ps -ef and see if there are any qmail-related processes going. Post the output here if you're in doubt, but there shoudl be none.

To delete qmail, you can just do...

rm -rf /var/qmail

and that will take care of 90% of it.

Since you're starting over from scratch, I suggest getting rid of the users and groups you made in the last install, and get rid of ucspi-tcp and daemontools stuff also. Basically just go through the last howto you used and reverse everything you did so that there are no traces of a prior qmail install.

Good luck man. *thumbs up*

dadepfan 07-25-2004 02:15 AM

Yes, I'm doing all that.

But for now, I going to bed!:o

dadepfan 07-25-2004 02:01 PM

Good morning all!

Today I'm going to start installing Qmail (and other stuff) again, using the guide here:

http://sylvestre.ledru.info/howto/ho....php#tcpserver

First, I'll complete the removing of all the stuff from the last try at installing this. Here are a couple of questions (for anyone) regarding the "how-to" I'm using.

1. The guide is all command-line work, and it does not specifically tell me exactly where I should be located (in Konsole). What directory should I be positioned in? For most things, it does not seem to matter, I usually go the the directory above the one being created by the 'mkdir' command because the following command usually moves me into the new directory. But it is not clear in all the guide sections.

2. This guide installs Qmail 1.03, and then applies patches. Can I substitute the latest netqmail? If I do, should I change the instructions to name directories and files netqmail? If I still run the patches, will it mess anything up?

3. Where can I get perl-suid for step 10 in the guide??

On this install, I'm going to go slower and ask questions whenever I see something wrong.

Thanks,

D.

dadepfan 07-25-2004 02:53 PM

I'm in step 1 (installing QMail) of the http://sylvestre.ledru.info/howto/ho....php#tcpserver guide. I used netqmail-1.05 instead of qmail, and ran the ./collate sh as per the readme. That seemed to apply a patch, but the above guide applies 5 patches in step 1.3. Is the netqmail patch all-inclusive? When I try the "wget" command from the guide for the additional patches, I get the following for some of them:

Quote:

Linux:/var/netqmail-1.05 # wget http://sylvestre.ledru.info/howto/qm...nce-trim.patch
--00:43:50-- http://sylvestre.ledru.info/howto/qm...nce-trim.patch
=> `doublebounce-trim.patch'
Resolving sylvestre.ledru.info... 217.167.120.134
Connecting to sylvestre.ledru.info[217.167.120.134]:80... connected.
HTTP request sent, awaiting response... 403 Forbidden
00:43:51 ERROR 403: Forbidden.


Linux:/var/netqmail-1.05 # wget http://sylvestre.ledru.info/howto/qm...-0.0.0.0.patch
--00:44:09-- http://sylvestre.ledru.info/howto/qm...-0.0.0.0.patch
=> `qmail-0.0.0.0.patch'
Resolving sylvestre.ledru.info... 217.167.120.134
Connecting to sylvestre.ledru.info[217.167.120.134]:80... connected.
HTTP request sent, awaiting response... 403 Forbidden
00:44:10 ERROR 403: Forbidden
.
Some of the 5 patches did download OK though. I will try to apply the patches that did download, and continue from here.

D.

dadepfan 07-25-2004 04:08 PM

I decided to go back to just installing qmail-1.03 instead of netqmail-1.05. There were too many naming differences in the guide (http://sylvestre.ledru.info/howto/ho....php#tcpserver).

I also got around the "forbidden" problems I posted in my last post, by downloading the files from a different site.

Now, I am at step #3 in the guide (TCPserver), and when I get to the next-to-last command in this section (make setup check) I get the following:

Quote:

Linux:/package/ucspi-tcp-0.88 # make setup check
./install
install: fatal: unable to write .../bin/tcpserver: text busy
make: *** [setup] Error 111
I'm not sure how to fix this. I'll look to see if I have a TCP server running somewhere, and try and shut it down. There is no 'tcpserver' located in directory /bin, but there is one in my current install directory (/package/ucspi-tcp-0.88/) and one in /usr/local/bin/.

Anyone have an idea about this??

D.

dadepfan 07-25-2004 04:11 PM

Sorry - never mind my last post. I found a qmaild process that said something about TCP, so I shut it down, and the command worked.

D.

Donboy 07-25-2004 05:02 PM

>> What directory should I be positioned in?

I think you want to start in /usr/local/src and the guide assumes you are downloading everything into that dir and then unpacking stuff in there. So under /usr/local/src, there should be your qmail-1.03 and so forth.

After you begin using the guide, it should tell you to change directories when needed.

>> Can I substitute the latest netqmail?

Yes, but there are going to be some patches that don't apply. For example, in Netqmail they are taking care of the errno patch and I believe also the 0.0.0.0 patch, so you don't need to apply the pathes in the howto. Generally, you can apply whatever patches and use whatever qmail you want.

>> If I do, should I change the instructions to name directories and files netqmail?

Yeah, if you decide to use netqmail, you'll want to pay attention to the howto and always substitute "netqmail-1.05" instead of qmail-1.03.

>> If I still run the patches, will it mess anything up?

If you try to apply the patches from the howto into netqmail, I'm sure they will fail.

>> Where can I get perl-suid for step 10 in the guide??

Wish I knew. Sorry.

Also remember that you can always come back later and apply new patches afterwards. Even after you get everything up and running, you can always download the source again, apply the patches, and then run "make setup check" and it will overwrite your current setup with the new stuff. So applying patches later is very easy.

Looks like you are doing great! Sorry I wasn't here to answer your q's before, but I was out and about running errands today.

dadepfan 07-25-2004 05:25 PM

I am in the vpopmail section of the install guide (section 4), and the creation of the mysql vpopmail database seemed to go fine. However, the little test in the guide does not work:

Quote:

Linux:/ # [sly@reloaded] ~$ mysql -u vpopmail_edit -ppass vpopmail
bash: [sly@reloaded]: command not found
Linux:/ # mysql -u vpopmail_edit -ppass vpopmail
ERROR 1045: Access denied for user: 'vpopmail_edit@localhost' (Using password: YES)
Linux:/ # mysql -u vpopmail_edit -ppass nordyboy
ERROR 1045: Access denied for user: 'vpopmail_edit@localhost' (Using password: YES)
Linux:/ # mysql -u vpopmail_edit -ppass vpopmail
ERROR 1045: Access denied for user: 'vpopmail_edit@localhost' (Using password: YES)
Linux:/ # mysql -u vpopmail_edit -vpopmail vpopmail
ERROR 1045: Access denied for user: 'vpopmail_edit@localhost' (Using password: YES)
The instructions in the guide were:
Quote:

If this 2 following lines work, the vpopmail database should work.

[sly@reloaded] ~$ mysql -u vpopmail_edit -ppass vpopmail
and
[sly@reloaded] ~$ mysql -u vpopmail_read -ppass2k vpopmail
Any ideas?

D.

dadepfan 07-25-2004 05:39 PM

OK, I am in the vpopmail section of this guide (http://sylvestre.ledru.info/howto/ho....php#tcpserver), and I may stop for a while because I have too many questions. It appears that this section is not as carefully written.

1. I've run the mysql commands, but I had to go in manually to give the two new users the appropriate permissions. The test still does not work (see my last post).

2. Also in the mysql commands, are we supposed to enter 'pass' and 'pass2k' literally, or are we supposed to enter real passwords?

3. In the actual installation part of the vpopmail section, it appears that I should be in the /home directory when I start, but it does not clearly say that.

And finally, what do the following mean:

[quote]
apt-get install libmysqlclient10-dev If you are under debian, otherwise, you must have the mysql sources available
apt-get install zlib1g-dev If you are under debian, otherwise, you must have these sources available [quote]

I'm using SuSe 9.1, so where do I find the "source" code and how do I make it available??

Thanks,

D.

win32sux 07-25-2004 07:22 PM

from the vpopmail section of the qmailrocks.org guide:

Quote:

Which option is best for me?

First of all, don't feel that a vpopmail installation without mysql is somehow inferior or inadequate. It's not. The choice of whether or not to use mysql with vpopmail, in my opinion, is a personal preference and basically comes down to 2 things:

1. How large is you mail server going to be?

If you are only planning on hosting a handful of domains on your mail server, I don't think it's really worth integrating mysql into it. I have a server that hosts about 50 domains on it right now and it does NOT have mysql integrated into vpopmail. It works perfectly fine. The qmailrocks.org mail server also does NOT have mysql built into it. It runs great. However, if you plan to host more than 50 domains or so, I'd say go with mysql. It makes it easier to manage a lot of domains and also makes porting the mail server to new equipment and locations easier. Of course, the decision is up to you. If you really want to use vpopmail with mysql on a server that hosts only 1 domain, knock yourself out. My opinion though, is that unless you are hosting a ton of domains, integrating mysql into vpopmail is simply making your mail server more complex than it needs to be. And as we all know, the more complex the plumbing, the easier it is to stop up the drain.

2. How comfortable are you with mysql?

If you're a newbie and you don't know jack shit about mysql, don't be a jackass. Just use the default vpopmail installation and save yourself the aggravation. I can't hold you hand though installing and setting up mysql, and you'll be hard pressed to find someone else that will. In short, don't get in over your head.
http://www.qmailrocks.org/vpopmail.htm

dadepfan 07-25-2004 07:32 PM

Thanks Win32Sux...

I've been on that site, but I'll go back and read the vpopmail section. Will it tell how to install vpopmail without the mysql stuff? Maybe all I have to do is skip those commands??

Thanks,

D.

win32sux 07-25-2004 07:34 PM

Quote:

Originally posted by dadepfan
Will it tell how to install vpopmail without the mysql stuff?
yeah, just click the link that says "I would like to install vpopmail without MySQL intregation"...

=)


when clicked, it takes you here:

http://www.qmailrocks.org/vpopmail_std.htm



All times are GMT -5. The time now is 07:54 PM.