Re: [Courier-imap] Newbie Needs Help

2007-12-14 Thread Sam Varshavchik

Shalom Levytam writes:

Thanks for your reply.  Could you please let me know the names of some  
of these existing tools.  I have been searching for two days now and  
am coming up dry.  Pretty much I would like to be able to check the  
pop3 messages using php then insert them into courier imap.  Is this  
possible ?


Maybe, but the standard tool that does this is called "fetchmail". It's a 
separate program that will download mail from an external pop3 mailbox, and 
deliver it to your local mailbox.


You mentioned that I would could potentially write my own code to  
perform these functions.  Could you give me some direction in this  
regard?  What type of code?  How would it interface with CourierIMAP.   


C code.  Courier-IMAP is written in C. You are, of course, free to hack at 
it, in whatever way you wish.




pgpi77qR0dKRQ.pgp
Description: PGP signature
-
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services
for just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace___
Courier-imap mailing list
Courier-imap@lists.sourceforge.net
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-imap


Re: [Courier-imap] Newbie Needs Help

2007-12-14 Thread Brian Candler
On Thu, Dec 13, 2007 at 11:36:10PM -0500, Shalom Levytam wrote:
> Thanks for your reply.  Could you please let me know the names of some  
> of these existing tools.  I have been searching for two days now and  
> am coming up dry.  Pretty much I would like to be able to check the  
> pop3 messages using php then insert them into courier imap.  Is this  
> possible ?

Have you tried entering "php pop3" and "php imap" into Google?

The first hit gives you the full documentation of the PHP IMAP library
(which also supports POP3). Subsequent links include comprehensive articles
with examples how to use it, such as
http://www.devarticles.com/c/a/PHP/Create-Your-Own-Mail-Script-With-PHP-and-IMAP/

Google is your friend. If you don't do your own homework, then don't be
surprised if you don't find anyone willing to spend time doing it for you.

See also lots of good advice at
http://www.catb.org/~esr/faqs/smart-questions.html#intro

Brian.

-
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services
for just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
___
Courier-imap mailing list
Courier-imap@lists.sourceforge.net
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-imap


Re: [Courier-imap] Newbie Needs Help

2007-12-13 Thread Tony Earnshaw
Shalom Levytam skrev, on 14-12-2007 05:00:

[...]

> I'm looking to start a new project which will involve creating what  
> might be called a virtual IMAP server.   Essentially, I would like to  
> take a pop3 email account from work and create my own imap server for  
> it.  My idea is that my server will check my work pop3 account every  
> so often using a cron job or similar.  It will then download the  
> messages onto my own server where I could access them using my own  
> imap server.

I do this using Fetchmail which logs automatically into my ISP, pops 
messages, gives them smtp to Postfix on my home Linux machine which 
processes them for attachments and virus using 
amavisd-new/ClamAV/BitDefender, gives them to dspam for anti-spam and 
lastly hands to Courier maildrop that hands off to Courier IMAP.

> if i delete a message through my imap server it would  
> then check to see if the message is still present on my work pop3  
> account and remove it.

Fetchmail can be configured to delete the messages on the pop server at 
the end of a successful download run. If the pop isn't 100% successful 
it won't delete any message. Maildrop can be configured not to deliver 
messages with the same Message-ID twice, so avoiding duplicates in the 
case of unsuccessful downloads.

> I don't know if I am explaining this too well but can anyone give me  
> direction on how to do something like this ?  I am familiar with MYSQL  
> and have no problem creating tables to store the email.  But I know  
> that postfix and courierIMAP use maildir.  Is it possible to maybe use  
> php to retrieve the pop mail then use php imap commands to insert the  
> mail into something accessible by courierIMAP.

dspam uses MySQL but messages are stored in Maildir on my IMAP server. I 
can't see any reason to store messages in MySQL.

My users are all in LDAP and my IMAP and smtp servers are available from 
the Internet using SASL authentication with TLS/SSL.

It's extremely important to use very recent versions of all the software 
mentioned above.

> Any help or direction would be appreciated!

The machine is a Fedora FC6 server/workstation with an FTP server. If 
you use latest Red Hat/CentOS/Fedora there are srpms on it for all of 
the above non-FC software mentioned above on it and rpms for FC6 and a 
large number of the RHEL5 versions (not Fetchmail).

Best,

--Tonni

-- 
Tony Earnshaw
Email: tonni at hetnet dot nl

-
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services
for just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
___
Courier-imap mailing list
Courier-imap@lists.sourceforge.net
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-imap


Re: [Courier-imap] Newbie Needs Help

2007-12-13 Thread Joe Auty
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

I don't know about Courier IMAP, but you can do this sort of thing  
under Cyrus IMAP via perl modules. We have several perl scripts that  
do all sorts of tasks that involve direct manipulations to the Cyrus  
mail store. Of course, this doesn't take care of the POP end of  
things...



On Dec 13, 2007, at 11:36 PM, Shalom Levytam wrote:

> Thanks for your reply.  Could you please let me know the names of some
> of these existing tools.  I have been searching for two days now and
> am coming up dry.  Pretty much I would like to be able to check the
> pop3 messages using php then insert them into courier imap.  Is this
> possible ?
>
> You mentioned that I would could potentially write my own code to
> perform these functions.  Could you give me some direction in this
> regard?  What type of code?  How would it interface with CourierIMAP.
> If I am using a php function to remove a message from the imap server
> would I be able to use a similar php function to remove the message
> from the pop server ?
>
> Thanks again
>
> On 13-Dec-07, at 11:14 PM, Sam Varshavchik wrote:
>
>> Shalom Levytam writes:
>>
>>> Hi,
>>> I am a complete newbie to this list and to courierIMAP.  I was
>>> wondering if I could get some beginners advice and direction.
>>> Though I am new to establishing email servers and the like, I am
>>> proficient in programming and hopefully not completely ignorant :)
>>> I'm looking to start a new project which will involve creating
>>> what  might be called a virtual IMAP server.   Essentially, I would
>>> like to  take a pop3 email account from work and create my own imap
>>> server for  it.  My idea is that my server will check my work pop3
>>> account every  so often using a cron job or similar.  It will then
>>> download the  messages onto my own server where I could access them
>>> using my own  imap server.
>>
>> There are existing tools that will easily do this, for you.
>>
>>> if i delete a message through my imap server it would
>>> then check to see if the message is still present on my work pop3
>>> account and remove it.
>>
>> However, no tools exist that can do that part, to my knowledge.
>> Courier-IMAP is not going to do anything, after deleting a message,
>> besides deleting this message. End of story. Of course, you are free
>> to write your own code that then goes out and deletes the message
>> from your external POP3 server. This is a lot of code, but if you
>> want to do this, good luck and have fun.
>>
>>
>> -
>> SF.Net email is sponsored by:
>> Check out the new SourceForge.net Marketplace.
>> It's the best place to buy or sell services
>> for just about anything Open Source.
>> http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace___
>> Courier-imap mailing list
>> Courier-imap@lists.sourceforge.net
>> Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier- 
>> imap
>
>
> -
> SF.Net email is sponsored by:
> Check out the new SourceForge.net Marketplace.
> It's the best place to buy or sell services
> for just about anything Open Source.
> http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
> ___
> Courier-imap mailing list
> Courier-imap@lists.sourceforge.net
> Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-imap

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.7 (Darwin)

iD8DBQFHYgz8CgdfeCwsL5ERAkV6AJ0V+boYcKEPGjWOvdDtckr/w/x7aQCeNPIO
/Rep1JEmHaWDct/zRnEc4C0=
=G7h7
-END PGP SIGNATURE-

-
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services
for just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
___
Courier-imap mailing list
Courier-imap@lists.sourceforge.net
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-imap


Re: [Courier-imap] Newbie Needs Help

2007-12-13 Thread Shalom Levytam
Thanks for your reply.  Could you please let me know the names of some  
of these existing tools.  I have been searching for two days now and  
am coming up dry.  Pretty much I would like to be able to check the  
pop3 messages using php then insert them into courier imap.  Is this  
possible ?

You mentioned that I would could potentially write my own code to  
perform these functions.  Could you give me some direction in this  
regard?  What type of code?  How would it interface with CourierIMAP.   
If I am using a php function to remove a message from the imap server  
would I be able to use a similar php function to remove the message  
from the pop server ?

Thanks again

On 13-Dec-07, at 11:14 PM, Sam Varshavchik wrote:

> Shalom Levytam writes:
>
>> Hi,
>> I am a complete newbie to this list and to courierIMAP.  I was   
>> wondering if I could get some beginners advice and direction.
>> Though I am new to establishing email servers and the like, I am   
>> proficient in programming and hopefully not completely ignorant :)
>> I'm looking to start a new project which will involve creating  
>> what  might be called a virtual IMAP server.   Essentially, I would  
>> like to  take a pop3 email account from work and create my own imap  
>> server for  it.  My idea is that my server will check my work pop3  
>> account every  so often using a cron job or similar.  It will then  
>> download the  messages onto my own server where I could access them  
>> using my own  imap server.
>
> There are existing tools that will easily do this, for you.
>
>>  if i delete a message through my imap server it would   
>> then check to see if the message is still present on my work pop3   
>> account and remove it.
>
> However, no tools exist that can do that part, to my knowledge.  
> Courier-IMAP is not going to do anything, after deleting a message,  
> besides deleting this message. End of story. Of course, you are free  
> to write your own code that then goes out and deletes the message  
> from your external POP3 server. This is a lot of code, but if you  
> want to do this, good luck and have fun.
>
>
> -
> SF.Net email is sponsored by:
> Check out the new SourceForge.net Marketplace.
> It's the best place to buy or sell services
> for just about anything Open Source.
> http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace___
> Courier-imap mailing list
> Courier-imap@lists.sourceforge.net
> Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-imap


-
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services
for just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
___
Courier-imap mailing list
Courier-imap@lists.sourceforge.net
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-imap


Re: [Courier-imap] Newbie Needs Help

2007-12-13 Thread Sam Varshavchik

Shalom Levytam writes:


Hi,

I am a complete newbie to this list and to courierIMAP.  I was  
wondering if I could get some beginners advice and direction.


Though I am new to establishing email servers and the like, I am  
proficient in programming and hopefully not completely ignorant :)


I'm looking to start a new project which will involve creating what  
might be called a virtual IMAP server.   Essentially, I would like to  
take a pop3 email account from work and create my own imap server for  
it.  My idea is that my server will check my work pop3 account every  
so often using a cron job or similar.  It will then download the  
messages onto my own server where I could access them using my own  
imap server.


There are existing tools that will easily do this, for you.

  if i delete a message through my imap server it would  
then check to see if the message is still present on my work pop3  
account and remove it.


However, no tools exist that can do that part, to my knowledge. Courier-IMAP 
is not going to do anything, after deleting a message, besides deleting this 
message. End of story. Of course, you are free to write your own code that 
then goes out and deletes the message from your external POP3 server. This 
is a lot of code, but if you want to do this, good luck and have fun.





pgp9227IoJpjd.pgp
Description: PGP signature
-
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services
for just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace___
Courier-imap mailing list
Courier-imap@lists.sourceforge.net
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-imap


[Courier-imap] Newbie Needs Help

2007-12-13 Thread Shalom Levytam
Hi,

I am a complete newbie to this list and to courierIMAP.  I was  
wondering if I could get some beginners advice and direction.

Though I am new to establishing email servers and the like, I am  
proficient in programming and hopefully not completely ignorant :)

I'm looking to start a new project which will involve creating what  
might be called a virtual IMAP server.   Essentially, I would like to  
take a pop3 email account from work and create my own imap server for  
it.  My idea is that my server will check my work pop3 account every  
so often using a cron job or similar.  It will then download the  
messages onto my own server where I could access them using my own  
imap server.  if i delete a message through my imap server it would  
then check to see if the message is still present on my work pop3  
account and remove it.

I don't know if I am explaining this too well but can anyone give me  
direction on how to do something like this ?  I am familiar with MYSQL  
and have no problem creating tables to store the email.  But I know  
that postfix and courierIMAP use maildir.  Is it possible to maybe use  
php to retrieve the pop mail then use php imap commands to insert the  
mail into something accessible by courierIMAP.

Any help or direction would be appreciated!

Thank you,

slevytam

-
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services
for just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
___
Courier-imap mailing list
Courier-imap@lists.sourceforge.net
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-imap