LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-25-2004, 09:01 PM   #16
Donboy
Member
 
Registered: Aug 2003
Location: Little Rock, Arkansas
Distribution: RH, Fedora, Suse, AIX
Posts: 736

Rep: Reputation: 31

Dude, you've gotta slow down. I don't like having 400 messages waiting for me to try to make sense of when I come back.

>> and the creation of the mysql vpopmail database seemed to go fine. However, the little test in the guide does not work

Login to mysql first. Try this...

/usr/bin/mysql --password="yourpass"

You should get a mysql prompt like this...

mysql>

This is where you input those 2 magical commands. If you did everything like he says to do, then you should be able to enter those 2 test commands and it'll work.

>> are we supposed to enter 'pass' and 'pass2k' literally, or are we supposed to enter real passwords

Real passwords. Just make up your own, but don't forget them.

>> part of the vpopmail section, it appears that I should be in the /home directory when I start

No, you should still be in /usr/local/src. At the beginning of that section, it says to untar the vpopmail source. This is done in the src directory. Any time you untar another package, always do that in /usr/local/src.

>> And finally, what do the following mean:

That stuff is only for Debian users. I think you're on Suse, so just ignore those. If you have errors afterwards, we may need to install those packages it talks about.

win32sux, I don't know what your problem is, but please stop. If it's not abundantly clear to you by now, the guy has made it pretty obvious that he's following ONE particular howto. He's NOT following qmailrocks.org. Did you just hear that last part? Should I repeat it???

You know what's going to happen? You're going to convince him to try something stupid like blending the 2 howtos together and he's going to get really really confused and have such a mucked-up installation that he's going to end up starting over again completely or end up quitting forever.

Please dude, if you want to help him, how about helping him with his current task and stop trying to confuse him by throwing a completely different set of instruction in his face.
 
Old 07-25-2004, 09:34 PM   #17
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 376Reputation: 376Reputation: 376Reputation: 376
Quote:
Originally posted by Donboy
win32sux, I don't know what your problem is, but please stop. If it's not abundantly clear to you by now, the guy has made it pretty obvious that he's following ONE particular howto. He's NOT following qmailrocks.org. Did you just hear that last part? Should I repeat it???
there's nothing wrong with getting information from several sources... there's nothing wrong with variety... there's nothing wrong with making an INFORMED DECISION... and i'm not even speaking of the whole qmail guide, i'm just speaking of the vpopmail section...

DROP THE SARCASM.


Quote:
You know what's going to happen? You're going to convince him to try something stupid like blending the 2 howtos together and he's going to get really really confused and have such a mucked-up installation that he's going to end up starting over again completely or end up quitting forever.
stop jumping to conclusions, and stop under-estimating people...

qmailrocks.org is the most popular qmail guide out there and it's pretty ridiculous if you believe one won't be able to get any valuable information out of it... dude, IT HAS GOOD INFORMATION, in case you haven't noticed... that information can be helpful... dadepfan can read the information and decide for himself if he wants to use it, he doesn't need anybody convincing him to do anything... if it's not abundantly clear to you by now, this guy isn't a newbie, don't treat him like one...


Quote:
Please dude, if you want to help him, how about helping him with his current task and stop trying to confuse him by throwing a completely different set of instruction in his face.
i'm not trying to confuse anybody, now you're just making stuff up... i was just trying to let him know he had the option of not getting vpopmail set-up with mysql unless he really needed it, like for example, if he was gonna be dealing with several domains...

don't be so uptight man, relax...


Last edited by win32sux; 07-25-2004 at 10:01 PM.
 
Old 07-25-2004, 10:25 PM   #18
dadepfan
Member
 
Registered: Jul 2004
Location: North Bend, WA
Posts: 41

Original Poster
Rep: Reputation: 15
Thanks

I think I got it installed OK!

Now, I'm trying to install qmail-scanner, but it needs perl-suid. The only place I could find perl-suid was in a Debian package. I downloaded that and unpacked the files, but I don't know how to install it.

D.
 
Old 07-25-2004, 10:44 PM   #19
Donboy
Member
 
Registered: Aug 2003
Location: Little Rock, Arkansas
Distribution: RH, Fedora, Suse, AIX
Posts: 736

Rep: Reputation: 31
I'm actually running mine without suidperl. You can try this and see if it works for you... When you get the qmail-scanner-queue.pl script created by running the commands to compile it, you can edit the file and change the first line to read...

#!/usr/bin/perl -T

Then do...

chmod u+s qmail-scanner-queue.pl

This file belongs in the /var/qmail/bin directory.
 
Old 07-25-2004, 10:50 PM   #20
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 376Reputation: 376Reputation: 376Reputation: 376
Quote:
Originally posted by dadepfan
The only place I could find perl-suid was in a Debian package. I downloaded that and unpacked the files, but I don't know how to install it.
i found an rpm in case you want one...

http://rpmfind.net//linux/RPM/fedora...18.1.i386.html
 
Old 07-25-2004, 10:56 PM   #21
Donboy
Member
 
Registered: Aug 2003
Location: Little Rock, Arkansas
Distribution: RH, Fedora, Suse, AIX
Posts: 736

Rep: Reputation: 31
I hesitated to offer an RPM because I couldn't find one for Suse. The one you linked to is for Fedora, which might work just fine, but I dont know if it'll install everything where it belongs. If it works, that would be cool, but somehow I have a feeling it wont. I base that on nothing. It may work fine for all I know.
 
Old 07-26-2004, 12:39 AM   #22
dadepfan
Member
 
Registered: Jul 2004
Location: North Bend, WA
Posts: 41

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by Donboy
I'm actually running mine without suidperl. You can try this and see if it works for you... When you get the qmail-scanner-queue.pl script created by running the commands to compile it, you can edit the file and change the first line to read...

#!/usr/bin/perl -T

Then do...

chmod u+s qmail-scanner-queue.pl

This file belongs in the /var/qmail/bin directory.
I do not have that file, so my installation probably did not get that far.

D.
 
Old 07-26-2004, 12:42 AM   #23
dadepfan
Member
 
Registered: Jul 2004
Location: North Bend, WA
Posts: 41

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by Donboy
I hesitated to offer an RPM because I couldn't find one for Suse. The one you linked to is for Fedora, which might work just fine, but I dont know if it'll install everything where it belongs. If it works, that would be cool, but somehow I have a feeling it wont. I base that on nothing. It may work fine for all I know.
Actually, I found that RPM earlier and tried to install it. There was a perl version conflict, so I updated my entire perl installation to a new version. Then the SUID RPM installed OK, BUT, as you guessed, it still doesn not work.

D.
 
Old 07-26-2004, 01:43 AM   #24
Donboy
Member
 
Registered: Aug 2003
Location: Little Rock, Arkansas
Distribution: RH, Fedora, Suse, AIX
Posts: 736

Rep: Reputation: 31
When you run the commands for qmail-scanner, you should end up with a file called qmail-scanner-queue.pl in your source directory. You can move this file to /var/qmail/bin where it belongs.

mv /usr/local/src/qmail-scanner-1.22/qmail-scanner-queue.pl /var/qmail/bin

>> BUT, as you guessed, it still doesn not work.

How do you know? What makes you believe that? Did you see some error messages? Normally the problem renders itself when you try running qmail-scanner without suid and you may get some errors to that end showing up under /var/spool/qmailscan/qmail-queue.log.

Apparently all you need are a few perl modules and you'll have everything you need for suid perl. Try running these commands at the prompt (one at a time) and see if they work for you...

Quote:
perl -e 'use CPAN; install Net::DNS'
perl -e 'use CPAN; install Time::HiRes'
perl -e 'use CPAN; install Digest::SHA1'
perl -e 'use CPAN; install Digest::HMAC'
perl -e 'use CPAN; install HTML::Tagset'
perl -e 'use CPAN; install HTML::Parser'
This should download and install the needed perl modules.

Last edited by Donboy; 07-26-2004 at 02:12 AM.
 
Old 07-26-2004, 11:23 PM   #25
dadepfan
Member
 
Registered: Jul 2004
Location: North Bend, WA
Posts: 41

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by Donboy
perl -e 'use CPAN; install Net:NS'
perl -e 'use CPAN; install Time::HiRes'
perl -e 'use CPAN; install Digest::SHA1'
perl -e 'use CPAN; install Digest::HMAC'
perl -e 'use CPAN; install HTML::Tagset'
perl -e 'use CPAN; install HTML::Parser'
Well... All of these commands worked, and they did a whole lot of stuff. Want to tell me what they did??

In any case, after I ran these commands I tried the Qmail-Scanner install again, and still got this:

Quote:
Continue? ([Y]/N)
y
Testing suid nature of /usr/bin/perl...
Whoa - broken perl install found.
Cannot even run a simple script setuid

Installation of Qmail-Scanner FAILED

Error was:
Can't do setuid

See FAQ for further details
Trying to connect to the mail server from another PC on my home netword, using a correct Linux user and password, still does not accept the valid user & password. Even if I try the mail client in Linux on the same machine, checking mail returns this error:

Quote:
Could not login to mail.desautel.net. The password may be wrong.
Invalid response from server:
"vmysql: sql error[3]: MySQL server has gone away
 
Old 07-27-2004, 12:33 AM   #26
Donboy
Member
 
Registered: Aug 2003
Location: Little Rock, Arkansas
Distribution: RH, Fedora, Suse, AIX
Posts: 736

Rep: Reputation: 31
>> Want to tell me what they did??

These are packages used by perl. The commands you ran installed the perl modules needed for qmail-scanner.

>> Can't do setuid

Well damn. I figured that would work. I guess we're stuck for the moment. I will see what I can find out. Hang in there.

Also realize you won't be able to check your email and properly test the system until you've gotten at least through step 11 because all of these take care of your run scripts.

If you want to bypass qmail-scanner, you can edit /home/vpopmail/etc/tcp.smtp and everywhere you see "qmail-scanner-queue.pl" you can change it to "qmail-queue". This will bypass qmail-scanner and interface directly with the normal qmail scripts. After you make this change, be sure to run...

/usr/local/bin/tcprules /home/vpopmail/etc/tcp.smtp.cdb /home/vpopmail/etc/tcp.smtp.tmp < /home/vpopmail/etc/tcp.smtp
chmod 644 /home/vpopmail/etc/tcp.smtp.cdb


... which will reread the file you modified. But again, all of this is pointless until you get through step 11.
 
Old 07-27-2004, 01:16 AM   #27
Donboy
Member
 
Registered: Aug 2003
Location: Little Rock, Arkansas
Distribution: RH, Fedora, Suse, AIX
Posts: 736

Rep: Reputation: 31
Ok, I think I found something to help you...

cd /usr/local/src/qmail-scanner-1.22/contrib
gcc -o qmail-scanner-queue qmail-scanner-queue.c

Now you have a file called "qmail-scanner-queue" in your contrib directory. This is the wrapper we've been hearing so much about which will allow you to avoid running suidperl.

mv qmail-scanner-queue /var/qmail/bin/
chown qscand:qscand /var/qmail/bin/qmail-scanner-queue
chmod 4755 /var/qmail/bin/qmail-scanner-queue

The above commands will move your wrapper into the qmail/bin directory and change the ownership and permissions so that it's running suid.

Now, from the last time you did all this, you should have already copied your qmail-scanner-queue.pl script into your /var/qmail/bin. If you want to be sure, just check under /usr/local/src/qmail-scanner-1.22 and see if you have qmail-scanner-queue.pl in there. Move it to /var/qmail/bin as well.

Edit this file and change the top line from... "/usr/bin/suidperl -T" to just "/usr/bin/perl"

That's it! Lemme know how this does.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
starting from scratch ropeboardCEO Linux - Security 4 04-19-2005 09:09 PM
Starting from Scratch Switch17 Linux - Newbie 3 11-04-2003 06:18 PM
ali aladdin v agp stinks :scratch: :scratch: :scratch: Mr Marmmalade Linux - Hardware 1 07-08-2003 06:11 AM
starting from scratch Richard Powell Linux - General 2 05-14-2002 02:29 AM
Starting from scratch danwhite1 Linux - Software 2 08-26-2001 11:44 AM


All times are GMT -5. The time now is 02:53 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration