Thank you MrSam for working with me on this. I straced the process this is the 
output, I've turned off the file locking, nothing gets logged to the file I 
specified - IMAPDEBUGFILE = /var/log/imapdebug

Process 11104 attached - interrupt to quit
select(4, [3], NULL, NULL, NULL)        = 1 (in [3])
rt_sigprocmask(SIG_BLOCK, [CHLD], NULL, 8) = 0
rt_sigprocmask(SIG_UNBLOCK, [CHLD], NULL, 8) = 0
accept(3, {sa_family=AF_INET6, sin6_port=htons(45159), inet_pton(AF_INET6, 
"::ffff:70.61.113.219", &sin6_addr), sin6_flowinfo=0, sin6_scope_id=0}, [28]) = 
5
fcntl(5, F_SETFD, 0)                    = 0
fcntl(5, F_SETFL, O_RDONLY)             = 0
setsockopt(5, SOL_SOCKET, SO_KEEPALIVE, [1], 4) = 0
setsockopt(5, SOL_SOCKET, SO_LINGER, {onoff=0, linger=0}, 8) = 0
rt_sigprocmask(SIG_BLOCK, [CHLD], NULL, 8) = 0
clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, 
child_tidptr=0x7f3ca2e079f0) = 15764
close(5)                                = 0
rt_sigprocmask(SIG_UNBLOCK, [CHLD], NULL, 8) = 0
select(4, [3], NULL, NULL, NULL)        = ? ERESTARTNOHAND (To be restarted)
--- SIGCHLD (Child exited) @ 0 (0) ---
rt_sigprocmask(SIG_BLOCK, [CHLD], NULL, 8) = 0
wait4(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], WNOHANG, NULL) = 15764
wait4(-1, 0x7fff1d6f4d1c, WNOHANG, NULL) = -1 ECHILD (No child processes)
rt_sigaction(SIGCHLD, {0x403100, [CHLD], SA_RESTORER|SA_RESTART, 
0x7f3ca2683420}, {0x403100, [CHLD], SA_RESTORER|SA_RESTART, 0x7f3ca2683420}, 8) 
= 0
rt_sigprocmask(SIG_UNBLOCK, [CHLD], NULL, 8) = 0
rt_sigreturn(0x1)                       = -1 EINTR (Interrupted system call)
select(4, [3], NULL, NULL, NULL)        = 1 (in [3])
rt_sigprocmask(SIG_BLOCK, [CHLD], NULL, 8) = 0
rt_sigprocmask(SIG_UNBLOCK, [CHLD], NULL, 8) = 0
accept(3, {sa_family=AF_INET6, sin6_port=htons(48398), inet_pton(AF_INET6, 
"::ffff:70.61.113.219", &sin6_addr), sin6_flowinfo=0, sin6_scope_id=0}, [28]) = 
5
fcntl(5, F_SETFD, 0)                    = 0
fcntl(5, F_SETFL, O_RDONLY)             = 0
setsockopt(5, SOL_SOCKET, SO_KEEPALIVE, [1], 4) = 0
setsockopt(5, SOL_SOCKET, SO_LINGER, {onoff=0, linger=0}, 8) = 0
rt_sigprocmask(SIG_BLOCK, [CHLD], NULL, 8) = 0
clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, 
child_tidptr=0x7f3ca2e079f0) = 15766
close(5)                                = 0
rt_sigprocmask(SIG_UNBLOCK, [CHLD], NULL, 8) = 0
select(4, [3], NULL, NULL, NULL)        = ? ERESTARTNOHAND (To be restarted)
--- SIGCHLD (Child exited) @ 0 (0) ---
rt_sigprocmask(SIG_BLOCK, [CHLD], NULL, 8) = 0
wait4(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], WNOHANG, NULL) = 15766
wait4(-1, 0x7fff1d6f4d1c, WNOHANG, NULL) = -1 ECHILD (No child processes)
rt_sigaction(SIGCHLD, {0x403100, [CHLD], SA_RESTORER|SA_RESTART, 
0x7f3ca2683420}, {0x403100, [CHLD], SA_RESTORER|SA_RESTART, 0x7f3ca2683420}, 8) 
= 0
rt_sigprocmask(SIG_UNBLOCK, [CHLD], NULL, 8) = 0
rt_sigreturn(0x1)                       = -1 EINTR (Interrupted system call)
select(4, [3], NULL, NULL, NULL

here is what is in the mail.log file in rsyslog I have mail.* everything going 
to that file

Mar 24 01:35:31 2GTHRCloud-C1-Master imapd-ssl: Connection, 
ip=[::ffff:70.61.113.219]
Mar 24 01:35:31 2GTHRCloud-C1-Master authdaemond: received auth request, 
service=imap, authtype=login
Mar 24 01:35:31 2GTHRCloud-C1-Master authdaemond: authmysql: trying this module
Mar 24 01:35:31 2GTHRCloud-C1-Master authdaemond: SQL query: SELECT login, 
password, "", uid, gid, homedir, maildir, quota, "", 
concat('disableimap=',disableimap,',disablepop3=',disablepop3) FROM mail_user 
WHERE login = 'b...@2gthrcloud.com' 
Mar 24 01:35:31 2GTHRCloud-C1-Master authdaemond: password matches successfully
Mar 24 01:35:31 2GTHRCloud-C1-Master authdaemond: authmysql: 
sysusername=<null>, sysuserid=5004, sysgroupid=5005, homedir=/var/vmail, 
address=b...@2gthrcloud.com, fullname=<null>, 
maildir=/var/www/2gthrcloud.com/mail/beta, quota=0, 
options=disableimap=n,disablepop3=n
Mar 24 01:35:31 2GTHRCloud-C1-Master authdaemond: Authenticated: 
sysusername=<null>, sysuserid=5004, sysgroupid=5005, homedir=/var/vmail, 
address=b...@2gthrcloud.com, fullname=<null>, 
maildir=/var/www/2gthrcloud.com/mail/beta, quota=0, 
options=disableimap=n,disablepop3=n
Mar 24 01:35:32 2GTHRCloud-C1-Master imapd-ssl: Connection, 
ip=[::ffff:70.61.113.219]
Mar 24 01:35:32 2GTHRCloud-C1-Master authdaemond: received auth request, 
service=imap, authtype=login
Mar 24 01:35:32 2GTHRCloud-C1-Master authdaemond: authmysql: trying this module
Mar 24 01:35:32 2GTHRCloud-C1-Master authdaemond: SQL query: SELECT login, 
password, "", uid, gid, homedir, maildir, quota, "", 
concat('disableimap=',disableimap,',disablepop3=',disablepop3) FROM mail_user 
WHERE login = 'b...@2gthrcloud.com' 
Mar 24 01:35:32 2GTHRCloud-C1-Master authdaemond: password matches successfully
Mar 24 01:35:32 2GTHRCloud-C1-Master authdaemond: authmysql: 
sysusername=<null>, sysuserid=5004, sysgroupid=5005, homedir=/var/vmail, 
address=b...@2gthrcloud.com, fullname=<null>, 
maildir=/var/www/2gthrcloud.com/mail/beta, quota=0, 
options=disableimap=n,disablepop3=n
Mar 24 01:35:32 2GTHRCloud-C1-Master authdaemond: Authenticated: 
sysusername=<null>, sysuserid=5004, sysgroupid=5005, homedir=/var/vmail, 
address=b...@2gthrcloud.com, fullname=<null>, 
maildir=/var/www/2gthrcloud.com/mail/beta, quota=0, 
options=disableimap=n,disablepop3=n

root@2GTHRCloud-C1-Master:/var/www/clients/client1/web1/mail# ls -la
total 0
drwxr-xr-x 2 web1 client1 0 2012-03-22 01:01 .
drwxr-xr-x 2 web1 client1 0 1970-01-01 00:00 ..
drwxr-xr-x 2 web1 client1 0 2012-03-22 01:02 abuse
drwxr-xr-x 2 web1 client1 0 2012-03-22 01:02 asdasd
drwxr-xr-x 2 web1 client1 0 2012-03-22 01:02 beta
drwxr-xr-x 2 web1 client1 0 2012-03-22 01:02 testing
drwxr-xr-x 2 web1 client1 0 2012-03-22 01:02 testing2
drwxr-xr-x 2 web1 client1 0 2012-03-22 01:02 testing4

client1 is 5005 and web1 is 5004 as specified in the mysql call. Beta is the 
maildir. 

the contents of imapdebug
root@2GTHRCloud-C1-Master:/var/www/clients/client1/web1/mail# tail -f 
/var/log/imapdebug 
^C
root@2GTHRCloud-C1-Master:/var/www/clients/client1/web1/mail# 

And here is my imapd.cnf

IMAPDEBUGFILE = /var/log/imapdebug
RANDFILE = /usr/lib/courier/imapd.rand
IMAP_USELOCKS = 0
[ req ]
default_bits = 1024
encrypt_key = yes
distinguished_name = req_dn
x509_extensions = cert_type
prompt = no
default_md = sha1

[ req_dn ]
C=US
ST=NY
L=New York
O=Courier Mail Server
OU=Automatically-generated IMAP SSL key
CN=2GTHRCloud-C1-Master.2GTHRCloud.com
emailAddress=postmas...@example.com


[ cert_type ]
nsCertType = server
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=--=-=-=
This e-mail (including attachments) is covered by the Electronic
Communications Privacy Act, 18 U.S.C. Sections 2510-2521, is
confidential, and is intended solely for the use of the individuals or
entities to whom it is addressed. If you are not the intended
recipient or the person responsible for delivering the e-mail to the
intended recipient, be advised that you have received this e-mail in
error and that any use, dissemination, forwarding, printing, or
copying of this e-mail and any file attachments is strictly
prohibited. If you have received this e-mail in error, please
immediately notify me by email at jackie.craig.spa...@live.com. You must destroy
the original transmission and its contents.


From: mr...@courier-mta.com
To: courier-users@lists.sourceforge.net
Date: Fri, 23 Mar 2012 20:49:56 -0400
Subject: Re: [courier-users] My mail log file atm - mail over fuse fs

jackie sparks writes:
 
> so I set this to 0 then will it not use file locks?
>
> ./imapscanclient.c
>
> static int uselocks()
> {
>         const   char *p;
>
>         if ((p=getenv("IMAP_USELOCKS")) != 0 && *p != '1')
>                 return 0;
>
>         return 1;
 
Yes, this imapd setting disables it; but as noted this may result in bad  
behavior in some IMAP clients.
 

------------------------------------------------------------------------------
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here 
http://p.sf.net/sfu/sfd2d-msazure
_______________________________________________
courier-users mailing list
courier-users@lists.sourceforge.net
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users         
                                  
------------------------------------------------------------------------------
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here 
http://p.sf.net/sfu/sfd2d-msazure
_______________________________________________
courier-users mailing list
courier-users@lists.sourceforge.net
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users

Reply via email to