[courier-users] Courier Question

2004-11-08 Thread Michael Nguyen
Hey guys,

I've been lurking on the list for a while and I have a question about
Courier.  We're looking to implement a new mail system and want to move away
from a commerical solution towards an open source SMTP + LDAP + IMAP
solution.  Currently, we have an SMTP + LDAP setup, but we're looking at
possible IMAP solutions.

We looked at Cyrus, but we found that it didn't really let us do the setup
as we'd like.  We'd like to have SMTP deliver to a particular MailDir as
specifed by the mailMessageStore value in LDAP (below is a sample LDAP
entry).

dn: [EMAIL PROTECTED],dc=dev2,dc=test,dc=spam
objectClass: top
objectClass: MailAccount
accountStatus: ACTIVE
uid: 1000
userName: michaeln
mail: [EMAIL PROTECTED]
mailMessageStore: m.sub/i.sub/michaeln.macnt/
mailHost: dev2.test.spam
clearPassword: password2
userPassword:: cGFzc3dvcmQy

That part works fine, but Cyrus doesn't seem to let us pass such a value to
the IMAP/POP3 daemon.  Cyrus seems to want us to use LMTP and the Cyrus
delivery agent to deliver mail to the appropriate location (as somehow
determined by Cyrus).  The problem here is that it's somewhat commom for
users to want to change their username and in the future we want to make
sure that it's easy to migrate a user's mail.  If we could make it such that
such a procedure would only involve updating LDAP, that'd be ideal (e.g. we
would update the mailHost and mailMessageStore values to move a user to a
MailDir on a different server etc.)

Before I jump into Courier, can you guys tell me if Courier can do what I
want above?


Michael



---
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588alloc_id=12065op=click
___
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users


RE: [courier-users] Courier Question

2003-12-11 Thread Alan Ingham
Is the UID Field and the GID not supposed to match the actual name of the
field in the MySQL table?
So
 MYSQL_UID_FIELD '101'
 MYSQL_GID_FIELD '103'

Should perhaps be MYSQL_UID_FIELD Uid
MYSQL_GID_FIELD Gid

My users table has the a column name of Uid and Gid to store the Uid and Gid
that Courier uses to manipulate the home dir.  I believe.  :) Still figuring
things out.

alan

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] Behalf Of
 [EMAIL PROTECTED]
 Sent: Tuesday, December 09, 2003 8:41 PM
 To: [EMAIL PROTECTED]
 Subject: [courier-users] Courier Question


 Hello Everyone,

 I have a very simple question today for you guys, I hope.  I
 just recently decided to setup courier so I instlaled all the
 software and I build the rpm.  I am using MySQL with it and
 amd using courier for my virtual users only, not real system
 users.  I have a database called mail in mysql, and three
 tables, aliases, domains, and mailboxes.  Since aliases and
 domains aren't apart of my problem, the layout of mailboxes
 only is
 username,password,name,maildir,quota,domain,create_date,change
 _date,active.  Everything is working fine.  I installed
 courier-imap and then courier-imap-mysql just find by the
 rpms i built.  After I installed those two packages I edited
 authdaemonrc to:

 authmodulelist=authmysql
 authmodulelistorig=authcustom authcram authuserdb authldap
 authpgsql authmysql authpam
 daemons=5
 version=authdaemond.mysql

 with everything else default.  Then i proceeded to change
 authmysqlrc to:

 MYSQL_SERVERlocalhost
 MYSQL_USERNAME  root
 MYSQL_PASSWORD  mypwd
 # MYSQL_SOCKET  /var/mysql/mysql.sock
 #MYSQL_PORT 0
 MYSQL_OPT   0
 MYSQL_DATABASE  mail
 #MYSQL_CRYPT_PWFIELDcrypt
 MYSQL_CLEAR_PWFIELD password
 MYSQL_UID_FIELD '101'
 MYSQL_GID_FIELD '103'
 MYSQL_LOGIN_FIELD   username
 MYSQL_NAME_FIELDname
 MYSQL_MAILDIR_FIELD maildir
 DEFAULT_DOMAIN  fast-build.com

 and everything else default (i think i got eerything though).
  Note for maildir I keep all my virtual mail in /mail/virtual
 with folders under the actual mail address, like
 [EMAIL PROTECTED]  And lastly I edited my imapd file with
 the following values changed:

 ADDRESS=127.0.0.1
 AUTHMODULES=authdaemon

 Those are the only two things worth nothing in that file I
 believe.  Now heres my problem.  Since I'm on windows and my
 server is hooked up to my network I can access it two ways.
 I can go directly through the network to the server by using
 the routers assigned IP, or I can use my IP assigned to the
 route and have the signal sent to the server cus I have it
 setup to forward all requests on port 143 to the server.
 When I connect through the network I can connect just find,
 and log in as a user so Mysql is setup correctly and
 everything, but when i try and use my actual IP address,
 63.127.45.55, I can't connect, and it just times out.  I have
 tried playing around with the ip setting in imapd but i keeps
 giving me errors if i don't set it to the loopback ip or 0,
 whatever that means.  I would read logs but I'm not sure what
 log the info is in that pertains to this problem.  My server
 is setup as follows.  It's redhat linux 7.3 with postfix
 2.0.16 and courier-imap 2.2.1.  If anyone could help me out
 with this, give me some pointers on how to make it let me
 connect outside my home network, that would be great.

 Thanks again,
 Dan








 NHµŠ²²užº‰ç(™æ§{^®Ø§,ƒT^ŠãºËl…ªéz|¨º»$ŠYlJ('º—謀L°ZÞx¸§»âj[
 yªçz÷«ÊØbžë¢kay¶¬†È^–[h³+vh§
 Xœ’z0†Ûiÿö²‹Êý§bt
 ïƖ‡tïrº®®Š‚µ®º²¶º~zRn‰¶ÿ²¢y·²–Šý®º




---
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id78alloc_id371op=click
___
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users


RE: [courier-users] Courier Question

2003-12-10 Thread David Gomillion
I already sent this to [EMAIL PROTECTED]  I thought this should be sent to
the list to make it searchable in the archives/on google.com.

[EMAIL PROTECTED]  wrote:
 server.  When I connect through the network I can connect just find, 
 and log in as a user so Mysql is setup correctly and everything, but 
 when i try and use my actual IP address, 63.127.45.55, I can't 
 connect, and it just times out.

Do you have iptables on the linux box, or any other firewall?  I have
seen such behavior from a misconfigured firewall.  A reason you might
not see it locally is because most stock configurations allow an
exception for loopback, and many allow for local network connections.

One thing you ought to try is to telnet directly to the port.  So, for
port 143 (IMAP), you would go to a command prompt and type: telnet
66.127.45.55 143

You should see something like:

* OK [CAPABILITY IMAP4rev1 UIDPLUS CHILDREN NAMESPACE
THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA IDLE STARTTLS]
Courier-IMAP ready. Copyright 1998-2003 Double Precision, Inc.  See
COPYING for distribution information.

If you do not, then it means there's some sort of network problem
between you and it, probably a firewall or NAT somewhere.

I hope that helps,
David Gomillion



---
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278alloc_id=3371op=click
___
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users


RE: [courier-users] Courier Question

2003-12-10 Thread Mitch \(WebCob\)
Your description is a little vague...

I am GUESSING that you are using the server as a gateway as well? and it has
a public and private address?

If that's the case, your problem is in your routing or NAT config - not with
courier - you can handle it a variety of ways all not really courier topics,
but including creating a hosts file, or using internal DNS or using a
different NAT setup to capture the traffic properly.

m/

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of David
Gomillion
Sent: Wednesday, December 10, 2003 8:12 AM
To: [EMAIL PROTECTED]
Subject: RE: [courier-users] Courier Question


I already sent this to [EMAIL PROTECTED]  I thought this should be sent to
the list to make it searchable in the archives/on google.com.

[EMAIL PROTECTED]  wrote:
 server.  When I connect through the network I can connect just find,
 and log in as a user so Mysql is setup correctly and everything, but
 when i try and use my actual IP address, 63.127.45.55, I can't
 connect, and it just times out.

Do you have iptables on the linux box, or any other firewall?  I have
seen such behavior from a misconfigured firewall.  A reason you might
not see it locally is because most stock configurations allow an
exception for loopback, and many allow for local network connections.

One thing you ought to try is to telnet directly to the port.  So, for
port 143 (IMAP), you would go to a command prompt and type: telnet
66.127.45.55 143

You should see something like:

* OK [CAPABILITY IMAP4rev1 UIDPLUS CHILDREN NAMESPACE
THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA IDLE STARTTLS]
Courier-IMAP ready. Copyright 1998-2003 Double Precision, Inc.  See
COPYING for distribution information.

If you do not, then it means there's some sort of network problem
between you and it, probably a firewall or NAT somewhere.

I hope that helps,
David Gomillion



---
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278alloc_id=3371op=click
___
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users



---
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278alloc_id=3371op=click
___
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users


[courier-users] Courier Question

2003-12-09 Thread FSWD
Hello Everyone,

I have a very simple question today for you guys, I hope.  I just recently decided to 
setup courier so I instlaled all the software and I build the rpm.  I am using MySQL 
with it and amd using courier for my virtual users only, not real system users.  I 
have a database called mail in mysql, and three tables, aliases, domains, and 
mailboxes.  Since aliases and domains aren't apart of my problem, the layout of 
mailboxes only is 
username,password,name,maildir,quota,domain,create_date,change_date,active.  
Everything is working fine.  I installed courier-imap and then courier-imap-mysql just 
find by the rpms i built.  After I installed those two packages I edited authdaemonrc 
to:

authmodulelist=authmysql
authmodulelistorig=authcustom authcram authuserdb authldap authpgsql authmysql 
authpam
daemons=5
version=authdaemond.mysql

with everything else default.  Then i proceeded to change authmysqlrc to:

MYSQL_SERVERlocalhost
MYSQL_USERNAME  root
MYSQL_PASSWORD  mypwd
# MYSQL_SOCKET  /var/mysql/mysql.sock
#MYSQL_PORT 0
MYSQL_OPT   0
MYSQL_DATABASE  mail
#MYSQL_CRYPT_PWFIELDcrypt
MYSQL_CLEAR_PWFIELD password
MYSQL_UID_FIELD '101'
MYSQL_GID_FIELD '103'
MYSQL_LOGIN_FIELD   username
MYSQL_NAME_FIELDname
MYSQL_MAILDIR_FIELD maildir
DEFAULT_DOMAIN  fast-build.com

and everything else default (i think i got eerything though).  Note for maildir I keep 
all my virtual mail in /mail/virtual with folders under the actual mail address, like 
[EMAIL PROTECTED]  And lastly I edited my imapd file with the following values changed:

ADDRESS=127.0.0.1
AUTHMODULES=authdaemon

Those are the only two things worth nothing in that file I believe.  Now heres my 
problem.  Since I'm on windows and my server is hooked up to my network I can access 
it two ways.  I can go directly through the network to the server by using the routers 
assigned IP, or I can use my IP assigned to the route and have the signal sent to the 
server cus I have it setup to forward all requests on port 143 to the server.  When I 
connect through the network I can connect just find, and log in as a user so Mysql is 
setup correctly and everything, but when i try and use my actual IP address, 
63.127.45.55, I can't connect, and it just times out.  I have tried playing around 
with the ip setting in imapd but i keeps giving me errors if i don't set it to the 
loopback ip or 0, whatever that means.  I would read logs but I'm not sure what log 
the info is in that pertains to this problem.  My server is setup as follows.  It's 
redhat linux 7.3 with postfix 2.0.16 and courier-imap 2.2.1.  If anyone could help me 
out with this, give me some pointers on how to make it let me connect outside my home 
network, that would be great.  

Thanks again,
Dan








áŠÄ…ë^™¨¥ŠË)¢{(­ç[ȀL.)îÅ;­¢¸š–À^r‰žjw±¥êíŠrÈ5Eè®;¬¶ÈZ®—§Ê‹«²H¥–Ä¢‚{©~ŠÈË­ç‹Š{±Nëh®¥°·š®w¯z¼­†)à~º¶›jÈl…ée¶‹2±§fŠp¥‰É'£m¶ŸÿiÛ(±ÙÜ¢oÚv'uÛ¿–Z‰Ý÷ïZ)rXœ‘Ê.®'«ºÇ«²f¢–)à–+-r‹«‰êî±êì–+-²Ê.­ÇŸ¢¸ëTžË›±Êâmèm¶›?þX¬¶Ë(º·~Šàzw­þX¬¶ÏåŠËbú?r‹«‰êî±êì