[Dovecot] New error messages

2009-10-23 Thread Robin Atwood
I was glancing at my logwatch report when I noticed:

dovecot: IMAP(robinmail): 
fchown(/home/robinmail/mail/.imap/INBOX/dovecot.index.log.newlock, -1, 
10(wheel)) failed: Operation not permitted (egid=100(users), group based on 
/var/mail/robinmail): 1 Time(s)
dovecot: IMAP(robinmail): 
fchown(/home/robinmail/mail/.imap/INBOX/dovecot.index.tmp, -1, 10(wheel)) 
failed: Operation not permitted (egid=100(users), group based on 
/var/mail/robinmail): 3 Time(s)

So what's going on here? :) I am fairly sure I never had them before. Running 
dovecot 1.2.6.

TIA
-Robin
-- 
--
Robin Atwood.

Ship me somewheres east of Suez, where the best is like the worst,
 Where there ain't no Ten Commandments an' a man can raise a thirst
 from Mandalay by Rudyard Kipling
--










Re: [Dovecot] New error messages

2009-10-23 Thread Robin Atwood
On Saturday 24 October 2009, Timo Sirainen wrote:
 On Sat, 2009-10-24 at 02:38 +0700, Robin Atwood wrote:
  I was glancing at my logwatch report when I noticed:
 
  dovecot: IMAP(robinmail):
  fchown(/home/robinmail/mail/.imap/INBOX/dovecot.index.log.newlock, -1,
  10(wheel)) failed: Operation not permitted (egid=100(users), group based
  on /var/mail/robinmail): 1 Time(s)
 
 chmod 0600 /var/mail/* fixes this.
 

Done. Thanks Timo!
-Robin
-- 
--
Robin Atwood.

Ship me somewheres east of Suez, where the best is like the worst,
 Where there ain't no Ten Commandments an' a man can raise a thirst
 from Mandalay by Rudyard Kipling
--










Re: [Dovecot] Phone cannot receive mail suddenly

2009-02-02 Thread Robin Atwood
On Tuesday 03 Feb 2009, Timo Sirainen wrote:
 On Sun, 2009-02-01 at 20:26 +0700, Robin Atwood wrote:
  Starting at midnight Feb 1 my phone can no longer fetch mail from
  Dovecot. It endlessly connects and reconnects as you can see in the log
  below. I have restarted dovecot, the phone, deleted /home/robinmail/mail,
  all to no avail. I have turned on debug output but it does not tell me
  anymore. I can connect and see the folder using the KMail imap client.
  Any idea how I can proceed with this? The phone is 192.168.1.57 (LAN) or
  202.91.19.194 (GPRS) and Dovecot and KMail are on 192.168.1.2.

 See what rawlog shows: http://wiki.dovecot.org/Debugging/Rawlog

Thanks for the tip. In fact, the problem was, as I thought, with the phone 
software. It got so confused it deleted the email account and when I 
recreated it everything worked again. I suspect something with the IMAP 
indices getting out of sync.

Cheers...
-Robin
-- 
--
Robin Atwood.

Ship me somewheres east of Suez, where the best is like the worst,
 Where there ain't no Ten Commandments an' a man can raise a thirst
 from Mandalay by Rudyard Kipling
--










[Dovecot] Phone cannot receive mail suddenly

2009-02-01 Thread Robin Atwood
Starting at midnight Feb 1 my phone can no longer fetch mail from Dovecot. It 
endlessly connects and reconnects as you can see in the log below. I have 
restarted dovecot, the phone, deleted /home/robinmail/mail, all to no avail. 
I have turned on debug output but it does not tell me anymore. I can connect 
and see the folder using the KMail imap client. Any idea how I can proceed 
with this? The phone is 192.168.1.57 (LAN) or 202.91.19.194 (GPRS) and 
Dovecot and KMail are on 192.168.1.2.


Feb  1 20:12:58 opal dovecot: Dovecot v1.1.8 starting up
Feb  1 20:13:41 opal dovecot: imap-login: Login: user=robinmail, 
method=PLAIN, rip=192.168.1.57, lip=192.168.1.2
Feb  1 20:13:41 opal dovecot: IMAP(robinmail): Effective uid=500, gid=100, 
home=/home/robinmail
Feb  1 20:13:41 opal dovecot: IMAP(robinmail): mbox: 
data=~/mail:INBOX=/var/mail/robinmail
Feb  1 20:13:41 opal dovecot: IMAP(robinmail): fs: root=/home/robinmail/mail, 
index=, control=, inbox=/var/mail/robinmail
Feb  1 20:13:41 opal dovecot: IMAP(robinmail): Connection closed bytes=18/484
Feb  1 20:14:05 opal dovecot: IMAP(robinmail): Effective uid=500, gid=100, 
home=/home/robinmail
Feb  1 20:14:05 opal dovecot: IMAP(robinmail): mbox: 
data=~/mail:INBOX=/var/mail/robinmail
Feb  1 20:14:05 opal dovecot: IMAP(robinmail): fs: root=/home/robinmail/mail, 
index=, control=, inbox=/var/mail/robinmail
Feb  1 20:14:05 opal dovecot: imap-login: Login: user=robinmail, 
method=PLAIN, rip=192.168.1.2, lip=192.168.1.2, TLS
Feb  1 20:14:37 opal dovecot: IMAP(robinmail): Effective uid=500, gid=100, 
home=/home/robinmail
Feb  1 20:14:37 opal dovecot: IMAP(robinmail): mbox: 
data=~/mail:INBOX=/var/mail/robinmail
Feb  1 20:14:37 opal dovecot: IMAP(robinmail): fs: root=/home/robinmail/mail, 
index=, control=, inbox=/var/mail/robinmail
Feb  1 20:14:37 opal dovecot: imap-login: Login: user=robinmail, 
method=PLAIN, rip=202.91.19.194, lip=192.168.1.2
Feb  1 20:14:39 opal dovecot: IMAP(robinmail): Connection closed bytes=18/453
Feb  1 20:14:43 opal dovecot: IMAP(robinmail): Effective uid=500, gid=100, 
home=/home/robinmail
Feb  1 20:14:43 opal dovecot: IMAP(robinmail): mbox: 
data=~/mail:INBOX=/var/mail/robinmail
Feb  1 20:14:43 opal dovecot: IMAP(robinmail): fs: root=/home/robinmail/mail, 
index=, control=, inbox=/var/mail/robinmail

TIA
-Robin
-- 
--
Robin Atwood.

Ship me somewheres east of Suez, where the best is like the worst,
 Where there ain't no Ten Commandments an' a man can raise a thirst
 from Mandalay by Rudyard Kipling
--










Re: [Dovecot] Questions about using sieve

2008-09-13 Thread Robin Atwood
On Saturday 13 Sep 2008, Timo Sirainen wrote:
 On Sat, 2008-09-13 at 12:37 +0700, Robin Atwood wrote:
  and I have added mail_plugins = cmusieve to protocol lda{}. I then
  created a .dovecot.sieve script but am not sure where to place it. I
  tried ~/ and ~/.imap but it never seems to get compiled.

 Home directory is correct.

  Dovecot is running as a root
  service so it should have access. Setting mail_debug=yes produces no
  clues, so what should I be looking at?

 Sieve is used only by deliver binary, which isn't running as root.
 Sounds like you're never even calling it?

That was my impression! Since mail delivery is already working, I assumed I do 
not have to customise sendmail.cf. Is that not the case? I am not sure  I 
understand this deliver thing, I thought in my case it actually meant 
sendmail.

-Robin
-- 
--
Robin Atwood.

Ship me somewheres east of Suez, where the best is like the worst,
 Where there ain't no Ten Commandments an' a man can raise a thirst
 from Mandalay by Rudyard Kipling
--










Re: [Dovecot] How to logoff a session with dovecot?

2007-12-29 Thread Robin Atwood
On Saturday 29 Dec 2007, Timo Sirainen wrote:
 On Sun, 2007-12-09 at 18:38 +0700, Robin Atwood wrote:
  I use dovecot to push email to my SE P1i and it works very well. :)
  However, I have two email accounts set up on the phone, one using my
  domain for GPRS and public WiFi and one using my WLAN address for use at
  home, the idea being I don't want to pay for GPRS data at home. The
  trouble is the GPRS account remains logged on and I get the mail in both
  inboxes. There is no option in the email client on the phone to
  disconnect, so is there any trick to forcing a disconnect from the mail
  server?

 I guess you could do something with post-login scripting
 (http://wiki.dovecot.org/PostLoginScripting). For example track GPRS vs.
 non-GPRS connections based on $IP. When non-GPRS connection logs in,
 kill all imap processes using GPRS IP.

Timo -
Thanks for the suggestion, that hook looks very useful. I tried killing the 
imap-login processes manually and it seemed to do the trick!

Cheers...
-Robin
-- 
--
Robin Atwood.

Ship me somewheres east of Suez, where the best is like the worst,
 Where there ain't no Ten Commandments an' a man can raise a thirst
 from Mandalay by Rudyard Kipling
--










[Dovecot] How to logoff a session with dovecot?

2007-12-09 Thread Robin Atwood
I use dovecot to push email to my SE P1i and it works very well. :) However, I 
have two email accounts set up on the phone, one using my domain for GPRS and 
public WiFi and one using my WLAN address for use at home, the idea being I 
don't want to pay for GPRS data at home. The trouble is the GPRS account 
remains logged on and I get the mail in both inboxes. There is no option in 
the email client on the phone to disconnect, so is there any trick to forcing 
a disconnect from the mail server?

TIA
-Robin
-- 
--
Robin Atwood.

Ship me somewheres east of Suez, where the best is like the worst,
 Where there ain't no Ten Commandments an' a man can raise a thirst
 from Mandalay by Rudyard Kipling
--










[Dovecot] Compiling drac.c on a 64 bit system

2007-10-05 Thread Robin Atwood
I have just installed dovecot and want to set up the drac interface. However, 
when I compile drac.c I get the following link errors; anybody know what the 
right compile options are for a 64 bit system? I have a Gentoo Linux system 
using the amd64 architecture.


gcc -Wall -W -shared -fPIC -DHAVE_CONFIG_H -I$dovecot -I$dovecot/src/lib
drac.c -o drac.so -ldrac
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/../../../../x86_64-pc-linux-gnu/bin/ld: 
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/../../../../lib64/libdrac.a(dracauth.o): 
relocation R_X86_64_32S against `a local symbol' can not be used when making 
a shared object; recompile with -fPIC
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/../../../../lib64/libdrac.a: could not 
read symbols: Bad value
collect2: ld returned 1 exit status

TIA
-Robin.
-- 
--
Robin Atwood.

Ship me somewheres east of Suez, where the best is like the worst,
 Where there ain't no Ten Commandments an' a man can raise a thirst
 from Mandalay by Rudyard Kipling
--










Re: [Dovecot] Compiling drac.c on a 64 bit system

2007-10-05 Thread Robin Atwood
On Friday 05 Oct 2007, Marcus Rueckert wrote:
 On 2007-10-05 17:48:51 +0700, Robin Atwood wrote:
 your libdrac is compiled without -fPIC -pic

Thanks, that did the trick!

-Robin.
-- 
--
Robin Atwood.

Ship me somewheres east of Suez, where the best is like the worst,
 Where there ain't no Ten Commandments an' a man can raise a thirst
 from Mandalay by Rudyard Kipling
--