Solved

newbie to unix needs help with email

Posted on 2004-09-13
10
222 Views
Last Modified: 2013-12-16
Hi all,

just have a question about setting up email accounts on unix systems. I am assuming that there is a way to automatically setup user email accounts based on an automated event, like a new user signing up. Is this possible? Is it a native function of the email application being used on the unix server? What tools do people recommend to perform this task?

I really appreciate any help someone would be willing to give me.

Rich.
0
Comment
Question by:Reige01
  • 4
  • 3
  • 3
10 Comments
 
LVL 38

Assisted Solution

by:yuzh
yuzh earned 100 total points
Comment Utility
To setup a user's email account all you need to do is to add the user to the system.

In *nix system, all users have email account. to add a user you can use the "useradd" command. If you want to write a script to add user account, have a look at:

http:Q_20925430.html
http:Q_20409885.html
http:Q_10674741.html

PS: You might have GUI tool in your system for adding user etc, (eg Solaris - admintool,
      HP-UX-- sam, SCO -- scoadmin ......)

To setup a mail server, you can setup sendmail (if you mail already working, someone
already done it for you):

have sendmail FAQ and tips:
http://www.sendmail.org/faq/
http://www.akadia.com/services/sendmail_tips.html
http://www.sendmail.org/~ca/email/setup1.html



0
 
LVL 51

Expert Comment

by:ahoffmann
Comment Utility
>  To setup a user's email account all you need to do is to add the user to the system.
hmm, agreed if "systems" means MTA
0
 

Author Comment

by:Reige01
Comment Utility
Hi, thanks for your replies but what I was really after is an automated way to add the email account. For example, someone comes to my website and joins up, enters a username and my system generates an email address based on the information supplied in the join up process without me having to manually add the account. Is this possible, and if so, how do the larger ISP's handle this sort of thing?

Thanks again for your help,

Richard.
0
 
LVL 38

Expert Comment

by:yuzh
Comment Utility
>>how do the larger ISP's handle this sort of thing?
    When a new user join up, they information is store in a database, they can use a script
to read the database and create the user account. they can use cron to read the database
and create user account once an hr, 4 hrs, a day etc.

   If the numbers of use is not the big for you, you can store the new user in for in a text
file, for email you only need loginname, real Name, password and store them in a text
file
   then use cron to run a script to rotate the newuser file to a temp area, and create the
user accounts.

   Have a look at the links in my previous comment to learn how to write the script read
infor from file/database and add users.

   Good luck!

   
0
 
LVL 51

Expert Comment

by:ahoffmann
Comment Utility
> .. what I was really after is an automated way to add the email account.
you need a tool for that. Probably a handmade one ...

There're too less informations to give you a more detailled answer.
0
IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 

Author Comment

by:Reige01
Comment Utility
yuzh,

thanks for your comments I will take a look at the other articles you posted previously.

ahoffman,

What would you need to know to give me a more detailed answer?
0
 
LVL 51

Expert Comment

by:ahoffmann
Comment Utility
which OS?
which MTA?
which authentication scheme (PAM, LDAP, etc.)?
which CGI-Language (perl, php, jsp, etc.)?
which authorization scheme (user for web server vs. root user)?
etc. etc.
0
 

Author Comment

by:Reige01
Comment Utility
First up, this question was posted to get some ideas on the do-ability of this as decisions have been made only on some aspects of the project, and others are still in discussion. So, if someone has experience in one or more environments and wouldn't mind passing that on, it would be much appreciated. The more information someone provides, the better.

Ok well the OS will be UNIX, no specific flavour as yet defined, but whatever anyone has knowledge of would be brilliant.
The MTA is also in discussion, I quite like Qmail but some others are pushing for Sendmail, so that is also still up in the air.
PAM is the preferred authentication scheme although there are opponents to this as well.
JSP will be the interface language

This is all very sketchy because this is all very preliminary and I was just hoping to get some pointers and details of how it can be done. I thank you all for your help and look forward to reading anything someone might have to add to this discussion.
0
 
LVL 51

Accepted Solution

by:
ahoffmann earned 100 total points
Comment Utility
I'd suggest to use LDAP as authentication scheme 'cause you're more free to add and use other, even proprietary, fields (compared to traditional /etc/{passwd,shadow})

The only critical point I see is you JSP. I assume that you plan to register your user's using a web server.
Then you have to take care about a lot of things. And even more things if it should work automatically 'cause you need a program with root-priviledges somewhere.
Are you aware how to protect a web server, on the network using firewalls with DMZ etc., and on application level (your JSP) avoiding XSS, path traversal, command injection, etc. ?
Sounds like a lot of work.
0
 
LVL 38

Expert Comment

by:yuzh
Comment Utility
It is a big job, you need to pick an  OS plaform, an authentication scheme, CGI-Language,
MTA before doing anything else.

I think you should break this question into a few pieces to get the details answer.
0

Featured Post

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Expiration of TSM data 17 88
Error while installing rpm 1 63
Java core in Solaris 10 1 228
Solaris 4.1.3 cloning and booting 13 34
A metadevice consists of one or more devices (slices). It can be expanded by adding slices. Then, it can be grown to fill a larger space while the file system is in use. However, not all UNIX file systems (UFS) can be expanded this way. The conca…
Using libpcap/Jpcap to capture and send packets on Solaris version (10/11) Library used: 1.      Libpcap (http://www.tcpdump.org) Version 1.2 2.      Jpcap(http://netresearch.ics.uci.edu/kfujii/Jpcap/doc/index.html) Version 0.6 Prerequisite: 1.      GCC …
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now