Re: [Dovecot] sieve-filter ignoring separator

2013-03-21 Thread Stephan Bosch

On 3/4/2013 9:21 PM, Isak Rubin wrote:

It seems like running sieve-filter from the console ignores the separator
setting, thus not letting me filter into folder names containing dots.

Normal delivery using lda handles it just fine, but not when using the
sieve-filter command.

Character not allowed in mailbox name: '.'

Is there anyway to override this or is patching and recompiling the source
my only option?

# dovecot --version
2.1.9


This Dovecot is very old, so is probably your Pigeonhole version. Recent 
versions should work fine in this regard.


Regards,

Stephan.


Re: [Dovecot] [dovecot-2.1.15] mdbox corruption, doveadm force-resync can't repair it (throws segfault)

2013-03-21 Thread Marcin Mirosław
W dniu 20.03.2013 18:20, Timo Sirainen pisze:
 On 7.3.2013, at 14.12, Marcin Mirosław mar...@mejor.pl wrote:
 
 Here is backtrace from doveadm force-resync:

 #0  rebuild_mailbox_multi (trans=0x428b58d090, view=optimized out,
 rebuild_ctx=0x428b5a0690, ctx=0x428b57a9a0, mbox=optimized out) at
 mdbox-storage-rebuild.c:433
 433 map_uid = rec-map_uid;
 
 Yeah, I fixed this immediately after 2.1.15: 
 http://hg.dovecot.org/dovecot-2.1/rev/2def25f07ca6
 
 I guess it's soon time for 2.1.16.

Hi! I've aplied patch and force-resync finished work without problem.Thanks!
I asked one more question: `doveadm force-resync -A *` doesn't do
resync inside namespace. Is it feature or bug?
Thanks.
Marcin



[Dovecot] director's imap/pop3 login timeout

2013-03-21 Thread Angel L. Mateo

Hello,

	We have two (load balanced) director servers in front of 4 dovecot 
backend servers.


	Yesterday we had a problem at backend servers for some users (our SSO 
was down, so IMAP users couldn't authenticate) and this triggered a 
problem in director servers where almost nobody could open a new session.


In our director's logs I could see errors like this:

Mar 20 20:52:47 myotis41 dovecot: imap-login: proxy(user): Login 
failed to 155.54.211.162:143: [UNAVAILABLE] Temporary authentication 
failure. [myotis32:2013-03-20 19:52:47]


	So, it seems it was trying to authenticate for 1 hour, after that it 
timed out the login.


	But this timeout is too long. Is this a director timeout? Or a backend 
timeout? How can I reduce it?



--
Angel L. Mateo Martínez
Sección de Telemática
Área de Tecnologías de la Información
y las Comunicaciones Aplicadas (ATICA)
http://www.um.es/atica
Tfo: 868889150
Fax: 86337
# 2.1.9: /etc/dovecot/dovecot.conf
# OS: Linux 3.2.19um1 x86_64 Ubuntu 12.04.2 LTS 
auth_cache_size = 20 M
auth_cache_ttl = 1 days
auth_master_user_separator = *
auth_verbose = yes
default_process_limit = 1024
disable_plaintext_auth = no
log_timestamp = %Y-%m-%d %H:%M:%S
login_trusted_networks = 155.54.211.176/28
mail_access_groups = vmail
mail_gid = vmail
mail_location = maildir:~/Maildir:INDEX=/var/indexes/%2Ln/%Ln
mail_plugins = quota zlib lazy_expunge acl
mail_privileged_group = mail
maildir_very_dirty_syncs = yes
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
mdbox_rotate_size = 20 M
namespace {
  inbox = yes
  location = 
  prefix = 
  separator = .
}
namespace {
  hidden = yes
  list = no
  location = maildir:~/Maildir/expunged
  prefix = BORRADOS.
  separator = .
}
namespace {
  list = children
  location = maildir:%%h/Maildir:INDEX=~/Maildir/shared/%%u
  prefix = shared.%%u.
  separator = .
  subscriptions = no
  type = shared
}
passdb {
  args = /etc/dovecot/master-users
  driver = passwd-file
  master = yes
  pass = yes
}
passdb {
  args = /etc/dovecot/dovecot-ldap.conf.ext
  driver = ldap
}
passdb {
  args = session=yes cache_key=%Ln dovecot
  driver = pam
}
plugin {
  acl = vfile:/etc/dovecot/global-acls:cache_secs=3600
  lazy_expunge = BORRADOS.
  quota = dict:User quota::file:%h/Maildir/dovecot.quota
  quota_rule = *:storage=10G
  quota_rule2 = Trash:storage=+1G
  sieve = ~/.dovecot.sieve
  sieve_dir = ~/sieve
  sieve_max_redirects = 15
  zlib_save = gz
  zlib_save_level = 6
}
postmaster_address = postmas...@um.es
protocols = imap pop3 lmtp sieve
service anvil {
  client_limit = 3075
}
service auth {
  client_limit = 4096
  unix_listener auth-userdb {
mode = 0777
  }
}
service doveadm {
  inet_listener {
port = 24245
  }
}
service imap {
  process_limit = 5120
  process_min_avail = 6
  vsz_limit = 512 M
}
service ipc {
  unix_listener ipc {
user = dovecot
  }
}
service lmtp {
  inet_listener lmtp {
port = 24
  }
  process_min_avail = 10
  vsz_limit = 512 M
}
service pop3 {
  process_min_avail = 6
}
ssl = no
ssl_cert = /etc/ssl/certs/dovecot.pem
ssl_key = /etc/ssl/private/dovecot.pem
userdb {
  driver = prefetch
}
userdb {
  args = /etc/dovecot/dovecot-ldap.conf.ext
  driver = ldap
}
protocol lda {
  mail_plugins = quota zlib lazy_expunge acl sieve
}
protocol imap {
  mail_plugins = quota zlib lazy_expunge acl imap_quota imap_acl
}
protocol lmtp {
  mail_plugins = quota zlib lazy_expunge acl sieve
}
protocol pop3 {
  pop3_logout_format = top=%t/%p, retr=%r/%b, del=%d/%m, in=%i, out=%o
}
local 155.54.211.160/27/27 {
  doveadm_password = password
}
# 2.1.9: /etc/dovecot/dovecot.conf
# OS: Linux 3.2.0-24-generic x86_64 Ubuntu 12.04.2 LTS 
auth_cache_size = 20 M
auth_cache_ttl = 1 days
auth_master_user_separator = *
auth_username_format = %Ln
auth_verbose = yes
default_process_limit = 1024
director_mail_servers = 155.54.211.161-155.54.211.164
director_servers = 155.54.211.185 155.54.211.186
director_username_hash = %Ln
disable_plaintext_auth = no
doveadm_proxy_port = 24245
lmtp_proxy = yes
log_timestamp = %Y-%m-%d %H:%M:%S
mail_plugins = quota
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
passdb {
  args = /etc/dovecot/master-users
  driver = passwd-file
  master = yes
  pass = yes
}
passdb {
  args = /etc/dovecot/dovecot-ldap.conf.ext
  default_fields = proxy=y nopassword=y proxy_timeout=600
  driver = ldap
}
plugin {
  sieve = ~/.dovecot.sieve
  sieve_dir = ~/sieve
  sieve_max_redirects = 15
}
protocols = imap pop3 lmtp sieve
service anvil {
  client_limit = 3075
}
service auth {
  client_limit = 4096
  unix_listener auth-userdb {
mode = 

Re: [Dovecot] Zlib plugin: Compress emails for one folder only

2013-03-21 Thread André Rodier
Thanks Timo,

I will see. If I have some time, I may have a look at the source code.

Kind regards,
André.

On 20 March 2013 17:58, Timo Sirainen t...@iki.fi wrote:
 On 16.3.2013, at 14.43, Andre Rodier andre.rod...@gmail.com wrote:

 Hello everyone,

 Is it possible to configure the zlib plugin to compress the emails in one 
 folder only?

 I would like to compress the emails when they are stored in my 'Archives' 
 folders and sub folders.

 Nope. With hardcoding it would be a simple one line of code addition.

 Some day in future there will be namespace-specific settings. Then you could 
 create Archive namespace and enable zlib compression only for that namespace.




-- 
André Rodier


Re: [Dovecot] Dovecot - Sieve script loaded but filtering doesn't works ?

2013-03-21 Thread Daniel Parthey
Hi Clement,

Clement PAULET wrote:
 When I use a Sieve script, it is loaded but actions are not respected
 Mar 18 10:31:19 localhost dovecot: lda(i...@info.xx.com): sieve: 
 msgid=20130318093119.7eaaec0...@nflda02.xx.lan: stored mail into mailbox 
 'INBOX'

If the mailbox INBOX.Test does not exist, the message
will be delivered to mailbox INBOX:
http://wiki2.dovecot.org/LDA

Try to set the global dovecot configuration directive
lda_mailbox_autocreate = yes
This will always autocreate folders if they do not exist yet.

Alternatively you can use
fileinto :create INBOX.Test;
to autocreate the folder in your Sieve script.

Regards
Daniel
-- 
https://plus.google.com/103021802792276734820


[Dovecot] Postfix/Dovecot/lmtp with virtual and local users

2013-03-21 Thread David Obando
Hi all,

I'm about to change my Debian mailserver setup from
Postfix/dovecot1/procmail to Postfix/dovecot2/sieve with lmtp enabled.
After enabling lmtp the virtual users can receive e-mails but not the
local users:

Mar 21 14:21:40 orange postfix/lmtp[4119]: DE62226216:
to=u...@orange.domain.de,
relay=orange.domain.de[private/dovecot-lmtp], delay=7627,
delays=7627/0/0/0.02, dsn=5.1.1, status=bounced (host
orange.domain.de[private/dovecot-lmtp] said: 550 5.1.1
u...@orange.domain.de User doesn't exist: u...@orange.domain.de (in
reply to RCPT TO command))

In 10-auth.conf I have the setting auth_username_format = %Lu.

When changing it to auth_username_format = %n the local users can be
found but not the virtual users anymore.

Is there a way to define if user is local then auth_username_format =
%n else auth_username_format = %Lu?

Thanks and best regards,
David

-- 
The day microsoft makes something that doesn't suck is the day they start 
making vacuum cleaners.
gpg --keyserver pgp.mit.edu --recv-keys 1920BD87
Key fingerprint = 3326 32CE 888B DFF1 DED3  B8D2 105F 29CB 1920 BD87



[Dovecot] loop when I enable

2013-03-21 Thread Andreas Meyer
Hello!

I have a nasty problem with a loop when I enable quota_warning. The
mailbox fills up with thousands of email within seconds. This happens
only with mbox'es retrieved with POP3.

From MAILER-DAEMON  Thu Mar 21 13:54:07 2013 
From: supp...@anup.de 
Subject: Mailbox Quota-Warnung 
X-UID: 8036 
Status:  
X-Keywords:
Content-Length: 41 
 
Ihre Mailbox ist jetzt zu below% belegt.

# doveconf -n

# 2.1.7: /usr/etc/dovecot/dovecot.conf

auth_mechanisms = plain cram-md5
auth_verbose = yes
disable_plaintext_auth = no
hostname = delta.bitcorner.eu
log_path = /var/log/dovecot1
mail_home = /var/spool/vhosts/%d/%n
mail_plugins = quota
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 vacation-seconds
namespace inbox {
  inbox = yes
  location = 
  prefix = 
}
passdb {
  args = /etc/dovecot/passwd
  driver = passwd-file
}
plugin {
  autocreate = Trash
  autocreate2 = Drafts
  autocreate3 = Sent
  autosubscribe = Trash
  autosubscribe2 = Drafts
  autosubscribe3 = Sent
  quota = maildir:User quota
  quota_rule = *:storage=500MB
  quota_rule2 = Trash:storage=+10%%
  sieve = ~/.dovecot.sieve
  sieve_dir = ~/.sieve
  sieve_extensions = +vacation-seconds
  sieve_vacation_default_period = 10d
  sieve_vacation_max_period = 30d
  sieve_vacation_min_period = 1h
}
postmaster_address = postmas...@bitcorner.de
protocols = imap pop3 lmtp sieve
quota_full_tempfail = yes
service auth {
  unix_listener auth-userdb {
group = vmail
mode = 0666
user = vmail
  }
}
service managesieve-login {
  inet_listener sieve {
port = 4190
  }
}
service quota-warning {
  executable = script /usr/local/bin/quota-warning.sh
  unix_listener quota-warning {
mode = 0666
user = vmail
  }
  user = vmail
}
ssl_cert = /etc/dovecot/ssl/hostcert.pem
ssl_key = /etc/dovecot/ssl/hostkey.pem
userdb {
  args = /etc/dovecot/passwd
  driver = passwd-file
}
protocol lda {
  info_log_path = /var/log/dovecot-lda.log
  log_path = /var/log/dovecot-lda-errors.log
  mail_plugins = quota quota sieve
}
protocol imap {
  imap_idle_notify_interval = 29 mins
  mail_max_userip_connections = 20
  mail_plugins = quota quota imap_quota autocreate
}
protocol lmtp {
  mail_plugins = quota sieve
}
protocol sieve {
  mail_max_userip_connections = 10
  managesieve_implementation_string = Dovecot Pigeonhole
  managesieve_logout_format = bytes=%i/%o
  managesieve_max_compile_errors = 5
  managesieve_max_line_length = 65536
}
protocol pop3 {
  mail_max_userip_connections = 10
  mail_plugins = quota quota
  pop3_uidl_format = %08Xu%08Xv
}

The problem occurs when I add the following to dovecot.conf:

quota_warning = storage=95%% quota-warning 95 %u
quota_warning2 = storage=80%% quota-warning 80 %u
quota_warning3 = -storage=100%% quota-warning below %u # user is no longer over 
quota

The script executed looks like this:

#!/bin/sh
PERCENT=$1
USER=$2
cat  EOF | /usr/libexec/dovecot/dovecot-lda -d $USER -o 
plugin/quota=maildir:User quota:noenforcing
From: supp...@anup.de
Subject: Mailbox Quota-Warnung

Ihre Mailbox ist jetzt zu $PERCENT% belegt.
EOF

What can I do? I wonder if there some solution with namespaces possible maybe?

Thank you!

  Andreas


Re: [Dovecot] Dovecot - Sieve script loaded but filtering doesn't works ?

2013-03-21 Thread Clement PAULET

Hi Daniel,

Thanks for your help.

In fact my problem was due to my sieve script (missing header search).

#Sieve script with missing header settings
if address To i...@info.xx.com
{
fileinto Test;
}

#Sieve script replace with header settings
if allof (header :contains To i...@info.xx.com)
{
fileinto INBOX.Test;
stop;
}

As a precautionary measure I also add the autocreate directive.

I must yet to define a specific folder for the message marked as SPAM 
(not a simple folder).

I believe that is possible directly in dovecot configuration

Have a nice day

Clement


Le 2013-03-21 13:30, Daniel Parthey a écrit :

Hi Clement,

Clement PAULET wrote:

When I use a Sieve script, it is loaded but actions are not respected
Mar 18 10:31:19 localhost dovecot: lda(i...@info.xx.com): sieve: 
msgid=20130318093119.7eaaec0...@nflda02.xx.lan: stored mail into 
mailbox 'INBOX'


If the mailbox INBOX.Test does not exist, the message
will be delivered to mailbox INBOX:
http://wiki2.dovecot.org/LDA

Try to set the global dovecot configuration directive
lda_mailbox_autocreate = yes
This will always autocreate folders if they do not exist yet.

Alternatively you can use
fileinto :create INBOX.Test;
to autocreate the folder in your Sieve script.

Regards
Daniel





[Dovecot] Problem with Prefetch User Database

2013-03-21 Thread megodin
Hi there Community,

I am currently setting up a Dovecot Mailserver, which works fine with some 
basic configuration (Dovecot + Sendmail). Sending and receiving Mails is just 
fine. For improving timings, I wanted to activate the prefetch user database - 
but apparently it doesn't seem to work correctly - I hope you can help me out!

When I activate the prefetch user database, every time I get a passdb didn't 
return userdb entries from my mail.debug logs.

Here's my config:

passdb {
   driver = pam
}

# (I authenticate via PAM which is itself configured to ask ldap server, ldap 
returns it back to PAM - so Dovecot only sees the PAM-authentication part)

userdb {
  driver = prefetch
}

userdb {
  driver = ldap
  args = /etc/dovecot/dovecot-ldap.conf.ext
}

# My userdb is going over ldap.

Relevant parts of /etc/dovecot/dovecot-ldap.conf.ext:

. ..
user_attrs = uidNumber=50014,gidNumber=2084,modem-quota=quota_rule=*:storage=%$

user_filter = ((objectClass=posixAccount)(uid=%u))

pass_attrs = uidNumber==50014,gidNumber=2084


I'm not sure maybe it's because of the PAMLDAPPAM? Or am I missing out 
something other fundamental?
Thanks for any insights,
Megodin



---
Alle Postfächer an einem Ort. Jetzt wechseln und E-Mail-Adresse mitnehmen! 
http://email.freenet.de/produkte/basic/index.html

_
Send and receive anonymous emails to your inbox with InboxAlias.
http://www.inboxalias.com



[Dovecot] Problem with Prefetch User Database - additional infos

2013-03-21 Thread megodin
Hey there,

sorry, sent the mail too fast. Obviously you need more information:

I'm using Dovecot 2.0.9

dovecot -n
# 2.0.9: /etc/dovecot/dovecot.conf
# OS: Linux 2.6.32-279.22.1.el6.x86_64 x86_64 CentOS release 6.3 (Final) ext3
auth_cache_size = 10 M
auth_debug = yes
auth_username_format = %n
auth_verbose = yes
listen = *
mail_debug = yes
mail_gid = vmail
mail_home = /dovecot/mailnfs/vmails/%u
mail_location = sdbox:/dovecot/mailnfs/vmails/%u/mailstore
mail_plugins =  quota
mail_privileged_group = mail
mail_uid = vmail
mbox_write_locks = fcntl
passdb {
  driver = pam
}
plugin {
  quota = dict:User quota::file:%h/dovecot-quota
  quota_rule = *:storage=100M
  quota_rule2 = Trash:storage=+50M
  quota_warning = storage=95%% quota-warning 95 %u
}
service quota-warning {
  executable = script /usr/local/bin/quota-warning.sh
  unix_listener quota-warning {
user = vmail
  }
  user = root
}
ssl_cert =  Hi there Community,

 I am currently setting up a Dovecot Mailserver, which works fine with some 
 basic configuration (Dovecot + Sendmail). Sending  and receiving Mails is 
 just fine. For improving timings, I wanted to activate the prefetch user 
 database - but apparently it doesn't  seem to work correctly - I hope you 
 can help me out!

 When I activate the prefetch user database, every time I get a passdb didn't 
 return userdb entries from my mail.debug logs.

 Here's my config:

 passdb {
driver = pam
 }

 # (I authenticate via PAM which is itself configured to ask ldap server, ldap 
 returns it back to PAM - so Dovecot only sees the   PAM-authentication part)

 userdb {
   driver = prefetch
 }

 userdb {
   driver = ldap
  args = /etc/dovecot/dovecot-ldap.conf.ext
 }

 # My userdb is going over ldap.

 Relevant parts of /etc/dovecot/dovecot-ldap.conf.ext:

 ...
 user_attrs = 
 uidNumber=50014,gidNumber=2084,modem-quota=quota_rule=*:storage=%$

 user_filter = ((objectClass=posixAccount)(uid=%u))

 pass_attrs = uidNumber==50014,gidNumber=2084


 I'm not sure maybe it's because of the PAMLDAPPAM? Or do I miss something 
 other fundamental?
 Thanks for any insights,
 Megodin




---
Alle Postfächer an einem Ort. Jetzt wechseln und E-Mail-Adresse mitnehmen! 
http://email.freenet.de/produkte/basic/index.html
_
Send and receive anonymous emails to your inbox with InboxAlias.
http://www.inboxalias.com



Re: [Dovecot] Problem with Prefetch User Database

2013-03-21 Thread Steffen Kaiser

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Thu, 21 Mar 2013, mego...@inboxalias.com wrote:


passdb {
  driver = pam
}

# (I authenticate via PAM which is itself configured to ask ldap server, ldap 
returns it back to PAM - so Dovecot only sees the PAM-authentication part)



PAM does not return userdb-relevant information. You cannot use userdb 
prefetch.


You could switch to first ask a ldap passdb and then, for users that have 
another password in LDAP, pam.


- -- 
Steffen Kaiser

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.11 (GNU/Linux)

iQEVAwUBUUsyyV3r2wJMiz2NAQKa/Qf9EmmXcC7mTg7Azmj1Ew7HT2wSoKVQF2k5
5kPQPKKrVKToTJtTmFIeSF1saXQ2f5wE+ZGo2y0u9DlFipH4pc6mP4F9uEr4WbSF
lB8TBfyAg5wqvepOl/jUkkXnLxI6lDBzVN6nfRYfVz34Lk4Amz70+6GVDtEE6azK
+j/5GWwl2dAJ93Z+uNl4z8ABffvWxv8m0UECIxvIIYW2647+oT6PyNvaRM6dEgUp
RZlMMic990TzDn30APTghcxiiu2eeiwHc2q0rAXLqAsOHNzV8Aie4DcOS1Nhib1+
FJHloYG8aWPfK0rnqcSwj6caXKYysWsQgzoPueRrQCrXbSykMMyXaQ==
=yFtv
-END PGP SIGNATURE-


Re: [Dovecot] Problem with Prefetch User Database

2013-03-21 Thread megodin
 Dovecot only sees the PAM-authentication part)


 PAM does not return userdb-relevant information. You cannot use
 userdb 
 prefetch.

 You could switch to first ask a ldap passdb and then, for users that
 have 
 another password in LDAP, pam.

I use PAM because of the easyness of blocking specific validated users - you 
can just add/remove them in a plain text file. Easy administration will be 
necessary because of the planned huge amount of users on the system (28.000), 
and sometimes blocking a user is highly time-dependent (e.g. if one answers to 
a phising mail and sending out his credentials which are then abused for 
sending spam).

I would go over LDAP if there is an equivalent easy way to solve this over LDAP 
(easy blocking out users by e.g editing a plain text file) - is there any?

Thanks,
Megodin





---
Alle Postfächer an einem Ort. Jetzt wechseln und E-Mail-Adresse mitnehmen! 
http://email.freenet.de/produkte/basic/index.html

_
Send and receive anonymous emails to your inbox with InboxAlias.
http://www.inboxalias.com



[Dovecot] Migarting password scheme

2013-03-21 Thread lst_hoe02

Hello,

by the move to Dovecot we try to alter the password encryption stored  
in the database from MD5 to CRYPT-SHA256 along the Guide at  
http://wiki2.dovecot.org/HowTo/ConvertPasswordSchemes. It's mostly  
working but i still have not found out how to pass the cleartext  
password to the re-encrypting script. According to the HowTo it should  
be enough to add '%w' AS userdb_plain_pass to the passdb query, to  
get a environment variable $PLAIN_PASS in the post-login script to  
pass along.
This does not work eg. PLAIN_PASS is always empty. This is Dovecot  
2.0.19 from Ubuntu 12.04 LTS.


Thanks for any help

Regards

Andreas




smime.p7s
Description: S/MIME Cryptographic Signature


[Dovecot] Log DNS revese IP address

2013-03-21 Thread Juan Bernhard

Hi list. Is it possible to log the DNS reverse address of every login?
I didnt find a variable *%{hostname}* but the wiki say it only works on 
*deliver_log_format* and not on *login_log_format_elements*


Something like this:
Mar 21 13:49:33 mailserver dovecot: pop3-login: Login: user=myuser, 
method=PLAIN, rip=10.10.10.15, lip=10.10.10.1, mpid=18712, 
*host=client02.example.com*


Thanks!

Regards. Juan


Re: [Dovecot] dovecot: imap-login: Aborted login (auth failed, 1 attempts in 2 secs): user=xxx, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, TLS, session=1pBG/03XogB/AAAB

2013-03-21 Thread pvsuja
Thanks a lot!
I got it done with imapc_ssl and imapc_ssl_ca_dir settings.
I was not aware of those settings.

Thanks a bunch!


On Wed, Mar 20, 2013 at 10:58 PM, Timo Sirainen [via Dovecot] 
ml-node+s2317879n40933...@n4.nabble.com wrote:

 On 8.3.2013, at 8.08, pvsuja [hidden 
 email]http://user/SendEmail.jtp?type=nodenode=40933i=0
 wrote:

  Through wireshark, I found the username and password is going in plain
 text
  only to the server.
  How will I enable starttls in ImapcProxy before any communication
 starts?

 imapc_ssl = starttls

 See also other related settings in
 http://wiki2.dovecot.org/Migration/Dsync

 I guess imapc should have its own wiki page some day.



 --
  If you reply to this email, your message will be added to the discussion
 below:

 http://dovecot.2317879.n4.nabble.com/dovecot-imap-login-Aborted-login-auth-failed-1-attempts-in-2-secs-user-xxx-method-PLAIN-rip-127-0-0--tp40684p40933.html
  To unsubscribe from dovecot: imap-login: Aborted login (auth failed, 1
 attempts in 2 secs): user=xxx, method=PLAIN, rip=127.0.0.1,
 lip=127.0.0.1, TLS, session=1pBG/03XogB/AAAB, click 
 herehttp://dovecot.2317879.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_codenode=40684code=cHZzdWphQGdtYWlsLmNvbXw0MDY4NHwtNzgyNTk5NDQ0
 .
 NAMLhttp://dovecot.2317879.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewerid=instant_html%21nabble%3Aemail.namlbase=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespacebreadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml





--
View this message in context: 
http://dovecot.2317879.n4.nabble.com/dovecot-imap-login-Aborted-login-auth-failed-1-attempts-in-2-secs-user-xxx-method-PLAIN-rip-127-0-0--tp40684p40973.html
Sent from the Dovecot mailing list archive at Nabble.com.


Re: [Dovecot] Migarting password scheme

2013-03-21 Thread Daryl Richards

On 13-03-21 12:51 PM, lst_ho...@kwsoft.de wrote:
by the move to Dovecot we try to alter the password encryption stored 
in the database from MD5 to CRYPT-SHA256 along the Guide at 
http://wiki2.dovecot.org/HowTo/ConvertPasswordSchemes. It's mostly 
working but i still have not found out how to pass the cleartext 
password to the re-encrypting script. According to the HowTo it should 
be enough to add '%w' AS userdb_plain_pass to the passdb query, to 
get a environment variable $PLAIN_PASS in the post-login script to 
pass along.
This does not work eg. PLAIN_PASS is always empty. This is Dovecot 
2.0.19 from Ubuntu 12.04 LTS.

It seems to depends on how you are doing your userdb, not passdb..

I use a static userdb, so I have:

userdb {
  args = uid=xx gid=xx home=/xx/xx/%d/%n plain_pass=%w
  driver = static
}


--
Daryl Richards
Isle Technical Services Inc.



[Dovecot] Altmove doesn't working after a dsync.

2013-03-21 Thread Breno Moreira
Hi guys,

I'm having a problem with the altmove command after a mailbox migration
using dsync.

What I'm trying to do is move some users from a datacenter to another and,
for that, I'm using the dsync feature. First thing I do is run the dsync
mirror command, and this is working properly, but all mails are moved to
the main path, ignoring the ALT statement in the mail location.

So, what I tried to do was run the doveadm altmove to move the old mails to
the new alternate storage, but it simply doesn't work or sometimes moves
only few messages.

After the user receives new messages, these new files are correctly moved.

It can be problem with my search parameter in the altmove command? Or this
is a normal result?

Best Regards,
Breno Moreira

-- 
-
Breno Moreira


Re: [Dovecot] Migrating password scheme

2013-03-21 Thread lst_hoe02


Zitat von Daryl Richards da...@isletech.net:


On 13-03-21 12:51 PM, lst_ho...@kwsoft.de wrote:
by the move to Dovecot we try to alter the password encryption  
stored in the database from MD5 to CRYPT-SHA256 along the Guide at  
http://wiki2.dovecot.org/HowTo/ConvertPasswordSchemes. It's mostly  
working but i still have not found out how to pass the cleartext  
password to the re-encrypting script. According to the HowTo it  
should be enough to add '%w' AS userdb_plain_pass to the passdb  
query, to get a environment variable $PLAIN_PASS in the post-login  
script to pass along.
This does not work eg. PLAIN_PASS is always empty. This is Dovecot  
2.0.19 from Ubuntu 12.04 LTS.

It seems to depends on how you are doing your userdb, not passdb..

I use a static userdb, so I have:

userdb {
  args = uid=xx gid=xx home=/xx/xx/%d/%n plain_pass=%w
  driver = static
}


--
Daryl Richards
Isle Technical Services Inc.


Will try that, thanks.

Andreas



smime.p7s
Description: S/MIME Cryptographic Signature


Re: [Dovecot] Migrating password scheme

2013-03-21 Thread lst_hoe02


Zitat von lst_ho...@kwsoft.de:


Zitat von Daryl Richards da...@isletech.net:


On 13-03-21 12:51 PM, lst_ho...@kwsoft.de wrote:
by the move to Dovecot we try to alter the password encryption  
stored in the database from MD5 to CRYPT-SHA256 along the Guide at  
http://wiki2.dovecot.org/HowTo/ConvertPasswordSchemes. It's mostly  
working but i still have not found out how to pass the cleartext  
password to the re-encrypting script. According to the HowTo it  
should be enough to add '%w' AS userdb_plain_pass to the passdb  
query, to get a environment variable $PLAIN_PASS in the post-login  
script to pass along.
This does not work eg. PLAIN_PASS is always empty. This is Dovecot  
2.0.19 from Ubuntu 12.04 LTS.

It seems to depends on how you are doing your userdb, not passdb..

I use a static userdb, so I have:

userdb {
 args = uid=xx gid=xx home=/xx/xx/%d/%n plain_pass=%w
 driver = static
}


--
Daryl Richards
Isle Technical Services Inc.


Will try that, thanks.

Andreas


Hm, no. Same result. The username works fine but the plaintext  
password is not available eg. $PLAIN_PASS is always empty when  
invoking the script.


Settings from 10-master.conf:

service imap {
  # TEMP fuer Password Hashes
  executable = imap imap-postlogin
  # Most of the memory goes to mmap()ing files. You may need to increase this
  # limit if you have huge mailboxes.
  #vsz_limit = 256M

  # Max. number of IMAP processes (connections)
  #process_limit = 1024
  process_limit = 100
}

service imap-postlogin {
  executable = script-login /etc/dovecot/convert.sh
#  user = $default_internal_user
  unix_listener imap-postlogin {
  }
}


from 10-auth.conf:

passdb {
  driver = sql
  args = /etc/dovecot/dovecot-sql.conf.ext
}

userdb {
  driver = static
  args = uid=dovemail gid=dovemail home=/var/dovecot/home/%n  
mail=sdbox:/var/dovecot/mail/%n:LAYOUT=fs plainpass=%w

}

and the script invoked:

 #!/bin/sh
echo $USER  /etc/dovecot/test.log
echo $PLAINPASS  /etc/dovecot/test.log
echo $HOME  /etc/dovecot/test.log

/etc/dovecot/pwd-sha.php $USER $PLAINPASS
exec $@

The test with echo variable to file show that $PLAINPASS is always  
missing whil the others are there as expected.


Can anyone confirm that it actually works this way??

Regards

Andreas



smime.p7s
Description: S/MIME Cryptographic Signature


Re: [Dovecot] Altmove doesn't working after a dsync.

2013-03-21 Thread Charles Marcus

Please always try to provide some basic system info when asking for help.

dovecot version? doveconf -n output? actual commands you are typing? 
logs of the events?


Also remember, dsync has been completely rewritten for the upcoming 2.2 
(at rc3 now), and has always been a little problematic in earlier 
versions (which I guess was the reason for the rewrite)...


On 2013-03-21 3:58 PM, Breno Moreira breno...@gmail.com wrote:

Hi guys,

I'm having a problem with the altmove command after a mailbox migration
using dsync.

What I'm trying to do is move some users from a datacenter to another and,
for that, I'm using the dsync feature. First thing I do is run the dsync
mirror command, and this is working properly, but all mails are moved to
the main path, ignoring the ALT statement in the mail location.

So, what I tried to do was run the doveadm altmove to move the old mails to
the new alternate storage, but it simply doesn't work or sometimes moves
only few messages.

After the user receives new messages, these new files are correctly moved.

It can be problem with my search parameter in the altmove command? Or this
is a normal result?

Best Regards,
Breno Moreira




--

Best regards,

Charles Marcus
I.T. Director
Media Brokers International, Inc.
678.514.6224 | 678.514.6299 fax




Re: [Dovecot] Altmove doesn't working after a dsync.

2013-03-21 Thread Breno Moreira
Hi Charles,

Sorry for not providing this kind of info.

I'm using Dovecot 2.1.7 in a Debian Wheezy. The dovecot -n output is below:

# 2.1.7: /etc/dovecot/dovecot.conf
# OS: Linux 3.2.0-4-amd64 x86_64 Debian 7.0
auth_mechanisms = plain login
auth_socket_path = /var/run/dovecot/auth-userdb
disable_plaintext_auth = no
lmtp_proxy = yes
mail_fsync = always
mail_gid = vmail
mail_location = maildir:~/.maildir
mail_plugins =  quota
mail_uid = vmail
mmap_disable = yes
passdb {
  driver = pam
}
passdb {
  args = /etc/dovecot/dovecot-sql.conf.ext
  driver = sql
}
plugin {
  quota = maildir:Quota
  sieve = ~/.dovecot.sieve
  sieve_dir = ~/sieve
}
protocols = imap pop3 lmtp
service auth {
  unix_listener /var/spool/postfix/private/auth {
mode = 0666
  }
  unix_listener auth-userdb {
group = vmail
mode = 0666
user = vmail
  }
  user = root
}
service imap-login {
  service_count = 0
}
service lmtp {
  inet_listener lmtp {
address = localhost mail0.supramail.com.br
port = 7025
  }
}
service pop3-login {
  service_count = 0
}
ssl_cert = /etc/dovecot/dovecot.pem
ssl_key = /etc/dovecot/dovecot.pem
userdb {
  driver = passwd
}
userdb {
  args = /etc/dovecot/dovecot-sql.conf.ext
  driver = sql
}
protocol lmtp {
  mail_plugins =  quota sieve
  postmaster_address = postmas...@mail0.supramail.com.br
}
protocol imap {
  mail_plugins =  quota imap_quota
}
protocol pop3 {
  pop3_uidl_format = %v-%u
}

The commands that I'm using are:

 - dsync -Dv -u user mirror sdbox:~/sdbox:ALT=alternatestoragepath

 -


On Thu, Mar 21, 2013 at 5:33 PM, Charles Marcus
cmar...@media-brokers.comwrote:

 Please always try to provide some basic system info when asking for help.

 dovecot version? doveconf -n output? actual commands you are typing? logs
 of the events?

 Also remember, dsync has been completely rewritten for the upcoming 2.2
 (at rc3 now), and has always been a little problematic in earlier versions
 (which I guess was the reason for the rewrite)...


 On 2013-03-21 3:58 PM, Breno Moreira breno...@gmail.com wrote:

 Hi guys,

 I'm having a problem with the altmove command after a mailbox migration
 using dsync.

 What I'm trying to do is move some users from a datacenter to another and,
 for that, I'm using the dsync feature. First thing I do is run the dsync
 mirror command, and this is working properly, but all mails are moved to
 the main path, ignoring the ALT statement in the mail location.

 So, what I tried to do was run the doveadm altmove to move the old mails
 to
 the new alternate storage, but it simply doesn't work or sometimes moves
 only few messages.

 After the user receives new messages, these new files are correctly moved.

 It can be problem with my search parameter in the altmove command? Or this
 is a normal result?

 Best Regards,
 Breno Moreira



 --

 Best regards,

 Charles Marcus
 I.T. Director
 Media Brokers International, Inc.
 678.514.6224 | 678.514.6299 fax





-- 
-
Breno Moreira

“O êxito na vida não se mede pelo que você conquistou,

mas sim pelas dificuldades que superou no caminho.”

*Abraham Lincoln*


Re: [Dovecot] Altmove doesn't working after a dsync.

2013-03-21 Thread Breno Moreira
My email was sent before I finish it.

The other command I'm using is for move the old mails to the alternate
storage, and it is:
  - doveadm -Dv altmove -u user seen savedbefore 2w

In the logs all seems to be ok, without errors or warnings.
I'm really thinking in test the new version to find out if the problem
still occurs.

Thanks to all.

Breno Moreira


On Thu, Mar 21, 2013 at 5:53 PM, Breno Moreira breno...@gmail.com wrote:

 Hi Charles,

 Sorry for not providing this kind of info.

 I'm using Dovecot 2.1.7 in a Debian Wheezy. The dovecot -n output is below:

 # 2.1.7: /etc/dovecot/dovecot.conf
 # OS: Linux 3.2.0-4-amd64 x86_64 Debian 7.0
 auth_mechanisms = plain login
 auth_socket_path = /var/run/dovecot/auth-userdb
 disable_plaintext_auth = no
 lmtp_proxy = yes
 mail_fsync = always
 mail_gid = vmail
 mail_location = maildir:~/.maildir
 mail_plugins =  quota
 mail_uid = vmail
 mmap_disable = yes
 passdb {
   driver = pam
 }
 passdb {
   args = /etc/dovecot/dovecot-sql.conf.ext
   driver = sql
 }
 plugin {
   quota = maildir:Quota
   sieve = ~/.dovecot.sieve
   sieve_dir = ~/sieve
 }
 protocols = imap pop3 lmtp
 service auth {
   unix_listener /var/spool/postfix/private/auth {
 mode = 0666
   }
   unix_listener auth-userdb {
 group = vmail
 mode = 0666
 user = vmail
   }
   user = root
 }
 service imap-login {
   service_count = 0
 }
 service lmtp {
   inet_listener lmtp {
 address = localhost mail0.supramail.com.br
 port = 7025
   }
 }
 service pop3-login {
   service_count = 0
 }
 ssl_cert = /etc/dovecot/dovecot.pem
 ssl_key = /etc/dovecot/dovecot.pem
 userdb {
   driver = passwd
 }
 userdb {
   args = /etc/dovecot/dovecot-sql.conf.ext
   driver = sql
 }
 protocol lmtp {
   mail_plugins =  quota sieve
   postmaster_address = postmas...@mail0.supramail.com.br
 }
 protocol imap {
   mail_plugins =  quota imap_quota
 }
 protocol pop3 {
   pop3_uidl_format = %v-%u
 }

 The commands that I'm using are:

  - dsync -Dv -u user mirror sdbox:~/sdbox:ALT=alternatestoragepath

  -


 On Thu, Mar 21, 2013 at 5:33 PM, Charles Marcus cmar...@media-brokers.com
  wrote:

 Please always try to provide some basic system info when asking for help.

 dovecot version? doveconf -n output? actual commands you are typing? logs
 of the events?

 Also remember, dsync has been completely rewritten for the upcoming 2.2
 (at rc3 now), and has always been a little problematic in earlier versions
 (which I guess was the reason for the rewrite)...


 On 2013-03-21 3:58 PM, Breno Moreira breno...@gmail.com wrote:

 Hi guys,

 I'm having a problem with the altmove command after a mailbox migration
 using dsync.

 What I'm trying to do is move some users from a datacenter to another
 and,
 for that, I'm using the dsync feature. First thing I do is run the dsync
 mirror command, and this is working properly, but all mails are moved to
 the main path, ignoring the ALT statement in the mail location.

 So, what I tried to do was run the doveadm altmove to move the old mails
 to
 the new alternate storage, but it simply doesn't work or sometimes moves
 only few messages.

 After the user receives new messages, these new files are correctly
 moved.

 It can be problem with my search parameter in the altmove command? Or
 this
 is a normal result?

 Best Regards,
 Breno Moreira



 --

 Best regards,

 Charles Marcus
 I.T. Director
 Media Brokers International, Inc.
 678.514.6224 | 678.514.6299 fax





 --
 -
 Breno Moreira

 “O êxito na vida não se mede pelo que você conquistou,

 mas sim pelas dificuldades que superou no caminho.”

 *Abraham Lincoln*




-- 
-
Breno Moreira

“O êxito na vida não se mede pelo que você conquistou,

mas sim pelas dificuldades que superou no caminho.”

*Abraham Lincoln*


Re: [Dovecot] Migrating password scheme

2013-03-21 Thread Daryl Richards

On 13-03-21 4:29 PM, lst_ho...@kwsoft.de wrote:

userdb {
  driver = static
  args = uid=dovemail gid=dovemail home=/var/dovecot/home/%n 
mail=sdbox:/var/dovecot/mail/%n:LAYOUT=fs plainpass=%w

}

and the script invoked:

 #!/bin/sh
echo $USER  /etc/dovecot/test.log
echo $PLAINPASS  /etc/dovecot/test.log
echo $HOME  /etc/dovecot/test.log
I can confirm it works... The variable is actually plain_pass, and 
$PLAIN_PASS, with the underscore.


--
Daryl Richards
Isle Technical Services Inc.



Re: [Dovecot] Migrating password scheme

2013-03-21 Thread lst_hoe02


Zitat von Daryl Richards da...@isletech.net:


On 13-03-21 4:29 PM, lst_ho...@kwsoft.de wrote:

userdb {
 driver = static
 args = uid=dovemail gid=dovemail home=/var/dovecot/home/%n  
mail=sdbox:/var/dovecot/mail/%n:LAYOUT=fs plainpass=%w

}

and the script invoked:

#!/bin/sh
echo $USER  /etc/dovecot/test.log
echo $PLAINPASS  /etc/dovecot/test.log
echo $HOME  /etc/dovecot/test.log
I can confirm it works... The variable is actually plain_pass, and  
$PLAIN_PASS, with the underscore.


If have first used also plain_pass without success. The plainpass was  
used as test to see if there is some problem with the _. What  
Dovecot version do you use?


Regards

Andreas




smime.p7s
Description: S/MIME Cryptographic Signature


Re: [Dovecot] Migarting password scheme

2013-03-21 Thread Timo Sirainen
On 21.3.2013, at 18.51, lst_ho...@kwsoft.de wrote:

 Hello,
 
 by the move to Dovecot we try to alter the password encryption stored in the 
 database from MD5 to CRYPT-SHA256 along the Guide at 
 http://wiki2.dovecot.org/HowTo/ConvertPasswordSchemes. It's mostly working 
 but i still have not found out how to pass the cleartext password to the 
 re-encrypting script. According to the HowTo it should be enough to add '%w' 
 AS userdb_plain_pass to the passdb query, to get a environment variable 
 $PLAIN_PASS in the post-login script to pass along.
 This does not work eg. PLAIN_PASS is always empty. This is Dovecot 2.0.19 
 from Ubuntu 12.04 LTS.

userdb_plain_pass method requires that you use userdb prefetch.

And Daryl's method of using %w in regular userdb .. I'm not really sure how 
well that works. Could easily be that different Dovecot versions behave 
differently.



Re: [Dovecot] Altmove doesn't working after a dsync.

2013-03-21 Thread Timo Sirainen
I guess the save date gets reset. You can verify that with e.g.:

doveadm fetch date.saved mailbox inbox all

dsync is supposed to preserve the save date though. Might be broken in your 
version.

On 21.3.2013, at 22.59, Breno Moreira breno...@gmail.com wrote:

 My email was sent before I finish it.
 
 The other command I'm using is for move the old mails to the alternate
 storage, and it is:
  - doveadm -Dv altmove -u user seen savedbefore 2w
 
 In the logs all seems to be ok, without errors or warnings.
 I'm really thinking in test the new version to find out if the problem
 still occurs.
 
 Thanks to all.
 
 Breno Moreira
 
 
 On Thu, Mar 21, 2013 at 5:53 PM, Breno Moreira breno...@gmail.com wrote:
 
 Hi Charles,
 
 Sorry for not providing this kind of info.
 
 I'm using Dovecot 2.1.7 in a Debian Wheezy. The dovecot -n output is below:
 
 # 2.1.7: /etc/dovecot/dovecot.conf
 # OS: Linux 3.2.0-4-amd64 x86_64 Debian 7.0
 auth_mechanisms = plain login
 auth_socket_path = /var/run/dovecot/auth-userdb
 disable_plaintext_auth = no
 lmtp_proxy = yes
 mail_fsync = always
 mail_gid = vmail
 mail_location = maildir:~/.maildir
 mail_plugins =  quota
 mail_uid = vmail
 mmap_disable = yes
 passdb {
  driver = pam
 }
 passdb {
  args = /etc/dovecot/dovecot-sql.conf.ext
  driver = sql
 }
 plugin {
  quota = maildir:Quota
  sieve = ~/.dovecot.sieve
  sieve_dir = ~/sieve
 }
 protocols = imap pop3 lmtp
 service auth {
  unix_listener /var/spool/postfix/private/auth {
mode = 0666
  }
  unix_listener auth-userdb {
group = vmail
mode = 0666
user = vmail
  }
  user = root
 }
 service imap-login {
  service_count = 0
 }
 service lmtp {
  inet_listener lmtp {
address = localhost mail0.supramail.com.br
port = 7025
  }
 }
 service pop3-login {
  service_count = 0
 }
 ssl_cert = /etc/dovecot/dovecot.pem
 ssl_key = /etc/dovecot/dovecot.pem
 userdb {
  driver = passwd
 }
 userdb {
  args = /etc/dovecot/dovecot-sql.conf.ext
  driver = sql
 }
 protocol lmtp {
  mail_plugins =  quota sieve
  postmaster_address = postmas...@mail0.supramail.com.br
 }
 protocol imap {
  mail_plugins =  quota imap_quota
 }
 protocol pop3 {
  pop3_uidl_format = %v-%u
 }
 
 The commands that I'm using are:
 
 - dsync -Dv -u user mirror sdbox:~/sdbox:ALT=alternatestoragepath
 
 -
 
 
 On Thu, Mar 21, 2013 at 5:33 PM, Charles Marcus cmar...@media-brokers.com
 wrote:
 
 Please always try to provide some basic system info when asking for help.
 
 dovecot version? doveconf -n output? actual commands you are typing? logs
 of the events?
 
 Also remember, dsync has been completely rewritten for the upcoming 2.2
 (at rc3 now), and has always been a little problematic in earlier versions
 (which I guess was the reason for the rewrite)...
 
 
 On 2013-03-21 3:58 PM, Breno Moreira breno...@gmail.com wrote:
 
 Hi guys,
 
 I'm having a problem with the altmove command after a mailbox migration
 using dsync.
 
 What I'm trying to do is move some users from a datacenter to another
 and,
 for that, I'm using the dsync feature. First thing I do is run the dsync
 mirror command, and this is working properly, but all mails are moved to
 the main path, ignoring the ALT statement in the mail location.
 
 So, what I tried to do was run the doveadm altmove to move the old mails
 to
 the new alternate storage, but it simply doesn't work or sometimes moves
 only few messages.
 
 After the user receives new messages, these new files are correctly
 moved.
 
 It can be problem with my search parameter in the altmove command? Or
 this
 is a normal result?
 
 Best Regards,
 Breno Moreira
 
 
 
 --
 
 Best regards,
 
 Charles Marcus
 I.T. Director
 Media Brokers International, Inc.
 678.514.6224 | 678.514.6299 fax
 
 
 
 
 
 --
 -
 Breno Moreira
 
 “O êxito na vida não se mede pelo que você conquistou,
 
 mas sim pelas dificuldades que superou no caminho.”
 
 *Abraham Lincoln*
 
 
 
 
 -- 
 -
 Breno Moreira
 
 “O êxito na vida não se mede pelo que você conquistou,
 
 mas sim pelas dificuldades que superou no caminho.”
 
 *Abraham Lincoln*



Re: [Dovecot] Log DNS revese IP address

2013-03-21 Thread Timo Sirainen
On 21.3.2013, at 18.55, Juan Bernhard j...@inti.gob.ar wrote:

 Hi list. Is it possible to log the DNS reverse address of every login?
 I didnt find a variable *%{hostname}* but the wiki say it only works on 
 *deliver_log_format* and not on *login_log_format_elements*
 
 Something like this:
 Mar 21 13:49:33 mailserver dovecot: pop3-login: Login: user=myuser, 
 method=PLAIN, rip=10.10.10.15, lip=10.10.10.1, mpid=18712, 
 *host=client02.example.com*

Nope. Just a waste of time to wait on DNS.



Re: [Dovecot] director's imap/pop3 login timeout

2013-03-21 Thread Timo Sirainen
On 21.3.2013, at 12.30, Angel L. Mateo ama...@um.es wrote:

 Mar 20 20:52:47 myotis41 dovecot: imap-login: proxy(user): Login failed to 
 155.54.211.162:143: [UNAVAILABLE] Temporary authentication failure. 
 [myotis32:2013-03-20 19:52:47]
 
   So, it seems it was trying to authenticate for 1 hour, after that it 
 timed out the login.
 
   But this timeout is too long. Is this a director timeout? Or a backend 
 timeout? How can I reduce it?

Hmm. This is a behavior change, so I'm not really sure if I should put this to 
v2.1. But it's in v2.2 now anyway:

http://hg.dovecot.org/dovecot-2.2/rev/a4ea6946c621

Also that requires proxy_timeout to be returned by passdb and there wasn't a 
default. I guess there should be, added to v2.2 also:

http://hg.dovecot.org/dovecot-2.2/rev/9439a43bd645



[Dovecot] dsync mirror to convert from mbox (1.2x) to mdbox (2.2)

2013-03-21 Thread Ken A
I'm converting mail from mbox to mdbox.
I've copied mail over to a new system, and now I'm running dsync like this:

dsync -u username mirror
mbox:/folder_location/username:INBOX=/inbox_location/username

That seemed to work, with a couple minor errors:

 dsync(username): Warning: Our dotlock file /mail_location/username.lock was 
 deleted (locked 20 secs ago, touched 20 secs ago)
 dsync(username): Error: file_dotlock_delete() failed with mbox file 
 /mail_location/username: No such file or directory

Do I also need to specify where dovecot's indexes are for the old mbox
files, or is this not needed for mbox conversions (when they are the
source)?

Thanks,
Ken A.


[Dovecot] discarding vacation response for message implicitly delivered

2013-03-21 Thread dovecot
Hi All,

Spec:
* Centos 6.3x64
* postfix-2.6.6-2.2.el6_1.x86_64
* dovecot-pigeonhole-2.0.9-5.el6.x86_64
* dovecot-2.0.9-5.el6.x86_64

Challenge:
Does anyone have an explination regarding this message?


---
Mar 22 12:15:22 chtvm dovecot: lmtp(7004, cht): C+EZBuObS1FcGwAAlnPEfg:
sieve: msgid=20130322011522.6d55d40...@chtvm.noboost.org:
discarding vacation response for message implicitly delivered to
c...@vacation.noboost.org
---


I'm getting it when passing traffic through to the Dovecot sieve
vacation extension from a virtual domain.


Regards,

Craig