LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-22-2005, 05:09 AM   #1
eddiep
Member
 
Registered: Aug 2005
Distribution: Mandriva
Posts: 58

Rep: Reputation: 17
NeoMail Login Problem


Hi, I looked all over the internet, but could not find the solution for my problem:

Mandrake Linux 10.1
+sendmail + perl 5.8.5

Recently I installed NeoMail 1.2... (the last one)
I installed it as it was documented. It runs, BUT I CAN NOT LOG IN.
No user can login regardless of group. Sendmail works ok, apache works ok.

I get this message in /var/neomail/neomail.log:
Mon Aug 22 11:32:12 2005 - [10020] (86.xxx.xx.xxx) UNKNOWNUSER - invalid login attempt for username=xxxxxxx

Also there is some strange log in /var/log/httpd/error.log:
[Mon Aug 22 11:32:12 2005] [error] [client 86.125.59.172] YOU HAVEN'T DISABLED SET-ID SCRIPTS IN THE KERNEL YET!, referer: >>> HERE WAS AN URL TO MY NEOMAIL.PL FILE<<<

[Mon Aug 22 11:32:12 2005] [error] [client 86.125.59.172] FIX YOUR KERNEL, OR PUT A C WRAPPER AROUND THIS SCRIPT!, referer: >>> HERE WAS AN URL TO MY NEOMAIL.PL FILE<<<


Neomail directory rights/owners:
[root@server neomail]# ls -la
total 40
drwxrwxrwx 6 root mail 4096 Aug 22 10:49 ./
drwxr-xr-x 22 root root 4096 Aug 22 10:49 ../
-rwsr-xr-x 1 root root 710 Aug 22 10:49 checklogin.pl*
drwxr-x--- 2 root mail 4096 Aug 22 10:49 lang/
-rwxr-x--- 1 root mail 7670 Aug 22 11:24 neomail.conf*
-rw-rw---- 1 root mail 1262 Aug 22 11:32 neomail.log
drwxr-x--- 2 root mail 4096 Aug 22 10:49 styles/
drwxr-x--- 23 root mail 4096 Aug 22 10:49 templates/
drwxrwxrwx 2 root mail 4096 Aug 22 10:49 users/

Also tried /var/neomail/checklogin.pl as root with /etc/shadow and a real username and password, and it returned me "0" = authentication succesfull.

Please help me figure out why neomail fails to log in any user.
Thanks.
 
Old 08-22-2005, 11:30 PM   #2
crabboy
Senior Member
 
Registered: Feb 2001
Location: Atlanta, GA
Distribution: Slackware
Posts: 1,821

Rep: Reputation: 121Reputation: 121
Neomail!! Wow that was a long time ago. Last time I touched that was back in 2003. I'd suggest something php based like horde (http://www.horde.org/).

Lucky for you I'm a pack rat. I wrote C wrappers for neomail.pl and neomail-perfs.pl as the error message suggests. I called them neomail.cgi and neiomail-perfs.cgi respectively.

neomail.c:
Code:
#define REAL_PATH "/exposed/mail/neomail.pl"

main( int argc, char **argv )
{
   execv( REAL_PATH, argv );
}
neomail-perfs.c
Code:
#define REAL_PATH "/exposed/mail/neomail-prefs.pl"

main( int argc, char **argv )
{
   execv( REAL_PATH, argv );
}
Make these setuid.
 
Old 08-22-2005, 11:42 PM   #3
PeterRJG
Member
 
Registered: Jun 2005
Location: Northern NSW, Australia
Distribution: LXLE
Posts: 123

Rep: Reputation: 15
I recommend SquirrelMail personally. Yes, I know it doesn't answer your question, but Neomail can be more trouble than it's worth.
 
Old 08-22-2005, 11:51 PM   #4
eddiep
Member
 
Registered: Aug 2005
Distribution: Mandriva
Posts: 58

Original Poster
Rep: Reputation: 17
I solved the problem, thanks folks.

Also thenks for the recomendations, but on this particular server I must use NeoMail. Anyway now it's working and everyone is happy
 
  


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
neomail settings gigi Linux - Software 0 07-08-2005 06:45 AM
port used by neomail gigi Linux - Security 1 04-29-2005 06:42 PM
Neomail errors... frogger01 Linux - Software 6 04-26-2005 08:22 PM
neomail setup.pl problem slack66 Slackware 5 11-15-2003 03:42 AM
Neomail mikeshn Linux - Software 0 11-14-2003 03:34 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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

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
Open Source Consulting | Domain Registration