Re: [Courier-imap] compile error on solalis8

2007-12-13 Thread Koichi Mori
Hello Sam,

Sam Varshavchik [EMAIL PROTECTED] wrote
in article Re: [Courier-imap] compile error on solalis8 
at Thu, 13 Dec 2007 07:00:53 -0500
In the tcpd directory, run 'make -n' to see the full link command.

thanks alot the result is here.

% gmake -n
if test ! -f config.h; then \
  rm -f stamp-h1; \
  gmake stamp-h1; \
else :; fi
gmake  all-am
gmake[1]: Entering directory `/usr/local/src/courier-imap-4.1.1/tcpd'
if test ! -f config.h; then \
  rm -f stamp-h1; \
  gmake stamp-h1; \
else :; fi
rm -f couriertls
echo Linking couriertls; /bin/bash ./libtool --tag=CC --quiet --mode=link gcc  
-I./.. -I.. -Wall -g -O2  -R/usr/local/ssl/lib:/usr/local/lib:/usr/lib 
-L/usr/local/lib -L/usr/local/ssl/lib -o couriertls -static starttls.o 
argparse.o libcouriertls.la libspipe.la ../rfc1035/librfc1035.a 
../md5/libmd5.la ../random128/librandom128.la ../numlib/libnumlib.la 
../liblock/liblock.la ../soxwrap/libsoxwrap.a -Wl,-lssl -Wl,-lcrypto 
-Wl,-lsocket -Wl,-lnsl -Wl,-lsocket -Wl,-lnsl -lsocket
source='tlscachetest.c' object='tlscachetest.o' libtool=no \
DEPDIR=.deps depmode=gcc /bin/bash ./../depcomp \
gcc -DHAVE_CONFIG_H -I. -I. -I.   -I/usr/local/ssl/include  -I./.. -I.. -Wall 
-g -O2 -c tlscachetest.c
rm -f tlscachetest
echo Linking tlscachetest; /bin/bash ./libtool --tag=CC --quiet --mode=link gcc 
 -I./.. -I.. -Wall -g -O2  -R/usr/local/ssl/lib:/usr/local/lib:/usr/lib 
-L/usr/local/lib -L/usr/local/ssl/lib -o tlscachetest -static tlscachetest.o 
../numlib/libnumlib.la ../liblock/liblock.la -lsocket
gmake[1]: Leaving directory `/usr/local/src/courier-imap-4.1.1/tcpd'

Is it correct? I don't figure out;(

-- 
Koichi Mori

-
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


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


Re: [Courier-imap] compile error on solalis8

2007-12-13 Thread Sam Varshavchik

Koichi Mori writes:


Hello Sam,

Sam Varshavchik [EMAIL PROTECTED] wrote
in article Re: [Courier-imap] compile error on solalis8 
at Thu, 13 Dec 2007 07:00:53 -0500

In the tcpd directory, run 'make -n' to see the full link command.


thanks alot the result is here.

% gmake -n
if test ! -f config.h; then \
  rm -f stamp-h1; \
  gmake stamp-h1; \
else :; fi
gmake  all-am
gmake[1]: Entering directory `/usr/local/src/courier-imap-4.1.1/tcpd'
if test ! -f config.h; then \
  rm -f stamp-h1; \
  gmake stamp-h1; \
else :; fi
rm -f couriertls
echo Linking couriertls; /bin/bash ./libtool --tag=CC --quiet --mode=link
gcc  -I./.. -I.. -Wall -g -O2 
-R/usr/local/ssl/lib:/usr/local/lib:/usr/lib -L/usr/local/lib

-L/usr/local/ssl/lib -o couriertls -static starttls.o argparse.o
libcouriertls.la libspipe.la ../rfc1035/librfc1035.a ../md5/libmd5.la
../random128/librandom128.la ../numlib/libnumlib.la ../liblock/liblock.la
../soxwrap/libsoxwrap.a -Wl,-lssl -Wl,-lcrypto -Wl,-lsocket -Wl,-lnsl
-Wl,-lsocket -Wl,-lnsl -lsocket


This shows the libtool link commmand, but not the actual link command, 
because of that -quiet option. Obtaining the actual link command would be 
rather difficult here.


The only thing I can suggest is that you verify that OpenSSL is build as a 
shared library, not as a static library. Even though OpenSSL's default 
makefile builds static libraries only, nobody really uses this configuration 
in practice, and there are a number of issues with that. All Linux and BSD 
distributions build and install OpenSSL as a shared library, and you should 
either.


Finally, why are you building 4.1.1? The current version is 4.3.0, try 
building the current version, instead.




pgpp9QE2J4pKx.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-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] proper/secure permissions for maildrop and shared mailboxes

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

Any idea here? Is there a separate list where I might find some people  
who are comfortable with Maildrop?

Is Maildrop the best option for rule parsing, BTW? I would love to be  
able to write sieve scripts, but I don't know of something that will  
support this under Courier


On Dec 13, 2007, at 3:50 AM, Joe Auty wrote:

 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 Hello,

 I'm struggling with figuring out what users and groups are at play
 with getting Maildrop to deliver messages to my shared folder
 collection.

 When I have my folder collection set as such:

 drwxr-  6 vmail  mygroup   512 Dec 13 01:30 .Joe


 I want every user in the group mygroup to be able to read this
 shared mailbox, and I want maildrop, which according to my Postfix
 master.cf file is running as user vmail:

 maildrop  unix  -   n   n   -   -   pipe
   flags=DRhu user=vmail argv=/usr/local/bin/maildrop -d ${recipient}

 to be able to write to this mailbox. I'm delivering mail to this
 folder based on a maildrop rule set, NOT as myself, so chown joeing
 the directory won't work with my rule set - I imagine that I would
 only want to be the owner of this directory if it was delivered
 straight there unaffected by my maildrop rules?

 I don't want this folder to be world readable or world writable
 obviously, but as it stands, Maildrop will only deliver to this folder
 when everybody has writable permission. I've tried just about every
 combination of permission set that I can think of. What permissions
 need to be assigned here to do what I want? What am I missing here?








 - ---
 Joe Auty
 NetMusician: web publishing software for musicians
 http://www.netmusician.org
 [EMAIL PROTECTED]


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

 iD8DBQFHYPJZCgdfeCwsL5ERAl4KAJ9k0YEkERpFCQfWtnh6TuHQ+beHjQCdG1bn
 5aZFf7ZyRDQ3l68hb+/Zxn0=
 =SfON
 -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

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

iD8DBQFHYg2PCgdfeCwsL5ERAkeHAJ47n8b3QT1MMLdBBx6855C1KgAXLACgmQg0
08cEMaccU3gV4MXZfZcmhz8=
=vkUw
-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] compile error on solalis8

2007-12-13 Thread Koichi Mori
Hello Sam,

Sam Varshavchik [EMAIL PROTECTED] wrote
in article Re: [Courier-imap] compile error on solalis8 
at Thu, 13 Dec 2007 23:11:09 -0500
The only thing I can suggest is that you verify that OpenSSL is build as a 
shared library, not as a static library. Even though OpenSSL's default 
makefile builds static libraries only, nobody really uses this configuration 
in practice, and there are a number of issues with that. All Linux and BSD 
distributions build and install OpenSSL as a shared library, and you should 
either.

I compiled OpenSSL with shared library.
I did just add shared when I use configure of OpenSSL.
Then compile and installed.
Is it not enough?

% ldd /usr/local/ssl/bin/openssl 
libssl.so.0.9.8 =   /usr/local/ssl/lib/libssl.so.0.9.8
libcrypto.so.0.9.8 =/usr/local/ssl/lib/libcrypto.so.0.9.8
libsocket.so.1 =/usr/lib/libsocket.so.1
libnsl.so.1 =   /usr/lib/libnsl.so.1
libdl.so.1 =/usr/lib/libdl.so.1
libc.so.1 = /usr/lib/libc.so.1
libmp.so.2 =/usr/lib/libmp.so.2
/usr/platform/SUNW,UltraAX-i2/lib/libc_psr.so.1

Finally, why are you building 4.1.1? The current version is 4.3.0, try 
building the current version, instead.

Please read my first e-mail. I tried compiling 4.3.0 and 4.1.1 then
the error was different. I thought 4.1.1 better for me because 
you advised for 4.1.1.

-- 
Koichi Mori

-
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