CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Advanced:
Creating POP Account?

 



sleuth
Enthusiast

Dec 17, 2000, 10:43 PM

Post #1 of 8 (1217 views)
Creating POP Account? Can't Post

 
Does anyone know how to create a POP3 account using a module like net::POP3 or anything? I've read the documentation for many of the POP modules but they don't say anything about creating a new pop account.

Thanks,

Sleuth



Kanji
User / Moderator

Dec 20, 2000, 12:22 AM

Post #2 of 8 (1203 views)
Re: Creating POP Account? [In reply to] Can't Post

Net::POP3 merely provides a client interface to the POP3 protocol (ie, read mail) and I suspect any other POP3-related modules you find out don't provide anything more than that.

That's not to say creating POP3 accounts with perl can't be done, but the how-to of it would be very much dependant on your enviroment.

Perhaps you want to check out something like Webmin if you're trying to do this on a UNIXish OS.



sleuth
Enthusiast

Dec 20, 2000, 1:35 AM

Post #3 of 8 (1202 views)
Re: Creating POP Account? [In reply to] Can't Post

 Yea Mate This is on a linux server,

I did find out that all of the POP3 Mods are strictly read only, which makes sense after I found out how it all works. I made a prog to surf my server, and I found every pop account there is in a bin, I think that the password files and mail files are hidden, but that's a start, I do have access to it all :). I'm afraid to mail my admin anymore, if they do one ounce of work they will charge my account, I asked them to install a mod and they didn't install it correctly and they still charged, they didn't even say they'd charge so I'm just not dealing with them all together, besides i think I have all the info they would give me already. It'd help if you could tell me what the switch is is to read hidden files when using grep to get break down a files list I get when reading the directory. I could find it out easily from the perdoc though, but that's just me being lazy again lol.

Thanks for replying Kanji,

Sleuth,

PS. Do you have a new addy? Your one on your profile is dead.



sleuth
Enthusiast

Dec 20, 2000, 12:17 PM

Post #4 of 8 (1197 views)
Re: Creating POP Account? [In reply to] Can't Post

 Ok People, I've found out what to do, now, there is a file named after the pop account like I mentioned, but there is also a directory with the same name, it is completly empty too. It's to keep people from opening the pop accounts, but I need to open it to see how I have to store the data in the future. So, when I go to open and read the file, perl tries to read the directory instead since it's named the same. So how can I make sure that I'm opening the *file*. I tried,

open(data, "</mailacct/olbisperl") if (-f "/mailacct/olbisperl');

But it still won't open. If I set it to -d it works of course, but it doesn't seem to continue down to the file.

Sleuth



jas
Deleted

Dec 20, 2000, 3:02 PM

Post #5 of 8 (1194 views)
Re: Creating POP Account? [In reply to] Can't Post

hi sleuth

Although possible I suppose, I could have sworn its not allowed to have both a directory and a file of the same name in the same directory. Certainly its not possible on Unix machines - I don't know the deal with any other OS. Are you sure there are two distinct entities you're dealing with rather than merely a directory?

Just a thought...
jas



sleuth
Enthusiast

Dec 20, 2000, 3:49 PM

Post #6 of 8 (1193 views)
Re: Creating POP Account? [In reply to] Can't Post

 Yea, oddly enough, If I use the -d switch and grep to get the directory list, and ..... oh, you know I just realized that your correct. I was using the -d switch to get the dirs then no switch in attempt to get the hidden files. But with what you just said I realized that of course I'm getting everything in the directory if i use no switch, so I am getting two lists of the same files. Oops, thanks for kicking me upside the head mate, I can't believe I did that! I've given up now, I can't figure out what they did, the might even have the pop account information in another place, I can't find where they keep the messages or anything, just those directories, and then the dirs are emtpy, there's just two more dirs in the directories named after the pop accounts and they are ".." and "."

I think I'll mail the admin guys and ask really nicly for there script "mail.pl" which allows you to create the pop accounts.

Thanks for that Mate,

"Ain't that a kick in the head"

Sleuth



Kanji
User / Moderator

Dec 20, 2000, 7:37 PM

Post #7 of 8 (1186 views)
Re: Creating POP Account? [In reply to] Can't Post

Chances are if you're on Linux that POP3 accounts equate directly to user accounts, so you would need a) need root access and b) modify /etc/passwd and /etc/shadow to create a new account unless your admins can provide some other interface for you to automate.

As for where they keep messages, likelyhood is either /var/mail/username or /var/spool/mail/username, although I'd be surprised if you could read anybody's mail spool but your own.

As for my addy, I didn't realize PerlGuru's email services went away. Oil well. I've updated my profile with another address.



sleuth
Enthusiast

Dec 20, 2000, 7:45 PM

Post #8 of 8 (1184 views)
Re: Creating POP Account? [In reply to] Can't Post

 
Thanks for this info, I'm going to check up on those paths and see what I can find, I don't have root access, YET, I'm getting on dedicated then I'll have root access. What's got me is, they have a directory for every pop account, but they are all emtpy, what's the purpose of that. so perl@site.com has a folder named "siteperl". Strange setup I think.

Sleuth


 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives