LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 09-11-2002, 05:41 AM   #1
antken
Member
 
Registered: Nov 2000
Posts: 368

Rep: Reputation: Disabled
there such thing as...


hello,

i have a mail server ( mailgear ) on windoze NT and the makers of the software ( symantec ) say it is not a popular product and will be discontinued, so i am out looking for a replacement.

i want to go with linux because, a) its more stable than a windoze box b) i would not have to go near it to restart it every hour or so cos of a stupid service

are there any commercial or non commercial software packages avalible that do the following things:

* Filter incomming and out going mail for banned files and words
* can authenticate users against a windows NT domain for users passwords
* has a web based configuration ( optonial )

thanks
antken
 
Old 09-11-2002, 07:12 AM   #2
catbert
LQ Newbie
 
Registered: Aug 2002
Location: Madison WI
Distribution: SuSE 8.0
Posts: 10

Rep: Reputation: 0
*fetchmail, sendmail, procmail
*samba
*webmin, swat, linneighborhood

Google any of the above for loads of information.
 
Old 09-11-2002, 07:25 AM   #3
antken
Member
 
Registered: Nov 2000
Posts: 368

Original Poster
Rep: Reputation: Disabled
yes, i have all of those but is there anything that is combined like mailgear?
 
Old 09-11-2002, 07:42 AM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
unlikely, Linux does not rely on monolithic programs to complete substantially different tasks. Modular is the way forward!
 
Old 09-11-2002, 10:57 AM   #5
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
Which is probably why they are discontinuing the use of this. It's not really that good of an idea (from a business point of view) to make a product not a lot of people use. Acid is correct. Modular is much better. You can pick and choose your favorite ways to accomplish tasks, and use your favorite programs to do it, not let some conglomeration of idiots decide for you.

Cool
 
Old 09-11-2002, 03:26 PM   #6
antken
Member
 
Registered: Nov 2000
Posts: 368

Original Poster
Rep: Reputation: Disabled
ok then,

how would i go about getting this off the ground then?

i have just worked out in my head how the user will access their mail box, but how could i get a list of users from the nt domain so i can add them into the mail server with a proper username?

on another part of this, obviously i would run a mail server to receive the mail, but how would i receive the mail and filter it so any attachments with banned extentions that are in a config file are either removed from the message or the message is erased and a message is sent back to the sender?

and could this filter be adapted to filter out sware words?
 
Old 09-11-2002, 04:44 PM   #7
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
Quote:
Originally posted by antken

i have just worked out in my head how the user will access their mail box, but how could i get a list of users from the nt domain so i can add them into the mail server with a proper username?
You need a list of them (with their logins). Then you create accounts on Linux machine for all of them (of just write a script to do it for you if there are many of them, but script requires extra work) and it should be OK. Details depend on the mailserver you choose.
Quote:
on another part of this, obviously i would run a mail server to receive the mail, but how would i receive the mail and filter it so any attachments with banned extentions that are in a config file are either removed from the message or the message is erased and a message is sent back to the sender?

and could this filter be adapted to filter out sware words?
It depends on the program you choose to filter your mail. In most of them you need to write rules saying what to do if ....
 
Old 09-12-2002, 04:13 AM   #8
antken
Member
 
Registered: Nov 2000
Posts: 368

Original Poster
Rep: Reputation: Disabled
Quote:
You need a list of them (with their logins). Then you create accounts on Linux machine for all of them

at the last count there was just over 2045 users on the NT system

and if i was going to write a script where do i start?

what i was planning on doing was getting a list, live from the system some how, selecting the user that is allowed to use the mail then clicking an add button, all in a web interface

that then puts their name in to a list and a tiny program i have been using will authenticate them against the nt system, see if they have a mail box, if they do let them in, if they dont kick them out

i dont have a problem writing a web interface i could do some of that in my sleep, its the scrips i would have trouble with
 
Old 09-12-2002, 06:38 AM   #9
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
I've found a nice Perl script :
Code:
#!/usr/local/bin/expect -f
#
# chpwd - script to change a password 
# (intended to assign temporary passwords)
# 
# Miguel A. Lerma - 7/23/1998
#
# usage: ./chpwd username newpasswd
#

set user_name [lindex $argv 0]
set new_pwd [lindex $argv 1]

set timeout 10

spawn /bin/passwd $user_name

sleep 1

expect {
        "^New password: " { 
                sleep 1;
                send "$new_pwd\n"; 
                exp_continue 
        }
        "Re-enter new password: " { 
                sleep 1;
                send "$new_pwd\n"; 
                exp_continue 
        }
        "passwd successfully changed for $user_name" {
                send_user "Passwd Successfully Changed for $user_name\n";
                exit 0
        }
}

send_user "\nPassword change failed.\n"

exit 1
With this script it's rather easy. The script file will look like this:
Code:
#!/bin/bash
useradd username
./chpwd username password
And similar entries for all the users. The only thing is to prepare such a file..
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
What is this thing? risqer Linux - General 4 10-28-2004 02:00 PM
One more thing AGilley007 Slackware 2 07-14-2004 11:51 AM
Is there such a thing? mrlucio79 Linux - Software 3 03-16-2004 04:24 PM
Help, Am I getting the right thing? caffeinelegacy Linux - Networking 2 09-04-2003 11:44 AM
don't know a thing! winyard Linux - Newbie 4 08-28-2001 07:29 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 11:13 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