3 questions

1. HOw to add virtual pop3 accounts  or mail boxes
(ie)
I dont want to create a new system user for each mail account?

2 . How to add system users using a script?

for eg If you use `passwd user` then the script  will expect user input .. and the script will stop so  how to overcome it ?


3 . How to find UNREAD messages from a users mailbox using PERL script


chris..
LVL 6
christopher sagayamAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

ReinierCommented:
3. The mails in the /var/spool/mail/some-user file contain a line "Status: O" when they are new and this changes to "Status: RO" when they are read.
0
joe_hCommented:
2) You can use the newusers command.
0
barreroCommented:
1. you can use sendmail aliases (normally under /etc/aliases)

2. I used a C code to generate the encrypted password, and I call my C fuintion from almost eferywhere (I didn't use shadow when deploying this solution).

3. It depends on where the "mailbox" is... and the way your clients read their mail from the server...
0
The Ultimate Tool Kit for Technolgy Solution Provi

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy for valuable how-to assets including sample agreements, checklists, flowcharts, and more!

christopher sagayamAuthor Commented:
can you please be more specific
0
mliberiCommented:
2. to change user password within a batch script you would like to use 'chpasswd'
0
marko020397Commented:
1. Use the program Cyrus IMAP.
2. Some others have answered this question.
3. unread mail is in /var/spool/mail/username. With Cyrus IMAP
    this directory changes I think, but I am sure you will bi able
    to find it.

Regards
Marko
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Linux

From novice to tech pro — start learning today.