i tried modifying /etc/courier/imapd with:
AUTHMODULES="authpgsql" #replacing "authdaemon"
AUTHMODULES_ORIG="authcustom authcram authuserdb authldap authpgsql authpam"
#replacing authdaemon
and i get some logs like...
Mar 18 14:07:32 tux imapd: Connection, ip=[::ffff:203.172.17.180]
Mar 18 14:07:35 tux imapd: /usr/lib/courier/authlib/authpgsql: No such file or
directory
Quoting Mike Liguit <[EMAIL PROTECTED]>:
> This is my etc/imapd file.
>
> ADDRESS=111.222.333.444
> PORT=143
> MAXDAEMONS=40
> MAXPERIP=10
> PIDFILE=/var/run/imapd.pid
> TCPDOPTS="-nodnslookup -noidentlookup"
>
> AUTHMODULES="authpgsql" #to use postgresql authentication
>
> AUTHMODULES_ORIG="authcustom authcram authuserdb authldap authpgsql
> authpam"
> DEBUG_LOGIN=0
> IMAP_CAPABILITY="IMAP4rev1 CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT
> THREAD=REFERENCES SORT QUOTA IDLE"
> IMAP_CAPABILITY_ORIG="IMAP4rev1 CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT
> THREAD=REFERENCES SORT AUTH=CRAM-MD5 AUTH=CRAM-SHA1 IDLE"
> IMAP_IDLE_TIMEOUT=60
> IMAP_CAPABILITY_TLS="$IMAP_CAPABILITY AUTH=PLAIN"
> IMAP_CAPABILITY_TLS_ORIG="$IMAP_CAPABILITY_ORIG AUTH=PLAIN"
> IMAP_DISABLETHREADSORT=0
> IMAP_CHECK_ALL_FOLDERS=1
> IMAP_OBSOLETE_CLIENT=0
> IMAP_ULIMITD=65536
> IMAP_USELOCKS=0
> IMAP_ENHANCEDIDLE=0
> IMAP_TRASHFOLDERNAME=Trash
> IMAP_EMPTYTRASH=Trash:7
> IMAP_MOVE_EXPUNGE_TO_TRASH=1
> SENDMAIL=/usr/sbin/sendmail
> HEADERFROM=X-IMAP-Sender
> IMAPDSTART=NO
>
> and this is my etc/authpgsqlrc file:
>
> PGSQL_PORT 5432
> PGSQL_USERNAME courier
> PGSQL_PASSWORD imap
> PGSQL_DATABASE courier
> PGSQL_USER_TABLE passwd #an existing table in postgres
> PGSQL_CRYPT_PWFIELD crypt
> PGSQL_UID_FIELD uid #an existing field in postgres
> PGSQL_GID_FIELD gid #an existing field in postgres
> PGSQL_LOGIN_FIELD id #an existing field in postgres
> PGSQL_HOME_FIELD home #an existing field in postgres
> PGSQL_NAME_FIELD name #an existing field in postgres
>
>
> On Thu, 2003-03-20 at 01:44, Howard Bagcat wrote:
> > Quoting Mike Liguit <[EMAIL PROTECTED]>:
> >
> > > I have Qmail/Courier-Imap/Postresql that works well on RedHat 8.0. I did
> > > it from source though. TLS is an option for security but I believe it
> > > should be there too.
> > >
> > > authmodulelistorig="authcustom authcram authuserdb authldap authmysql
> > >
> > > Where's authpgsql?
> >
> > i already did some corrections in the /etc/courier/authpgsqlrc and same
> error occurs
> >
> > authmodulelist="authpgsql"
> > authmodulelistorig="authcustom authcram authuserdb authldap authpgsql
> authmysql
> > authpam"
> > daemons=5
> > version=""
> > authdaemonvar=/var/run/courier/authdaemon
> >
> > >
> > >
> > >
> > >
> > > On Wed, 2003-03-19 at 22:45, Howard Bagcat wrote:
> > > >
> > > > anyone familiar with courier-imap and courier-imap-pgsql combination,
> i
> > > just installed it via rpm and i
> > > > end up not able to connect imap server. here's what i get from
> > > /var/log/main/info
> > > >
> > > > Mar 18 09:36:17 tux imapd: Connection, ip=[::ffff:203.172.17.179]
> > > > Mar 18 09:36:17 tux imapd: couriertls: accept: error:14094418:SSL
> > > routines:SSL3_READ_BYTES:tlsv1
> > > > alert unknown ca
> > >
> > >
> > > > Mar 18 09:36:17 tux imapd: couriertls: acceptConnection reset by peer
> > > >
> > > > i did some googling and i was able to read documents about SASL?! it
> says
> > > that SASL will play the role
> > > > of passing "auth" variables to pam, which i believed pass that
> information
> > > to pgsql for authentication of
> > > > smtp users. talkin' about SASL, is Cyrus-SASL compatible for
> > > Courier-imap/Courier-imap-pgsql
> > > > implementation? and... do i really have to enable TLS? is it required
> for
> > > postfix and courier-imap?
> > > >
> > > > btw, here's some settings:
> > > >
> > > > /etc/pam.d/imap
> > > > auth required pam_nologin.so
> > > > auth required pam_stack.so service=system-auth
> > > > account required pam_stack.so service=system-auth
> > > > session required pam_stack.so service=system-auth
> > > >
> > > > /etc/courier/imapd
> > > > ADDRESS=0
> > > > PORT=143
> > > > MAXDAEMONS=1000
> > > > MAXPERIP=8
> > > > PIDFILE=/var/run/courier/imapd.pid
> > > > TCPDOPTS="-nodnslookup -noidentlookup"
> > > > AUTHMODULES="authdaemon"
> > > > AUTHMODULES_ORIG="authdaemon"
> > > > IMAP_CAPABILITY="IMAP4rev1 CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT
> > > > THREAD=REFERENCES SORT"
> > > > IMAP_CAPABILITY_ORIG="IMAP4rev1 CHILDREN NAMESPACE
> THREAD=ORDEREDSUBJECT
> > > > THREAD=REFERENCES SORT AUTH=CRAM-MD5 AUTH=CRAM-SHA1 IDLE"
> > > > IMAP_IDLE_TIMEOUT=60
> > > > IMAP_CAPABILITY_TLS="$IMAP_CAPABILITY AUTH=PLAIN"
> > > > IMAP_CAPABILITY_TLS_ORIG="$IMAP_CAPABILITY_ORIG AUTH=PLAIN"
> > > > IMAP_DISABLETHREADSORT=0
> > > > IMAP_CHECK_ALL_FOLDERS=0
> > > > IMAP_OBSOLETE_CLIENT=0
> > > > IMAP_ULIMITD=65536
> > > > IMAP_USELOCKS=0
> > > > IMAP_EMPTYTRASH=Trash:1
> > > > IMAP_MOVE_EXPUNGE_TO_TRASH=1
> > > > IMAPDSTART=YES
> > > >
> > > > /etc/courier/authdaemonrc
> > > > authmodulelist="authldap"
> > > > authmodulelistorig="authcustom authcram authuserdb authldap authmysql
> > > > authpam"
> > > > daemons=5
> > > > version=""
> > > > authdaemonvar=/var/run/courier/authdaemon
> > > >
> > > > /etc/courier/authpgsqlrc
> > > > PGSQL_HOST localhost
> > > > PGSQL_PORT 5432
> > > > PGSQL_USERNAME postgres
> > > > PGSQL_PASSWORD
> > > > PGSQL_DATABASE courier
> > > > PGSQL_USER_TABLE passwd
> > > > PGSQL_CLEAR_PWFIELD clear
> > > > PGSQL_UID_FIELD uid
> > > > PGSQL_LOGIN_FIELD id
> > > > PGSQL_HOME_FIELD home
> > > > PGSQL_NAME_FIELD name
> > > > PGSQL_MAILDIR_FIELD maildir
> > > > PGSQL_QUOTA_FIELD quota
> > > >
> >
Regards, Howard.
H o w a r d R. B a g c a t
WebAdmin, MUWeb - Edition 4 Project <http://www.mu.edu.ph>
Systems Programmer, RBT/RBK & MUMC Project
Misamis University.Ozamiz City.Philippines
tel: 088.521.0367.local.109 | cel: 63.0919.5536179
Imagination is more important than knowledge
-Albert Einstein
Sulat @MU v.2.2 (Fresh)
.......................................................................................
An extended module for MUWeb4 Project of Howard R. Bagcat
Powered by GNU General Public License softwares.
http://my.mu.edu.ph - a personalized portal is soon to come.
_
Philippine Linux Users Group. Web site and archives at http://plug.linux.org.ph
To leave: send "unsubscribe" in the body to [EMAIL PROTECTED]
Fully Searchable Archives With Friendly Web Interface at http://marc.free.net.ph
To subscribe to the Linux Newbies' List: send "subscribe" in the body to [EMAIL
PROTECTED]