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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
09-11-2002, 05:41 AM
|
#1
|
Member
Registered: Nov 2000
Posts: 368
Rep: 
|
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
|
|
|
09-11-2002, 07:12 AM
|
#2
|
LQ Newbie
Registered: Aug 2002
Location: Madison WI
Distribution: SuSE 8.0
Posts: 10
Rep:
|
*fetchmail, sendmail, procmail
*samba
*webmin, swat, linneighborhood
Google any of the above for loads of information.
|
|
|
09-11-2002, 07:25 AM
|
#3
|
Member
Registered: Nov 2000
Posts: 368
Original Poster
Rep: 
|
yes, i have all of those but is there anything that is combined like mailgear?
|
|
|
09-11-2002, 07:42 AM
|
#4
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417
|
unlikely, Linux does not rely on monolithic programs to complete substantially different tasks. Modular is the way forward!
|
|
|
09-11-2002, 10:57 AM
|
#5
|
LQ Guru
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613
Rep:
|
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
|
|
|
09-11-2002, 03:26 PM
|
#6
|
Member
Registered: Nov 2000
Posts: 368
Original Poster
Rep: 
|
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?
|
|
|
09-11-2002, 04:44 PM
|
#7
|
Moderator
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696
|
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 ....
|
|
|
09-12-2002, 04:13 AM
|
#8
|
Member
Registered: Nov 2000
Posts: 368
Original Poster
Rep: 
|
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
|
|
|
09-12-2002, 06:38 AM
|
#9
|
Moderator
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696
|
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..
|
|
|
All times are GMT -5. The time now is 02:43 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|