Thunderbird version 45 no longer can login via SSL

2016-04-21 Thread CJ Keist

All,
Just ran into issue with the latest Thunderbird release today, 
version 45.0.  This version will no longer login to our dovecot 1.2.17 
version. I now this is old version but wanting to know if there is 
anyone finding a solution to this?


Right now our work around is to reinstall Thunderbird version 38.7.2

Thanks...

--
C. J. Keist Email: cj.ke...@colostate.edu
Systems Group Manager   Solaris 10 OS (SAI)
Engineering Network ServicesPhone: 970-491-0630
College of Engineering, CSU Fax:   970-491-5569
Ft. Collins, CO 80523-1301

All I want is a chance to prove 'Money can't buy happiness'


Re: Fatal: master: service(imap): child 20258 killed with signal 6 (core not dumped - set service imap { drop_priv_before_exec=yes })

2014-07-14 Thread CJ Keist
Yes,
   I did switch from sparc server to x86.  I also removed all the 
dovecot.indexes and .imap folders.  I will try 2.2 again tomorrow with the 
process limits specified for imap, pop, and auth.  
My concern is with auto detection of user accounts using mbox or Maildir 
formats.  Is it still the case to support mix mbox and Maildir by commenting 
out the mail_location lines?
 

CJ Keist.Email: cj.ke...@colostate.edu
Systems Group Manager. Solaris 10 OS (SAI)
Engineering Network Services. Phone: 970-491-0630
College of Engineering, CSU.   Fax:  970-491-5569
Ft. Collins, CO 80523-1301

> On Jul 14, 2014, at 4:50 PM, Timo Sirainen  wrote:
> 
> Did you actually switch from sparc to x86 CPU in the server? If yes, then 
> looks like the code to handle the switching could use some fixing.
> 
> But in any case you can just delete the .imap/ directories and have the 
> indexes be rebuilt.
> 
>> On 14.7.2014, at 21.10, CJ Keist  wrote:
>> 
>> Here are the log entires just before the signal 6 error:
>> 
>> Jul 10 00:19:56 mail2 dovecot: [ID 583609 mail.error] imap(tjs): Error: 
>> Rebuilding index file 
>> /top/admin/AcadAffairs/people/tjs/home/mail/.imap/DailySmarts/dovecot.index: 
>> CPU architecture changed
>> Jul 10 00:19:58 mail2 dovecot: [ID 583609 mail.error] imap(tjs): Error: 
>> Rebuilding index file 
>> /top/admin/AcadAffairs/people/tjs/home/mail/.imap/engr101/dovecot.index: CPU 
>> architecture changed
>> Jul 10 00:19:59 mail2 dovecot: [ID 583609 mail.error] imap(tjs): Error: 
>> Rebuilding index file 
>> /top/admin/AcadAffairs/people/tjs/home/mail/.imap/INTO/dovecot.index: CPU 
>> architecture changed
>> Jul 10 00:19:59 mail2 dovecot: [ID 583609 mail.error] imap(tjs): Error: 
>> Rebuilding index file 
>> /top/admin/AcadAffairs/people/tjs/home/mail/.imap/Drafts/dovecot.index: CPU 
>> architecture changed
>> Jul 10 00:20:00 mail2 dovecot: [ID 583609 mail.error] imap(tjs): Error: 
>> Index 
>> /top/admin/AcadAffairs/people/tjs/home/mail/Local/.imap/RM-MSMSP/dovecot.index:
>>  Lost log for seq=1 offset=0
>> Jul 10 00:20:00 mail2 dovecot: [ID 583609 mail.warning] imap(tjs): Warning: 
>> fscking index file 
>> /top/admin/AcadAffairs/people/tjs/home/mail/Local/.imap/RM-MSMSP/dovecot.index
>> Jul 10 00:20:00 mail2 dovecot: [ID 583609 mail.error] imap(tjs): Error: 
>> Fixed index file 
>> /top/admin/AcadAffairs/people/tjs/home/mail/Local/.imap/RM-MSMSP/dovecot.index:
>>  log_file_seq 1 -> 33554432
>> Jul 10 00:20:00 mail2 dovecot: [ID 583609 mail.error] imap(tjs): Error: 
>> Corrupted transaction log file 
>> /top/admin/AcadAffairs/people/tjs/home/mail/Local/.imap/FundingOpportunities/dovecot.index.log
>>  seq 33554432: log file shrank (1124 < 6144) (sync_offset=6144)
>> Jul 10 00:20:00 mail2 dovecot: [ID 583609 mail.crit] imap(tjs): Panic: file 
>> buffer.c: line 307 (buffer_set_used_size): assertion failed: (used_size <= 
>> buf->alloc)
>> Jul 10 00:20:00 mail2 dovecot: [ID 583609 mail.error] imap(tjs): Error: Raw 
>> backtrace: 
>> /userM/mail-services/dovecot/lib/dovecot/libdovecot.so.0.0.0'default_fatal_finish+0x51
>>  [0xfede0f41] -> 
>> /userM/mail-services/dovecot/lib/dovecot/libdovecot.so.0.0.0'i_internal_fatal_handler+0x31
>>  [0xfede1071] -> 
>> /userM/mail-services/dovecot/lib/dovecot/libdovecot.so.0.0.0'i_fatal+0x0 
>> [0xfee0c4e2] -> 
>> /userM/mail-services/dovecot/lib/dovecot/libdovecot.so.0.0.0'0x6d595 
>> [0xfeddd595] -> 
>> /userM/mail-services/dovecot/lib/dovecot/libdovecot-storage.so.0.0.0'mail_transaction_log_file_add_to_list+0x9c
>>  [0xfef3f5cc] -> 
>> /userM/mail-services/dovecot/lib/dovecot/libdovecot-storage.so.0.0.0'mail_transaction_log_file_open+0x25c
>>  [0xfef401dc] -> 
>> /userM/mail-services/dovecot/lib/dovecot/libdovecot-storage.so.0.0.0'mail_transaction_log_open+0xda
>>  [0xfef3bdba] -> 
>> /userM/mail-services/dovecot/lib/dovecot/libdovecot-storage.so.0.0.0'mail_index_open_files+0x23
>>  [0xfef239e3] -> 
>> /userM/mail-services/dovecot/lib/dovecot/libdovecot-storage.so.0.0.0'
>> 
>> Jul 10 00:20:00 mail2 dovecot: [ID 583609 mail.crit] imap(tjs): Fatal: 
>> master: service(imap): child 2238 killed with signal 6 (core not dumped - 
>> set service imap { drop_priv_before_exec=yes })
>> Jul 10 00:20:01 mail2 dovecot: [ID 583609 mail.info] imap-login: Login: 
>> user=, method=PLAIN, rip=129.82.226.98, lip=129.82.20.15, mpid=2943, 
>> TLS, session=
>> Jul 10 00:20:01 mail2 dovecot: [ID 583609 mail.error] imap(tjs): Error: 
>&

Re: Fatal: master: service(imap): child 20258 killed with signal 6 (core not dumped - set service imap { drop_priv_before_exec=yes })

2014-07-14 Thread CJ Keist

Here are the log entires just before the signal 6 error:

Jul 10 00:19:56 mail2 dovecot: [ID 583609 mail.error] imap(tjs): Error: 
Rebuilding index file 
/top/admin/AcadAffairs/people/tjs/home/mail/.imap/DailySmarts/dovecot.index: 
CPU architecture changed
Jul 10 00:19:58 mail2 dovecot: [ID 583609 mail.error] imap(tjs): Error: 
Rebuilding index file 
/top/admin/AcadAffairs/people/tjs/home/mail/.imap/engr101/dovecot.index: 
CPU architecture changed
Jul 10 00:19:59 mail2 dovecot: [ID 583609 mail.error] imap(tjs): Error: 
Rebuilding index file 
/top/admin/AcadAffairs/people/tjs/home/mail/.imap/INTO/dovecot.index: 
CPU architecture changed
Jul 10 00:19:59 mail2 dovecot: [ID 583609 mail.error] imap(tjs): Error: 
Rebuilding index file 
/top/admin/AcadAffairs/people/tjs/home/mail/.imap/Drafts/dovecot.index: 
CPU architecture changed
Jul 10 00:20:00 mail2 dovecot: [ID 583609 mail.error] imap(tjs): Error: 
Index 
/top/admin/AcadAffairs/people/tjs/home/mail/Local/.imap/RM-MSMSP/dovecot.index: 
Lost log for seq=1 offset=0
Jul 10 00:20:00 mail2 dovecot: [ID 583609 mail.warning] imap(tjs): 
Warning: fscking index file 
/top/admin/AcadAffairs/people/tjs/home/mail/Local/.imap/RM-MSMSP/dovecot.index
Jul 10 00:20:00 mail2 dovecot: [ID 583609 mail.error] imap(tjs): Error: 
Fixed index file 
/top/admin/AcadAffairs/people/tjs/home/mail/Local/.imap/RM-MSMSP/dovecot.index: 
log_file_seq 1 -> 33554432
Jul 10 00:20:00 mail2 dovecot: [ID 583609 mail.error] imap(tjs): Error: 
Corrupted transaction log file 
/top/admin/AcadAffairs/people/tjs/home/mail/Local/.imap/FundingOpportunities/dovecot.index.log 
seq 33554432: log file shrank (1124 < 6144) (sync_offset=6144)
Jul 10 00:20:00 mail2 dovecot: [ID 583609 mail.crit] imap(tjs): Panic: 
file buffer.c: line 307 (buffer_set_used_size): assertion failed: 
(used_size <= buf->alloc)
Jul 10 00:20:00 mail2 dovecot: [ID 583609 mail.error] imap(tjs): Error: 
Raw backtrace: 
/userM/mail-services/dovecot/lib/dovecot/libdovecot.so.0.0.0'default_fatal_finish+0x51 
[0xfede0f41] -> 
/userM/mail-services/dovecot/lib/dovecot/libdovecot.so.0.0.0'i_internal_fatal_handler+0x31 
[0xfede1071] -> 
/userM/mail-services/dovecot/lib/dovecot/libdovecot.so.0.0.0'i_fatal+0x0 
[0xfee0c4e2] -> 
/userM/mail-services/dovecot/lib/dovecot/libdovecot.so.0.0.0'0x6d595 
[0xfeddd595] -> 
/userM/mail-services/dovecot/lib/dovecot/libdovecot-storage.so.0.0.0'mail_transaction_log_file_add_to_list+0x9c 
[0xfef3f5cc] -> 
/userM/mail-services/dovecot/lib/dovecot/libdovecot-storage.so.0.0.0'mail_transaction_log_file_open+0x25c 
[0xfef401dc] -> 
/userM/mail-services/dovecot/lib/dovecot/libdovecot-storage.so.0.0.0'mail_transaction_log_open+0xda 
[0xfef3bdba] -> 
/userM/mail-services/dovecot/lib/dovecot/libdovecot-storage.so.0.0.0'mail_index_open_files+0x23 
[0xfef239e3] -> 
/userM/mail-services/dovecot/lib/dovecot/libdovecot-storage.so.0.0.0'


Jul 10 00:20:00 mail2 dovecot: [ID 583609 mail.crit] imap(tjs): Fatal: 
master: service(imap): child 2238 killed with signal 6 (core not dumped 
- set service imap { drop_priv_before_exec=yes })
Jul 10 00:20:01 mail2 dovecot: [ID 583609 mail.info] imap-login: Login: 
user=, method=PLAIN, rip=129.82.226.98, lip=129.82.20.15, 
mpid=2943, TLS, session=
Jul 10 00:20:01 mail2 dovecot: [ID 583609 mail.error] imap(tjs): Error: 
Transaction log file 
/top/admin/AcadAffairs/people/tjs/home/mail/Local/.imap/FundingOpportunities/dovecot.index.log: 
marked corrupted




On 7/11/14, 5:40 PM, Timo Sirainen wrote:

Find the first error/warning that Dovecot logs, which should happen just before 
you reach the limit.

On 10.7.2014, at 21.33, CJ Keist  wrote:


It's not fixed. Now the limit looks to be around 500 processes and we start to 
get number of connections exceeded.  Any ideas?



On 7/10/14, 10:35 AM, CJ Keist wrote:

I fixed this issue about the process limit in the 10-master.conf file:

default_process_limit = 5000
default_client_limit = 3


On 7/10/14, 10:03 AM, CJ Keist wrote:

It looks like on the system that once we hit around 200 imap processes
it stops there and no more imap processes can be created.  Is there a
number of max imap processes in the config file somewhere.  By the way
running on OmniOS:

SunOS mail2 5.11 omnios-6de5e81 i86pc i386 i86pc



On 7/10/14, 9:50 AM, CJ Keist wrote:

Thanks for the reply. I have seen threads about setting the
mail_max_userip_connections, I have set this to 5000 and still people
getting the exceeding connections errorl


root@mail2:/userM/mail-services/dovecot/sbin# ./dovecot -n
# 2.2.13: /userM/mail-services/dovecot/etc/dovecot/dovecot.conf
# OS: SunOS 5.11 i86pc
auth_failure_delay = 5 secs
auth_mechanisms = plain login cram-md5
auth_worker_max_count = 3000
base_dir = /userM/mail-services/dovecot/var/run/dovecot/
disable_plaintext_auth = no
hostname = mail2.engr.colostate.edu
managesieve_notify_capability = mailto
managesieve_sieve_capability = fileinto rejec

Re: Fatal: master: service(imap): child 20258 killed with signal 6 (core not dumped - set service imap { drop_priv_before_exec=yes })

2014-07-11 Thread CJ Keist

Thank you.  I will try these settings out and give 2.2 one more shot.


On 7/11/2014 2:04 AM, Nick Edwards wrote:

On 7/11/14, CJ Keist  wrote:
  see inlines, its what we needed, we found dovecots default is great -
for SOHO, but hopeless for ISP size  use which is what you need, I
wish Timo would include a conf file for large organisations, by
defaults we had issues same as you all limits way too low




service auth {

  client_limit = 2248   <-

unix_listener /var/lib/postfix/private/auth {
  mode = 0666
}
unix_listener auth-userdb {
  group = postfix
  mode = 0666
  user = postfix
}
user = root
}





service imap-login {

process_limit = 1024  <--

inet_listener imap {
  port = 143
}
inet_listener imaps {
  port = 993
  ssl = yes
}
}
service pop3-login {

process_limit = 1024  <

inet_listener pop3 {
  port = 110
}
inet_listener pop3s {
  port = 995
  ssl = yes
}
}
ssl_cert = 
 process_limit = 1024 <--  (and bigger for pop3 but pop3 is
more popular here)


mail_max_userip_connections = 50
}


service anvil {
 client_limit = 2251
}




protocol lda {
mail_plugins = sieve
}


--
C. J. Keist Email: cj.ke...@colostate.edu
Systems Group Manager   Solaris 10 OS (SAI)
Engineering Network ServicesPhone: 970-491-0630
College of Engineering, CSU Fax:   970-491-5569
Ft. Collins, CO 80523-1301

All I want is a chance to prove 'Money can't buy happiness'



--
C. J. Keist Email: cj.ke...@colostate.edu
Systems Group Manager   Solaris 10 OS (SAI)
Engineering Network ServicesPhone: 970-491-0630
College of Engineering, CSU Fax:   970-491-5569
Ft. Collins, CO 80523-1301

All I want is a chance to prove 'Money can't buy happiness'


Re: Fatal: master: service(imap): child 20258 killed with signal 6 (core not dumped - set service imap { drop_priv_before_exec=yes })

2014-07-10 Thread CJ Keist

After starting dovecot the following is run to take care of the fd limit:

/usr/bin/plimit -n 16384,16384 `cat ../var/run/dovecot/master.pid`

I was doing this same commend for 2.2. dovecot as well.

I do have ssl configured and working.  My mail client confirms the 
secure connection is made.


Not sure why the dovecot -n showed double slash, it's not that way in 
the config file.



On 7/10/14, 2:38 PM, Benny Pedersen wrote:

On 10. jul. 2014 21.59.28 CEST, CJ Keist  wrote:


root@mail2:/userM/mail-services/dovecot2/sbin# ./dovecot -n
# 1.2.17: /userM/mail-services/dovecot2/etc/dovecot.conf
Warning: fd limit 256 is lower than what Dovecot can use under full
load
(more than 3072). Either grow the limit or change
login_max_processes_count and max_mail_processes settings


Warning there is an os limit, not a dovecot fault


# OS: SunOS 5.11 i86pc
base_dir: /userM/mail-services/dovecot2/var/run/dovecot/
protocols: imap imaps pop3 pop3s


Why ssl if non ssl is provided aswell ?


login_max_processes_count: 1024
max_mail_processes: 1024


Exeded os limit


 master:
   path: /userM/mail-services/dovecot2/var/run/dovecot//auth-master


Doubble slash



--
C. J. Keist Email: cj.ke...@colostate.edu
Systems Group Manager   Solaris 10 OS (SAI)
Engineering Network ServicesPhone: 970-491-0630
College of Engineering, CSU Fax:   970-491-5569
Ft. Collins, CO 80523-1301

All I want is a chance to prove 'Money can't buy happiness'


Re: Fatal: master: service(imap): child 20258 killed with signal 6 (core not dumped - set service imap { drop_priv_before_exec=yes })

2014-07-10 Thread CJ Keist
Update: I had to fall back to the 1.2.17 dovecot code.  Doing that 
solved the invalid user settings and dovecot inability to auto detect 
between mbox and Maildir format for user accounts and no longer have the 
limited number of imap processes either.


Not sure what I was missing in the config files, but this is the route I 
will stay on for now. If it helps here is the 1.2.17 config:


root@mail2:/userM/mail-services/dovecot2/sbin# ./dovecot -n
# 1.2.17: /userM/mail-services/dovecot2/etc/dovecot.conf
Warning: fd limit 256 is lower than what Dovecot can use under full load 
(more than 3072). Either grow the limit or change 
login_max_processes_count and max_mail_processes settings

# OS: SunOS 5.11 i86pc
base_dir: /userM/mail-services/dovecot2/var/run/dovecot/
protocols: imap imaps pop3 pop3s
ssl_cert_file: /userM/mail-services/dovecot2/etc/ssl/dovecot.pem
ssl_key_file: /userM/mail-services/dovecot2/etc/ssl/privkey.pem
ssl_parameters_regenerate: 0
ssl_cipher_list: MEDIUM:!LOW
disable_plaintext_auth: no
login_dir: /userM/mail-services/dovecot2/var/run/dovecot/login
login_executable(default): 
/userM/mail-services/dovecot2/libexec/dovecot/imap-login
login_executable(imap): 
/userM/mail-services/dovecot2/libexec/dovecot/imap-login
login_executable(pop3): 
/userM/mail-services/dovecot2/libexec/dovecot/pop3-login

login_greeting: Cyrus ready.
login_max_processes_count: 1024
max_mail_processes: 1024
mail_debug: yes
mmap_disable: yes
mail_nfs_index: yes
mbox_write_locks: fcntl dotlock
mbox_dotlock_change_timeout: 60
mail_executable(default): /userM/mail-services/dovecot2/libexec/dovecot/imap
mail_executable(imap): /userM/mail-services/dovecot2/libexec/dovecot/imap
mail_executable(pop3): /userM/mail-services/dovecot2/libexec/dovecot/pop3
mail_plugin_dir(default): /userM/mail-services/dovecot2/lib/dovecot/imap
mail_plugin_dir(imap): /userM/mail-services/dovecot2/lib/dovecot/imap
mail_plugin_dir(pop3): /userM/mail-services/dovecot2/lib/dovecot/pop3
lda:
  postmaster_address: c...@engr.colostate.edu
  hostname: mail1.engr.colostate.edu
  mail_plugins: cmusieve
  mail_plugin_dir: /userM/mail-services/dovecot2/lib/dovecot/lda
  sendmail_path: /userM/mail-services/postfix/lib/sendmail
  rejection_reason: Your message to <%t> was automatically rejected:%n%r
auth default:
  mechanisms: plain login
  verbose: yes
  debug: yes
  worker_max_count: 1024
  passdb:
driver: pam
  passdb:
driver: passwd
args: blocking=yes
  userdb:
driver: passwd
args: blocking=yes
  socket:
type: listen
client:
  path: /var/lib/postfix/private/auth
  mode: 438
  user: postfix
  group: postfix
master:
  path: /userM/mail-services/dovecot2/var/run/dovecot//auth-master
  mode: 384


On 7/10/14, 1:11 PM, CJ Keist wrote:

That didn't work. Still seem to stop accepting new imap connections when
we hit around 500 processes.


On 7/10/14, 12:48 PM, Urban Loesch wrote:

Hi,

not shure if that helps.

In 10-master.conf file exists a "service imap { ... }" section.
You could try to increase the "process_limit = " parameter in it.

On one of oour servers there we have "process_limit = 2048" and we habe
about 1200 concurrent connections without problems.

Best,
Urban


Am 10.07.2014 20:33, schrieb CJ Keist:

It's not fixed. Now the limit looks to be around 500 processes and we
start to get number of connections exceeded.  Any ideas?



On 7/10/14, 10:35 AM, CJ Keist wrote:

I fixed this issue about the process limit in the 10-master.conf file:

default_process_limit = 5000
default_client_limit = 3


On 7/10/14, 10:03 AM, CJ Keist wrote:

It looks like on the system that once we hit around 200 imap processes
it stops there and no more imap processes can be created.  Is there a
number of max imap processes in the config file somewhere.  By the way
running on OmniOS:

SunOS mail2 5.11 omnios-6de5e81 i86pc i386 i86pc



On 7/10/14, 9:50 AM, CJ Keist wrote:

Thanks for the reply. I have seen threads about setting the
mail_max_userip_connections, I have set this to 5000 and still people
getting the exceeding connections errorl


root@mail2:/userM/mail-services/dovecot/sbin# ./dovecot -n
# 2.2.13: /userM/mail-services/dovecot/etc/dovecot/dovecot.conf
# OS: SunOS 5.11 i86pc
auth_failure_delay = 5 secs
auth_mechanisms = plain login cram-md5
auth_worker_max_count = 3000
base_dir = /userM/mail-services/dovecot/var/run/dovecot/
disable_plaintext_auth = no
hostname = mail2.engr.colostate.edu
managesieve_notify_capability = mailto
managesieve_sieve_capability = fileinto reject envelope
encoded-character vacation subaddress comparator-i;ascii-numeric
relational regex imap4flags copy include variables body enotify
environment mailbox date ihave duplicate
namespace inbox {
   inbox = yes
   location =
   mailbox Drafts {
 special_use = \Drafts
   }
   mailbox Junk {
 special_use = \Junk
   }
   mailbox Sent {
 special_use = \Sent
   }
   mail

Re: Fatal: master: service(imap): child 20258 killed with signal 6 (core not dumped - set service imap { drop_priv_before_exec=yes })

2014-07-10 Thread CJ Keist
That didn't work. Still seem to stop accepting new imap connections when 
we hit around 500 processes.



On 7/10/14, 12:48 PM, Urban Loesch wrote:

Hi,

not shure if that helps.

In 10-master.conf file exists a "service imap { ... }" section.
You could try to increase the "process_limit = " parameter in it.

On one of oour servers there we have "process_limit = 2048" and we habe
about 1200 concurrent connections without problems.

Best,
Urban


Am 10.07.2014 20:33, schrieb CJ Keist:

It's not fixed. Now the limit looks to be around 500 processes and we
start to get number of connections exceeded.  Any ideas?



On 7/10/14, 10:35 AM, CJ Keist wrote:

I fixed this issue about the process limit in the 10-master.conf file:

default_process_limit = 5000
default_client_limit = 3


On 7/10/14, 10:03 AM, CJ Keist wrote:

It looks like on the system that once we hit around 200 imap processes
it stops there and no more imap processes can be created.  Is there a
number of max imap processes in the config file somewhere.  By the way
running on OmniOS:

SunOS mail2 5.11 omnios-6de5e81 i86pc i386 i86pc



On 7/10/14, 9:50 AM, CJ Keist wrote:

Thanks for the reply. I have seen threads about setting the
mail_max_userip_connections, I have set this to 5000 and still people
getting the exceeding connections errorl


root@mail2:/userM/mail-services/dovecot/sbin# ./dovecot -n
# 2.2.13: /userM/mail-services/dovecot/etc/dovecot/dovecot.conf
# OS: SunOS 5.11 i86pc
auth_failure_delay = 5 secs
auth_mechanisms = plain login cram-md5
auth_worker_max_count = 3000
base_dir = /userM/mail-services/dovecot/var/run/dovecot/
disable_plaintext_auth = no
hostname = mail2.engr.colostate.edu
managesieve_notify_capability = mailto
managesieve_sieve_capability = fileinto reject envelope
encoded-character vacation subaddress comparator-i;ascii-numeric
relational regex imap4flags copy include variables body enotify
environment mailbox date ihave duplicate
namespace inbox {
   inbox = yes
   location =
   mailbox Drafts {
 special_use = \Drafts
   }
   mailbox Junk {
 special_use = \Junk
   }
   mailbox Sent {
 special_use = \Sent
   }
   mailbox "Sent Messages" {
 special_use = \Sent
   }
   mailbox Trash {
 special_use = \Trash
   }
   prefix =
}
passdb {
   driver = pam
}
passdb {
   driver = passwd
}
postmaster_address = c...@engr.colostate.edu
service auth {
   unix_listener /var/lib/postfix/private/auth {
 mode = 0666
   }
   unix_listener auth-userdb {
 group = postfix
 mode = 0666
 user = postfix
   }
   user = root
}
service imap-login {
   inet_listener imap {
 port = 143
   }
   inet_listener imaps {
 port = 993
 ssl = yes
   }
}
service pop3-login {
   inet_listener pop3 {
 port = 110
   }
   inet_listener pop3s {
 port = 995
 ssl = yes
   }
}
ssl_cert = 


Am 10.07.2014 17:32, schrieb CJ Keist:

Another problem is people are getting error message from their
clients stating
they have exceeded their number of connections.


mail_max_userip_connections = 50

well, how much folders do the have

keep in mind that fpr IDLE you have one connection per user and
folder
10 users with 10 folders behind the same NAT router are 100
connections
from the same IP


On 7/10/14, 9:09 AM, CJ Keist wrote:

Added info:  These errors seem to come from users using mbox
format.


On 7/10/14, 9:04 AM, CJ Keist wrote:

All,
Just move our mail servers over to a new mail server running
postfix
2.11.1 and dovecot 2.2.13 and getting the subject line errors
in my
/var/adm/files.  People are complaining of loosing their
connections to
the mail server.

I've been able to google this error but haven't found fix for this
yet.
   NOt sure where to put the drop-priv option in the config files
either.

Any suggestions?

Var adm message:
Jul 10 08:54:29 mail2 dovecot: [ID 583609 mail.crit] imap(chen):
Fatal:
master: service(imap): child 20258 killed with signal 6 (core not
dumped
- set service imap { drop_priv_before_exec=yes })

Here is config output:

root@mail2:/userM/mail-services/dovecot/sbin# ./dovecot -n
# 2.2.13: /userM/mail-services/dovecot/etc/dovecot/dovecot.conf
# OS: SunOS 5.11 i86pc
auth_failure_delay = 5 secs
auth_mechanisms = plain login cram-md5
auth_worker_max_count = 300
base_dir = /userM/mail-services/dovecot/var/run/dovecot/
disable_plaintext_auth = no
hostname = mail2.engr.colostate.edu
managesieve_notify_capability = mailto
managesieve_sieve_capability = fileinto reject envelope
encoded-character vacation subaddress comparator-i;ascii-numeric
relational regex imap4flags copy include variables body enotify
environment mailbox date ihave duplicate
namespace inbox {
inbox = yes
location =
mailbox Drafts {
  special_use = \Drafts
}
mailbox Junk {
  special_use = \Junk
}
mailbox Sent {
  special_use = \Sent
}
mailbox "Sent Messages" {
  special_use = \Sent
}

Re: Fatal: master: service(imap): child 20258 killed with signal 6 (core not dumped - set service imap { drop_priv_before_exec=yes })

2014-07-10 Thread CJ Keist
It's not fixed. Now the limit looks to be around 500 processes and we 
start to get number of connections exceeded.  Any ideas?




On 7/10/14, 10:35 AM, CJ Keist wrote:

I fixed this issue about the process limit in the 10-master.conf file:

default_process_limit = 5000
default_client_limit = 3


On 7/10/14, 10:03 AM, CJ Keist wrote:

It looks like on the system that once we hit around 200 imap processes
it stops there and no more imap processes can be created.  Is there a
number of max imap processes in the config file somewhere.  By the way
running on OmniOS:

SunOS mail2 5.11 omnios-6de5e81 i86pc i386 i86pc



On 7/10/14, 9:50 AM, CJ Keist wrote:

Thanks for the reply. I have seen threads about setting the
mail_max_userip_connections, I have set this to 5000 and still people
getting the exceeding connections errorl


root@mail2:/userM/mail-services/dovecot/sbin# ./dovecot -n
# 2.2.13: /userM/mail-services/dovecot/etc/dovecot/dovecot.conf
# OS: SunOS 5.11 i86pc
auth_failure_delay = 5 secs
auth_mechanisms = plain login cram-md5
auth_worker_max_count = 3000
base_dir = /userM/mail-services/dovecot/var/run/dovecot/
disable_plaintext_auth = no
hostname = mail2.engr.colostate.edu
managesieve_notify_capability = mailto
managesieve_sieve_capability = fileinto reject envelope
encoded-character vacation subaddress comparator-i;ascii-numeric
relational regex imap4flags copy include variables body enotify
environment mailbox date ihave duplicate
namespace inbox {
   inbox = yes
   location =
   mailbox Drafts {
 special_use = \Drafts
   }
   mailbox Junk {
 special_use = \Junk
   }
   mailbox Sent {
 special_use = \Sent
   }
   mailbox "Sent Messages" {
 special_use = \Sent
   }
   mailbox Trash {
 special_use = \Trash
   }
   prefix =
}
passdb {
   driver = pam
}
passdb {
   driver = passwd
}
postmaster_address = c...@engr.colostate.edu
service auth {
   unix_listener /var/lib/postfix/private/auth {
 mode = 0666
   }
   unix_listener auth-userdb {
 group = postfix
 mode = 0666
 user = postfix
   }
   user = root
}
service imap-login {
   inet_listener imap {
 port = 143
   }
   inet_listener imaps {
 port = 993
 ssl = yes
   }
}
service pop3-login {
   inet_listener pop3 {
 port = 110
   }
   inet_listener pop3s {
 port = 995
 ssl = yes
   }
}
ssl_cert = 


Am 10.07.2014 17:32, schrieb CJ Keist:

Another problem is people are getting error message from their
clients stating
they have exceeded their number of connections.


mail_max_userip_connections = 50

well, how much folders do the have

keep in mind that fpr IDLE you have one connection per user and folder
10 users with 10 folders behind the same NAT router are 100 connections
from the same IP


On 7/10/14, 9:09 AM, CJ Keist wrote:

Added info:  These errors seem to come from users using mbox format.


On 7/10/14, 9:04 AM, CJ Keist wrote:

All,
Just move our mail servers over to a new mail server running
postfix
2.11.1 and dovecot 2.2.13 and getting the subject line errors in my
/var/adm/files.  People are complaining of loosing their
connections to
the mail server.

I've been able to google this error but haven't found fix for this
yet.
   NOt sure where to put the drop-priv option in the config files
either.

Any suggestions?

Var adm message:
Jul 10 08:54:29 mail2 dovecot: [ID 583609 mail.crit] imap(chen):
Fatal:
master: service(imap): child 20258 killed with signal 6 (core not
dumped
- set service imap { drop_priv_before_exec=yes })

Here is config output:

root@mail2:/userM/mail-services/dovecot/sbin# ./dovecot -n
# 2.2.13: /userM/mail-services/dovecot/etc/dovecot/dovecot.conf
# OS: SunOS 5.11 i86pc
auth_failure_delay = 5 secs
auth_mechanisms = plain login cram-md5
auth_worker_max_count = 300
base_dir = /userM/mail-services/dovecot/var/run/dovecot/
disable_plaintext_auth = no
hostname = mail2.engr.colostate.edu
managesieve_notify_capability = mailto
managesieve_sieve_capability = fileinto reject envelope
encoded-character vacation subaddress comparator-i;ascii-numeric
relational regex imap4flags copy include variables body enotify
environment mailbox date ihave duplicate
namespace inbox {
inbox = yes
location =
mailbox Drafts {
  special_use = \Drafts
}
mailbox Junk {
  special_use = \Junk
}
mailbox Sent {
  special_use = \Sent
}
mailbox "Sent Messages" {
  special_use = \Sent
}
mailbox Trash {
  special_use = \Trash
}
prefix =
}
passdb {
driver = pam
}
passdb {
driver = passwd
}
postmaster_address = c...@engr.colostate.edu
service auth {
unix_listener /var/lib/postfix/private/auth {
  mode = 0666
}
unix_listener auth-userdb {
  group = postfix
  mode = 0666
  user = postfix
}
user = root
}
service imap-login {
inet_listener imap {
  port = 143
}
inet_listener imaps {
  port = 993
  ssl = yes
}
}
service 

dovecot lda invalid user settings

2014-07-10 Thread CJ Keist
I'm now dealing with issue with some users on mbox getting invalid user 
settings in /var/adm/messages.  /var/log/syslog has:


Jul 10 11:21:42 mail2 dovecot: [ID 583609 mail.error] lda(ejames): 
Error: user ejames: Initialization failed: Namespace '': Mail storage 
autodetection failed with home=/top/academic/Atmos/people/ejames/home
Jul 10 11:21:42 mail2 dovecot: [ID 583609 mail.crit] lda(ejames): Fatal: 
Invalid user settings. Refer to server log for more information.


I checked this users home directory and the mail folder is there and 
permissions are all correct.



I'm running in a mixed mbox and Maildir environment. I read to support 
this environment you simply comment out the mail_location lines in 
10-mail.conf file which will force dovecot to auto detect what format a 
user is using.  This worked fine in dovecot 1.2.12, but seems to failing 
here.


 root@mail2:/userM/mail-services/dovecot/sbin# ./dovecot -n
# 2.2.13: /userM/mail-services/dovecot/etc/dovecot/dovecot.conf
# OS: SunOS 5.11 i86pc
auth_failure_delay = 5 secs
auth_mechanisms = plain login cram-md5
auth_worker_max_count = 3000
base_dir = /userM/mail-services/dovecot/var/run/dovecot/
default_client_limit = 3
default_process_limit = 5000
disable_plaintext_auth = no
hostname = mail2.engr.colostate.edu
managesieve_notify_capability = mailto
managesieve_sieve_capability = fileinto reject envelope 
encoded-character vacation subaddress comparator-i;ascii-numeric 
relational regex imap4flags copy include variables body enotify 
environment mailbox date ihave duplicate

namespace inbox {
  inbox = yes
  location =
  mailbox Drafts {
special_use = \Drafts
  }
  mailbox Junk {
special_use = \Junk
  }
  mailbox Sent {
special_use = \Sent
  }
  mailbox "Sent Messages" {
special_use = \Sent
  }
  mailbox Trash {
special_use = \Trash
  }
  prefix =
}
passdb {
  driver = pam
}
passdb {
  driver = passwd
}
postmaster_address = c...@engr.colostate.edu
service auth {
  unix_listener /var/lib/postfix/private/auth {
mode = 0666
  }
  unix_listener auth-userdb {
group = postfix
mode = 0666
user = postfix
  }
  user = root
}
service imap-login {
  inet_listener imap {
port = 143
  }
  inet_listener imaps {
port = 993
ssl = yes
  }
}
service pop3-login {
  inet_listener pop3 {
port = 110
  }
  inet_listener pop3s {
port = 995
ssl = yes
  }
}
ssl_cert = 

Re: Fatal: master: service(imap): child 20258 killed with signal 6 (core not dumped - set service imap { drop_priv_before_exec=yes })

2014-07-10 Thread CJ Keist

I fixed this issue about the process limit in the 10-master.conf file:

default_process_limit = 5000
default_client_limit = 3


On 7/10/14, 10:03 AM, CJ Keist wrote:

It looks like on the system that once we hit around 200 imap processes
it stops there and no more imap processes can be created.  Is there a
number of max imap processes in the config file somewhere.  By the way
running on OmniOS:

SunOS mail2 5.11 omnios-6de5e81 i86pc i386 i86pc



On 7/10/14, 9:50 AM, CJ Keist wrote:

Thanks for the reply. I have seen threads about setting the
mail_max_userip_connections, I have set this to 5000 and still people
getting the exceeding connections errorl


root@mail2:/userM/mail-services/dovecot/sbin# ./dovecot -n
# 2.2.13: /userM/mail-services/dovecot/etc/dovecot/dovecot.conf
# OS: SunOS 5.11 i86pc
auth_failure_delay = 5 secs
auth_mechanisms = plain login cram-md5
auth_worker_max_count = 3000
base_dir = /userM/mail-services/dovecot/var/run/dovecot/
disable_plaintext_auth = no
hostname = mail2.engr.colostate.edu
managesieve_notify_capability = mailto
managesieve_sieve_capability = fileinto reject envelope
encoded-character vacation subaddress comparator-i;ascii-numeric
relational regex imap4flags copy include variables body enotify
environment mailbox date ihave duplicate
namespace inbox {
   inbox = yes
   location =
   mailbox Drafts {
 special_use = \Drafts
   }
   mailbox Junk {
 special_use = \Junk
   }
   mailbox Sent {
 special_use = \Sent
   }
   mailbox "Sent Messages" {
 special_use = \Sent
   }
   mailbox Trash {
 special_use = \Trash
   }
   prefix =
}
passdb {
   driver = pam
}
passdb {
   driver = passwd
}
postmaster_address = c...@engr.colostate.edu
service auth {
   unix_listener /var/lib/postfix/private/auth {
 mode = 0666
   }
   unix_listener auth-userdb {
 group = postfix
 mode = 0666
 user = postfix
   }
   user = root
}
service imap-login {
   inet_listener imap {
 port = 143
   }
   inet_listener imaps {
 port = 993
 ssl = yes
   }
}
service pop3-login {
   inet_listener pop3 {
 port = 110
   }
   inet_listener pop3s {
 port = 995
 ssl = yes
   }
}
ssl_cert = 


Am 10.07.2014 17:32, schrieb CJ Keist:

Another problem is people are getting error message from their
clients stating
they have exceeded their number of connections.


mail_max_userip_connections = 50

well, how much folders do the have

keep in mind that fpr IDLE you have one connection per user and folder
10 users with 10 folders behind the same NAT router are 100 connections
from the same IP


On 7/10/14, 9:09 AM, CJ Keist wrote:

Added info:  These errors seem to come from users using mbox format.


On 7/10/14, 9:04 AM, CJ Keist wrote:

All,
Just move our mail servers over to a new mail server running
postfix
2.11.1 and dovecot 2.2.13 and getting the subject line errors in my
/var/adm/files.  People are complaining of loosing their
connections to
the mail server.

I've been able to google this error but haven't found fix for this
yet.
   NOt sure where to put the drop-priv option in the config files
either.

Any suggestions?

Var adm message:
Jul 10 08:54:29 mail2 dovecot: [ID 583609 mail.crit] imap(chen):
Fatal:
master: service(imap): child 20258 killed with signal 6 (core not
dumped
- set service imap { drop_priv_before_exec=yes })

Here is config output:

root@mail2:/userM/mail-services/dovecot/sbin# ./dovecot -n
# 2.2.13: /userM/mail-services/dovecot/etc/dovecot/dovecot.conf
# OS: SunOS 5.11 i86pc
auth_failure_delay = 5 secs
auth_mechanisms = plain login cram-md5
auth_worker_max_count = 300
base_dir = /userM/mail-services/dovecot/var/run/dovecot/
disable_plaintext_auth = no
hostname = mail2.engr.colostate.edu
managesieve_notify_capability = mailto
managesieve_sieve_capability = fileinto reject envelope
encoded-character vacation subaddress comparator-i;ascii-numeric
relational regex imap4flags copy include variables body enotify
environment mailbox date ihave duplicate
namespace inbox {
inbox = yes
location =
mailbox Drafts {
  special_use = \Drafts
}
mailbox Junk {
  special_use = \Junk
}
mailbox Sent {
  special_use = \Sent
}
mailbox "Sent Messages" {
  special_use = \Sent
}
mailbox Trash {
  special_use = \Trash
}
prefix =
}
passdb {
driver = pam
}
passdb {
driver = passwd
}
postmaster_address = c...@engr.colostate.edu
service auth {
unix_listener /var/lib/postfix/private/auth {
  mode = 0666
}
unix_listener auth-userdb {
  group = postfix
  mode = 0666
  user = postfix
}
user = root
}
service imap-login {
inet_listener imap {
  port = 143
}
inet_listener imaps {
  port = 993
  ssl = yes
}
}
service pop3-login {
inet_listener pop3 {
  port = 110
}
inet_listener pop3s {
  port = 995
  ssl = yes
}
}
ssl_cert = 







--
C. J. Keist

Re: Fatal: master: service(imap): child 20258 killed with signal 6 (core not dumped - set service imap { drop_priv_before_exec=yes })

2014-07-10 Thread CJ Keist
It looks like on the system that once we hit around 200 imap processes 
it stops there and no more imap processes can be created.  Is there a 
number of max imap processes in the config file somewhere.  By the way 
running on OmniOS:


SunOS mail2 5.11 omnios-6de5e81 i86pc i386 i86pc



On 7/10/14, 9:50 AM, CJ Keist wrote:

Thanks for the reply. I have seen threads about setting the
mail_max_userip_connections, I have set this to 5000 and still people
getting the exceeding connections errorl


root@mail2:/userM/mail-services/dovecot/sbin# ./dovecot -n
# 2.2.13: /userM/mail-services/dovecot/etc/dovecot/dovecot.conf
# OS: SunOS 5.11 i86pc
auth_failure_delay = 5 secs
auth_mechanisms = plain login cram-md5
auth_worker_max_count = 3000
base_dir = /userM/mail-services/dovecot/var/run/dovecot/
disable_plaintext_auth = no
hostname = mail2.engr.colostate.edu
managesieve_notify_capability = mailto
managesieve_sieve_capability = fileinto reject envelope
encoded-character vacation subaddress comparator-i;ascii-numeric
relational regex imap4flags copy include variables body enotify
environment mailbox date ihave duplicate
namespace inbox {
   inbox = yes
   location =
   mailbox Drafts {
 special_use = \Drafts
   }
   mailbox Junk {
 special_use = \Junk
   }
   mailbox Sent {
 special_use = \Sent
   }
   mailbox "Sent Messages" {
 special_use = \Sent
   }
   mailbox Trash {
 special_use = \Trash
   }
   prefix =
}
passdb {
   driver = pam
}
passdb {
   driver = passwd
}
postmaster_address = c...@engr.colostate.edu
service auth {
   unix_listener /var/lib/postfix/private/auth {
 mode = 0666
   }
   unix_listener auth-userdb {
 group = postfix
 mode = 0666
 user = postfix
   }
   user = root
}
service imap-login {
   inet_listener imap {
 port = 143
   }
   inet_listener imaps {
 port = 993
 ssl = yes
   }
}
service pop3-login {
   inet_listener pop3 {
 port = 110
   }
   inet_listener pop3s {
 port = 995
 ssl = yes
   }
}
ssl_cert = 


Am 10.07.2014 17:32, schrieb CJ Keist:

Another problem is people are getting error message from their
clients stating
they have exceeded their number of connections.


mail_max_userip_connections = 50

well, how much folders do the have

keep in mind that fpr IDLE you have one connection per user and folder
10 users with 10 folders behind the same NAT router are 100 connections
from the same IP


On 7/10/14, 9:09 AM, CJ Keist wrote:

Added info:  These errors seem to come from users using mbox format.


On 7/10/14, 9:04 AM, CJ Keist wrote:

All,
Just move our mail servers over to a new mail server running
postfix
2.11.1 and dovecot 2.2.13 and getting the subject line errors in my
/var/adm/files.  People are complaining of loosing their
connections to
the mail server.

I've been able to google this error but haven't found fix for this
yet.
   NOt sure where to put the drop-priv option in the config files
either.

Any suggestions?

Var adm message:
Jul 10 08:54:29 mail2 dovecot: [ID 583609 mail.crit] imap(chen):
Fatal:
master: service(imap): child 20258 killed with signal 6 (core not
dumped
- set service imap { drop_priv_before_exec=yes })

Here is config output:

root@mail2:/userM/mail-services/dovecot/sbin# ./dovecot -n
# 2.2.13: /userM/mail-services/dovecot/etc/dovecot/dovecot.conf
# OS: SunOS 5.11 i86pc
auth_failure_delay = 5 secs
auth_mechanisms = plain login cram-md5
auth_worker_max_count = 300
base_dir = /userM/mail-services/dovecot/var/run/dovecot/
disable_plaintext_auth = no
hostname = mail2.engr.colostate.edu
managesieve_notify_capability = mailto
managesieve_sieve_capability = fileinto reject envelope
encoded-character vacation subaddress comparator-i;ascii-numeric
relational regex imap4flags copy include variables body enotify
environment mailbox date ihave duplicate
namespace inbox {
inbox = yes
location =
mailbox Drafts {
  special_use = \Drafts
}
mailbox Junk {
  special_use = \Junk
}
mailbox Sent {
  special_use = \Sent
}
mailbox "Sent Messages" {
  special_use = \Sent
}
mailbox Trash {
  special_use = \Trash
}
prefix =
}
passdb {
driver = pam
}
passdb {
driver = passwd
}
postmaster_address = c...@engr.colostate.edu
service auth {
unix_listener /var/lib/postfix/private/auth {
  mode = 0666
}
unix_listener auth-userdb {
  group = postfix
  mode = 0666
  user = postfix
}
user = root
}
service imap-login {
inet_listener imap {
  port = 143
}
inet_listener imaps {
  port = 993
  ssl = yes
}
}
service pop3-login {
inet_listener pop3 {
  port = 110
}
inet_listener pop3s {
  port = 995
  ssl = yes
}
}
ssl_cert = 





--
C. J. Keist Email: cj.ke...@colostate.edu
Systems Group Manager   Solaris 10 OS (SAI)
Engineering Network ServicesPhone: 970-491-0630
College of Engineering, CSU F

Re: Fatal: master: service(imap): child 20258 killed with signal 6 (core not dumped - set service imap { drop_priv_before_exec=yes })

2014-07-10 Thread CJ Keist
Thanks for the reply. I have seen threads about setting the 
mail_max_userip_connections, I have set this to 5000 and still people 
getting the exceeding connections errorl



root@mail2:/userM/mail-services/dovecot/sbin# ./dovecot -n
# 2.2.13: /userM/mail-services/dovecot/etc/dovecot/dovecot.conf
# OS: SunOS 5.11 i86pc
auth_failure_delay = 5 secs
auth_mechanisms = plain login cram-md5
auth_worker_max_count = 3000
base_dir = /userM/mail-services/dovecot/var/run/dovecot/
disable_plaintext_auth = no
hostname = mail2.engr.colostate.edu
managesieve_notify_capability = mailto
managesieve_sieve_capability = fileinto reject envelope 
encoded-character vacation subaddress comparator-i;ascii-numeric 
relational regex imap4flags copy include variables body enotify 
environment mailbox date ihave duplicate

namespace inbox {
  inbox = yes
  location =
  mailbox Drafts {
special_use = \Drafts
  }
  mailbox Junk {
special_use = \Junk
  }
  mailbox Sent {
special_use = \Sent
  }
  mailbox "Sent Messages" {
special_use = \Sent
  }
  mailbox Trash {
special_use = \Trash
  }
  prefix =
}
passdb {
  driver = pam
}
passdb {
  driver = passwd
}
postmaster_address = c...@engr.colostate.edu
service auth {
  unix_listener /var/lib/postfix/private/auth {
mode = 0666
  }
  unix_listener auth-userdb {
group = postfix
mode = 0666
user = postfix
  }
  user = root
}
service imap-login {
  inet_listener imap {
port = 143
  }
  inet_listener imaps {
port = 993
ssl = yes
  }
}
service pop3-login {
  inet_listener pop3 {
port = 110
  }
  inet_listener pop3s {
port = 995
ssl = yes
  }
}
ssl_cert = 


Am 10.07.2014 17:32, schrieb CJ Keist:

Another problem is people are getting error message from their clients stating
they have exceeded their number of connections.


mail_max_userip_connections = 50

well, how much folders do the have

keep in mind that fpr IDLE you have one connection per user and folder
10 users with 10 folders behind the same NAT router are 100 connections
from the same IP


On 7/10/14, 9:09 AM, CJ Keist wrote:

Added info:  These errors seem to come from users using mbox format.


On 7/10/14, 9:04 AM, CJ Keist wrote:

All,
Just move our mail servers over to a new mail server running postfix
2.11.1 and dovecot 2.2.13 and getting the subject line errors in my
/var/adm/files.  People are complaining of loosing their connections to
the mail server.

I've been able to google this error but haven't found fix for this yet.
   NOt sure where to put the drop-priv option in the config files either.

Any suggestions?

Var adm message:
Jul 10 08:54:29 mail2 dovecot: [ID 583609 mail.crit] imap(chen): Fatal:
master: service(imap): child 20258 killed with signal 6 (core not dumped
- set service imap { drop_priv_before_exec=yes })

Here is config output:

root@mail2:/userM/mail-services/dovecot/sbin# ./dovecot -n
# 2.2.13: /userM/mail-services/dovecot/etc/dovecot/dovecot.conf
# OS: SunOS 5.11 i86pc
auth_failure_delay = 5 secs
auth_mechanisms = plain login cram-md5
auth_worker_max_count = 300
base_dir = /userM/mail-services/dovecot/var/run/dovecot/
disable_plaintext_auth = no
hostname = mail2.engr.colostate.edu
managesieve_notify_capability = mailto
managesieve_sieve_capability = fileinto reject envelope
encoded-character vacation subaddress comparator-i;ascii-numeric
relational regex imap4flags copy include variables body enotify
environment mailbox date ihave duplicate
namespace inbox {
inbox = yes
location =
mailbox Drafts {
  special_use = \Drafts
}
mailbox Junk {
  special_use = \Junk
}
mailbox Sent {
  special_use = \Sent
}
mailbox "Sent Messages" {
  special_use = \Sent
}
mailbox Trash {
  special_use = \Trash
}
prefix =
}
passdb {
driver = pam
}
passdb {
driver = passwd
}
postmaster_address = c...@engr.colostate.edu
service auth {
unix_listener /var/lib/postfix/private/auth {
  mode = 0666
}
unix_listener auth-userdb {
  group = postfix
  mode = 0666
  user = postfix
}
user = root
}
service imap-login {
inet_listener imap {
  port = 143
}
inet_listener imaps {
  port = 993
  ssl = yes
}
}
service pop3-login {
inet_listener pop3 {
  port = 110
}
inet_listener pop3s {
  port = 995
  ssl = yes
}
}
ssl_cert = 



--
C. J. Keist Email: cj.ke...@colostate.edu
Systems Group Manager   Solaris 10 OS (SAI)
Engineering Network ServicesPhone: 970-491-0630
College of Engineering, CSU Fax:   970-491-5569
Ft. Collins, CO 80523-1301

All I want is a chance to prove 'Money can't buy happiness'


Re: Fatal: master: service(imap): child 20258 killed with signal 6 (core not dumped - set service imap { drop_priv_before_exec=yes })

2014-07-10 Thread CJ Keist
Another problem is people are getting error message from their clients 
stating they have exceeded their number of connections.




On 7/10/14, 9:09 AM, CJ Keist wrote:

Added info:  These errors seem to come from users using mbox format.


On 7/10/14, 9:04 AM, CJ Keist wrote:

All,
   Just move our mail servers over to a new mail server running postfix
2.11.1 and dovecot 2.2.13 and getting the subject line errors in my
/var/adm/files.  People are complaining of loosing their connections to
the mail server.

I've been able to google this error but haven't found fix for this yet.
  NOt sure where to put the drop-priv option in the config files either.

Any suggestions?

Var adm message:
Jul 10 08:54:29 mail2 dovecot: [ID 583609 mail.crit] imap(chen): Fatal:
master: service(imap): child 20258 killed with signal 6 (core not dumped
- set service imap { drop_priv_before_exec=yes })

Here is config output:

root@mail2:/userM/mail-services/dovecot/sbin# ./dovecot -n
# 2.2.13: /userM/mail-services/dovecot/etc/dovecot/dovecot.conf
# OS: SunOS 5.11 i86pc
auth_failure_delay = 5 secs
auth_mechanisms = plain login cram-md5
auth_worker_max_count = 300
base_dir = /userM/mail-services/dovecot/var/run/dovecot/
disable_plaintext_auth = no
hostname = mail2.engr.colostate.edu
managesieve_notify_capability = mailto
managesieve_sieve_capability = fileinto reject envelope
encoded-character vacation subaddress comparator-i;ascii-numeric
relational regex imap4flags copy include variables body enotify
environment mailbox date ihave duplicate
namespace inbox {
   inbox = yes
   location =
   mailbox Drafts {
 special_use = \Drafts
   }
   mailbox Junk {
 special_use = \Junk
   }
   mailbox Sent {
 special_use = \Sent
   }
   mailbox "Sent Messages" {
 special_use = \Sent
   }
   mailbox Trash {
 special_use = \Trash
   }
   prefix =
}
passdb {
   driver = pam
}
passdb {
   driver = passwd
}
postmaster_address = c...@engr.colostate.edu
service auth {
   unix_listener /var/lib/postfix/private/auth {
 mode = 0666
   }
   unix_listener auth-userdb {
 group = postfix
 mode = 0666
 user = postfix
   }
   user = root
}
service imap-login {
   inet_listener imap {
 port = 143
   }
   inet_listener imaps {
 port = 993
 ssl = yes
   }
}
service pop3-login {
   inet_listener pop3 {
 port = 110
   }
   inet_listener pop3s {
 port = 995
 ssl = yes
   }
}
ssl_cert = 



--
C. J. Keist Email: cj.ke...@colostate.edu
Systems Group Manager   Solaris 10 OS (SAI)
Engineering Network ServicesPhone: 970-491-0630
College of Engineering, CSU Fax:   970-491-5569
Ft. Collins, CO 80523-1301

All I want is a chance to prove 'Money can't buy happiness'


Re: Fatal: master: service(imap): child 20258 killed with signal 6 (core not dumped - set service imap { drop_priv_before_exec=yes })

2014-07-10 Thread CJ Keist

Added info:  These errors seem to come from users using mbox format.


On 7/10/14, 9:04 AM, CJ Keist wrote:

All,
   Just move our mail servers over to a new mail server running postfix
2.11.1 and dovecot 2.2.13 and getting the subject line errors in my
/var/adm/files.  People are complaining of loosing their connections to
the mail server.

I've been able to google this error but haven't found fix for this yet.
  NOt sure where to put the drop-priv option in the config files either.

Any suggestions?

Var adm message:
Jul 10 08:54:29 mail2 dovecot: [ID 583609 mail.crit] imap(chen): Fatal:
master: service(imap): child 20258 killed with signal 6 (core not dumped
- set service imap { drop_priv_before_exec=yes })

Here is config output:

root@mail2:/userM/mail-services/dovecot/sbin# ./dovecot -n
# 2.2.13: /userM/mail-services/dovecot/etc/dovecot/dovecot.conf
# OS: SunOS 5.11 i86pc
auth_failure_delay = 5 secs
auth_mechanisms = plain login cram-md5
auth_worker_max_count = 300
base_dir = /userM/mail-services/dovecot/var/run/dovecot/
disable_plaintext_auth = no
hostname = mail2.engr.colostate.edu
managesieve_notify_capability = mailto
managesieve_sieve_capability = fileinto reject envelope
encoded-character vacation subaddress comparator-i;ascii-numeric
relational regex imap4flags copy include variables body enotify
environment mailbox date ihave duplicate
namespace inbox {
   inbox = yes
   location =
   mailbox Drafts {
 special_use = \Drafts
   }
   mailbox Junk {
 special_use = \Junk
   }
   mailbox Sent {
 special_use = \Sent
   }
   mailbox "Sent Messages" {
 special_use = \Sent
   }
   mailbox Trash {
 special_use = \Trash
   }
   prefix =
}
passdb {
   driver = pam
}
passdb {
   driver = passwd
}
postmaster_address = c...@engr.colostate.edu
service auth {
   unix_listener /var/lib/postfix/private/auth {
 mode = 0666
   }
   unix_listener auth-userdb {
 group = postfix
 mode = 0666
 user = postfix
   }
   user = root
}
service imap-login {
   inet_listener imap {
 port = 143
   }
   inet_listener imaps {
 port = 993
 ssl = yes
   }
}
service pop3-login {
   inet_listener pop3 {
 port = 110
   }
   inet_listener pop3s {
 port = 995
 ssl = yes
   }
}
ssl_cert = 

--
C. J. Keist Email: cj.ke...@colostate.edu
Systems Group Manager   Solaris 10 OS (SAI)
Engineering Network ServicesPhone: 970-491-0630
College of Engineering, CSU Fax:   970-491-5569
Ft. Collins, CO 80523-1301

All I want is a chance to prove 'Money can't buy happiness'


Fatal: master: service(imap): child 20258 killed with signal 6 (core not dumped - set service imap { drop_priv_before_exec=yes })

2014-07-10 Thread CJ Keist

All,
  Just move our mail servers over to a new mail server running postfix 
2.11.1 and dovecot 2.2.13 and getting the subject line errors in my 
/var/adm/files.  People are complaining of loosing their connections to 
the mail server.


I've been able to google this error but haven't found fix for this yet. 
 NOt sure where to put the drop-priv option in the config files either.


Any suggestions?

Var adm message:
Jul 10 08:54:29 mail2 dovecot: [ID 583609 mail.crit] imap(chen): Fatal: 
master: service(imap): child 20258 killed with signal 6 (core not dumped 
- set service imap { drop_priv_before_exec=yes })


Here is config output:

root@mail2:/userM/mail-services/dovecot/sbin# ./dovecot -n
# 2.2.13: /userM/mail-services/dovecot/etc/dovecot/dovecot.conf
# OS: SunOS 5.11 i86pc
auth_failure_delay = 5 secs
auth_mechanisms = plain login cram-md5
auth_worker_max_count = 300
base_dir = /userM/mail-services/dovecot/var/run/dovecot/
disable_plaintext_auth = no
hostname = mail2.engr.colostate.edu
managesieve_notify_capability = mailto
managesieve_sieve_capability = fileinto reject envelope 
encoded-character vacation subaddress comparator-i;ascii-numeric 
relational regex imap4flags copy include variables body enotify 
environment mailbox date ihave duplicate

namespace inbox {
  inbox = yes
  location =
  mailbox Drafts {
special_use = \Drafts
  }
  mailbox Junk {
special_use = \Junk
  }
  mailbox Sent {
special_use = \Sent
  }
  mailbox "Sent Messages" {
special_use = \Sent
  }
  mailbox Trash {
special_use = \Trash
  }
  prefix =
}
passdb {
  driver = pam
}
passdb {
  driver = passwd
}
postmaster_address = c...@engr.colostate.edu
service auth {
  unix_listener /var/lib/postfix/private/auth {
mode = 0666
  }
  unix_listener auth-userdb {
group = postfix
mode = 0666
user = postfix
  }
  user = root
}
service imap-login {
  inet_listener imap {
port = 143
  }
  inet_listener imaps {
port = 993
ssl = yes
  }
}
service pop3-login {
  inet_listener pop3 {
port = 110
  }
  inet_listener pop3s {
port = 995
ssl = yes
  }
}
ssl_cert = 

Re: [Dovecot] Maildir over NFS

2010-08-07 Thread CJ Keist

All,
Thanks for all the information.  I think I'm leaning towards 
locally attached fiber disk array.  Couple of advantages I see, one it 
will be faster than NFS, second it will allow us to separate user home 
directory disk quotas and email disk quotas. Something we have been 
wanting to do for awhile.


Again thanks for all the view points and experiences with Maildir over NFS.

On 8/7/10 4:06 AM, Stan Hoeppner wrote:

Noel Butler put forth on 8/6/2010 4:29 PM:

   

Actually you will not notice any difference. How do you think all the
big boys do it now :)  Granted some opted for the SAN approach over NAS,
but for mail, NAS is better way to go IMHO and plenty of large services,
ISP, corporations, and universities etc, all use NAS.
 

The protocol overhead of the NFS stack is such that one way latency is in the
1-50 millisecond range, depending on specific implementations and server load.
  The one way latency of a fibre channel packet is in the sub 100 microsecond
range and is fairly immune to system load.  The performance of fibre channel
is equal to local disk plus approximately one millisecond of additional
effective head seek time due to switch latency, SAN array controller latency,
and latency due to cable length.  A filesystem block served out of SAN array
controller cache returns to the kernel quicker than a block read from local
disk that is not in cache because the former suffers no mechanical latency.
Due to the complexity of the stack, NFS is far slower than either.

Those who would recommend NFS/NAS over fibre channel SAN have no experience
with fibre channel SANs.  I'm no fan of iSCSI SANs due to the reliance on
TCP/IP for transport, and the low performance due to stck processing.
However, using the same ethernet switches for both, iSCSI SAN arrays will also
outperform NFS/NAS boxen by a decent margin.

Regarding the OP's case, given the low cost of new hardware, specifically
locally attached RAID and the massive size and low cost of modern disks, I'd
recommend storing user mail on the new mail host.  It's faster and more cost
effective than both NFS/SAN.  Unless his current backup solution "requires"
user mail dirs to be on that NFS server for nightly backup, local disk is
definitely the way to go.  Four 300GB 15k SAS drives on a good PCIe RAID card
w/256-512MB cache in a RAID 10 configuration would yield ~350-400MB/s of real
filesystem bandwidth, seek throughput equivalent to a 2 disk stripe--about 600
random seeks/s, 600GB of usable space, ability to sustain two simultaneous
disk failures (assuming 1 failure per mirror pair), and cost effectiveness.

   


--
C. J. Keist Email: cj.ke...@colostate.edu
UNIX/Network ManagerPhone: 970-491-0630
Engineering Network ServicesFax:   970-491-5569
College of Engineering, CSU
Ft. Collins, CO 80523-1301

All I want is a chance to prove 'Money can't buy happiness'



[Dovecot] Maildir over NFS

2010-08-06 Thread CJ Keist
I'm working on bring up a new mail server to replace our current one.  
Our current mail server is running dovecot 1.1.16, with postfix using 
mbox format.  User inboxes are stored locally on the mail server and all 
other mail folders in users home directory under mail which is NFS 
mounted on the mail server.


For our new mail server I'm looking to switch to the Maildir format.  
Some years ago I remember reading that it was not recommended to run 
Maildir format over NFS.  Now I'm looking at several posts that seem to 
indicate that Maildir should run fine over NFS.  I'm a little concerned 
about running Maildir over NFS, especially from the howto conversion 
pages I read would move all messages over to the User ~/Maildir folder 
including the inbox.  So having every single mail transaction going over 
NFS doesn't seem the smart thing to do.


So question I have for the dovecot team, does running Maildir over NFS 
work well?  Or would you recommend that all user mail folders be stored 
locally on the mail server when using Maildir?


We have about 3400 users, doing about 30k mail deliveries daily.  Some 
users have 10's of thousands of mail messages in hundreds of mail folders.


Thanks...

--
C. J. Keist Email: cj.ke...@colostate.edu
UNIX/Network ManagerPhone: 970-491-0630
Engineering Network ServicesFax:   970-491-5569
College of Engineering, CSU
Ft. Collins, CO 80523-1301

All I want is a chance to prove 'Money can't buy happiness'



[Dovecot] Dovecot POP question

2009-08-31 Thread CJ Keist


Quick question,
   Have dovecot 1.1.16.  Does Dovecot's POP handle sub folders?


--
C. J. Keist Email: cj.ke...@colostate.edu
UNIX/Network ManagerPhone: 970-491-0630
Engineering Network ServicesFax:   970-491-5569
College of Engineering, CSU
Ft. Collins, CO 80523-1301

All I want is a chance to prove 'Money can't buy happiness'


Re: [Dovecot] lock files causing time outs with Thunderbird

2009-07-30 Thread CJ Keist


The two message were at the end of the Trash folder.

I used fuser to find the pids on the Trash and Trash.lock files. fuser 
reported no pid for the Trash.lock file. The the ptruss was run on the 
pid on the Trash file.


By synchronous writes I'm assuming on the nfs mount options?  No, they 
are async mounts.



Timo Sirainen wrote:

On Thu, 2009-07-30 at 10:07 -0600, CJ Keist wrote:

Okay,
I think I got a test that can recreate the .lock file staying around 
so long.  I have trash folder with about 3500 messages in it. I went in 
and deleted two messages from the Trash folder.


How close to the end of the mailbox did you delete the messages from?

  I then clicked back to 
my inbox.  There was a long pause where Thunderbird was saying " Closing 
folder"  Then another long pause as it said "Opening folder".  After 
about two minutes thunderbird looks to have stopped processing and 
displayed my inbox.  But the Trash.lock file stuck around for about 
another 5 minutes.
Ran ptruss on the pid that still had the Trash folder open. There 
was no pid for the Trash.lock file during this time.  


What do you mean by this? Trash.lock didn't have a PID in it, but you
found the PID anyway somehow?

It looks to be 
doing seeks, stats, reads and writes over and over again.  Attached is a 
partial listing of the ptruss command till the lock file went away.


It looks like you deleted some messages over 4 MB from the end of file,
and Dovecot just moves 4 MB data over the deleted one. It looks like
it's being done in pretty inefficient way though.. I guess I should some
day improve it, but that's probably going to be annoyingly difficult.

Anyway, if you look at where most of the time is spent, it's in the
pwrite64() calls. Many of them can take almost 0.1 seconds. Have you
enabled synchronous writes or something?


--
C. J. Keist Email: cj.ke...@colostate.edu
UNIX/Network ManagerPhone: 970-491-0630
Engineering Network ServicesFax:   970-491-5569
College of Engineering, CSU
Ft. Collins, CO 80523-1301

All I want is a chance to prove 'Money can't buy happiness'


Re: [Dovecot] lock files causing time outs with Thunderbird

2009-07-24 Thread CJ Keist


Yes, I'm talking about Trash.lock files, not seeing any errors in the 
log files related with lock files.


Yes, I am using dovecot deliver.  So does that mean I should not set 
mbox_very_dirty_syncs to yes?



Timo Sirainen wrote:

On Fri, 2009-07-24 at 15:55 -0600, CJ Keist wrote:
I have dovecot 1.1.16 running on Solaris 10.  We are seeing problem with 
lock files taking forever to be removed after opening a email folder 
like Trash with several thousand messages in them.  We use mbox format. 


You mean dotlock files (e.g. "Trash.lock")? Does Dovecot log anything?


Is there something I can do in the config file to speed things up?


Are you using Dovecot deliver? If not, mbox_very_dirty_syncs=yes should
speed things up with large mboxes.



--
C. J. Keist Email: cj.ke...@colostate.edu
UNIX/Network ManagerPhone: 970-491-0630
Engineering Network ServicesFax:   970-491-5569
College of Engineering, CSU
Ft. Collins, CO 80523-1301

All I want is a chance to prove 'Money can't buy happiness'


[Dovecot] lock files causing time outs with Thunderbird

2009-07-24 Thread CJ Keist


I have dovecot 1.1.16 running on Solaris 10.  We are seeing problem with 
lock files taking forever to be removed after opening a email folder 
like Trash with several thousand messages in them.  We use mbox format. 
All users inbox's are local to the mail server, and all other users mail 
folders are stored on a separate file server mounted via NFS.  I see no 
problems with the NFS mounts.  cd'ing into the mount points, listing 
files and viewing files a perform with now visible delays.


Is there something I can do in the config file to speed things up?


Here is the config file:

# 1.1.16: /userM/mail-services/dovecot/etc/dovecot.conf
Warning: fd limit 256 is lower than what Dovecot can use under full load 
(more than 3072). Either grow the limit or change 
login_max_processes_count and max_mail_processes settings

# OS: SunOS 5.10 sun4v
base_dir: /userM/mail-services/dovecot/var/run/dovecot/
protocols: imap imaps pop3 pop3s
ssl_cert_file: /userM/mail-services/dovecot/etc/ssl/dovecot.pem
ssl_key_file: /userM/mail-services/dovecot/etc/ssl/privkey.pem
ssl_parameters_regenerate: 0
ssl_cipher_list: MEDIUM:!LOW
disable_plaintext_auth: no
login_dir: /userM/mail-services/dovecot/var/run/dovecot/login
login_executable(default): 
/userM/mail-services/dovecot/libexec/dovecot/imap-login
login_executable(imap): 
/userM/mail-services/dovecot/libexec/dovecot/imap-login
login_executable(pop3): 
/userM/mail-services/dovecot/libexec/dovecot/pop3-login

login_greeting: Cyrus ready.
login_max_processes_count: 1024
max_mail_processes: 1024
mail_location: mbox:~/:INBOX=/userM/mail/%u
mail_debug: yes
mmap_disable: yes
mail_nfs_index: yes
mbox_write_locks: fcntl dotlock
mbox_dotlock_change_timeout: 60
mail_executable(default): /userM/mail-services/dovecot/libexec/dovecot/imap
mail_executable(imap): /userM/mail-services/dovecot/libexec/dovecot/imap
mail_executable(pop3): /userM/mail-services/dovecot/libexec/dovecot/pop3
mail_plugins(default): convert
mail_plugins(imap): convert
mail_plugins(pop3):
mail_plugin_dir(default): /userM/mail-services/dovecot/lib/dovecot/imap
mail_plugin_dir(imap): /userM/mail-services/dovecot/lib/dovecot/imap
mail_plugin_dir(pop3): /userM/mail-services/dovecot/lib/dovecot/pop3
auth default:
  mechanisms: plain login
  verbose: yes
  debug: yes
  worker_max_count: 1024
  worker_max_request_count: 2000
  passdb:
driver: pam
  passdb:
driver: passwd
args: blocking=yes
  userdb:
driver: passwd
args: blocking=yes
  socket:
type: listen
client:
  path: /var/lib/postfix/private/auth
  mode: 438
  user: postfix
  group: postfix
master:
  path: /userM/mail-services/dovecot/var/run/dovecot//auth-master
  mode: 384
plugin:
  convert_mail: Maildir:~/Maildir:INBOX=/userM/mail/%u



--
C. J. Keist Email: cj.ke...@colostate.edu
UNIX/Network ManagerPhone: 970-491-0630
Engineering Network ServicesFax:   970-491-5569
College of Engineering, CSU
Ft. Collins, CO 80523-1301

All I want is a chance to prove 'Money can't buy happiness'


[Dovecot] Sieve question

2009-07-07 Thread CJ Keist


If there is a separate sieve mailing list let me know. But have question 
if someone else has done this or not.


Right now I have web form people use to setup their vacation replies 
using Sieve (1.1.6).  The form alows them to set what they want their 
reply address to be, whether to send the reply once, weekly or 
bi-weekly.  I would like to setup another option to let them set the 
date in which to de-active the vacation replies automatically.  Right 
now they have to remember to log back into the form to turn off the 
vacation reply.

   Has anyone set something like this up?


--
C. J. Keist Email: cj.ke...@colostate.edu
UNIX/Network ManagerPhone: 970-491-0630
Engineering Network ServicesFax:   970-491-5569
College of Engineering, CSU
Ft. Collins, CO 80523-1301

All I want is a chance to prove 'Money can't buy happiness'


Re: [Dovecot] Dovecot-1.1.9 fails to work with Thunderbird

2009-02-02 Thread CJ Keist
I have quick question related to patches.  When you say this patch fixes 
something, is it related to just 1.1.9 or is it for any 1.1.x version of 
dovecot?



Timo Sirainen wrote:

On Mon, 2009-02-02 at 14:45 +0300, Lev Serebryakov wrote:

Hello, Timo.
You wrote 26 января 2009 г., 04:12:23:


On Sat, 2009-01-24 at 08:47 -0600, David Favor wrote:

Jan 24 06:34:29 net1 dovecot: uid specified multiple times for 
david-x...@coolsurf.com

Fixed: http://hg.dovecot.org/dovecot-1.1/rev/943339025578
And a related fix: http://hg.dovecot.org/dovecot-1.1/rev/69901064e657
I guess I'll have to get v1.1.10 out.

  1.1.10 from FreeBSD ports, old (1.1.8) config, nothing works with
virtual users, with "uid specified multiple times for " in log
files.


Non-plaintext authentication didn't work, fixed:
http://hg.dovecot.org/dovecot-1.1/rev/7ef5e6c32443



--
C. J. Keist Email: cj.ke...@colostate.edu
UNIX/Network ManagerPhone: 970-491-0630
Engineering Network ServicesFax:   970-491-5569
College of Engineering, CSU
Ft. Collins, CO 80523-1301

All I want is a chance to prove 'Money can't buy happiness'



smime.p7s
Description: S/MIME Cryptographic Signature


Re: [Dovecot] dovecot 1.1.8 compile error

2009-01-21 Thread CJ Keist

Thanks,
   Just got it to compile cleanly by adding --with-ssl=/opt/csw/ssl 
instead of using the Solaris GNU packages in /usr/sfw.



Timo Sirainen wrote:

On Wed, 2009-01-21 at 10:25 -0700, CJ Keist wrote:

Thanks,
Running autogen.sh I get:

% ./autogen.sh
configure.in:16: warning: macro `AM_ICONV' not found in library
configure.in:15: error: possibly undefined macro: AC_PROG_LIBTOOL
   If this token and others are legitimate, please use m4_pattern_allow.
   See the Autoconf documentation.
configure.in:16: error: possibly undefined macro: AM_ICONV
autoreconf: /opt/csw/bin/autoconf failed with exit status: 1

Then configure fails with:
checking for dlopen... yes
./configure: line 13370: syntax error near unexpected token `SSL,'
./configure: line 13370: `PKG_CHECK_MODULES(SSL, openssl)'


You'll need pkg-config package installed to be able to run autogen.sh
successfully.

I suppose instead of running autogen.sh you could also just run:

automake src/login-common/Makefile
./configure



--
C. J. Keist Email: cj.ke...@colostate.edu
UNIX/Network ManagerPhone: 970-491-0630
Engineering Network ServicesFax:   970-491-5569
College of Engineering, CSU
Ft. Collins, CO 80523-1301

All I want is a chance to prove 'Money can't buy happiness'


smime.p7s
Description: S/MIME Cryptographic Signature


Re: [Dovecot] dovecot 1.1.8 compile error

2009-01-21 Thread CJ Keist

Thanks,
   Running autogen.sh I get:

% ./autogen.sh
configure.in:16: warning: macro `AM_ICONV' not found in library
configure.in:15: error: possibly undefined macro: AC_PROG_LIBTOOL
  If this token and others are legitimate, please use m4_pattern_allow.
  See the Autoconf documentation.
configure.in:16: error: possibly undefined macro: AM_ICONV
autoreconf: /opt/csw/bin/autoconf failed with exit status: 1

Then configure fails with:
checking for dlopen... yes
./configure: line 13370: syntax error near unexpected token `SSL,'
./configure: line 13370: `PKG_CHECK_MODULES(SSL, openssl)'


Timo Sirainen wrote:

On Wed, 2009-01-21 at 09:55 -0700, CJ Keist wrote:
I'm trying to compile 1.1.8 with dovecot-1-1-989789b2afd8 patches 
applied on Solaris 10 sparc using gcc 2.95.3 and also tried version 
3.4.3.  This is error I'm getting:

..
ssl-proxy-openssl.c:85: `PKG_STATEDIR' undeclared (first use in this 
function)


This was added to Makefile.am. You'll need to run autogen.sh and
configure again to get Makefile regenerated from Makefile.am.



--
C. J. Keist Email: cj.ke...@colostate.edu
UNIX/Network ManagerPhone: 970-491-0630
Engineering Network ServicesFax:   970-491-5569
College of Engineering, CSU
Ft. Collins, CO 80523-1301

All I want is a chance to prove 'Money can't buy happiness'


smime.p7s
Description: S/MIME Cryptographic Signature


[Dovecot] dovecot 1.1.8 compile error

2009-01-21 Thread CJ Keist
I'm trying to compile 1.1.8 with dovecot-1-1-989789b2afd8 patches 
applied on Solaris 10 sparc using gcc 2.95.3 and also tried version 
3.4.3.  This is error I'm getting:


gcc -DHAVE_CONFIG_H -I. -I../..  -I../../src/lib  -I../../src/lib-auth 
-DPKG_RUNDIR=\""/userM/mail-services/dovecot/var/run/dovecot"\" 
-DSBINDIR=\""/userM/mail-services/dovecot/sbin"\"-g -O2 -Wall -W 
-Wmissing-prototypes -Wmissing-declarations -Wpointer-arith 
-Wchar-subscripts -Wformat=2 -Wbad-function-cast -I/usr/sfw/include -c 
ssl-proxy-openssl.c

In file included from ssl-proxy-openssl.c:21:
/usr/sfw/include/openssl/ssl.h:172: warning: ignoring pragma: "@(#)ssl.h 
   1.4 05/10/11 SMI

In file included from /usr/sfw/include/openssl/ssl3.h:120,
 from /usr/sfw/include/openssl/ssl.h:951,
 from ssl-proxy-openssl.c:21:
/usr/sfw/include/openssl/ssl.h:172: warning: ignoring pragma: "@(#)ssl.h 
   1.4 05/10/11 SMI

ssl-proxy-openssl.c: In function `ssl_params_corrupted':
ssl-proxy-openssl.c:85: `PKG_STATEDIR' undeclared (first use in this 
function)

ssl-proxy-openssl.c:85: (Each undeclared identifier is reported only once
ssl-proxy-openssl.c:85: for each function it appears in.)
ssl-proxy-openssl.c: In function `ssl_info_callback':
ssl-proxy-openssl.c:658: warning: passing arg 1 of `SSL_get_ex_data' 
discards qualifiers from pointer target type

*** Error code 1
make: Fatal error: Command failed for target `ssl-proxy-openssl.o'
Current working directory /userM/src/dovecot-1.1.8/src/login-common
*** Error code 1
The following command caused the error:
failcom='exit 1'; \
for f in x $MAKEFLAGS; do \
  case $f in \
*=* | --[!k]*);; \
*k*) failcom='fail=yes';; \
  esac; \
done; \
dot_seen=no; \
target=`echo all-recursive | sed s/-recursive//`; \
list='lib  lib-dict  lib-sql  lib-ntlm  lib-otp  lib-settings 
lib-charset  lib-mail  lib-imap  lib-index  lib-storage  lib-auth  auth 
 dict  master  login-common  imap-login  imap  pop3-login pop3  deliver 
 tests  util  plugins'; for subdir in $list; do \

  echo "Making $target in $subdir"; \
  if test "$subdir" = "."; then \
dot_seen=yes; \
local_target="$target-am"; \
  else \
local_target="$target"; \
  fi; \
  (cd $subdir && make  $local_target) \
  || eval $failcom; \
done; \
if test "$dot_seen" = "no"; then \
  make  "$target-am" || exit 1; \
fi; test -z "$fail"
make: Fatal error: Command failed for target `all-recursive'
Current working directory /userM/src/dovecot-1.1.8/src
*** Error code 1
The following command caused the error:
failcom='exit 1'; \
for f in x $MAKEFLAGS; do \
  case $f in \
*=* | --[!k]*);; \
*k*) failcom='fail=yes';; \
  esac; \
done; \
dot_seen=no; \
target=`echo all-recursive | sed s/-recursive//`; \
list='src  doc'; for subdir in $list; do \
  echo "Making $target in $subdir"; \
  if test "$subdir" = "."; then \
dot_seen=yes; \
local_target="$target-am"; \
  else \
local_target="$target"; \
  fi; \
  (cd $subdir && make  $local_target) \
  || eval $failcom; \
done; \
if test "$dot_seen" = "no"; then \
  make  "$target-am" || exit 1; \
fi; test -z "$fail"
make: Fatal error: Command failed for target `all-recursive'
Current working directory /userM/src/dovecot-1.1.8
*** Error code 1
make: Fatal error: Command failed for target `all'

Does anyone have work around for this on Solaris 10?


--
C. J. Keist Email: cj.ke...@colostate.edu
UNIX/Network ManagerPhone: 970-491-0630
Engineering Network ServicesFax:   970-491-5569
College of Engineering, CSU
Ft. Collins, CO 80523-1301

All I want is a chance to prove 'Money can't buy happiness'


smime.p7s
Description: S/MIME Cryptographic Signature


[Dovecot] POP3 auth failures

2008-10-29 Thread CJ Keist
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Have a strange problem with just POP3 users.  Their email clients will
fail every so often with the following:

Logging into POP Server, PASS [09:16:29 PM]
There has been an error transferring your mail.  I said  PASS  and then the POP server
([EMAIL PROTECTED]) said: ERR Authentication failed.

This example is from a Eudora client, but same things happen with
Thunderbird and Outlook.

Here are logs. This user has his client checking every 10 minutes.
First log entry here is last good one before it fails:

Oct 28 21:06:27 goku dovecot: [ID 107833 mail.info] auth(default):
client in: AUTH  1   PLAIN   service=pop3secured
lip=129.82.224.16   rip=129.82.224.206  lport=110
rport=3716  resp=Oct 28 21:06:27 goku dovecot: [ID 107833
mail.info] auth-worker(default): pam(us
er,129.82.224.206): lookup service=dovecotOct 28 21:06:27 goku dovecot:
[ID 107833 mail.info] auth-worker(default): pam(us
er,129.82.224.206): #1/1 style=1 msg=Password:Oct 28 21:06:27 goku
dovecot: [ID 107833 mail.info] auth(default): client out: O
K   1   user=user
Oct 28 21:06:27 goku dovecot: [ID 107833 mail.info] auth(default):
master in: REQUEST   387983  28091
Oct 28 21:06:27 goku dovecot: [ID 107833 mail.info]
auth-worker(default): passwd(user,129.82.224.206): lookup
Oct 28 21:06:27 goku dovecot: [ID 107833 mail.info] auth(default):
master out: USER 387983  usersystem_user=useruid=12550
 gid=32  home=/to
p/admin/ENS/people/user/home
Oct 28 21:06:27 goku dovecot: [ID 107833 mail.info] pop3-login: Login:
user=, method=PLAIN, rip=129.82.224.206, lip=129.82.224.16, TLS
Oct 28 21:06:27 goku dovecot: [ID 107833 mail.info] POP3(user):
Effective uid=12
550, gid=32

Everything went fine here, then the next auth attempt fails:

Oct 28 21:16:27 goku dovecot: [ID 107833 mail.info] auth(default):
client in: AUTH  1   PLAIN   service=pop3secured
lip=129.82.224.16   rip=129.82.224.206  lport=110
rport=3757  resp=Oct 28 21:16:27 goku dovecot: [ID 107833
mail.info] auth-worker(default): pam(user,129.82.224.206): lookup
service=dovecotOct 28 21:16:27 goku dovecot: [ID 107833 mail.info]
auth-worker(default): pam(user,129.82.224.206): #1/1 style=1
msg=Password:Oct 28 21:16:27 goku dovecot: [ID 107833 mail.error]
auth-worker(default): pam(user,129.82.224.206): pam_authenticate()
failed: No account present for user
Oct 28 21:16:27 goku dovecot: [ID 107833 mail.info]
auth-worker(default): passwd(user,129.82.224.206): lookup
Oct 28 21:16:27 goku dovecot: [ID 107833 mail.info]
auth-worker(default): passwd(user,129.82.224.206): Password mismatch

Running dovecot 1.1.3 on Solaris 10

goku % ./dovecot -n
# 1.1.3: /userM/mail-services/dovecot/etc/dovecot.conf
Warning: fd limit 256 is lower than what Dovecot can use under full load
(more than 3072). Either grow the limit or change
login_max_processes_count and max_mail_processes settings
base_dir: /userM/mail-services/dovecot/var/run/dovecot/
protocols: imap imaps pop3 pop3s
ssl_cert_file: /userM/mail-services/dovecot/etc/ssl/dovecot.pem
ssl_key_file: /userM/mail-services/dovecot/etc/ssl/privkey.pem
ssl_parameters_regenerate: 0
ssl_cipher_list: MEDIUM:!LOW
disable_plaintext_auth: no
login_dir: /userM/mail-services/dovecot/var/run/dovecot/login
login_executable(default):
/userM/mail-services/dovecot/libexec/dovecot/imap-login
login_executable(imap):
/userM/mail-services/dovecot/libexec/dovecot/imap-login
login_executable(pop3):
/userM/mail-services/dovecot/libexec/dovecot/pop3-login
login_greeting: Cyrus ready.
login_max_processes_count: 1024
max_mail_processes: 1024
mail_location: mbox:~/:INBOX=/userM/mail/%u
mail_debug: yes
mmap_disable: yes
mail_nfs_index: yes
mbox_write_locks: fcntl dotlock
mbox_dotlock_change_timeout: 60
mail_executable(default): /userM/mail-services/dovecot/libexec/dovecot/imap
mail_executable(imap): /userM/mail-services/dovecot/libexec/dovecot/imap
mail_executable(pop3): /userM/mail-services/dovecot/libexec/dovecot/pop3
mail_plugins(default): convert
mail_plugins(imap): convert
mail_plugins(pop3):
mail_plugin_dir(default): /userM/mail-services/dovecot/lib/dovecot/imap
mail_plugin_dir(imap): /userM/mail-services/dovecot/lib/dovecot/imap
mail_plugin_dir(pop3): /userM/mail-services/dovecot/lib/dovecot/pop3
auth default:
  mechanisms: plain login
  verbose: yes
  debug: yes
  worker_max_count: 1024
  worker_max_request_count: 2
  passdb:
driver: pam
  passdb:
driver: passwd
args: blocking=yes
  userdb:
driver: passwd
args: blocking=yes
  socket:
type: listen
client:
  path: /var/lib/postfix/private/auth
  mode: 438
  user: postfix
  group: postfix
master:
  path: /userM/mail-services/dovecot/var/run/dovecot//auth-master
  mode: 384
plugin:
  convert_mail: Maildir:~/Maildir:INBOX=/userM/mail/%u

- --
C. J. Keist Email: [EMAIL PROTECTED]
UNIX/Network ManagerPhone: 970-491-0630
Engineer

Re: [Dovecot] Cyrus MailDir to Dovecot mbox

2008-10-09 Thread CJ Keist
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Charles,
   It's to do with how our current file services are setup and a
personal preference and familiarity with the mbox format.  Right now
other than users inboxes, all mail folders are stored in the users home
directory on central file server which the mail server mounts via NFS.
  Maildir is a big change from mbox and would give a confusing view to
users that decided to look into their Maildir folder.  I don't even want
to think about what they might try mucking around with in there ;).
mbox format is just cleaner and users can easily see that these are the
same folders they see on their mail client.
   But if I ever get the money to add enough local disk storage on our
mail server and can move all users mail folders to the mail server, is
when I would probably think about switching over to the Maildir format.
 This way the users only way to access their Maildir folder would be
through a mail client.


Charles Marcus wrote:
> On 10/9/2008, CJ Keist ([EMAIL PROTECTED]) wrote:
>> The built in convert plugin
>> with dovecot was not able to do it.  I believe due to the fact that this
>> guy has folders with messages and then sub-folders with more messages.
>> I'm migrating to mbox format which doesn't allow that feature.  The
>> convert-tool showed me this and it was easy fix to just move all
>> sub-folders  up to a flat directory structure.  Then the convert-tool
>> ripped right through all the messages.
> 
> So, I'm curious why you didn't just migrate to maildir format - sounds
> like it would have been much easier...
> 

- --
C. J. Keist Email: [EMAIL PROTECTED]
UNIX/Network ManagerPhone: 970-491-0630
Engineering Network ServicesFax:   970-491-5569
College of Engineering, CSU
Ft. Collins, CO 80523-1301

All I want is a chance to prove 'Money can't buy happiness'
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.5 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFI7ixiA29OFr7C6jcRAl15AJ98vUKIeIlMHw0108xJ0JtW55S1QgCgppwy
DB0RY6UcqhkE/rUXXeDmdGw=
=asZV
-END PGP SIGNATURE-


Re: [Dovecot] Cyrus MailDir to Dovecot mbox

2008-10-09 Thread CJ Keist
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Timo,
   Thanks again for the tip on the convert-tool.  That did work to
convert this guys 121K worth of messages.  The built in convert plugin
with dovecot was not able to do it.  I believe due to the fact that this
guy has folders with messages and then sub-folders with more messages.
I'm migrating to mbox format which doesn't allow that feature.  The
convert-tool showed me this and it was easy fix to just move all
sub-folders  up to a flat directory structure.  Then the convert-tool
ripped right through all the messages.


Timo Sirainen wrote:
> On Tue, 2008-10-07 at 15:02 -0600, CJ Keist wrote:
>> -BEGIN PGP SIGNED MESSAGE-
>> Hash: SHA1
>>
>> Timo,
>> Thanks.  The cyrus2dovecot looks to have worked.  So if I understand
>> the process I now just move the MailDir folder that was created to the
>> users home directory on our mail server.  I will try the dovecot convert
>> plugin.  Just make sure I'm doing this correct in the config file:
> 
> If you do it only once, you don't need to use convert plugin. There's
> also a convert-tool binary included.
> 
>> mail_location = mbox:~/:INBOX=/userM/mail/%u
>> protocol imap {
>>   mail_plugins = convert
>> }
>> plugin {
>>   convert_mail = Maildir:~/Maildir:INBOX=/userM/mail/%u
>> }
>>
>> Is this correct? The example on the website only shows how to convert
>> from mbox to MailDir.
> 
> That looks also correct.
> 

- --
C. J. Keist Email: [EMAIL PROTECTED]
UNIX/Network ManagerPhone: 970-491-0630
Engineering Network ServicesFax:   970-491-5569
College of Engineering, CSU
Ft. Collins, CO 80523-1301

All I want is a chance to prove 'Money can't buy happiness'
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.5 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFI7haeA29OFr7C6jcRAkGIAJ9WhyE0Q20Gwymb7C9OcAI6ECGOSgCgm0TO
SPGT7Li6m5m6neusNvpEtqA=
=kCOX
-END PGP SIGNATURE-


Re: [Dovecot] Cyrus MailDir to Dovecot mbox

2008-10-07 Thread CJ Keist
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Timo,
Thanks.  The cyrus2dovecot looks to have worked.  So if I understand
the process I now just move the MailDir folder that was created to the
users home directory on our mail server.  I will try the dovecot convert
plugin.  Just make sure I'm doing this correct in the config file:

mail_location = mbox:~/:INBOX=/userM/mail/%u
protocol imap {
  mail_plugins = convert
}
plugin {
  convert_mail = Maildir:~/Maildir:INBOX=/userM/mail/%u
}

Is this correct? The example on the website only shows how to convert
from mbox to MailDir.


Timo Sirainen wrote:
> On Oct 7, 2008, at 6:04 PM, CJ Keist wrote:
> 
>> Anyone out there know of a tool that can convert a Cyrus MailDir format
>> to Dovecot mbox?  I have a user that I need to move over from a mail
>> server running cyrus using MailDir format.  At first I told him to setup
>> second account with Thunderbird to our mail server and then use
>> Thunderbird to move the messages over.  But he has over 100K messages so
>> not as easy to do.
>>   Is there a tool out there for doing this sort of conversion?  I tried
>> to simply cat all the messages into a single file, but just got a "Not
>> valid mbox format" when I tried to read the mail folder.
> 
> You could use either cyrus2dovecot or cyrus2courier tools to convert to
> Maildir format (http://wiki.dovecot.org/Migration/Cyrus). From there use
> some maildir to mbox conversion tool (e.g. Dovecot's convert-tool).
> 
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.5 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFI685lA29OFr7C6jcRAj5TAJ4pFrKhGVhLA/87U31oiEMNWW3jSQCfVfGM
JhEJPPZTdgwpX/0QzpyOZug=
=VpaM
-END PGP SIGNATURE-


[Dovecot] Cyrus MailDir to Dovecot mbox

2008-10-07 Thread CJ Keist
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Anyone out there know of a tool that can convert a Cyrus MailDir format
to Dovecot mbox?  I have a user that I need to move over from a mail
server running cyrus using MailDir format.  At first I told him to setup
second account with Thunderbird to our mail server and then use
Thunderbird to move the messages over.  But he has over 100K messages so
not as easy to do.
   Is there a tool out there for doing this sort of conversion?  I tried
to simply cat all the messages into a single file, but just got a "Not
valid mbox format" when I tried to read the mail folder.

- --
C. J. Keist Email: [EMAIL PROTECTED]
UNIX/Network ManagerPhone: 970-491-0630
Engineering Network ServicesFax:   970-491-5569
College of Engineering, CSU
Ft. Collins, CO 80523-1301

All I want is a chance to prove 'Money can't buy happiness'
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.5 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFI63pnA29OFr7C6jcRAkBSAKCU61WhK1R2FwZEE4B0/3kFzEeu6ACeLgw+
4qabCHV1qe7YInhcnqsdKQk=
=rjlB
-END PGP SIGNATURE-


Re: [Dovecot] Dlopen errors

2008-10-06 Thread CJ Keist
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Timo,
Thank you for updating the MainConfig web page.

This is what I decided to put in for that value.  Currently dovecot runs
about 4 days before it starts to fail authenticating users.  I did a
quick count on how many times auth-worker is called to authenticate a
user, I'm averaging about 50K times a day (M-F).  So I'm putting in
20,000 for the "auth_worker_max_request_count" so that it only restarts
the dovecot-auth process 2 or 3 times each day.
   If anyone else has better suggestions for this value, I'd would love
to hear it.


Timo Sirainen wrote:
> On Mon, 2008-10-06 at 08:53 -0600, CJ Keist wrote:
> Timo,
>Thanks.  Is there a good rule of thumb of what value I should put in
> for this?  
> 
>> The lower it is, the more CPU Dovecot uses by restarting the
>> dovecot-auth processes. But if it's too large, you'll get these
>> failures. So I don't know, try 1000?
> 
> The http://wiki.dovecot.org/MainConfig doesn't talk about
> this config parameter.
> 
>> That's generated from dovecot-example.conf. Looks like I forgot to
>> update it to be generated from v1.1, changed now. Wonder how I'd
>> remember to do the same thing after v1.2.0 is released. :)
> 
> Timo Sirainen wrote:
>>>> On Oct 4, 2008, at 6:53 PM, CJ Keist wrote:
>>>>
>>>>> auth-worker(default): pam(KVogel22,74.125.78.25): pam_authenticate()
>>>>> failed: Dlopen failure
>>>> Set this to non-zero:
>>>>
>>>> # Number of auth requests to handle before destroying the process. This may
>>>> # be useful if PAM plugins leak memory.
>>>> #auth_worker_max_request_count = 0
>>>>

- --
C. J. Keist Email: [EMAIL PROTECTED]
UNIX/Network ManagerPhone: 970-491-0630
Engineering Network ServicesFax:   970-491-5569
College of Engineering, CSU
Ft. Collins, CO 80523-1301

All I want is a chance to prove 'Money can't buy happiness'
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.5 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFI6kB2A29OFr7C6jcRAnPnAKCCfc2cC1f8/rJBoeQNRcF7WvzPBACg0gX5
vFMPu2Fk57E1DS39ouDgDVw=
=5U6P
-END PGP SIGNATURE-


Re: [Dovecot] Dlopen errors

2008-10-06 Thread CJ Keist
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Timo,
   Thanks.  Is there a good rule of thumb of what value I should put in
for this?  The http://wiki.dovecot.org/MainConfig doesn't talk about
this config parameter.


Timo Sirainen wrote:
> On Oct 4, 2008, at 6:53 PM, CJ Keist wrote:
> 
>> auth-worker(default): pam(KVogel22,74.125.78.25): pam_authenticate()
>> failed: Dlopen failure
> 
> Set this to non-zero:
> 
> # Number of auth requests to handle before destroying the process. This may
> # be useful if PAM plugins leak memory.
> #auth_worker_max_request_count = 0
> 

- --
C. J. Keist Email: [EMAIL PROTECTED]
UNIX/Network ManagerPhone: 970-491-0630
Engineering Network ServicesFax:   970-491-5569
College of Engineering, CSU
Ft. Collins, CO 80523-1301

All I want is a chance to prove 'Money can't buy happiness'
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.5 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFI6iZ0A29OFr7C6jcRApjXAJ9nQcMME2VttCPZBKDb+xeuAZSS5gCdGP6s
8SePZ/SSK62qjgzYd8hbhzE=
=viEr
-END PGP SIGNATURE-


[Dovecot] Dlopen errors

2008-10-04 Thread CJ Keist
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Running Dovecot 1.1.3 and after dovecot has been running for awhile it
will just stop authenticating.  Only fix is to stop and restart dovecot.
 Here is the errors in the logs:

ct  4 09:34:32 goku dovecot: [ID 107833 mail.info] auth-worker(default):
pam(KVogel22,74.125.78.25): lookup service=dovecot
Oct  4 09:34:32 goku dovecot: [ID 107833 mail.error]
auth-worker(default): pam(KVogel22,74.125.78.25): pam_authenticate()
failed: Dlopen failure
Oct  4 09:34:32 goku dovecot: [ID 107833 mail.info]
auth-worker(default): passwd(KVogel22,74.125.78.25): lookup
Oct  4 09:34:32 goku dovecot: [ID 107833 mail.info]
auth-worker(default): passwd(KVogel22,74.125.78.25): Password mismatch


./dovecot -n
# 1.1.3: /userM/mail-services/dovecot/etc/dovecot.conf
Warning: fd limit 256 is lower than what Dovecot can use under full load
(more than 3072). Either grow the limit or change
login_max_processes_count and max_mail_processes settings
base_dir: /userM/mail-services/dovecot/var/run/dovecot/
protocols: imap imaps pop3 pop3s
ssl_cert_file: /userM/mail-services/dovecot/etc/ssl/dovecot.pem
ssl_key_file: /userM/mail-services/dovecot/etc/ssl/privkey.pem
ssl_parameters_regenerate: 0
ssl_cipher_list: MEDIUM:!LOW
disable_plaintext_auth: no
login_dir: /userM/mail-services/dovecot/var/run/dovecot/login
login_executable(default):
/userM/mail-services/dovecot/libexec/dovecot/imap-login
login_executable(imap):
/userM/mail-services/dovecot/libexec/dovecot/imap-login
login_executable(pop3):
/userM/mail-services/dovecot/libexec/dovecot/pop3-login
login_greeting: Cyrus ready.
login_max_processes_count: 1024
max_mail_processes: 1024
mail_location: mbox:~/:INBOX=/userM/mail/%u
mail_debug: yes
mmap_disable: yes
mail_nfs_index: yes
mbox_write_locks: fcntl dotlock
mbox_dotlock_change_timeout: 60
mail_executable(default): /userM/mail-services/dovecot/libexec/dovecot/imap
mail_executable(imap): /userM/mail-services/dovecot/libexec/dovecot/imap
mail_executable(pop3): /userM/mail-services/dovecot/libexec/dovecot/pop3
mail_plugin_dir(default): /userM/mail-services/dovecot/lib/dovecot/imap
mail_plugin_dir(imap): /userM/mail-services/dovecot/lib/dovecot/imap
mail_plugin_dir(pop3): /userM/mail-services/dovecot/lib/dovecot/pop3
auth default:
  mechanisms: plain login
  verbose: yes
  debug: yes
  worker_max_count: 1024
  passdb:
driver: pam
  passdb:
driver: passwd
args: blocking=yes
  userdb:
driver: passwd
args: blocking=yes
  socket:
type: listen
client:
  path: /var/lib/postfix/private/auth
  mode: 438
  user: postfix
  group: postfix
master:
  path: /userM/mail-services/dovecot/var/run/dovecot//auth-master
  mode: 384

- --
C. J. Keist Email: [EMAIL PROTECTED]
UNIX/Network ManagerPhone: 970-491-0630
Engineering Network ServicesFax:   970-491-5569
College of Engineering, CSU
Ft. Collins, CO 80523-1301

All I want is a chance to prove 'Money can't buy happiness'
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.5 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFI55GTA29OFr7C6jcRAl6pAKCeGIUZYrJFlPSLdjjlb6ytN0mZXwCg2NUg
5wQl6r89l/sjo2mdbwPa+DQ=
=4p14
-END PGP SIGNATURE-


[Dovecot] Dovecot 1.1.3 upgrade

2008-09-24 Thread CJ Keist
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

I planning to upgrade from 1.1.2 dovecot to 1.1.3, that is if most
people feel the 1.1.3 is more stable now than 1.1.2?  I've downloaded
the code and been going through and applying all the changes listed at
the URL below:

feed://hg.dovecot.org/dovecot-1.1/rss-log

I gotten all of the applied except for the AIX one, I'm running on
solaris.  The last patch I'm not able to figure out:

http://hg.dovecot.org/dovecot-1.1/rev/04fdaa2f831e

I'm able to apply the fist patch in the file but the second doesn't look
anything like I have in the file.  Here is what my file looks like
beginning at line 237 in src/lib-mail/message-address.c

   /* from now on don't return -1 even if there are problems, so hat
   the caller knows this is a group */
ctx->parser.data++;
(void)rfc822_skip_lwsp(&ctx->parser);

ctx->addr.mailbox = p_strdup(ctx->pool, str_c(ctx->str));
add_address(ctx);

if (parse_mailbox_list(ctx) > 0) {
if (*ctx->parser.data == ';') {
ctx->parser.data++;
(void)rfc822_skip_lwsp(&ctx->parser);
}
}

add_address(ctx);
return 1;
}

Can you show me how this section of the code should look like?

Thanks...

- --
C. J. Keist Email: [EMAIL PROTECTED]
UNIX/Network ManagerPhone: 970-491-0630
Engineering Network ServicesFax:   970-491-5569
College of Engineering, CSU
Ft. Collins, CO 80523-1301

All I want is a chance to prove 'Money can't buy happiness'
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.5 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFI2ofAA29OFr7C6jcRAgPXAKCOtp5SZcH2IQjF3pVNUCY7zItiXwCePqVT
zEWaQplUqlxVjOrKWMO1vqM=
=hGGf
-END PGP SIGNATURE-


Re: [Dovecot] Dovecot 1.1.2, index_mailbox_set_recent_seq crash again

2008-09-02 Thread CJ Keist
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Looks like I'm still getting some errors:

Sep  2 10:42:03 goku dovecot: [ID 107833 mail.crit] Panic:
IMAP(brickner): file index-mail.c: line 1091 (index_mail_close):
assertion failed: (!mail->data.destroying_stream)


Is this same bug?


Timo Sirainen wrote:
> The bug was completely elsewhere than I thought. I was just about to
> send a debug patch for some of you to test, but immediately after that I
> managed to reproduce it myself. :) So this should finally get rid of the
> problem:
> 
> http://hg.dovecot.org/dovecot-1.1/rev/8cc0eaec7d0f

- --
C. J. Keist Email: [EMAIL PROTECTED]
UNIX/Network ManagerPhone: 970-491-0630
Engineering Network ServicesFax:   970-491-5569
College of Engineering, CSU
Ft. Collins, CO 80523-1301

All I want is a chance to prove 'Money can't buy happiness'
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.5 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFIvYqfA29OFr7C6jcRAmBKAKDGw2MPwADyBHOBHt8RqJkexgbeGQCgtn2u
d/NpW+mO95zjGkp+z0ISHa0=
=S+56
-END PGP SIGNATURE-


Re: [Dovecot] Dovecot 1.1.2, index_mailbox_set_recent_seq crash again

2008-08-29 Thread CJ Keist
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Timo,
24hrs, and no errors so far.  Thanks so much for the fix!!!


Timo Sirainen wrote:
> The bug was completely elsewhere than I thought. I was just about to
> send a debug patch for some of you to test, but immediately after that I
> managed to reproduce it myself. :) So this should finally get rid of the
> problem:
> 
> http://hg.dovecot.org/dovecot-1.1/rev/8cc0eaec7d0f

- --
C. J. Keist Email: [EMAIL PROTECTED]
UNIX/Network ManagerPhone: 970-491-0630
Engineering Network ServicesFax:   970-491-5569
College of Engineering, CSU
Ft. Collins, CO 80523-1301

All I want is a chance to prove 'Money can't buy happiness'
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.5 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFIuBuHA29OFr7C6jcRAuV3AJ4kuM+4MeXvIUZEKN3e6maOYiE9MwCfQLED
NitHYB3CtMYTwc0+9kkBLKY=
=okcW
-END PGP SIGNATURE-


Re: [Dovecot] vacation replies

2008-08-26 Thread CJ Keist
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Disregard this.

The user had a type-o in his email address for the domainB part!!

Sorry for the noise.


CJ Keist wrote:
> Hello,
>Another wrinkle with vacation replies. I have user forwarding their
> mail from one domain to our mail server with the vacation reply set.
> Here is the dovecot script file:
> 
> require ["fileinto", "vacation"];
> 
> # BEGIN VACATION
> vacation
> :days 30
> :from "[EMAIL PROTECTED]"
> :addresses ["[EMAIL PROTECTED]", "[EMAIL PROTECTED]"]
> "** OUT OF THE OFFICE ***
> 
> I am on research cruise and will be out of office till Sept. 8th.
> I will respond to your email when I return. If you need to
> contact me before then, please send short (<10kB) email to
> [EMAIL PROTECTED]  This email is sent by automated responder.
> 
> Dr. Joe
> 
> *";
> 
> domainA would be my server with dovecot installed. Sending to
> [EMAIL PROTECTED] works fine and the vacation reply is sent. But if I send to
> [EMAIL PROTECTED] there is no vacation reply sent.  It doesn't even create the
> .dovecot.lda-dupes file.
> The log files shows that it is running the sieve script but nothing
> else.  I thought the addresses line allowed you to state that these
> addresses are good source email addresses to send the reply to.
> 
> Running dovecot 1.1.2 with Sieve 1.1.5
> 
> 

- --
C. J. Keist Email: [EMAIL PROTECTED]
UNIX/Network ManagerPhone: 970-491-0630
Engineering Network ServicesFax:   970-491-5569
College of Engineering, CSU
Ft. Collins, CO 80523-1301

All I want is a chance to prove 'Money can't buy happiness'
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.5 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFItEozA29OFr7C6jcRAgo4AJwMQxPJIrNzOCzGFxraWYmsRdOwkACfVOVp
rSBsJ08x4fL9aIUV5zNiBQ4=
=gulT
-END PGP SIGNATURE-


[Dovecot] vacation replies

2008-08-26 Thread CJ Keist
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hello,
   Another wrinkle with vacation replies. I have user forwarding their
mail from one domain to our mail server with the vacation reply set.
Here is the dovecot script file:

require ["fileinto", "vacation"];

# BEGIN VACATION
vacation
:days 30
:from "[EMAIL PROTECTED]"
:addresses ["[EMAIL PROTECTED]", "[EMAIL PROTECTED]"]
"** OUT OF THE OFFICE ***

I am on research cruise and will be out of office till Sept. 8th.
I will respond to your email when I return. If you need to
contact me before then, please send short (<10kB) email to
[EMAIL PROTECTED]  This email is sent by automated responder.

Dr. Joe

*";

domainA would be my server with dovecot installed. Sending to
[EMAIL PROTECTED] works fine and the vacation reply is sent. But if I send to
[EMAIL PROTECTED] there is no vacation reply sent.  It doesn't even create the
.dovecot.lda-dupes file.
The log files shows that it is running the sieve script but nothing
else.  I thought the addresses line allowed you to state that these
addresses are good source email addresses to send the reply to.

Running dovecot 1.1.2 with Sieve 1.1.5


- --
C. J. Keist Email: [EMAIL PROTECTED]
UNIX/Network ManagerPhone: 970-491-0630
Engineering Network ServicesFax:   970-491-5569
College of Engineering, CSU
Ft. Collins, CO 80523-1301

All I want is a chance to prove 'Money can't buy happiness'
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.5 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFItElZA29OFr7C6jcRAtFhAJ9RQHVihxBBG71A6aaYPmCSYj6KHACfVchs
3NBx0Br0YnIO0uhjbss+/xc=
=ZCSO
-END PGP SIGNATURE-


Re: [Dovecot] Dovecot 1.1.2

2008-08-25 Thread CJ Keist
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Lauri,
   This is a known bug. You can search the dovecot mailing list for
"assertion".  I'm running on Solaris 10 and see the same errors.  So far
it doesn't look to be causing my users any problems.  I also did apply
the patch:


http://hg.dovecot.org/dovecot-1.1/rev/d674c05d725d


Lauri Jesmin wrote:
> Hello, 
> 
> I upgraded dovecot to 1.1.2 this weekend and i get those errors: 
> grep dovecot /var/log/net/maillog |grep Panic | cut -d " " -f 11-100|
> sort | uniq -c | sort -rn
>7547 file index-sync.c: line 39: assertion failed:
> (seq_range_exists(&ibox->recent_flags, uid))
>  89 file index-mail.c: line 1091: assertion failed: (!
> mail->data.destroying_stream)
>  18 file mbox-sync-rewrite.c: line 590: assertion failed:
> (mails[idx].from_offset == start_offset)
>   5 file ostream-file.c: line 533: assertion failed: ((size_t)ret ==
> total_size || !fstream->file)
>   5 file mbox-lock.c: line 675: assertion failed: (lock_type ==
> F_RDLCK || mbox->mbox_lock_type != F_RDLCK)
>   1 file message-parser.c: line 684: assertion failed:
> (ctx->part->physical_pos >= ctx->input->v_offset)
> 
> 
> My setup is this: 
> 3 servers, all Solaris, running dovecot, share home directiories via
> NFS, mbox format mailboxes in home directories. Indexes are separate in
> every server, not shared via NFS. About 20 000 users total.
> 
> When old indexes (1.0.15) were present, mailboxes with UID validity
> problems did not fix themselves, but after i removed index directories
> in all machines, seems like it started to repair uid validity problems.
> The first panic seems to be tied to UID validity problems.
> 
> Some locking problems may be, because i renamed index directory and
> created new while dovecot was running. 
> 

- --
C. J. Keist Email: [EMAIL PROTECTED]
UNIX/Network ManagerPhone: 970-491-0630
Engineering Network ServicesFax:   970-491-5569
College of Engineering, CSU
Ft. Collins, CO 80523-1301

All I want is a chance to prove 'Money can't buy happiness'
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.5 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFIsuUGA29OFr7C6jcRAsDEAKCk62HGyMsVeJvqNmgzCkLml2Qo9wCfZJES
OAUleDB2+nFRT2XLSj8YdKM=
=hoCU
-END PGP SIGNATURE-


Re: [Dovecot] assertion failed

2008-08-22 Thread CJ Keist
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Spoke too soon,
   I think I have a way to reproduce the error.  Here are the steps:

1. Exit out of thunderbird
2. delete mail/.imap folder
3. Restart thunderbird
4. delete a message ( I have setting so that message are moved to Trash
when deleted)

At that point I get the assertion error in the log files.  I'm three for
three so far doing this way.  Though this could be normal for first time
creating the index files in .imap?



Timo Sirainen wrote:
> On Thu, 2008-08-21 at 16:27 -0600, CJ Keist wrote:
>> I haven't heard anything on this bug.  Is this a bug?  I'm using dovecot 
>> 1.1.2 with the following patch applied:
>>
>> http://hg.dovecot.org/dovecot-1.1/rev/d674c05d725d
>>
>> Another section from my logs. I know the backtrace is just numbers, let 
>> me know how to compile to get more useful information if you need it. 
>> So far no one is beating down my door, so I don't think users are seeing 
>> any ill effects.  But I would sleep better knowing why it's happening.
>>
>> Aug 21 16:19:17 goku dovecot: [ID 107833 mail.crit] Panic: IMAP(rhjohn): 
>> file index-sync.c: line 39 (index_mailbox_set_recent_uid): assertion 
> 
> Yes, it's a bug. Can you reproduce it in any way? v1.1.2 was supposed to
> fix this for some people, not cause it to happen more often. You can
> always just comment out that line, it won't really break anything.
> 

- --
C. J. Keist Email: [EMAIL PROTECTED]
UNIX/Network ManagerPhone: 970-491-0630
Engineering Network ServicesFax:   970-491-5569
College of Engineering, CSU
Ft. Collins, CO 80523-1301

All I want is a chance to prove 'Money can't buy happiness'
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.5 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFIrtoDA29OFr7C6jcRAoBBAKDhPqk7Q/OVlILXoWk+KoY98S5HLgCgwXSZ
71QdwvwxtpDJEb5J49OEu7Y=
=/AlA
-END PGP SIGNATURE-


Re: [Dovecot] assertion failed

2008-08-22 Thread CJ Keist
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Timo,
   From other posts it seems to be when you are moving message.  I have
tried and cannot get it to happen with my account. I tried with
Thunderbird, SquirrellMail, and Mac Mail.  Out of 620K of log file lines
the error only occurred 81 times yesterday.
   I will keep an eye on it, and try to find a user that I know I can
work with that is getting the error.


Timo Sirainen wrote:
> On Thu, 2008-08-21 at 16:27 -0600, CJ Keist wrote:
>> I haven't heard anything on this bug.  Is this a bug?  I'm using dovecot 
>> 1.1.2 with the following patch applied:
>>
>> http://hg.dovecot.org/dovecot-1.1/rev/d674c05d725d
>>
>> Another section from my logs. I know the backtrace is just numbers, let 
>> me know how to compile to get more useful information if you need it. 
>> So far no one is beating down my door, so I don't think users are seeing 
>> any ill effects.  But I would sleep better knowing why it's happening.
>>
>> Aug 21 16:19:17 goku dovecot: [ID 107833 mail.crit] Panic: IMAP(rhjohn): 
>> file index-sync.c: line 39 (index_mailbox_set_recent_uid): assertion 
> 
> Yes, it's a bug. Can you reproduce it in any way? v1.1.2 was supposed to
> fix this for some people, not cause it to happen more often. You can
> always just comment out that line, it won't really break anything.
> 

- --
C. J. Keist Email: [EMAIL PROTECTED]
UNIX/Network ManagerPhone: 970-491-0630
Engineering Network ServicesFax:   970-491-5569
College of Engineering, CSU
Ft. Collins, CO 80523-1301

All I want is a chance to prove 'Money can't buy happiness'
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.5 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFIrtCFA29OFr7C6jcRApaTAJ9UFANFdUGZ0Wy5C4CipPlw41rsagCfV5ye
rVqQMgyeLVTljR3hQyRw1g0=
=xbwh
-END PGP SIGNATURE-


Re: [Dovecot] Problem with squirrelmail and dovecot 1.1

2008-08-22 Thread CJ Keist
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Ciao,
   I'm new to dovecot, just a week into switching over from UW-Imap, so
take my word with caution.  We use SpuirrelMail, 1.4.15, and not seeing
any problems.  Have you configured your folder defaults with
squirrellMail?  Namely Option 1. "Default Folder Prefix" should be
"mail/" without the quotes.  I found that Dovecot didn't like "~/mail".
 Though I think if you put the following in your dovecot.conf file:

mail_full_filesystem_access = yes

That the "~/mail" will work then.


Gerhard Wiesinger wrote:
> Hello!
> 
> Has noone any idea?
> 
> Ciao,
> Gerhard
> 
> -- 
> http://www.wiesinger.com/
> 
> 
> 
> Hello!
> 
> I'm running squirrelmail 1.4.8 (I know this is not the latest version)
> and know I'm having troubles with:
> 1.) Folder list view
> 2.) Save to sent or Drafts folder.
> 
> Configuration worked well. I think it has to do with the upgrade from
> dovecot 1.0 to 1.1 and the LIST command. Thunderbird/alpine work well.
> 
> Commands from rawlog are:
> A002 LIST "" "~/Mail/Drafts"
> A002 OK List completed.
> 
> or
> 
> A002 LIST "" "~/Mail/sent"
> A003 CREATE "~/Mail/sent"
> A002 OK List completed.
> A003 NO Mailbox exists.
> 
> Has something changed in the folder behaviour of dovecot from 1.0 to 1.1?
> 
> If you need more information please let me know it.
> 
> Any ideas?
> 
> Thnx.
> 
> Ciao,
> Gerhard
> 
> -- 
> http://www.wiesinger.com/
> 
> 

- --
C. J. Keist Email: [EMAIL PROTECTED]
UNIX/Network ManagerPhone: 970-491-0630
Engineering Network ServicesFax:   970-491-5569
College of Engineering, CSU
Ft. Collins, CO 80523-1301

All I want is a chance to prove 'Money can't buy happiness'
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.5 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFIrsr/A29OFr7C6jcRAj2FAKCWuNF5IC+S3upwn07KIIR1E1k4SACfbRoV
YcwUfyF2Y7iucl15/H/c22k=
=qI43
-END PGP SIGNATURE-


[Dovecot] assertion failed

2008-08-21 Thread CJ Keist
I haven't heard anything on this bug.  Is this a bug?  I'm using dovecot 
1.1.2 with the following patch applied:


http://hg.dovecot.org/dovecot-1.1/rev/d674c05d725d

Another section from my logs. I know the backtrace is just numbers, let 
me know how to compile to get more useful information if you need it. 
So far no one is beating down my door, so I don't think users are seeing 
any ill effects.  But I would sleep better knowing why it's happening.


Aug 21 16:19:17 goku dovecot: [ID 107833 mail.crit] Panic: IMAP(rhjohn): 
file index-sync.c: line 39 (index_mailbox_set_recent_uid): assertion 
failed: (seq_range_exists(&ibox->recent_flags, uid))Aug 21 16:19:17 goku 
dovecot: [ID 107833 mail.error] IMAP(rhjohn): Raw backtrace: 0x95f98 -> 
0x959f8 -> 0x6278c -> 0x627d0 -> 0x48d14 -> 0x4981c -> 0x41db0 -> 
0x72378 -> 0x637d8 -> 0x66200 -> 0x22594 -> 0x266f8 -> 0x277ec -> 
0x277a8 -> 0x27b04 -> 0x27d04 -> 0x9d3f4 -> 0x9ccd4 -> 0x2ff58 -> 0x21398
Aug 21 16:19:17 goku dovecot: [ID 684838 mail.error] child 4805 (imap) 
killed with signal 6
Aug 21 16:19:17 goku postfix/smtpd[3421]: [ID 197553 mail.info] connect 
from unknown[190.152.60.9]
Aug 21 16:19:17 goku dovecot: [ID 107833 mail.info] auth(default): 
client in: AUTH  1   PLAIN   service=imapsecured 
lip=129.82.224.16   rip=129.82.53.12lport=993   rport=49269
Aug 21 16:19:17 goku dovecot: [ID 107833 mail.info] auth(default): 
client out: CONT 1
Aug 21 16:19:17 goku dovecot: [ID 107833 mail.info] auth(default): 
client in: CONT
Aug 21 16:19:17 goku dovecot: [ID 107833 mail.info] 
auth-worker(default): pam(rhjohn,129.82.53.12): lookup service=dovecot
Aug 21 16:19:17 goku dovecot: [ID 107833 mail.info] 
auth-worker(default): pam(rhjohn,129.82.53.12): #1/1 style=1 msg=Password:
Aug 21 16:19:17 goku dovecot: [ID 107833 mail.info] auth(default): 
client out: OK   1   user=rhjohn
Aug 21 16:19:17 goku dovecot: [ID 107833 mail.info] auth(default): 
master in: REQUEST   45963   65201
Aug 21 16:19:17 goku dovecot: [ID 107833 mail.info] 
auth-worker(default): passwd(rhjohn,129.82.53.12): lookup
Aug 21 16:19:17 goku dovecot: [ID 107833 mail.info] auth(default): 
master out: USER 45963   rhjohn  system_user=rhjohn  uid=19615 
 gid=21  home=/top/academic/Atmos/people/rhjohn/home
Aug 21 16:19:17 goku dovecot: [ID 107833 mail.info] imap-login: Login: 
user=, method=PLAIN, rip=129.82.53.12, lip=129.82.224.16, TLS
Aug 21 16:19:17 goku dovecot: [ID 107833 mail.info] auth(default): 
client in: AUTH  1   PLAIN   service=imaplip=129.82.224.16 
 rip=67.223.73.37lport=143   rport=54470 resp=
Aug 21 16:19:17 goku dovecot: [ID 107833 mail.info] 
auth-worker(default): pam(dvivanco,67.223.73.37): lookup service=dovecot
Aug 21 16:19:17 goku dovecot: [ID 107833 mail.info] 
auth-worker(default): pam(dvivanco,67.223.73.37): #1/1 style=1 msg=Password:
Aug 21 16:19:17 goku dovecot: [ID 107833 mail.info] IMAP(rhjohn): 
Effective uid=19615, gid=21, home=/top/academic/Atmos/people/rhjohn/home
Aug 21 16:19:17 goku dovecot: [ID 107833 mail.info] IMAP(rhjohn): mbox: 
data=/top/academic/Atmos/people/rhjohn/home/:INBOX=/userM/mail/rhjohn
Aug 21 16:19:17 goku dovecot: [ID 107833 mail.info] IMAP(rhjohn): fs: 
root=/top/academic/Atmos/people/rhjohn/home, index=, control=, 
inbox=/userM/mail/rhjohn


-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

I just switched over to dovecot 1.1.2 on our live system last night. I'm
seeing the following errors in the logs:

Aug 19 10:01:03 goku dovecot: [ID 107833 mail.crit] Panic: IMAP(elevin):
file in
dex-sync.c: line 39 (index_mailbox_set_recent_uid): assertion failed:
(seq_range
_exists(&ibox->recent_flags, uid))

I did apply the assertion fix that Timo sent out.

# 1.1.2: /userM/mail-services/dovecot/etc/dovecot.conf
Warning: fd limit 256 is lower than what Dovecot can use under full load
(more than 3072). Either grow the limit or change
login_max_processes_count and max_mail_processes settings
base_dir: /userM/mail-services/dovecot/var/run/dovecot/
protocols: imap imaps pop3 pop3s
ssl_cert_file: /userM/mail-services/dovecot/etc/ssl/dovecot.pem
ssl_key_file: /userM/mail-services/dovecot/etc/ssl/privkey.pem
ssl_parameters_regenerate: 0
ssl_cipher_list: MEDIUM:!LOW
disable_plaintext_auth: no
login_dir: /userM/mail-services/dovecot/var/run/dovecot/login
login_executable(default):
/userM/mail-services/dovecot/libexec/dovecot/imap-login
login_executable(imap):
/userM/mail-services/dovecot/libexec/dovecot/imap-login
login_executable(pop3):
/userM/mail-services/dovecot/libexec/dovecot/pop3-login
login_greeting: Cyrus ready.
login_max_processes_count: 1024
max_mail_processes: 1024
mail_location: mbox:~/:INBOX=/userM/mail/%u
mail_debug: yes
mmap_disable: yes
mail_nfs_index: yes
mail_executable(default): /userM/mail-services/dovecot/libexec/dovecot/imap
mail_executable(imap): /userM/mail-services/dovecot/libexec/dovecot/imap
mail_executable(pop3): /userM/mail-services/dovecot/libexec/dov

Re: [Dovecot] assertion failed

2008-08-19 Thread CJ Keist
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

I had the wrong link below, this is the correct URL I used to patch the
1.1.2 source tree:

http://hg.dovecot.org/dovecot-1.1/rev/d674c05d725d

- -

I believe the is the fix I did to the 1.1.2 source code:

http://hg.dovecot.org/dovecot-1.1/rev/65d1fc48224d


Charles Marcus wrote:
> On 8/19/2008, CJ Keist ([EMAIL PROTECTED]) wrote:
>> I just switched over to dovecot 1.1.2 on our live system last night.
>
> What version were you on before (might tell Timo something)?
>

- --
C. J. Keist Email: [EMAIL PROTECTED]
UNIX/Network ManagerPhone: 970-491-0630
Engineering Network ServicesFax:   970-491-5569
College of Engineering, CSU
Ft. Collins, CO 80523-1301

All I want is a chance to prove 'Money can't buy happiness'
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.5 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFIqzgUA29OFr7C6jcRAjjGAKCCiOkd/t9+6QNVeioGdydCdhxV2ACfRWxC
dWAm8MiIOsRAmnh8ilTUmb0=
=EY78
-END PGP SIGNATURE-


[Dovecot] sendmail permissions denied

2008-08-19 Thread CJ Keist
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Never mind On this, operator dumbness involved.  Two directories above
didn't allow general access into postfix home.

- 

With the sieve plugin trying to redirect or send vacation reply I'm
getting the following error:

Aug 19 13:12:52 goku deliver(joeblow): [ID 619685 mail.info] Module
loaded: /use
rM/mail-services/dovecot/lib/dovecot/lda/lib90_cmusieve_plugin.so
Aug 19 13:12:52 goku deliver(joeblow): [ID 848615 mail.info] mbox:
data=/top/students/UNGRAD/ES/joeblow/home/:INBOX=/userM/mail/joeblow
Aug 19 13:12:52 goku deliver(joeblow): [ID 885103 mail.info] fs:
root=/top/students/UNGRAD/ES/joeblow/home, index=, control=,
inbox=/userM/mail/joeblow
Aug 19 13:12:52 goku deliver(joeblow): [ID 223526 mail.info] cmusieve:
Using sieve path: /top/students/UNGRAD/ES/joeblow/home/.dovecot.sieve
Aug 19 13:12:52 goku deliver(joeblow): [ID 507699 mail.info] cmusieve:
Executing script /top/students/UNGRAD/ES/joeblow/home/.dovecot.sievec
Aug 19 13:12:52 goku deliver(joeblow): [ID 107833 mail.crit] Fatal:
execv(/userM/mail-services/postfix/lib/sendmail) failed: Permission denied
Aug 19 13:12:52 goku deliver(joeblow): [ID 260232 mail.error] Sendmail
process terminated abnormally, exit status 75
Aug 19 13:12:52 goku deliver(joeblow): [ID 344163 mail.info] sieve
runtime error: Vacation: Error sending mail
Aug 19 13:12:52 goku deliver(joeblow): [ID 702911 mail.info]
msgid=<[EMAIL PROTECTED]>: saved mail to INBOX
Aug 19 13:12:52 goku deliver(joeblow): [ID 368532 mail.error]
sieve_execute_bytecode(/top/students/UNGRAD/ES/joeblow/home/.dovecot.sievec)
failed
Aug 19 13:12:52 goku postfix/local[10821]: [ID 197553 mail.info]
EF96F2363C: to=<[EMAIL PROTECTED]>, relay=local, delay=0.11,
delays=0.02/0/0/0.09, dsn=2.0.0, status=sent (delivered to command:
/userM/mail-services/dovecot/libexec/dovecot/deliver)
Aug 19 13:12:52 goku postfix/qmgr[24972]: [ID 197553 mail.info]
EF96F2363C: removed

The sendmail path /userM/mail-services/postfix/lib/sendmail is correct
the the permissions sendmail is:

- -rwxr-xr-x   1 root root  602472 Aug 18 22:02 sendmail*

I didn't have this problem with the test server.  Any ideas?

dovecot -n
base_dir: /userM/mail-services/dovecot/var/run/dovecot/
protocols: imap imaps pop3 pop3s
ssl_cert_file: /userM/mail-services/dovecot/etc/ssl/dovecot.pem
ssl_key_file: /userM/mail-services/dovecot/etc/ssl/privkey.pem
ssl_parameters_regenerate: 0
ssl_cipher_list: MEDIUM:!LOW
disable_plaintext_auth: no
login_dir: /userM/mail-services/dovecot/var/run/dovecot/login
login_executable(default):
/userM/mail-services/dovecot/libexec/dovecot/imap-log
in
login_executable(imap):
/userM/mail-services/dovecot/libexec/dovecot/imap-login
login_executable(pop3):
/userM/mail-services/dovecot/libexec/dovecot/pop3-login
login_greeting: Cyrus ready.
login_max_processes_count: 1024
max_mail_processes: 1024
mail_location: mbox:~/:INBOX=/userM/mail/%u
mail_debug: yes
mmap_disable: yes
mail_nfs_index: yes
mail_executable(default): /userM/mail-services/dovecot/libexec/dovecot/imap
mail_executable(imap): /userM/mail-services/dovecot/libexec/dovecot/imap
mail_executable(pop3): /userM/mail-services/dovecot/libexec/dovecot/pop3
mail_plugin_dir(default): /userM/mail-services/dovecot/lib/dovecot/imap
mail_plugin_dir(imap): /userM/mail-services/dovecot/lib/dovecot/imap
mail_plugin_dir(pop3): /userM/mail-services/dovecot/lib/dovecot/pop3
auth default:
  mechanisms: plain login
  verbose: yes
  debug: yes
  passdb:
driver: pam
  passdb:
driver: passwd
args: blocking=yes
  userdb:
driver: passwd
args: blocking=yes
  socket:
type: listen
client:
  path: /var/lib/postfix/private/auth
  mode: 432
  user: postfix
  group: postfix



- --
C. J. Keist Email: [EMAIL PROTECTED]
UNIX/Network ManagerPhone: 970-491-0630
Engineering Network ServicesFax:   970-491-5569
College of Engineering, CSU
Ft. Collins, CO 80523-1301

All I want is a chance to prove 'Money can't buy happiness'
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.5 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFIqyjlA29OFr7C6jcRAv6GAJ90UCY/clZa43NBCysv0ktlg11cVQCeOnkq
ylkleO56B91KU/4CuAGBACc=
=s9YN
-END PGP SIGNATURE-


[Dovecot] sendmail permissions denied

2008-08-19 Thread CJ Keist
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

With the sieve plugin trying to redirect or send vacation reply I'm
getting the following error:

Aug 19 13:12:52 goku deliver(joeblow): [ID 619685 mail.info] Module
loaded: /use
rM/mail-services/dovecot/lib/dovecot/lda/lib90_cmusieve_plugin.so
Aug 19 13:12:52 goku deliver(joeblow): [ID 848615 mail.info] mbox:
data=/top/students/UNGRAD/ES/joeblow/home/:INBOX=/userM/mail/joeblow
Aug 19 13:12:52 goku deliver(joeblow): [ID 885103 mail.info] fs:
root=/top/students/UNGRAD/ES/joeblow/home, index=, control=,
inbox=/userM/mail/joeblow
Aug 19 13:12:52 goku deliver(joeblow): [ID 223526 mail.info] cmusieve:
Using sieve path: /top/students/UNGRAD/ES/joeblow/home/.dovecot.sieve
Aug 19 13:12:52 goku deliver(joeblow): [ID 507699 mail.info] cmusieve:
Executing script /top/students/UNGRAD/ES/joeblow/home/.dovecot.sievec
Aug 19 13:12:52 goku deliver(joeblow): [ID 107833 mail.crit] Fatal:
execv(/userM/mail-services/postfix/lib/sendmail) failed: Permission denied
Aug 19 13:12:52 goku deliver(joeblow): [ID 260232 mail.error] Sendmail
process terminated abnormally, exit status 75
Aug 19 13:12:52 goku deliver(joeblow): [ID 344163 mail.info] sieve
runtime error: Vacation: Error sending mail
Aug 19 13:12:52 goku deliver(joeblow): [ID 702911 mail.info]
msgid=<[EMAIL PROTECTED]>: saved mail to INBOX
Aug 19 13:12:52 goku deliver(joeblow): [ID 368532 mail.error]
sieve_execute_bytecode(/top/students/UNGRAD/ES/joeblow/home/.dovecot.sievec)
failed
Aug 19 13:12:52 goku postfix/local[10821]: [ID 197553 mail.info]
EF96F2363C: to=<[EMAIL PROTECTED]>, relay=local, delay=0.11,
delays=0.02/0/0/0.09, dsn=2.0.0, status=sent (delivered to command:
/userM/mail-services/dovecot/libexec/dovecot/deliver)
Aug 19 13:12:52 goku postfix/qmgr[24972]: [ID 197553 mail.info]
EF96F2363C: removed

The sendmail path /userM/mail-services/postfix/lib/sendmail is correct
the the permissions sendmail is:

- -rwxr-xr-x   1 root root  602472 Aug 18 22:02 sendmail*

I didn't have this problem with the test server.  Any ideas?

dovecot -n
base_dir: /userM/mail-services/dovecot/var/run/dovecot/
protocols: imap imaps pop3 pop3s
ssl_cert_file: /userM/mail-services/dovecot/etc/ssl/dovecot.pem
ssl_key_file: /userM/mail-services/dovecot/etc/ssl/privkey.pem
ssl_parameters_regenerate: 0
ssl_cipher_list: MEDIUM:!LOW
disable_plaintext_auth: no
login_dir: /userM/mail-services/dovecot/var/run/dovecot/login
login_executable(default):
/userM/mail-services/dovecot/libexec/dovecot/imap-log
in
login_executable(imap):
/userM/mail-services/dovecot/libexec/dovecot/imap-login
login_executable(pop3):
/userM/mail-services/dovecot/libexec/dovecot/pop3-login
login_greeting: Cyrus ready.
login_max_processes_count: 1024
max_mail_processes: 1024
mail_location: mbox:~/:INBOX=/userM/mail/%u
mail_debug: yes
mmap_disable: yes
mail_nfs_index: yes
mail_executable(default): /userM/mail-services/dovecot/libexec/dovecot/imap
mail_executable(imap): /userM/mail-services/dovecot/libexec/dovecot/imap
mail_executable(pop3): /userM/mail-services/dovecot/libexec/dovecot/pop3
mail_plugin_dir(default): /userM/mail-services/dovecot/lib/dovecot/imap
mail_plugin_dir(imap): /userM/mail-services/dovecot/lib/dovecot/imap
mail_plugin_dir(pop3): /userM/mail-services/dovecot/lib/dovecot/pop3
auth default:
  mechanisms: plain login
  verbose: yes
  debug: yes
  passdb:
driver: pam
  passdb:
driver: passwd
args: blocking=yes
  userdb:
driver: passwd
args: blocking=yes
  socket:
type: listen
client:
  path: /var/lib/postfix/private/auth
  mode: 432
  user: postfix
  group: postfix



- --
C. J. Keist Email: [EMAIL PROTECTED]
UNIX/Network ManagerPhone: 970-491-0630
Engineering Network ServicesFax:   970-491-5569
College of Engineering, CSU
Ft. Collins, CO 80523-1301

All I want is a chance to prove 'Money can't buy happiness'
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.5 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFIqx3LA29OFr7C6jcRAr2FAJ4lHPlswLAhQpwTLm788CkogrfB0QCfXHvs
/2Ej000B55JKNjdRrk4/KIM=
=wtuS
-END PGP SIGNATURE-


Re: [Dovecot] assertion failed

2008-08-19 Thread CJ Keist
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

I believe the is the fix I did to the 1.1.2 source code:

http://hg.dovecot.org/dovecot-1.1/rev/65d1fc48224d


Charles Marcus wrote:
> On 8/19/2008, CJ Keist ([EMAIL PROTECTED]) wrote:
>> I just switched over to dovecot 1.1.2 on our live system last night.
> 
> What version were you on before (might tell Timo something)?
> 

- --
C. J. Keist Email: [EMAIL PROTECTED]
UNIX/Network ManagerPhone: 970-491-0630
Engineering Network ServicesFax:   970-491-5569
College of Engineering, CSU
Ft. Collins, CO 80523-1301

All I want is a chance to prove 'Money can't buy happiness'
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.5 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFIqwLhA29OFr7C6jcRAv+iAKCKF/t//ysneqPzYsTuCan8qfklTACfaYCy
RvKJ+JOlwTNB7T5zkyyCjvI=
=J3pL
-END PGP SIGNATURE-


[Dovecot] assertion failed

2008-08-19 Thread CJ Keist
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

I just switched over to dovecot 1.1.2 on our live system last night. I'm
seeing the following errors in the logs:

Aug 19 10:01:03 goku dovecot: [ID 107833 mail.crit] Panic: IMAP(elevin):
file in
dex-sync.c: line 39 (index_mailbox_set_recent_uid): assertion failed:
(seq_range
_exists(&ibox->recent_flags, uid))

I did apply the assertion fix that Timo sent out.

# 1.1.2: /userM/mail-services/dovecot/etc/dovecot.conf
Warning: fd limit 256 is lower than what Dovecot can use under full load
(more than 3072). Either grow the limit or change
login_max_processes_count and max_mail_processes settings
base_dir: /userM/mail-services/dovecot/var/run/dovecot/
protocols: imap imaps pop3 pop3s
ssl_cert_file: /userM/mail-services/dovecot/etc/ssl/dovecot.pem
ssl_key_file: /userM/mail-services/dovecot/etc/ssl/privkey.pem
ssl_parameters_regenerate: 0
ssl_cipher_list: MEDIUM:!LOW
disable_plaintext_auth: no
login_dir: /userM/mail-services/dovecot/var/run/dovecot/login
login_executable(default):
/userM/mail-services/dovecot/libexec/dovecot/imap-login
login_executable(imap):
/userM/mail-services/dovecot/libexec/dovecot/imap-login
login_executable(pop3):
/userM/mail-services/dovecot/libexec/dovecot/pop3-login
login_greeting: Cyrus ready.
login_max_processes_count: 1024
max_mail_processes: 1024
mail_location: mbox:~/:INBOX=/userM/mail/%u
mail_debug: yes
mmap_disable: yes
mail_nfs_index: yes
mail_executable(default): /userM/mail-services/dovecot/libexec/dovecot/imap
mail_executable(imap): /userM/mail-services/dovecot/libexec/dovecot/imap
mail_executable(pop3): /userM/mail-services/dovecot/libexec/dovecot/pop3
mail_plugin_dir(default): /userM/mail-services/dovecot/lib/dovecot/imap
mail_plugin_dir(imap): /userM/mail-services/dovecot/lib/dovecot/imap
mail_plugin_dir(pop3): /userM/mail-services/dovecot/lib/dovecot/pop3
auth default:
  mechanisms: plain login
  verbose: yes
  debug: yes
  passdb:
driver: pam
  passdb:
driver: passwd
args: blocking=yes
  userdb:
driver: passwd
args: blocking=yes
  socket:
type: listen
client:
  path: /var/lib/postfix/private/auth
  mode: 438
  user: postfix
  group: postfix
master:
  path: /userM/mail-services/dovecot/var/run/dovecot//auth-master
  mode: 384

- --
C. J. Keist Email: [EMAIL PROTECTED]
UNIX/Network ManagerPhone: 970-491-0630
Engineering Network ServicesFax:   970-491-5569
College of Engineering, CSU
Ft. Collins, CO 80523-1301

All I want is a chance to prove 'Money can't buy happiness'
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.5 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFIqvAiA29OFr7C6jcRAlbPAJsHSPO0JvyUHGOBUJ1E8NhuT9tM5wCgnOZ2
NW9OeL6tSORhGleWSX63uPI=
=mw7Z
-END PGP SIGNATURE-


Re: [Dovecot] Auto Vacation replies again

2008-08-12 Thread CJ Keist
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Thank you all for the input and the rfc url.  To my surprise the central
IT dept. is going to make the change to allow the envelope from to be
empty!  I'm pretty sure it was the rfc url I gave them to help my cause.
So I'm reverting the code back to the original state.



Charles Marcus wrote:
> On 8/12/2008, CJ Keist ([EMAIL PROTECTED]) wrote:
>> I understand what you are saying in trying to keep a
>> vicious cycle of auto-replies responding to each other.  But in our
>> environment I don't have any choice as our central virus/spam email
>> gateway will can any message without a valid from address in the headers.
>>I will forward this on to our central IT guys that maintain the email
>> gateway, but I don't hold much hope that they will listen  ;) .
> 
> My advice? Throw away the gateway and find one that works correctly.
> 
> Doing this results in your users NOT getting 99.99% of valid/legitimate
> DSN notifications (since they all use the NULL sender, as prescribed by
> the RFCs).
> 
> Blocking all messages with a NULL sender is not only violating the RFCs,
> and will possibly result in your getting on certain blacklists, like
> dsn.rfc-ignorant.org, it is lazy and dumb.
> 
> But, to each his own...
> 

- --
C. J. Keist Email: [EMAIL PROTECTED]
UNIX/Network ManagerPhone: 970-491-0630
Engineering Network ServicesFax:   970-491-5569
College of Engineering, CSU
Ft. Collins, CO 80523-1301

All I want is a chance to prove 'Money can't buy happiness'
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.5 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFIohcFA29OFr7C6jcRAhotAKDH0tZz/zVL/z7VLMHhKAG+mTvTVgCg3XwR
n8jdXJOrZk0biQt04cUUkWI=
=Bhdt
-END PGP SIGNATURE-


Re: [Dovecot] dovecot sieve sends vacation messages with null envelope sender

2008-08-12 Thread CJ Keist
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Josef,
   This is exactly same situation in our environment as well. I had to
make the same change as you stated.  Our central virus/spam email
gateway also cans any message with out a valid from address in the mail
headers.  I would think most virus/spam systems will do the same.
   I understand the concept of having the from empty, namely to keep
another automated system from replying back to your vacation reply, but
what do we do to keep our vacation replies being canned by anti-spam
systems??  Maybe this should be a option in the configuration file to
let the Admin decide whether to fill in the from address field, or a
"[EMAIL PROTECTED]" default, or just empty?


Josef Liška wrote:
> I am using this simple sieve script to do "vacation":
> 
> require ["fileinto", "vacation"];
> if exists "X-Spam-Flag" {
>  stop;
> }
> vacation
>  :days 1
>  :subject "Out of office reply"
>  :addresses ["", "" ]
> "I am on vacation until 2008-08-07.
> If you have something urgent, please contact: Jan Novak  hidden>
> ";
> 
> I use sql lookups for users and passwords. For some reason the default
> location ~/.dovecot-sieve did not work for some reason. However I prefer
> to put sieve scripts to /var/lib/sieve and when I added additional field
> to lookup with this location it started to work.
> 
> But it sends vacation messages with null envelope sender, which is in my
> opinion undesirable, because many vacation messages are caught in spam
> filters.
> 
> I think there could be same sender on envelope.
> In dovecot-sieve/src/sieve-cmu.c around line 380 is a call to
> smtp_client_open(src->addr, NULL, &f);
> NULL could be replaced with src->fromaddr
> 
> Maybe some more patching may be necesary. I found similar patch for
> cyrus-imapd at
> http://oss.digirati.com.br/mail/cyrus.html
> 
> 
> My current system:
> 1)  Ubuntu 8.04.1
> 
> [EMAIL PROTECTED]:~$ dovecot --version
> 1.0.15
> 
> It is a backported package from ubuntu intrepid ibex. However the same
> applies for dovecot 1.0.10 which is in ubuntu 8.04.
> 
> 
> Summary:
> I expect messages sent by vacation recipe should have envelope from same
> as user's e-mail address. This is then writen to Return-Path: header by
> receiving MTA
> 
> NULL envelope from is used, resulting (in my case) to Return-Path: <>
> rewriten by postfix to Return-Path:  by receiving MTA
> 

- --
C. J. Keist Email: [EMAIL PROTECTED]
UNIX/Network ManagerPhone: 970-491-0630
Engineering Network ServicesFax:   970-491-5569
College of Engineering, CSU
Ft. Collins, CO 80523-1301

All I want is a chance to prove 'Money can't buy happiness'
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.5 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFIoZ2UA29OFr7C6jcRAgz8AKCpNJtUd1eGamCIqmIbGB025G1diQCfYBUT
OTvTBgnWmGwsvJiX2fz4AyU=
=XBNO
-END PGP SIGNATURE-


Re: [Dovecot] Auto Vacation replies again

2008-08-12 Thread CJ Keist
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Stephan,
   Thank you.  I understand what you are saying in trying to keep a
vicious cycle of auto-replies responding to each other.  But in our
environment I don't have any choice as our central virus/spam email
gateway will can any message without a valid from address in the headers.
   I will forward this on to our central IT guys that maintain the email
gateway, but I don't hold much hope that they will listen ;).



Stephan Bosch wrote:
> CJ Keist schreef:
>> -BEGIN PGP SIGNED MESSAGE-
>> Hash: SHA1
>>
>> Fixed it!!
>>
>> In the file src/sieve_cmu.c line 744:
>>
>> smtp_client = smtp_client_open(src->addr, NULL, &f);
>>
>> change to:
>>
>> smtp_client = smtp_client_open(src->addr, src->fromaddr, &f);
>>
> First of all, this does not control the content of the From: header
> line, but rather the FROM SMTP envelope field.
> 
> This behavior is implemented as such on purpose. From RFC5230
> (http://www.ietf.org/rfc/rfc5230.txt):
> 
> 5.1.  SMTP MAIL FROM Address
> 
>The SMTP MAIL FROM address of the message envelope SHOULD be set to
><>.  [...]
> 
> This is primarily recommended to prevent other (more stupid)
> auto-responders to generate a response to your vacation response (see
> also RFC3834 - 3.3. Message envelope).
> 
> In general I would recommend adjusting the filter accordingly, because
> vacation replies are likely not going to be the only thing it will chew
> on when it is configured to bite things that have an empty return path
> (e.g. mailer daemon status reports and the like).
> 
> Regards,
> 
> Stephan.

- --
C. J. Keist Email: [EMAIL PROTECTED]
UNIX/Network ManagerPhone: 970-491-0630
Engineering Network ServicesFax:   970-491-5569
College of Engineering, CSU
Ft. Collins, CO 80523-1301

All I want is a chance to prove 'Money can't buy happiness'
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.5 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFIoZ0yA29OFr7C6jcRAt3TAJ4iQyaHtd7lMcm4g9Gp7ezcJQvrNACfT7JU
Z1OFdj2ZZHRuQgc+HhaxdTM=
=6G+3
-END PGP SIGNATURE-


Re: [Dovecot] Auto Vacation replies again

2008-08-11 Thread CJ Keist
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Fixed it!!

In the file src/sieve_cmu.c line 744:

smtp_client = smtp_client_open(src->addr, NULL, &f);

change to:

smtp_client = smtp_client_open(src->addr, src->fromaddr, &f);


CJ Keist wrote:
> Sorry to bring this up again.
> 
> I have now configured my test server to pass all email messages off to
> our central campus email filter gateway.  This gateway scans all email
> traffic for viruses/spam before being delivered to any local mail servers.
> Once I did this my auto vacation replies are getting canned due to the
> fact the from header line is empty in the reply message.  You can see
> that it is empty from my mail logs (soon after the line where is
> executes my .dovecot.sievec file):
> 
> Aug 11 13:24:51 mail2.engr.colostate.edu dovecot: [ID 107833 mail.info]
> auth(default): new auth connection: pid=15539
> Aug 11 13:24:51 mail2.engr.colostate.edu postfix/smtpd[15539]: [ID
> 197553 mail.info] connect from akron.colostate.edu[129.82.103.160]
> Aug 11 13:24:52 mail2.engr.colostate.edu postfix/smtpd[15539]: [ID
> 197553 mail.info] setting up TLS connection from
> akron.colostate.edu[129.82.103.160]
> Aug 11 13:24:52 mail2.engr.colostate.edu postfix/smtpd[15539]: [ID
> 197553 mail.info] Anonymous TLS connection established from
> akron.colostate.edu[129.82.103.160]: TLSv1 with cipher
> DHE-RSA-AES256-SHA (256/256 bits)
> Aug 11 13:24:53 mail2.engr.colostate.edu postfix/smtpd[15539]: [ID
> 197553 mail.info] 44DEC599C3: client=akron.colostate.edu[129.82.103.160]
> Aug 11 13:24:53 mail2.engr.colostate.edu postfix/cleanup[15547]: [ID
> 197553 mail.info] 44DEC599C3:
> message-id=<[EMAIL PROTECTED]>
> Aug 11 13:24:53 mail2.engr.colostate.edu postfix/smtpd[15539]: [ID
> 197553 mail.info] disconnect from akron.colostate.edu[129.82.103.160]
> Aug 11 13:24:53 mail2.engr.colostate.edu postfix/qmgr[15988]: [ID 197553
> mail.info] 44DEC599C3: from=<[EMAIL PROTECTED]>, size=1875,
> nrcpt=1 (queue active)
> Aug 11 13:24:53 mail2.engr.colostate.edu deliver(cjay): [ID 315030
> mail.info] Loading modules from directory:
> /userM/mail-services/dovecot/lib/dovecot/lda
> Aug 11 13:24:53 mail2.engr.colostate.edu deliver(cjay): [ID 619685
> mail.info] Module loaded:
> /userM/mail-services/dovecot/lib/dovecot/lda/lib90_cmusieve_plugin.so
> Aug 11 13:24:53 mail2.engr.colostate.edu deliver(cjay): [ID 848615
> mail.info] mbox:
> data=/top/admin/ENS/people/cjay/home/:INBOX=/userM/mail/cjay
> Aug 11 13:24:53 mail2.engr.colostate.edu deliver(cjay): [ID 885103
> mail.info] fs: root=/top/admin/ENS/people/cjay/home, index=, control=,
> inbox=/userM/mail/cjay
> Aug 11 13:24:53 mail2.engr.colostate.edu deliver(cjay): [ID 223526
> mail.info] cmusieve: Using sieve path:
> /top/admin/ENS/people/cjay/home/.dovecot.sieve
> Aug 11 13:24:54 mail2.engr.colostate.edu deliver(cjay): [ID 507699
> mail.info] cmusieve: Executing script
> /top/admin/ENS/people/cjay/home/.dovecot.sievec
> Aug 11 13:24:54 mail2.engr.colostate.edu deliver(cjay): [ID 725890
> mail.info]
> msgid=<[EMAIL PROTECTED]>:
> sent vacation response to <[EMAIL PROTECTED]>
> Aug 11 13:24:54 mail2.engr.colostate.edu postfix/pickup[13201]: [ID
> 197553 mail.info] B9798599C5: uid=10946 from=<>
> Aug 11 13:24:54 mail2.engr.colostate.edu postfix/cleanup[15547]: [ID
> 197553 mail.info] B9798599C5:
> message-id=<[EMAIL PROTECTED]>
> Aug 11 13:24:54 mail2.engr.colostate.edu postfix/qmgr[15988]: [ID 197553
> mail.info] B9798599C5: from=<>, size=772, nrcpt=1 (queue active)
> Aug 11 13:24:55 mail2.engr.colostate.edu deliver(cjay): [ID 702911
> mail.info]
> msgid=<[EMAIL PROTECTED]>:
> saved mail to INBOX
> Aug 11 13:24:55 mail2.engr.colostate.edu postfix/smtp[1]: [ID 197553
> mail.info] B9798599C5: to=<[EMAIL PROTECTED]>,
> relay=parker.colostate.edu[129.82.103.125]:25, delay=0.89,
> delays=0.09/0.51/0.03/0.25, dsn=2.0.0, status=sent (250 2.0.0
> m7BJOur1516324 Message accepted for delivery)
> Aug 11 13:24:55 mail2.engr.colostate.edu postfix/qmgr[15988]: [ID 197553
> mail.info] B9798599C5: removed
> Aug 11 13:24:55 mail2.engr.colostate.edu postfix/local[15549]: [ID
> 197553 mail.info] 44DEC599C3: to=<[EMAIL PROTECTED]>,
> relay=local, delay=2.7, delays=0.26/0.19/0/2.2, dsn=2.0.0, status=sent
> (delivered to command: /userM/mail-services/dovecot/libexec/dovecot/deliver)
> Aug 11 13:24:55 mail2.engr.colostate.edu postfix/qmgr[15988]: [ID 197553
> mail.info] 44DEC599C3: removed
> 
> Again, my info:
> 
> OS: Solaris 10 sparc on T2000
> postfix: 2.5.2
> dovecot: 1.1.2
> sieve plug: 1.1.5
> 
> dovecot -n:
> # 1.1.2: /userM/mail-services/dovecot/etc/dovecot.conf
> Warning: fd limit 256 is lower than wha

[Dovecot] Auto Vacation replies again

2008-08-11 Thread CJ Keist
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Sorry to bring this up again.

I have now configured my test server to pass all email messages off to
our central campus email filter gateway.  This gateway scans all email
traffic for viruses/spam before being delivered to any local mail servers.
Once I did this my auto vacation replies are getting canned due to the
fact the from header line is empty in the reply message.  You can see
that it is empty from my mail logs (soon after the line where is
executes my .dovecot.sievec file):

Aug 11 13:24:51 mail2.engr.colostate.edu dovecot: [ID 107833 mail.info]
auth(default): new auth connection: pid=15539
Aug 11 13:24:51 mail2.engr.colostate.edu postfix/smtpd[15539]: [ID
197553 mail.info] connect from akron.colostate.edu[129.82.103.160]
Aug 11 13:24:52 mail2.engr.colostate.edu postfix/smtpd[15539]: [ID
197553 mail.info] setting up TLS connection from
akron.colostate.edu[129.82.103.160]
Aug 11 13:24:52 mail2.engr.colostate.edu postfix/smtpd[15539]: [ID
197553 mail.info] Anonymous TLS connection established from
akron.colostate.edu[129.82.103.160]: TLSv1 with cipher
DHE-RSA-AES256-SHA (256/256 bits)
Aug 11 13:24:53 mail2.engr.colostate.edu postfix/smtpd[15539]: [ID
197553 mail.info] 44DEC599C3: client=akron.colostate.edu[129.82.103.160]
Aug 11 13:24:53 mail2.engr.colostate.edu postfix/cleanup[15547]: [ID
197553 mail.info] 44DEC599C3:
message-id=<[EMAIL PROTECTED]>
Aug 11 13:24:53 mail2.engr.colostate.edu postfix/smtpd[15539]: [ID
197553 mail.info] disconnect from akron.colostate.edu[129.82.103.160]
Aug 11 13:24:53 mail2.engr.colostate.edu postfix/qmgr[15988]: [ID 197553
mail.info] 44DEC599C3: from=<[EMAIL PROTECTED]>, size=1875,
nrcpt=1 (queue active)
Aug 11 13:24:53 mail2.engr.colostate.edu deliver(cjay): [ID 315030
mail.info] Loading modules from directory:
/userM/mail-services/dovecot/lib/dovecot/lda
Aug 11 13:24:53 mail2.engr.colostate.edu deliver(cjay): [ID 619685
mail.info] Module loaded:
/userM/mail-services/dovecot/lib/dovecot/lda/lib90_cmusieve_plugin.so
Aug 11 13:24:53 mail2.engr.colostate.edu deliver(cjay): [ID 848615
mail.info] mbox:
data=/top/admin/ENS/people/cjay/home/:INBOX=/userM/mail/cjay
Aug 11 13:24:53 mail2.engr.colostate.edu deliver(cjay): [ID 885103
mail.info] fs: root=/top/admin/ENS/people/cjay/home, index=, control=,
inbox=/userM/mail/cjay
Aug 11 13:24:53 mail2.engr.colostate.edu deliver(cjay): [ID 223526
mail.info] cmusieve: Using sieve path:
/top/admin/ENS/people/cjay/home/.dovecot.sieve
Aug 11 13:24:54 mail2.engr.colostate.edu deliver(cjay): [ID 507699
mail.info] cmusieve: Executing script
/top/admin/ENS/people/cjay/home/.dovecot.sievec
Aug 11 13:24:54 mail2.engr.colostate.edu deliver(cjay): [ID 725890
mail.info]
msgid=<[EMAIL PROTECTED]>:
sent vacation response to <[EMAIL PROTECTED]>
Aug 11 13:24:54 mail2.engr.colostate.edu postfix/pickup[13201]: [ID
197553 mail.info] B9798599C5: uid=10946 from=<>
Aug 11 13:24:54 mail2.engr.colostate.edu postfix/cleanup[15547]: [ID
197553 mail.info] B9798599C5:
message-id=<[EMAIL PROTECTED]>
Aug 11 13:24:54 mail2.engr.colostate.edu postfix/qmgr[15988]: [ID 197553
mail.info] B9798599C5: from=<>, size=772, nrcpt=1 (queue active)
Aug 11 13:24:55 mail2.engr.colostate.edu deliver(cjay): [ID 702911
mail.info]
msgid=<[EMAIL PROTECTED]>:
saved mail to INBOX
Aug 11 13:24:55 mail2.engr.colostate.edu postfix/smtp[1]: [ID 197553
mail.info] B9798599C5: to=<[EMAIL PROTECTED]>,
relay=parker.colostate.edu[129.82.103.125]:25, delay=0.89,
delays=0.09/0.51/0.03/0.25, dsn=2.0.0, status=sent (250 2.0.0
m7BJOur1516324 Message accepted for delivery)
Aug 11 13:24:55 mail2.engr.colostate.edu postfix/qmgr[15988]: [ID 197553
mail.info] B9798599C5: removed
Aug 11 13:24:55 mail2.engr.colostate.edu postfix/local[15549]: [ID
197553 mail.info] 44DEC599C3: to=<[EMAIL PROTECTED]>,
relay=local, delay=2.7, delays=0.26/0.19/0/2.2, dsn=2.0.0, status=sent
(delivered to command: /userM/mail-services/dovecot/libexec/dovecot/deliver)
Aug 11 13:24:55 mail2.engr.colostate.edu postfix/qmgr[15988]: [ID 197553
mail.info] 44DEC599C3: removed

Again, my info:

OS: Solaris 10 sparc on T2000
postfix: 2.5.2
dovecot: 1.1.2
sieve plug: 1.1.5

dovecot -n:
# 1.1.2: /userM/mail-services/dovecot/etc/dovecot.conf
Warning: fd limit 256 is lower than what Dovecot can use under full load
(more than 3072). Either grow the limit or change
login_max_processes_count and max_mail_processes settings
base_dir: /userM/mail-services/dovecot/var/run/dovecot/
protocols: imap imaps pop3 pop3s
ssl_cert_file: /userM/mail-services/dovecot/etc/ssl/dovecot.pem
ssl_key_file: /userM/mail-services/dovecot/etc/ssl/privkey.pem
ssl_parameters_regenerate: 0
ssl_cipher_list: MEDIUM:!LOW
disable_plaintext_auth: no
login_dir: /userM/mail-services/dovecot/var/run/dovecot/login
login_executable(default):
/userM/mail-services/dovecot/libexec/dovecot/imap-login
login_executable(imap):
/userM/mail-services/dovecot/libexec/dovecot/imap-login
login_executable(pop3):
/userM/mail-services/dovecot/l

Re: [Dovecot] How to do line breaks in sieve scripts?

2008-08-08 Thread CJ Keist
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Stephan,
   Thank you, didn't realize how buggy the libphp-sieve was.  It does
compile fine with sievec.


Stephan Bosch wrote:
> CJ Keist wrote:
>> In working with auto vacation replies I'd like to do a sieve script as
>> follows:
>>
>> require ["vacation"];
>> vacation
>> :days 30
>> :addresses "[EMAIL PROTECTED]"
>> :subject "Out of Office"
>> "* Out of Office **
>>
>> I'm away -- send mail to foo in my absence
>>
>> ***";
>>
>>
>> But the libsieve-php.sourceforge.net check site doesn't like the line
>> breaks.  Is there a way to do line breaks in sieve scripting?
>> I've tried "\" at the end of the lines but that didn't work.
> Actually, the libsieve-php is wrong.
> 
> From RFC 5228 Section 8.1 (http://tools.ietf.org/html/rfc5228):
> 
>  quoted-safe= CRLF / octet-not-qspecial
>   ; either a CRLF pair, OR a single octet other
>   ; than NUL, CR, LF, double-quote, or backslash
>  quoted-text= *(quoted-safe / quoted-special / quoted-other)
>  quoted-string  = DQUOTE quoted-text DQUOTE
> 
> So, presuming that the lines end in CRLF and not just LF (on this part
> the RFC is too strict in my opinion), your script is valid (I verified).
> You can probably work around this bug using a literal string:
> 
> require ["vacation"];
> vacation
> :days 30
> :addresses "[EMAIL PROTECTED]"
> :subject "Out of Office" text:
> ** Out of Office **
> 
>  I'm away -- send mail to foo in my absence
> 
> ***
> .
> ;
> 
> Or use the sievec binary to (test-) compile your sieve scripts.
> 
> Regards,
> 
> Stephan
> 

- --
C. J. Keist Email: [EMAIL PROTECTED]
UNIX/Network ManagerPhone: 970-491-0630
Engineering Network ServicesFax:   970-491-5569
College of Engineering, CSU
Ft. Collins, CO 80523-1301

All I want is a chance to prove 'Money can't buy happiness'
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.5 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFInFoXA29OFr7C6jcRAlZpAJ9fhgKiVyoAzC2jUo22k+ItoyFO5QCg2Lyx
hifGvi1kwbZ6uFsfAd9WxVs=
=6cnM
-END PGP SIGNATURE-


[Dovecot] How to do line breaks in sieve scripts?

2008-08-07 Thread CJ Keist
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

In working with auto vacation replies I'd like to do a sieve script as
follows:

require ["vacation"];
vacation
:days 30
:addresses "[EMAIL PROTECTED]"
:subject "Out of Office"
"* Out of Office **

I'm away -- send mail to foo in my absence

***";


But the libsieve-php.sourceforge.net check site doesn't like the line
breaks.  Is there a way to do line breaks in sieve scripting?
I've tried "\" at the end of the lines but that didn't work.


- --
C. J. Keist Email: [EMAIL PROTECTED]
UNIX/Network ManagerPhone: 970-491-0630
Engineering Network ServicesFax:   970-491-5569
College of Engineering, CSU
Ft. Collins, CO 80523-1301

All I want is a chance to prove 'Money can't buy happiness'
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.5 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFIm2UwA29OFr7C6jcRAn7mAKCokJxNCkTiwyXuSo1qDjZ+9xqVfgCdG3vC
DC+/BIiQVqZN+U8CzwWdxgQ=
=4+0r
-END PGP SIGNATURE-


Re: [Dovecot] Dovecot auto vacation with sieve doesn't work

2008-08-07 Thread CJ Keist
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Just to wrap this up.

I think I found my problem.  I'm running this on a test mail server in
engr.colostate.edu domain, but configuring the mail server to think it's
in engr2.colostate.edu.  So the sieve plungin was trying to see if the
message was for me by checking the "[EMAIL PROTECTED]" with what
it is getting as the real domain "engr.colostate.edu".  Didn't match so
it was setting the address as "[EMAIL PROTECTED]" and so sieve
would not deliver the auto reply.
Not entirely sure that is correct but I what I have done to get around
this is to hard code in the engr2.colostate.edu domain in the sieve
plugin and recompiled. Is there something I could do in the dovecot.conf
file to fix this?  Anyway, it is now sending the vacation reply!
This should not be a problem once I move it over to our main mail server.


CJ Keist wrote:
> Okay,
>Trying to do some debugging of the sieve code.  So I have found that
> it is failing on sending the reply in the following code area:
> 
> bc_eval.c
> Line: 324
> /* ok, we're willing to respond to the sender.
>but is this message to me?  that is, is my address
>in the [Resent]-To, [Resent]-Cc or [Resent]-Bcc fields? */
> 
> But I haven't pin-pointed yet why it's not seeing the message as being
> for me??
> 
> 
> 
> CJ Keist wrote:
>> Timo,
>> I removed the ${1} variable but still no luck.  I read the reasons
>> why deliver would not send a reply but I don't think any should be true.
>>  Below is the header of one of the messages, let me know if you see
>> something that is causing sieve not to send the reply.
> 
>> - From [EMAIL PROTECTED]  Wed Aug 06 12:59:28 2008
>> Return-Path: <[EMAIL PROTECTED]>
>> X-Original-To: [EMAIL PROTECTED]
>> Delivered-To: [EMAIL PROTECTED]
>> Received: from bird.ACNS.ColoState.EDU (bird.acns.colostate.edu
>> [129.82.100.165]
>> )
>> by mail2.engr.colostate.edu (Postfix) with ESMTPS id 0D01C59984
>> for <[EMAIL PROTECTED]>; Wed,  6 Aug 2008 12:59:27 -0600
>> (MDT)
>> Received: from parker.ACNS.ColoState.EDU (parker.colostate.edu
>> [129.82.103.125])
>> by bird.ACNS.ColoState.EDU (8.12.11.20060308/8.12.11) with ESMTP
>> id m76I
>> xJDX014096
>> for <[EMAIL PROTECTED]>; Wed, 6 Aug 2008 12:59:19 -0600
>> Received: from goku.engr.colostate.edu (goku.engr.colostate.edu
>> [129.82.224.16])
>> by parker.ACNS.ColoState.EDU (AIX5.3/8.13.4/8.11.0) with ESMTP
>> id m76IxJ
>> wC909674
>> for <[EMAIL PROTECTED]>; Wed, 6 Aug 2008 12:59:19 -0600
>> Received: from webmail.engr.colostate.edu (sunbeam.engr.colostate.edu
>> [129.82.22
>> 4.8])
>> by goku.engr.colostate.edu (Postfix) with ESMTP id 23AE126AAF
>> for <[EMAIL PROTECTED]>; Wed,  6 Aug 2008 12:59:20 -0600
>> (MDT)
>> Received: from 129.82.224.6
>> (SquirrelMail authenticated user joeblow)
>> by webmail.engr.colostate.edu with HTTP;
>> Wed, 6 Aug 2008 12:59:19 -0600 (MDT)
>> Message-ID:
>> <[EMAIL PROTECTED]
>> u>
>> Date: Wed, 6 Aug 2008 12:59:19 -0600 (MDT)
>> Subject: test 9
>> From: [EMAIL PROTECTED]
>> To: [EMAIL PROTECTED]
>> User-Agent: SquirrelMail/1.4.15
>> MIME-Version: 1.0
>> Content-Type: text/plain;charset=iso-8859-1
>> Content-Transfer-Encoding: 8bit
>> X-Priority: 3 (Normal)
>> Importance: Normal
>> X-Proofpoint-Virus-Version: vendor=fsecure
>> engine=1.12.7160:2.4.4,1.2.40,4.0.166
>>  definitions=2008-08-06_05:2008-08-05,2008-08-06,2008-08-06 signatures=0
>> X-Proofpoint-Spam-Details: rule=notspam policy=default score=0
>> spamscore=0 ipsco
>> re=0 phishscore=0 bulkscore=0 adultscore=0 classifier=spam adjust=0
>> reason=mlx e
>> ngine=5.0.0-080509 definitions=main-0808060075
>> X-UID: 33
>> Status: RO
>> X-Keywords:
> 
> 
>> Content-Length: 33
> 
> 
>> Timo Sirainen wrote:
>>> On Aug 6, 2008, at 1:57 PM, CJ Keist wrote:
>>>> My .dovecot.sieve file:
>>>>
>>>> require ["vacation"];
>>>>   if header :matches "subject" "*" {
>>>>   vacation
>>>>   :days 30
>>>>   :addresses "[EMAIL PROTECTED]"
>>>>   :subject "Automatic response to: ${1}"
>>>>"I'm away -- send mail to foo in my absence";
>>>>   }
>>> You can't use ${1} since variables extension isn'

Re: [Dovecot] Dovecot auto vacation with sieve doesn't work

2008-08-06 Thread CJ Keist
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Okay,
   Trying to do some debugging of the sieve code.  So I have found that
it is failing on sending the reply in the following code area:

bc_eval.c
Line: 324
/* ok, we're willing to respond to the sender.
   but is this message to me?  that is, is my address
   in the [Resent]-To, [Resent]-Cc or [Resent]-Bcc fields? */

But I haven't pin-pointed yet why it's not seeing the message as being
for me??



CJ Keist wrote:
> Timo,
> I removed the ${1} variable but still no luck.  I read the reasons
> why deliver would not send a reply but I don't think any should be true.
>  Below is the header of one of the messages, let me know if you see
> something that is causing sieve not to send the reply.
> 
> - From [EMAIL PROTECTED]  Wed Aug 06 12:59:28 2008
> Return-Path: <[EMAIL PROTECTED]>
> X-Original-To: [EMAIL PROTECTED]
> Delivered-To: [EMAIL PROTECTED]
> Received: from bird.ACNS.ColoState.EDU (bird.acns.colostate.edu
> [129.82.100.165]
> )
> by mail2.engr.colostate.edu (Postfix) with ESMTPS id 0D01C59984
> for <[EMAIL PROTECTED]>; Wed,  6 Aug 2008 12:59:27 -0600
> (MDT)
> Received: from parker.ACNS.ColoState.EDU (parker.colostate.edu
> [129.82.103.125])
> by bird.ACNS.ColoState.EDU (8.12.11.20060308/8.12.11) with ESMTP
> id m76I
> xJDX014096
> for <[EMAIL PROTECTED]>; Wed, 6 Aug 2008 12:59:19 -0600
> Received: from goku.engr.colostate.edu (goku.engr.colostate.edu
> [129.82.224.16])
> by parker.ACNS.ColoState.EDU (AIX5.3/8.13.4/8.11.0) with ESMTP
> id m76IxJ
> wC909674
> for <[EMAIL PROTECTED]>; Wed, 6 Aug 2008 12:59:19 -0600
> Received: from webmail.engr.colostate.edu (sunbeam.engr.colostate.edu
> [129.82.22
> 4.8])
> by goku.engr.colostate.edu (Postfix) with ESMTP id 23AE126AAF
> for <[EMAIL PROTECTED]>; Wed,  6 Aug 2008 12:59:20 -0600
> (MDT)
> Received: from 129.82.224.6
> (SquirrelMail authenticated user joeblow)
> by webmail.engr.colostate.edu with HTTP;
> Wed, 6 Aug 2008 12:59:19 -0600 (MDT)
> Message-ID:
> <[EMAIL PROTECTED]
> u>
> Date: Wed, 6 Aug 2008 12:59:19 -0600 (MDT)
> Subject: test 9
> From: [EMAIL PROTECTED]
> To: [EMAIL PROTECTED]
> User-Agent: SquirrelMail/1.4.15
> MIME-Version: 1.0
> Content-Type: text/plain;charset=iso-8859-1
> Content-Transfer-Encoding: 8bit
> X-Priority: 3 (Normal)
> Importance: Normal
> X-Proofpoint-Virus-Version: vendor=fsecure
> engine=1.12.7160:2.4.4,1.2.40,4.0.166
>  definitions=2008-08-06_05:2008-08-05,2008-08-06,2008-08-06 signatures=0
> X-Proofpoint-Spam-Details: rule=notspam policy=default score=0
> spamscore=0 ipsco
> re=0 phishscore=0 bulkscore=0 adultscore=0 classifier=spam adjust=0
> reason=mlx e
> ngine=5.0.0-080509 definitions=main-0808060075
> X-UID: 33
> Status: RO
> X-Keywords:
> 
> 
> Content-Length: 33
> 
> 
> Timo Sirainen wrote:
>> On Aug 6, 2008, at 1:57 PM, CJ Keist wrote:
> 
>>> My .dovecot.sieve file:
>>>
>>> require ["vacation"];
>>>   if header :matches "subject" "*" {
>>>   vacation
>>>   :days 30
>>>   :addresses "[EMAIL PROTECTED]"
>>>   :subject "Automatic response to: ${1}"
>>>"I'm away -- send mail to foo in my absence";
>>>   }
>> You can't use ${1} since variables extension isn't supported by cmusieve.
> 
>>> In my testing I know the sieve plugin is reading my .dovecot.sieve
>>> script and creating the .dovecot.sievec, but that is as for as it goes.
>>> The .dovecot.lda-dupes file is not being created (or any
>>> .dovecot.sieve.err file) and no reply is even being attempted from the
>>> logs:
>> Then it means that Dovecot decided it shouldn't reply to the mail. There
>> are several reasons for that listed in
>> http://wiki.dovecot.org/LDA/Sieve (would be nice if it logged the exact
>> reason though - hopefully the Sieve rewrite will do that :)
> 
> 

- --
C. J. Keist Email: [EMAIL PROTECTED]
UNIX/Network ManagerPhone: 970-491-0630
Engineering Network ServicesFax:   970-491-5569
College of Engineering, CSU
Ft. Collins, CO 80523-1301

All I want is a chance to prove 'Money can't buy happiness'
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.5 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFImi3AA29OFr7C6jcRAqOuAJ9N5dVnDxA7PU5A66i/A4OAgrl04gCeLCKj
cA/+AxmAB7I+vDtj7tqhl1A=
=Whfo
-END PGP SIGNATURE-


Re: [Dovecot] Dovecot auto vacation with sieve doesn't work

2008-08-06 Thread CJ Keist
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Timo,
I removed the ${1} variable but still no luck.  I read the reasons
why deliver would not send a reply but I don't think any should be true.
 Below is the header of one of the messages, let me know if you see
something that is causing sieve not to send the reply.

- From [EMAIL PROTECTED]  Wed Aug 06 12:59:28 2008
Return-Path: <[EMAIL PROTECTED]>
X-Original-To: [EMAIL PROTECTED]
Delivered-To: [EMAIL PROTECTED]
Received: from bird.ACNS.ColoState.EDU (bird.acns.colostate.edu
[129.82.100.165]
)
by mail2.engr.colostate.edu (Postfix) with ESMTPS id 0D01C59984
for <[EMAIL PROTECTED]>; Wed,  6 Aug 2008 12:59:27 -0600
(MDT)
Received: from parker.ACNS.ColoState.EDU (parker.colostate.edu
[129.82.103.125])
by bird.ACNS.ColoState.EDU (8.12.11.20060308/8.12.11) with ESMTP
id m76I
xJDX014096
for <[EMAIL PROTECTED]>; Wed, 6 Aug 2008 12:59:19 -0600
Received: from goku.engr.colostate.edu (goku.engr.colostate.edu
[129.82.224.16])
by parker.ACNS.ColoState.EDU (AIX5.3/8.13.4/8.11.0) with ESMTP
id m76IxJ
wC909674
for <[EMAIL PROTECTED]>; Wed, 6 Aug 2008 12:59:19 -0600
Received: from webmail.engr.colostate.edu (sunbeam.engr.colostate.edu
[129.82.22
4.8])
by goku.engr.colostate.edu (Postfix) with ESMTP id 23AE126AAF
for <[EMAIL PROTECTED]>; Wed,  6 Aug 2008 12:59:20 -0600
(MDT)
Received: from 129.82.224.6
(SquirrelMail authenticated user joeblow)
by webmail.engr.colostate.edu with HTTP;
Wed, 6 Aug 2008 12:59:19 -0600 (MDT)
Message-ID:
<[EMAIL PROTECTED]
u>
Date: Wed, 6 Aug 2008 12:59:19 -0600 (MDT)
Subject: test 9
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
User-Agent: SquirrelMail/1.4.15
MIME-Version: 1.0
Content-Type: text/plain;charset=iso-8859-1
Content-Transfer-Encoding: 8bit
X-Priority: 3 (Normal)
Importance: Normal
X-Proofpoint-Virus-Version: vendor=fsecure
engine=1.12.7160:2.4.4,1.2.40,4.0.166
 definitions=2008-08-06_05:2008-08-05,2008-08-06,2008-08-06 signatures=0
X-Proofpoint-Spam-Details: rule=notspam policy=default score=0
spamscore=0 ipsco
re=0 phishscore=0 bulkscore=0 adultscore=0 classifier=spam adjust=0
reason=mlx e
ngine=5.0.0-080509 definitions=main-0808060075
X-UID: 33
Status: RO
X-Keywords:


Content-Length: 33


Timo Sirainen wrote:
> On Aug 6, 2008, at 1:57 PM, CJ Keist wrote:
> 
>> My .dovecot.sieve file:
>>
>> require ["vacation"];
>>   if header :matches "subject" "*" {
>>   vacation
>>   :days 30
>>   :addresses "[EMAIL PROTECTED]"
>>   :subject "Automatic response to: ${1}"
>>"I'm away -- send mail to foo in my absence";
>>   }
> 
> You can't use ${1} since variables extension isn't supported by cmusieve.
> 
>> In my testing I know the sieve plugin is reading my .dovecot.sieve
>> script and creating the .dovecot.sievec, but that is as for as it goes.
>> The .dovecot.lda-dupes file is not being created (or any
>> .dovecot.sieve.err file) and no reply is even being attempted from the
>> logs:
> 
> Then it means that Dovecot decided it shouldn't reply to the mail. There
> are several reasons for that listed in
> http://wiki.dovecot.org/LDA/Sieve (would be nice if it logged the exact
> reason though - hopefully the Sieve rewrite will do that :)
> 

- --
C. J. Keist Email: [EMAIL PROTECTED]
UNIX/Network ManagerPhone: 970-491-0630
Engineering Network ServicesFax:   970-491-5569
College of Engineering, CSU
Ft. Collins, CO 80523-1301

All I want is a chance to prove 'Money can't buy happiness'
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.5 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFImfl8A29OFr7C6jcRAsXVAKCJ64/SNiwVO6COtJpE0p53bzQhTACgjDYz
Y4zRsKKYCKQEUYXUDvhq18w=
=HpD2
-END PGP SIGNATURE-


[Dovecot] Dovecot auto vacation with sieve doesn't work

2008-08-06 Thread CJ Keist
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Sorry if this comes in twice, I sent this first from my test account.

- -

Guys, I'm running out of hair to pull out ;).

Can anyone out there say that this does work??  To me this is looking
like a bug and I'm not sure whether it's the sieve plugin or the dovecot
deliver program.  I have also had no luck the the "reject" sending any
reply back to the sender.

My setup:
OS: Solaris 10 sparc platform
postfix: 2.5.2
dovecot: 1.1.2
sieve plugin: 1.1.5

I'm going back forth between procmail and sieve and having no luck.
procmail will send the reply to the sender but doesn't deliver the
message to the recipient.  Sieve will deliver the message to the
recipient but doesn't send the reply to the sender.  Now if I can just
combine the two, I'll be in business.

Postfix mail command:

mailbox_command = /userM/mail-services/dovecot/libexec/dovecot/deliver
- -d $USER*
*
Dovecot -n (I've made some changes from my previous posting namely with
the master_auth settings)

# 1.1.2: /userM/mail-services/dovecot/etc/dovecot.conf
Warning: fd limit 256 is lower than what Dovecot can use under full load
(more than 3072). Either grow the limit or change
login_max_processes_count and max_mail_processes settings
base_dir: /userM/mail-services/dovecot/var/run/dovecot/
protocols: imap imaps pop3 pop3s
ssl_cert_file: /userM/mail-services/dovecot/etc/ssl/dovecot.pem
ssl_key_file: /userM/mail-services/dovecot/etc/ssl/privkey.pem
ssl_parameters_regenerate: 0
ssl_cipher_list: MEDIUM:!LOW
disable_plaintext_auth: no
login_dir: /userM/mail-services/dovecot/var/run/dovecot/login
login_executable(default):
/userM/mail-services/dovecot/libexec/dovecot/imap-login
login_executable(imap):
/userM/mail-services/dovecot/libexec/dovecot/imap-login
login_executable(pop3):
/userM/mail-services/dovecot/libexec/dovecot/pop3-login
login_greeting: Cyrus ready.
login_max_processes_count: 1024
max_mail_processes: 1024
mail_location: mbox:~/:INBOX=/userM/mail/%u
mail_debug: yes
mmap_disable: yes
mail_nfs_index: yes
mail_executable(default): /userM/mail-services/dovecot/libexec/dovecot/imap
mail_executable(imap): /userM/mail-services/dovecot/libexec/dovecot/imap
mail_executable(pop3): /userM/mail-services/dovecot/libexec/dovecot/pop3
mail_plugin_dir(default): /userM/mail-services/dovecot/lib/dovecot/imap
mail_plugin_dir(imap): /userM/mail-services/dovecot/lib/dovecot/imap
mail_plugin_dir(pop3): /userM/mail-services/dovecot/lib/dovecot/pop3
auth default:
  mechanisms: plain login
  verbose: yes
  debug: yes
  passdb:
driver: pam
  passdb:
driver: passwd
args: blocking=yes
  userdb:
driver: passwd
args: blocking=yes
  socket:
type: listen
client:
  path: /userM/mail-services/postfix/var/private/auth
  mode: 432
  user: postfix
  group: postfix
master:
  path: /userM/mail-services/dovecot/var/run/dovecot/auth-master
  mode: 384
  user: postfix
  group: postfix

My .dovecot.sieve file:

require ["vacation"];
   if header :matches "subject" "*" {
   vacation
   :days 30
   :addresses "[EMAIL PROTECTED]"
   :subject "Automatic response to: ${1}"
"I'm away -- send mail to foo in my absence";
   }

I made some modifications to the vacation reply base on the following URL:

http://ietfreport.isoc.org/idref/draft-ietf-sieve-vacation/

In my testing I know the sieve plugin is reading my .dovecot.sieve
script and creating the .dovecot.sievec, but that is as for as it goes.
The .dovecot.lda-dupes file is not being created (or any
.dovecot.sieve.err file) and no reply is even being attempted from the logs:

Aug  6 11:30:51 mail2.engr.colostate.edu dovecot: [ID 107833 mail.info]
auth(def
ault): new auth connection: pid=27187
Aug  6 11:30:51 mail2.engr.colostate.edu postfix/smtpd[27187]: [ID
197553 mail.i
nfo] connect from akron.colostate.edu[129.82.103.160]
Aug  6 11:30:51 mail2.engr.colostate.edu postfix/smtpd[27187]: [ID
197553 mail.i
nfo] setting up TLS connection from akron.colostate.edu[129.82.103.160]
Aug  6 11:30:51 mail2.engr.colostate.edu postfix/smtpd[27187]: [ID
197553 mail.i
nfo] Anonymous TLS connection established from
akron.colostate.edu[129.82.103.16
0]: TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)
Aug  6 11:30:52 mail2.engr.colostate.edu postfix/smtpd[27187]: [ID
197553 mail.i
nfo] 16E2059984: client=akron.colostate.edu[129.82.103.160]
Aug  6 11:30:52 mail2.engr.colostate.edu postfix/cleanup[27192]: [ID
197553 mail
.info] 16E2059984:
message-id=<[EMAIL PROTECTED]
.engr.colostate.edu>
Aug  6 11:30:52 mail2.engr.colostate.edu postfix/smtpd[27187]: [ID
197553 mail.i
nfo] disconnect from akron.colostate.edu[129.82.103.160]
Aug  6 11:30:52 mail2.engr.colostate.edu postfix/qmgr[18021]: [ID 197553
mail.in
fo] 16E2059984: from=<[EMAIL PROTECTED]>, size=1877, nrcpt=1
(queue act
ive)
Aug  6 11:30:52 mail2.engr.colostate.edu deliver(cjay): [ID 315030
mail.info] Lo
ading modules from directory: /userM/mail-service

[Dovecot] Dovecot auto vacation with sieve doesn't work

2008-08-06 Thread CJ Keist
Guys, I'm running out of hair to pull out ;).

Can anyone out there say that this does work??  To me this is looking
like a bug and I'm not sure whether it's the sieve plugin or the dovecot
deliver program.  I have also had no luck the the "reject" sending any
reply back to the sender.

My setup:
OS: Solaris 10 sparc platform
postfix: 2.5.2
dovecot: 1.1.2
sieve plugin: 1.1.5

I'm going back forth between procmail and sieve and having no luck. 
procmail will send the reply to the sender but doesn't deliver the
message to the recipient.  Sieve will deliver the message to the
recipient but doesn't send the reply to the sender.  Now if I can just
combine the two, I'll be in business.

Postfix mail command:

mailbox_command = /userM/mail-services/dovecot/libexec/dovecot/deliver
-d $USER*
*
Dovecot -n (I've made some changes from my previous posting namely with
the master_auth settings)

# 1.1.2: /userM/mail-services/dovecot/etc/dovecot.conf
Warning: fd limit 256 is lower than what Dovecot can use under full load
(more than 3072). Either grow the limit or change
login_max_processes_count and max_mail_processes settings
base_dir: /userM/mail-services/dovecot/var/run/dovecot/
protocols: imap imaps pop3 pop3s
ssl_cert_file: /userM/mail-services/dovecot/etc/ssl/dovecot.pem
ssl_key_file: /userM/mail-services/dovecot/etc/ssl/privkey.pem
ssl_parameters_regenerate: 0
ssl_cipher_list: MEDIUM:!LOW
disable_plaintext_auth: no
login_dir: /userM/mail-services/dovecot/var/run/dovecot/login
login_executable(default):
/userM/mail-services/dovecot/libexec/dovecot/imap-login
login_executable(imap):
/userM/mail-services/dovecot/libexec/dovecot/imap-login
login_executable(pop3):
/userM/mail-services/dovecot/libexec/dovecot/pop3-login
login_greeting: Cyrus ready.
login_max_processes_count: 1024
max_mail_processes: 1024
mail_location: mbox:~/:INBOX=/userM/mail/%u
mail_debug: yes
mmap_disable: yes
mail_nfs_index: yes
mail_executable(default): /userM/mail-services/dovecot/libexec/dovecot/imap
mail_executable(imap): /userM/mail-services/dovecot/libexec/dovecot/imap
mail_executable(pop3): /userM/mail-services/dovecot/libexec/dovecot/pop3
mail_plugin_dir(default): /userM/mail-services/dovecot/lib/dovecot/imap
mail_plugin_dir(imap): /userM/mail-services/dovecot/lib/dovecot/imap
mail_plugin_dir(pop3): /userM/mail-services/dovecot/lib/dovecot/pop3
auth default:
  mechanisms: plain login
  verbose: yes
  debug: yes
  passdb:
driver: pam
  passdb:
driver: passwd
args: blocking=yes
  userdb:
driver: passwd
args: blocking=yes
  socket:
type: listen
client:
  path: /userM/mail-services/postfix/var/private/auth
  mode: 432
  user: postfix
  group: postfix
master:
  path: /userM/mail-services/dovecot/var/run/dovecot/auth-master
  mode: 384
  user: postfix
  group: postfix

My .dovecot.sieve file:

require ["vacation"];
   if header :matches "subject" "*" {
   vacation
   :days 30
   :addresses "[EMAIL PROTECTED]"
   :subject "Automatic response to: ${1}"
"I'm away -- send mail to foo in my absence";
   }

I made some modifications to the vacation reply base on the following URL:

http://ietfreport.isoc.org/idref/draft-ietf-sieve-vacation/

In my testing I know the sieve plugin is reading my .dovecot.sieve
script and creating the .dovecot.sievec, but that is as for as it goes. 
The .dovecot.lda-dupes file is not being created (or any
.dovecot.sieve.err file) and no reply is even being attempted from the logs:

Aug  6 11:30:51 mail2.engr.colostate.edu dovecot: [ID 107833 mail.info]
auth(def
ault): new auth connection: pid=27187
Aug  6 11:30:51 mail2.engr.colostate.edu postfix/smtpd[27187]: [ID
197553 mail.i
nfo] connect from akron.colostate.edu[129.82.103.160]
Aug  6 11:30:51 mail2.engr.colostate.edu postfix/smtpd[27187]: [ID
197553 mail.i
nfo] setting up TLS connection from akron.colostate.edu[129.82.103.160]
Aug  6 11:30:51 mail2.engr.colostate.edu postfix/smtpd[27187]: [ID
197553 mail.i
nfo] Anonymous TLS connection established from
akron.colostate.edu[129.82.103.16
0]: TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)
Aug  6 11:30:52 mail2.engr.colostate.edu postfix/smtpd[27187]: [ID
197553 mail.i
nfo] 16E2059984: client=akron.colostate.edu[129.82.103.160]
Aug  6 11:30:52 mail2.engr.colostate.edu postfix/cleanup[27192]: [ID
197553 mail
.info] 16E2059984:
message-id=<[EMAIL PROTECTED]
.engr.colostate.edu>
Aug  6 11:30:52 mail2.engr.colostate.edu postfix/smtpd[27187]: [ID
197553 mail.i
nfo] disconnect from akron.colostate.edu[129.82.103.160]
Aug  6 11:30:52 mail2.engr.colostate.edu postfix/qmgr[18021]: [ID 197553
mail.in
fo] 16E2059984: from=<[EMAIL PROTECTED]>, size=1877, nrcpt=1
(queue act
ive)
Aug  6 11:30:52 mail2.engr.colostate.edu deliver(cjay): [ID 315030
mail.info] Lo
ading modules from directory: /userM/mail-services/dovecot/lib/dovecot/lda
Aug  6 11:30:52 mail2.engr.colostate.edu deliver(cjay): [ID 619685
mail.info] Mo
dule loaded:
/userM/mail

[Dovecot] Vacation reply with Procmail and dovecot deliver

2008-08-05 Thread CJ Keist
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Giving up on the sieve plugin and switching to procmail.  I found the
following link:

http://wiki.dovecot.org/procmail

This site doesn't saying anything about needing to modify the procmail
source code like here:

http://dovecot.org/pipermail/dovecot/2006-July/014656.html

Thos shows how to make procmail work with dovecot deliver program.  So
you create the following /etc/procmailrc file:

# file: /etc/procmailrc
# system-wide settings for procmail
SHELL="/usr/bin/sh"
SENDMAIL="/userM/mail-services/postfix/lib/sendmail"
LOGFILE="/var/log/procmail.log"
DELIVER="/userM/mail-services/dovecot/libexec/dovecot/deliver -d $USER"
# fallback:
DEFAULT="$HOME/mail"
:0 w
| $DELIVER

So I modified postfix to call procmail (version 3.22):

mailbox_command = /userM/mail-services/procmail/bin/procmail -Y -a
$DOMAIN -d $USER

So now I'm getting the vacation reply sent to the sender (Yea!!!), but
the message is failing to get to the recipient. In the procmail log file
I see:

Fatal: Missing -d argument
procmail: Program failure (64) of
"/userM/mail-services/dovecot/libexec/dovecot/
deliver"
- From [EMAIL PROTECTED]  Tue Aug  5 15:21:09 2008
 Subject: test 7 procmail
  Folder: /top/admin/ENS/people/cjay/home/mail/msg.qX_
   1878

Has anyone got this setup working??


- --
C. J. Keist Email: [EMAIL PROTECTED]
UNIX/Network ManagerPhone: 970-491-0630
Engineering Network ServicesFax:   970-491-5569
College of Engineering, CSU
Ft. Collins, CO 80523-1301

All I want is a chance to prove 'Money can't buy happiness'
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.5 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFImNFqA29OFr7C6jcRAlNxAKCzazkpf6SFzitoZ83SS0bN5UdepwCff2oR
SO4HPqKfdrhIVmnVeY1lFSM=
=qANC
-END PGP SIGNATURE-


[Dovecot] Dovecot sieve plugin reject not working

2008-08-05 Thread CJ Keist
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

I'm at a loss here.  Details of my setup:

OS: Solaris 10
gcc version: 3.4.3
postfix version 2.5.2
dovecot version 1.1.2
dovecot sieve version 1.1.5

How I installed:

Postfix:
make makefiles CCARGS='-DUSE_SASL_AUTH
\-DDEF_SERVER_SASL_TYPE=\"dovecot\" -DUSE_TLS -I/opt/csw/include'
\AUXLIBS="-R/opt/csw/lib -L/opt/csw/lib -lssl -lcrypto -ldb"
make
make upgrade

Dovecot:
./configure --prefix=/userM/mail-services/dovecot
make
make install

Sieve:
./configure --prefix=/userM/mail-services/dovecot
- --with-dovecot=../dovecot-1.1.2
make
make install

dovecot -n
# 1.1.2: /userM/mail-services/dovecot/etc/dovecot.conf
Warning: fd limit 256 is lower than what Dovecot can use under full load
(more than 3072). Either grow the limit or change
login_max_processes_count and max_mail_processes settings
base_dir: /userM/mail-services/dovecot/var/run/dovecot/
protocols: imap imaps pop3 pop3s
ssl_cert_file: /userM/mail-services/dovecot/etc/ssl/dovecot.pem
ssl_key_file: /userM/mail-services/dovecot/etc/ssl/privkey.pem
ssl_parameters_regenerate: 0
ssl_cipher_list: MEDIUM:!LOW
disable_plaintext_auth: no
login_dir: /userM/mail-services/dovecot/var/run/dovecot/login
login_executable(default):
/userM/mail-services/dovecot/libexec/dovecot/imap-login
login_executable(imap):
/userM/mail-services/dovecot/libexec/dovecot/imap-login
login_executable(pop3):
/userM/mail-services/dovecot/libexec/dovecot/pop3-login
login_greeting: Cyrus ready.
login_max_processes_count: 1024
max_mail_processes: 1024
mail_location: mbox:~/:INBOX=/userM/mail/%u
mail_debug: yes
mmap_disable: yes
mail_nfs_index: yes
mail_executable(default): /userM/mail-services/dovecot/libexec/dovecot/imap
mail_executable(imap): /userM/mail-services/dovecot/libexec/dovecot/imap
mail_executable(pop3): /userM/mail-services/dovecot/libexec/dovecot/pop3
mail_plugin_dir(default): /userM/mail-services/dovecot/lib/dovecot/imap
mail_plugin_dir(imap): /userM/mail-services/dovecot/lib/dovecot/imap
mail_plugin_dir(pop3): /userM/mail-services/dovecot/lib/dovecot/pop3
auth default:
  mechanisms: plain login
  verbose: yes
  debug: yes
  passdb:
driver: pam
  passdb:
driver: passwd
args: blocking=yes
  userdb:
driver: passwd
args: blocking=yes
  socket:
type: listen
client:
  path: /userM/mail-services/postfix/var/private/auth
  mode: 432
  user: postfix
  group: postfix

.dovecot.sieve:
require ["fileinto", "vacation", "reject"];
if address :is "from" "[EMAIL PROTECTED]" {
  reject "I don't like your email message";
}

When I send message from yahoo.com to my [EMAIL PROTECTED]
account on this server no rejection notice is being sent back.  It looks
like at the end of the log file section below that it is sending
something back, but nothing shows up. Also see how the "From" is empty?
I don't think this is postfix problem as I can send and receive mail
through it fine.

SysLog:
Aug  5 08:46:09 mail2.engr.colostate.edu dovecot: [ID 107833 mail.info]
auth(def
ault): new auth connection: pid=11000
Aug  5 08:46:09 mail2.engr.colostate.edu postfix/smtpd[11000]: [ID
197553 mail.i
nfo] connect from pace.acns.colostate.edu[129.82.100.168]
Aug  5 08:46:09 mail2.engr.colostate.edu postfix/smtpd[11000]: [ID
197553 mail.i
nfo] setting up TLS connection from pace.acns.colostate.edu[129.82.100.168]
Aug  5 08:46:09 mail2.engr.colostate.edu postfix/smtpd[11000]: [ID
197553 mail.i
nfo] Anonymous TLS connection established from
pace.acns.colostate.edu[129.82.10
0.168]: TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)
Aug  5 08:46:09 mail2.engr.colostate.edu postfix/smtpd[11000]: [ID
197553 mail.i
nfo] CBD4059982: client=pace.acns.colostate.edu[129.82.100.168]
Aug  5 08:46:09 mail2.engr.colostate.edu postfix/cleanup[11016]: [ID
197553 mail
.info] CBD4059982: message-id=<[EMAIL PROTECTED]>
Aug  5 08:46:09 mail2.engr.colostate.edu postfix/smtpd[11000]: [ID
197553 mail.i
nfo] disconnect from pace.acns.colostate.edu[129.82.100.168]
Aug  5 08:46:09 mail2.engr.colostate.edu postfix/qmgr[23653]: [ID 197553
mail.in
fo] CBD4059982: from=<[EMAIL PROTECTED]>, size=1701, nrcpt=1 (queue
active)
Aug  5 08:46:10 mail2.engr.colostate.edu deliver(cjay): [ID 315030
mail.info] Lo
ading modules from directory: /userM/mail-services/dovecot/lib/dovecot/lda
Aug  5 08:46:10 mail2.engr.colostate.edu deliver(cjay): [ID 619685
mail.info] Mo
dule loaded:
/userM/mail-services/dovecot/lib/dovecot/lda/lib90_cmusieve_plugin.
so
Aug  5 08:46:10 mail2.engr.colostate.edu deliver(cjay): [ID 848615
mail.info] mb
ox: data=/top/admin/ENS/people/cjay/home/:INBOX=/userM/mail/cjay
Aug  5 08:46:10 mail2.engr.colostate.edu deliver(cjay): [ID 885103
mail.info] fs
: root=/top/admin/ENS/people/cjay/home, index=, control=,
inbox=/userM/mail/cjay
Aug  5 08:46:10 mail2.engr.colostate.edu deliver(cjay): [ID 223526
mail.info] cm
usieve: Using sieve path: /top/admin/ENS/people/cjay/home/.dovecot.sieve
Aug  5 08:46:10 mail2.engr.colostate.edu deliver(cjay): [ID 507699
mai

Re: [Dovecot] Help with auto vacation replies

2008-08-04 Thread CJ Keist
3:24:50 mail2.engr.colostate.edu deliver(joeblow): [ID 619685
mail.info] Module loaded:
/userM/mail-services/dovecot/lib/dovecot/lda/lib90_cmusieve_plugin.so
Aug  4 13:24:50 mail2.engr.colostate.edu deliver(joeblow): [ID 848615
mail.info] mbox:
data=/top/students/UNGRAD/ES/joeblow/home/:INBOX=/userM/mail/joeblow
Aug  4 13:24:50 mail2.engr.colostate.edu deliver(joeblow): [ID 885103
mail.info] fs: root=/top/students/UNGRAD/ES/joeblow/home, index=,
control=, inbox=/userM/mail/joeblow
Aug  4 13:24:50 mail2.engr.colostate.edu deliver(joeblow): [ID 497138
mail.info] cmusieve: /top/students/UNGRAD/ES/joeblow/home/.dovecot.sieve
doesn't exist
Aug  4 13:24:50 mail2.engr.colostate.edu deliver(joeblow): [ID 702911
mail.info] msgid=<[EMAIL PROTECTED]>:
saved mail to INBOX
Aug  4 13:24:50 mail2.engr.colostate.edu postfix/local[10918]: [ID
197553 mail.info] BB44459EFA: to=<[EMAIL PROTECTED]>,
relay=local, delay=0.85, delays=0.28/0/0/0.58, dsn=2.0.0, status=sent
(delivered to command: /userM/m
ail-services/dovecot/libexec/dovecot/deliver)
Aug  4 13:24:50 mail2.engr.colostate.edu postfix/qmgr[4666]: [ID 197553
mail.info] BB44459EFA: removed
Aug  4 13:25:19 mail2.engr.colostate.edu dovecot: [ID 107833 mail.info]
auth(default): client in: AUTH  1   PLAIN   service=imapsecured
lip=129.82.224.17   rip=129.82.224.6lport=993   rport=49849
Aug  4 13:25:19 mail2.engr.colostate.edu dovecot: [ID 107833 mail.info]
auth(default): client out: CONT 1
Aug  4 13:25:19 mail2.engr.colostate.edu dovecot: [ID 107833 mail.info]
auth(default): client in: CONT
Aug  4 13:25:19 mail2.engr.colostate.edu dovecot: [ID 107833 mail.info]
auth-worker(default): pam(cjay,129.82.224.6): lookup service=dovecot
Aug  4 13:25:20 mail2.engr.colostate.edu dovecot: [ID 107833 mail.info]
auth(default): new auth connection: pid=11088
Aug  4 13:25:22 mail2.engr.colostate.edu dovecot: [ID 107833 mail.info]
auth-worker(default): pam(cjay,129.82.224.6): #1/1 style=1 msg=Password:
Aug  4 13:25:22 mail2.engr.colostate.edu dovecot: [ID 107833 mail.info]
auth(default): client out: OK   1   user=cjay
Aug  4 13:25:22 mail2.engr.colostate.edu dovecot: [ID 107833 mail.info]
auth(default): master in: REQUEST   1   10787   1
Aug  4 13:25:22 mail2.engr.colostate.edu dovecot: [ID 107833 mail.info]
auth-worker(default): passwd(cjay,129.82.224.6): lookup
Aug  4 13:25:22 mail2.engr.colostate.edu dovecot: [ID 107833 mail.info]
auth(default): master out: USER 1   cjaysystem_user=cjay
uid=10946   gid=32  home=/top/admin/ENS/people/cjay/home
Aug  4 13:25:22 mail2.engr.colostate.edu dovecot: [ID 107833 mail.info]
imap-login: Login: user=, method=PLAIN, rip=129.82.224.6,
lip=129.82.224.17, TLS
Aug  4 13:25:22 mail2.engr.colostate.edu dovecot: [ID 107833 mail.info]
IMAP(cjay): Effective uid=10946, gid=32,
home=/top/admin/ENS/people/cjay/home
Aug  4 13:25:22 mail2.engr.colostate.edu dovecot: [ID 107833 mail.info]
IMAP(cjay): mbox:
data=/top/admin/ENS/people/cjay/home/:INBOX=/userM/mail/cjay
Aug  4 13:25:22 mail2.engr.colostate.edu dovecot: [ID 107833 mail.info]
IMAP(cjay): fs: root=/top/admin/ENS/people/cjay/home, index=, control=,
inbox=/userM/mail/cjay
#



Timo Sirainen wrote:
> On Aug 4, 2008, at 11:30 AM, CJ Keist wrote:
> 
>> I have everything compiled and working except for the sieve plugin.  I'm
>> now trying to test out the sieve plugin and having no luck in getting a
>> simple auto vacation reply to work.
> 
> When testing, remember to delete .dovecot.lda-dupes between the tests so
> Dovecot doesn't just disable it.
> 
> Also have you tried if reject works? That shows if the problem is with
> sendmail calling.
> 
>> Aug  4 09:06:28 mail2.engr.colostate.edu postfix/local[7480]: [ID 197553
>> mail.info] 622BB59EFA: to=<[EMAIL PROTECTED]>, relay=local,
>> delay=0.89, delays=0
>> .18/0.08/0/0.64, dsn=2.0.0, status=sent (delivered to command:
>> /userM/mail-services/dovecot/libexec/dovecot/deliver)
>> Aug  4 09:06:28 mail2.engr.colostate.edu postfix/qmgr[4666]: [ID 197553
>> mail.info] 622BB59EFA: removed
> 
> These are Postfix's logs. Dovecot should log something itself as well.
> At minimum something like:
> 
> deliver(tss): Jun 12 11:01:31 Info: msgid=<[EMAIL PROTECTED]>: saved mail to 
> INBOX
> 
> See http://wiki.dovecot.org/LDA -> logging and/or
> http://wiki.dovecot.org/Logging if you can't find it. Also note that
> errors and non-errors may be logged to different files.

- --
C. J. Keist Email: [EMAIL PROTECTED]
UNIX/Network ManagerPhone: 970-491-0630
Engineering Network ServicesFax:   970-491-5569
College of Engineering, CSU
Ft. Collins, CO 80523-1301

All I want is a chance to prove 'Money can't buy happiness'
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.5 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFIl1mfA29OFr7C6jcRAp+JAKCktgzZ+o6fDqRk90jVDegGn611ogCeIamv
WPlkrH+EexLyYsk/HZsNAFE=
=KGp8
-END PGP SIGNATURE-


[Dovecot] Help with auto vacation replies

2008-08-04 Thread CJ Keist
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hello,
   I'm testing out dovecot with postfix.  I'm running postfix 2.5.2 with
dovecot version 1.1.1 with dovecot sieve plugin version 1.1.5.

I have everything compiled and working except for the sieve plugin.  I'm
now trying to test out the sieve plugin and having no luck in getting a
simple auto vacation reply to work.  Here is my .dovecot.sieve script:

require ["fileinto", "vacation"];

# BEGIN VACATION
vacation
:days 30
:subject "Out of Office Reply"
:addresses ["[EMAIL PROTECTED]"]
"OUT OF THE OFFICE";

I know the dovecot delivery program is reading my script as the
.dovecot.sievec file is being created and there is no .dovecot.sieve.err
file.  Permissions of the files are in my ownership.  The files are
located in my home directory as well.  The log files simply show
delivery of the message and nothing else:

Aug  4 09:06:28 mail2.engr.colostate.edu postfix/local[7480]: [ID 197553
mail.info] 622BB59EFA: to=<[EMAIL PROTECTED]>, relay=local,
delay=0.89, delays=0
.18/0.08/0/0.64, dsn=2.0.0, status=sent (delivered to command:
/userM/mail-services/dovecot/libexec/dovecot/deliver)
Aug  4 09:06:28 mail2.engr.colostate.edu postfix/qmgr[4666]: [ID 197553
mail.info] 622BB59EFA: removed


Any help as to why it is not sending any replies?

Dovecot -n follows:

# 1.1.1: /userM/mail-services/dovecot/etc/dovecot.conf
Warning: fd limit 256 is lower than what Dovecot can use under full load
(more than 1500). Either grow the limit or change
login_max_processes_count and max_mail_processes settings
base_dir: /var/run/dovecot/
protocols: imap imaps pop3 pop3s
ssl_cert_file: /userM/mail-services/dovecot/etc/ssl/dovecot.pem
ssl_key_file: /userM/mail-services/dovecot/etc/ssl/privkey.pem
ssl_parameters_regenerate: 0
ssl_cipher_list: MEDIUM:!LOW
disable_plaintext_auth: no
login_dir: /var/run/dovecot//login
login_executable(default):
/userM/mail-services/dovecot/libexec/dovecot/imap-login
login_executable(imap):
/userM/mail-services/dovecot/libexec/dovecot/imap-login
login_executable(pop3):
/userM/mail-services/dovecot/libexec/dovecot/pop3-login
login_greeting: Cyrus ready.
login_max_processes_count: 500
max_mail_processes: 500
mail_location: mbox:~/:INBOX=/userM/mail/%u
mmap_disable: yes
mail_nfs_index: yes
mail_executable(default): /userM/mail-services/dovecot/libexec/dovecot/imap
mail_executable(imap): /userM/mail-services/dovecot/libexec/dovecot/imap
mail_executable(pop3): /userM/mail-services/dovecot/libexec/dovecot/pop3
mail_plugin_dir(default): /userM/mail-services/dovecot/lib/dovecot/imap
mail_plugin_dir(imap): /userM/mail-services/dovecot/lib/dovecot/imap
mail_plugin_dir(pop3): /userM/mail-services/dovecot/lib/dovecot/pop3
auth default:
  mechanisms: plain login
  verbose: yes
  debug: yes
  passdb:
driver: pam
  passdb:
driver: passwd
args: blocking=yes
  userdb:
driver: passwd
args: blocking=yes
  socket:
type: listen
client:
  path: /userM/mail-services/postfix/var/private/auth
  mode: 432
  user: postfix
  group: postfix

- --
C. J. Keist Email: [EMAIL PROTECTED]
UNIX/Network ManagerPhone: 970-491-0630
Engineering Network ServicesFax:   970-491-5569
College of Engineering, CSU
Ft. Collins, CO 80523-1301

All I want is a chance to prove 'Money can't buy happiness'
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.5 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFIlyB8A29OFr7C6jcRAt5lAKCiP5Zh1WIMrg+QWPprcxi9Gp5Z3QCgxhbj
A6ivJ6XeA8MuoA19y2xEFjI=
=uT1j
-END PGP SIGNATURE-