Mail accounts


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Mail accounts
# 1  
Old 07-01-2002
Mail accounts

Hi there
I am a newbie. want to learn followings:

1. How can i create an mail only account.?
2. Where is the file containing mail accounts?What is the path?
3. Can i create mail accounts from PHP?

Thanx
vbs
# 2  
Old 07-02-2002
Hi vbs

1. You create them as you would do with a 'normal' account, with one exception.

# useradd -s /bin/false McLachlan

The -s option specifies what shelll McLachlan should have. But we only want McLachlan to read his mail, not have shell access so we specify it to something that wont grant any useful access. In this case /bin/false.

2. You can find user account information in /etc/passwd

3. Not sure, it's been a very long time since I've used PHP. Check out www.php.net

Smilie
# 3  
Old 07-02-2002
thanks

Thank you very much.
Smilie
vbs
# 4  
Old 07-02-2002
no problem Smilie

By the way, you can specify any program as your 'shell'.
For example if you want to let your mail user change his/her password you could do this:

# useradd -s /usr/bin/passwd MikeWallace

Or edit any existing mail-user in /etc/passwd, and change their shell to /usr/bin/passwd:

dummy:x:1003:100::/dev/null:/usr/bin/passwd


(your passwd program may be located elsewhere... Try 'which passwd'). Now all Mike Wallace or dummy need to do is use telnet or ssh (use SSH!) to connect to your computer, specify login/pass and then change his password.

Good luck Smilie
 
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Client was not authenticated to send anonymous mail during MAIL FROM (in reply to MAIL FROM comm

I am having trouble getting mail to work on a red hat server. At first I was getting this message. Diagnostic-Code: X-Postfix; delivery temporarily suspended: connect to :25: Connection refused Then added the port to my firewall. Then I temporarily turned off selinux. I then copied this file... (1 Reply)
Discussion started by: cokedude
1 Replies

2. UNIX for Advanced & Expert Users

How can I send a mail from my outlook or other mail accounts to UNIX server?

Hi all, I want to send a mail for my business needs from outlook account to an unix server (HP-UX) but I don't send any mail. While I can send from the unix server to my outlook account, I can't send from outlook to unix. How can I achieve this ? How can I send a mail from my outlook or other... (2 Replies)
Discussion started by: igelegin
2 Replies

3. Shell Programming and Scripting

I have a requirement to check whose accounts are expired in Linux machine and send a mail to root

I have a requirement to check whose accounts are expired in Linux machine and send a mail to root user about the accounts. How can i achieve this in Linux? (1 Reply)
Discussion started by: mnmonu
1 Replies

4. UNIX for Advanced & Expert Users

need to configure mail setting to send mail to outlook mail server

i have sun machines having solaris 9 & 10 OS . Now i need to send mail from the machines to my outlook account . I have the ip adress of OUTLOOK mail server. Now what are the setting i need to do in solaris machines so that i can use mailx or sendmail. actually i am trying to automate the high... (2 Replies)
Discussion started by: amitranjansahu
2 Replies

5. Solaris

how to forward mail in /var/mail/username to external mail

Dear All, Now I use solaris 10 and I try to forward mail from /var/mail/username to their external mail so what should I do? thank u in advance (2 Replies)
Discussion started by: unitipon
2 Replies

6. UNIX for Dummies Questions & Answers

I am not able to send mail form unix to other mail accounts.

Using Mailx command i.e mailx -s "subject" chinni@hotmail.com < \tmp\chin this command executed sucessfully but not able to receive the mail in chinni@hotmail.com please help. (1 Reply)
Discussion started by: chinnigd
1 Replies

7. Shell Programming and Scripting

Deleting some mails from Unix mail accounts

Hi there, Is there a way to delete some messages from the mail account on a Unix machine via a script?. Regards (0 Replies)
Discussion started by: JimJim
0 Replies

8. Cybersecurity

Creating mail accounts online.?

Hi all. Can anybody help me about this topic. I am working on the project which lets people create an mail account an sign in to send or recieve mail( shortly like yahoo hotmail). At the moment , records of People who registers to my mail service, is saved to database.after, I am creating... (1 Reply)
Discussion started by: vbs
1 Replies
Login or Register to Ask a Question