autoexpunge problems

2015-12-18 Thread Olaf Hopp

Hello,
I tried to use the new autoexpunge for my Trash folders
I had in 15-mailboxes.conf

 mailbox Trash {
 special_use = \Trash
 auto = subscribe
 }

(dovecot -n of the original config is below)
and added just the line
  autoexpunge = 1h
Just a short period on my test system.
But it failed. In the log I see

Dec 18 10:54:07 irams2 dovecot: imap(ms2test): Error: Failed to autoexpunge 
mailbox 'Trash': Invalid mailbox name 'Trash': Missing namespace prefix 'INBOX.'

But in 10-mail.conf I have

namespace inbox {
  prefix = INBOX.
  separator = .
  inbox = yes
}

So I changed the line "mailbox Trash" to "mailbox  INBOX.Trash". I now have

 mailbox INBOX.Trash {
 special_use = \Trash
 auto = subscribe
 autoexpunge = 1h
 }

Now it seems to work (Trash is emptied, log file is fine)
but in the mail client I see two Trash folders.
Once the normal one below INBOX and another one also called
Trash which is under a new created folder named INBOX below the original INBOX
Thus I have

INBOX
INBOX.Trash
INBOX.INBOX.Trash

autoexpunge seems to work, but this is not what I like to offer to my users.

Any glues ?
Olaf



# 2.2.21 (5345f22): /opt/dovecot/etc/dovecot/dovecot.conf
# Pigeonhole version 0.4.10 (d61ff8a5af9e+)
doveconf: Warning: service auth { client_limit=2000 } is lower than required 
under max. load (23192)
doveconf: Warning: service anvil { client_limit=2000 } is lower than required 
under max. load (17195)
# OS: Linux 2.6.32-573.12.1.el6.x86_64 x86_64 CentOS release 6.7 (Final)
auth_failure_delay = 3 secs
auth_master_user_separator = *
auth_mechanisms = plain login
auth_username_format = %Ln
auth_verbose = yes
auth_worker_max_count = 60
default_client_limit = 2000
default_process_limit = 3000
mail_location = maildir:~/Maildir
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 index ihave duplicate 
mime foreverypart
mbox_write_locks = fcntl
namespace inbox {
  inbox = yes
  location =
  mailbox Drafts {
auto = subscribe
special_use = \Drafts
  }
  mailbox Sent {
auto = subscribe
special_use = \Sent
  }
  mailbox Trash {
auto = subscribe
special_use = \Trash
  }
  mailbox spambox {
auto = create
special_use = \Junk
  }
  prefix = INBOX.
  separator = .
}
passdb {
  args = /etc/dovecot/master-users
  driver = passwd-file
  master = yes
}
passdb {
  args = dovecot
  driver = pam
}
plugin {
  sieve = file:~/sieve;active=~/.dovecot.sieve
  sieve_before = /etc/dovecot/sieve-master
  sieve_max_redirects = 20
}
protocols = imap pop3 lmtp sieve sieve
quota_full_tempfail = yes
service imap-login {
  process_limit = 8192
  process_min_avail = 16
  service_count = 0
}
service imap {
  process_limit = 8192
}
service lmtp {
  executable = lmtp -L
}
service managesieve-login {
  inet_listener sieve {
port = 4190
  }
}
service pop3 {
  process_limit = 8192
}
ssl = required
ssl_ca = 

smime.p7s
Description: S/MIME Cryptographic Signature


limiting autoexpunge to a service

2015-12-18 Thread Burckhard Schmidt

Hello,

like described at wiki "Mailbox settings":
protocol imap { namespace inbox { mailbox Spam { autoexpunge = 10d } } }

I tried to use autoexpunge inside lmtp:

20-lmtp.conf:

protocol lmtp {
  mail_plugins = $mail_plugins sieve
  postmaster_address = ...
  info_log_path = /var/log/dovecot-lmtp.log
  sendmail_path = /opt/csw/sbin/sendmail
  namespace inbox { mailbox  Junk { autoexpunge = 10d } }   (line 23)
}

But I get an error during start of dovecot (same with service imap):
doveconf: Fatal: Error in configuration file 
/usr/dovecot/etc/dovecot/conf.d/20-lmtp.conf line 23: Garbage after '{'


/usr/dovecot/sbin/dovecot -n
# 2.2.21 (): /usr/dovecot-2.2.21/etc/dovecot/dovecot.conf
# Pigeonhole version 0.4.10

Is it only a problem of doveconf?
--
Regards --- Burckhard Schmidt

Abteilung Systemsoftware und Kommunikation
ZE Computer- und Medienservice der Humboldt-Universität zu Berlin
Postanschrift: Unter den Linden 6, 10099 Berlin
Standort:  Rudower Chaussee 26; 12489 Berlin
Tel.:  +49-30-2093-70058  Fax: +49-30-2093-70199
Mail:  bschm...@cms.hu-berlin.de


Merry Christmas

2015-12-18 Thread IT Security Inc.
Merry Christmas from IT Security Inc.

12/18/2015  Visit us online 

Merry Christmas to you and your family from Hugh Haggerty, myself and everyone 
else at IT Security,Inc.

Albert Whale
Hugh Haggerty
IT Security Inc.



 
Merry Christmas! 

 
IT Security, Inc. 519 Nichols Road Pittsburgh, PA 15237 | 
in2contact.co/front/tracking.jsp?clientID=858=188=731=B710C911120204FA=689=307=
 | 
in2contact.co/front/tracking.jsp?clientID=858=188=731=EB9D07803CDFE734=689=307=


Re: Multiple IPs and hostname

2015-12-18 Thread Noel
On 12/18/2015 12:19 AM, Thilo Engelbracht wrote:
> Am 17.12.2015 um 16:16 schrieb Noel :
>
>> On 12/17/2015 11:51 AM, Thilo Engelbracht wrote:
>>> But my customer asks me if it's possible that only his domain is visible
>>> in the header:
>>> So, if somebody sends a mail to "u...@foo1.com", only the hostname
>>> "mail.foo1.com" should be visible in the mail header.
>>> And if somebody sends a mail to "u...@foo2.com", only the hostname
>>> "mail.foo2.com" should be visible in the mail header.
>>>
>>>
>>> Is there a way to do this?
>>
>> The solution is to use multiple postfix instances rather than adding
>> lines to master.cf.
>> http://www.postfix.org/MULTI_INSTANCE_README.html
> Hi Noel,
>
> I already configured postfix with multiple instances. It works fine!
> The problem is that DOVECOT adds a header line with the "normal"
> hostname 


The problem is you're using the same "normal" IP to connect to
dovecot.  Each postfix instance needs its own lmtp_bind_address and
its own internal IP to connect to dovecot.   Sorry I didn't make
that clear earlier.


  -- Noel Jones