Re: [Dovecot] dsync backup doubles quota

2012-06-07 Thread Thomas Leuxner
Am 05.06.2012 um 14:03 schrieb Patrick Westenberg:

> Is this a bug or normal behavior?

There's an older thread regarding this:

http://www.dovecot.org/list/dovecot/2012-February/063585.html

signature.asc
Description: Message signed with OpenPGP using GPGMail


Re: [Dovecot] Dovecot auth process delays exiting if LDAPS passdb used

2012-06-07 Thread SATOH Fumiyasu
At Tue, 29 May 2012 18:31:45 +0300,
Timo Sirainen wrote:
> > > If Dovecot passdb is configured with LDAP (no TLS/SSL),
> > > it is no problem. But if Dovecot passdb is configured with
> > > LDAPS (or LDAP+TLS), Dovecot auth process has a problem
> > > that Dovecot auth delays exiting about between 20 and
> > > 60 seconds when Dovecot dovecot (master) process is already
> > > terminated by an administrator.
> > 
> > I can reproduce this problem with LDAP (no TLS/SSL) passdb.
> 
> And I suppose you can reproduce it even when not using LDAP?

Yes. I can reproduce with dovecot 1:2.1.7-1 (Debian unstable package)
with PAM passdb. This PAM environment is configured for
local UNIX passwd file only (no LDAP).

> All of the Dovecot processes are supposed to close all listeners
> immediately when the master process dies. If this doesn't happen then
> something strange is going on.

My dovecot config (PAM version) is below:

# dovecot -n
# 2.1.7: /etc/dovecot/dovecot.conf
# OS: Linux 3.2.0-2-amd64 x86_64 Debian wheezy/sid
namespace inbox {
  inbox = yes
  location =
  prefix =
}
passdb {
  driver = pam
}
plugin {
  sieve = ~/.dovecot.sieve
  sieve_dir = ~/sieve
}
protocols = " imap pop3"
service auth {
  unix_listener /var/spool/postfix/private/dovecot-auth {
mode = 0666
  }
}
ssl_cert = http://www.OSSTech.co.jp/
-- GitHub Home: https://GitHub.com/fumiyas/


Re: [Dovecot] Email auto purging applied to all mail folders

2012-06-07 Thread Joseba Torre

El 06/06/12 18:19, Joe V Aldeguer escribió:

Hello,

Is it possible to have this done not only for spam and trash folder but lets 
say like the user inbox and any user created mail folders too?  My ultimate 
goal is to have a way to automate the email deletion process of emails stored 
in the user inbox or mail folders when it reaches a specified date.  My boss 
wants to force users to keep emails only a month old anything beyond that will 
be deleted.  Has anyone done this using dovecot and are there any guides 
available?  I am also open to suggestions for commercial solutions but so far 
searching online for solutions only comes up with email archiving.



Something like

doveadm expunge -A mailbox '*' savedbefore 1m

should do that, depending on your userdb. But check with doveadm search 
before expunging anything!


HTH


[Dovecot] director and IPs shown at the backends

2012-06-07 Thread Angel L. Mateo

Hello,

	I am configuring a dovecot imap/pop servers with a dovecot director in 
front of them. Because I am using director proxy, connections in the 
backends are show as coming from director IPs. Is there any way to 
configure director (or backends) so the backends know (and report) the 
original IP instead of the director IP?


Re: [Dovecot] director and IPs shown at the backends

2012-06-07 Thread Urban Loesch


Hi,

try it with "login_trusted_networks" option on the backends:

# Space separated list of trusted network ranges. Connections from these
# IPs are allowed to override their IP addresses and ports (for logging and
# for authentication checks). disable_plaintext_auth is also ignored for
# these networks. Typically you'd specify your IMAP proxy servers here.
login_trusted_networks =

But for POP this will only working with version 2.1.x

regards
Urban



On 07.06.2012 13:52, Angel L. Mateo wrote:

Hello,

I am configuring a dovecot imap/pop servers with a dovecot director in front of 
them. Because I am using director proxy, connections in the backends
are show as coming from director IPs. Is there any way to configure director 
(or backends) so the backends know (and report) the original IP instead
of the director IP?



Re: [Dovecot] Can we know when a user read our email?

2012-06-07 Thread Reindl Harald


Am 06.06.2012 23:59, schrieb Ed W:
> I'm not sure why this is so hard to believe.  There is literally a class of 
> customers that have a specification
> which says that there must be a notification sent back to the sender whenever 
> they download their emails.  I cannot
> currently bid for their business.
> 
> A spec is a spec - either you can meet the spec or you can't bid for the 
> business...

i'm not sure why it is so hard to believe that nobody should
bid for such idiotic specs - techs should act professional
and not like whores while try impossible and stupid things
which can sovle each mail-client since > 10 years and is not
the job of a mailserver




signature.asc
Description: OpenPGP digital signature


[Dovecot] Postfix don't relay to dovecot virtual user

2012-06-07 Thread phil25lsbin
Hi,

I run a mail server on debian squeeze system , i installed the following
software

postfix
dovecot
spamassassin
postgrey

I configured a virtual domain and virtual mailbox but postfix don't pipe
mail in dovecot.

In log, it's appear that the relay mode is local and the delivery message
is delivered to mailbox)

Jun  7 15:23:01 ns230370 postfix/smtpd[27501]: 66BBA4D40F0:
client=localhost.localdomain[127.0.0.1]
Jun  7 15:23:01 ns230370 postfix/cleanup[8017]: 66BBA4D40F0: message-id=<
e1sccg1-00029s...@ns231581.ovh.net>
Jun  7 15:23:01 ns230370 postfix/qmgr[27490]: 66BBA4D40F0: from=<
ad...@lebest.fr>, size=1807, nrcpt=1 (queue active)
Jun  7 15:23:01 ns230370 postfix/local[7907]: 66BBA4D40F0: to=<
ad...@lebest.fr>, relay=local, delay=0, delays=0/0/0/0, dsn=2.0.0,
status=sent (delivered to mailbox)
Jun  7 15:23:01 ns230370 postfix/qmgr[27490]: 66BBA4D40F0: removed


My dovecot.conf:

protocols = imap imaps pop3 pop3s
log_timestamp = "%Y-%m-%d %H:%M:%S "
log_path = /var/log/dovecot/dovecot.log
info_log_path = /var/log/dovecot/dovecot-info.log
mail_privileged_group = mail
disable_plaintext_auth = no
mail_location = maildir:/home/smtp/%d/%n:INDEX=/home/smtp/%d/%n/indexes
protocol imap {
}

protocol pop3 {
}
protocol managesieve {
}
protocol lda {
  postmaster_address = ad...@xxx.fr
  mail_plugin_dir = /usr/lib/dovecot/modules/lda
  auth_socket_path = /var/run/dovecot/auth-master
}
auth default {
userdb sql {
args = /etc/dovecot/dovecot-mysql.conf
}
passdb sql {
args = /etc/dovecot/dovecot-mysql.conf
}
 socket listen {
  master {
  path = /var/run/dovecot/auth-master
  mode = 0600
  user = smtp
  }
  client {
  path = /var/spool/postfix/private/auth
  mode = 0660
  user = postfix
  group = postfix
  }
 }
}
dict {
}
plugin {
}


My main.cf

myhostname = smtp.XXX.FR
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = XXX.FR
mydestination = XXX.FR, smtp.XXX.FR, localhost.XXX.FRr, localhost
relayhost =
mynetworks = 172.16.0.0/12 127.0.0.0/8
mailbox_size_limit = 0
inet_interfaces = all
virtual_uid_maps = static:3000
virtual_gid_maps = static:3000
virtual_mailbox_base = /home/smtp
virtual_transport = dovecot
virtual_mailbox_domains = mysql:/etc/postfix/
mysql_virtual_mailbox_domains.cf
virtual_mailbox_maps = mysql:/etc/postfix/mysql_virtual_mailbox_maps.cf
virtual_alias_maps = mysql:/etc/postfix/mysql_virtual_alias_maps.cf
relay_domains = mysql:/etc/postfix/mysql_relay_domains.cf

smtpd_recipient_restrictions =
  permit_mynetworks,
  permit_sasl_authenticated,
  reject_non_fqdn_hostname,
  reject_non_fqdn_sender,
  reject_non_fqdn_recipient,
  reject_unauth_destination,
  reject_unauth_pipelining,
  check_policy_service inet:127.0.0.1:10023,
  reject_invalid_hostname

smtpd_sasl_auth_enable = yes
smtpd_sasl_security_options = noanonymous
content_filter = amavis:[127.0.0.1]:10024
receive_override_options = no_address_mappings
inet_protocols = ipv4

The end of  master.cf file

dovecot   unix  -   n   n   -   -   pipe
  flags=DRhu user=smtp:smtp argv=/usr/lib/dovecot/deliver -f ${sender} -d
${user}@${nexthop}
amavis unix - - - - 2 smtp
-o smtp_data_done_timeout=1200
-o smtp_send_xforward_command=yes

127.0.0.1:10025 inet n - - - - smtpd
-o content_filter=
-o local_recipient_maps=
-o relay_recipient_maps=
-o smtpd_restriction_classes=
-o smtpd_client_restrictions=
-o smtpd_helo_restrictions=
-o smtpd_sender_restrictions=
-o smtpd_recipient_restrictions=permit_mynetworks,reject
-o mynetworks=127.0.0.0/8
-o strict_rfc821_envelopes=yes
-o
receive_override_options=no_unknown_recipient_checks,no_header_body_checks
-o smtpd_bind_address=127.0.0.1

Thanks


Re: [Dovecot] Postfix don't relay to dovecot virtual user

2012-06-07 Thread Charles Marcus

Please do not provide copy/paste from conf files...

Always ONLY provide UNEDITED output of:

doveconf -n

postconf -n

On 2012-06-07 9:33 AM, phil25lsbin  wrote:

Hi,

I run a mail server on debian squeeze system , i installed the following
software

postfix
dovecot
spamassassin
postgrey

I configured a virtual domain and virtual mailbox but postfix don't pipe
mail in dovecot.

In log, it's appear that the relay mode is local and the delivery message
is delivered to mailbox)

Jun  7 15:23:01 ns230370 postfix/smtpd[27501]: 66BBA4D40F0:
client=localhost.localdomain[127.0.0.1]
Jun  7 15:23:01 ns230370 postfix/cleanup[8017]: 66BBA4D40F0: message-id=<
e1sccg1-00029s...@ns231581.ovh.net>
Jun  7 15:23:01 ns230370 postfix/qmgr[27490]: 66BBA4D40F0: from=<
ad...@lebest.fr>, size=1807, nrcpt=1 (queue active)
Jun  7 15:23:01 ns230370 postfix/local[7907]: 66BBA4D40F0: to=<
ad...@lebest.fr>, relay=local, delay=0, delays=0/0/0/0, dsn=2.0.0,
status=sent (delivered to mailbox)
Jun  7 15:23:01 ns230370 postfix/qmgr[27490]: 66BBA4D40F0: removed


My dovecot.conf:

protocols = imap imaps pop3 pop3s
log_timestamp = "%Y-%m-%d %H:%M:%S "
log_path = /var/log/dovecot/dovecot.log
info_log_path = /var/log/dovecot/dovecot-info.log
mail_privileged_group = mail
disable_plaintext_auth = no
mail_location = maildir:/home/smtp/%d/%n:INDEX=/home/smtp/%d/%n/indexes
protocol imap {
}

protocol pop3 {
}
protocol managesieve {
}
protocol lda {
   postmaster_address = ad...@xxx.fr
   mail_plugin_dir = /usr/lib/dovecot/modules/lda
   auth_socket_path = /var/run/dovecot/auth-master
}
auth default {
 userdb sql {
 args = /etc/dovecot/dovecot-mysql.conf
 }
 passdb sql {
 args = /etc/dovecot/dovecot-mysql.conf
 }
  socket listen {
   master {
   path = /var/run/dovecot/auth-master
   mode = 0600
   user = smtp
   }
   client {
   path = /var/spool/postfix/private/auth
   mode = 0660
   user = postfix
   group = postfix
   }
  }
}
dict {
}
plugin {
}


My main.cf

myhostname = smtp.XXX.FR
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = XXX.FR
mydestination = XXX.FR, smtp.XXX.FR, localhost.XXX.FRr, localhost
relayhost =
mynetworks = 172.16.0.0/12 127.0.0.0/8
mailbox_size_limit = 0
inet_interfaces = all
virtual_uid_maps = static:3000
virtual_gid_maps = static:3000
virtual_mailbox_base = /home/smtp
virtual_transport = dovecot
virtual_mailbox_domains = mysql:/etc/postfix/
mysql_virtual_mailbox_domains.cf
virtual_mailbox_maps = mysql:/etc/postfix/mysql_virtual_mailbox_maps.cf
virtual_alias_maps = mysql:/etc/postfix/mysql_virtual_alias_maps.cf
relay_domains = mysql:/etc/postfix/mysql_relay_domains.cf

smtpd_recipient_restrictions =
   permit_mynetworks,
   permit_sasl_authenticated,
   reject_non_fqdn_hostname,
   reject_non_fqdn_sender,
   reject_non_fqdn_recipient,
   reject_unauth_destination,
   reject_unauth_pipelining,
   check_policy_service inet:127.0.0.1:10023,
   reject_invalid_hostname

smtpd_sasl_auth_enable = yes
smtpd_sasl_security_options = noanonymous
content_filter = amavis:[127.0.0.1]:10024
receive_override_options = no_address_mappings
inet_protocols = ipv4

The end of  master.cf file

dovecot   unix  -   n   n   -   -   pipe
   flags=DRhu user=smtp:smtp argv=/usr/lib/dovecot/deliver -f ${sender} -d
${user}@${nexthop}
amavis unix - - - - 2 smtp
 -o smtp_data_done_timeout=1200
 -o smtp_send_xforward_command=yes

127.0.0.1:10025 inet n - - - - smtpd
 -o content_filter=
 -o local_recipient_maps=
 -o relay_recipient_maps=
 -o smtpd_restriction_classes=
 -o smtpd_client_restrictions=
 -o smtpd_helo_restrictions=
 -o smtpd_sender_restrictions=
 -o smtpd_recipient_restrictions=permit_mynetworks,reject
 -o mynetworks=127.0.0.0/8
 -o strict_rfc821_envelopes=yes
 -o
receive_override_options=no_unknown_recipient_checks,no_header_body_checks
 -o smtpd_bind_address=127.0.0.1

Thanks


[Dovecot] Problem with Dovecot and AD LDAP auth

2012-06-07 Thread Алексей Переклад
Hi.

Seems it's a bug in dovecot auth. I have  FreeBSD 8.1-RELEASE-p1 and I tried 
1.2.17 and 2.1.7 versions of Dovecot, and still no luck.

The problem: when I set in dovecot-ldap.conf: base = CN=Users,DC=domain,DC=local

everything works fine. But if I set: base = DC=domain,DC=local

mail client can't authorize. /var/log/dovecot.log says:
=== 
Jun 07 18:07:17 auth: Debug: auth client connected (pid=14611)
Jun 07 18:08:11 auth: Debug: client in: AUTH 1 PLAIN service=imap 
session=G1//aeLB6wAKAABu lip=10.0.0.3 rip=10.0.0.110 lport=143 rport=55787 
resp=AGdhdGV3YXkAVU82eUpuUXQ=
Jun 07 18:08:11 auth: Debug: ldap(gateway,10.0.0.110,): bind 
search: base=DC=domain,DC=local 
filter=(&(objectClass=person)(sAMAccountName=gateway))
Jun 07 18:08:11 auth: Debug: ldap(gateway,10.0.0.110,): 
result: uid missing
Jun 07 18:10:18 imap-login: Info: Disconnected: Inactivity during 
authentication (disconnected while authenticating, waited 127 secs): user=<>, 
method=PLAIN, rip=10.0.0.110, lip=10.0.0.3, session=
Jun 07 18:10:18 auth: Debug: client in: CANCEL 1
Jun 07 18:10:18 auth: Debug: auth client connected (pid=14706)
Jun 07 18:10:26 auth: Debug: client in: AUTH 1 PLAIN service=imap 
session=n6IBcuLB7AAKAABu lip=10.0.0.3 rip=10.0.0.110 lport=143 rport=55788 
resp=AGdhdGV3YXkAVU82eUpuUXQ=
Jun 07 18:10:26 auth: Debug: ldap(gateway,10.0.0.110,): bind 
search: base=DC=domain,DC=local 
filter=(&(objectClass=person)(sAMAccountName=gateway))
Jun 07 18:10:26 auth: Error: ldap(gateway,10.0.0.110,): 
Connection appears to be hanging, reconnecting
Jun 07 18:10:26 auth: Debug: ldap(gateway,10.0.0.110,): 
result: uid missing
Jun 07 18:10:26 auth: Error: ldap(gateway,10.0.0.110,): 
Request lost
Jun 07 18:10:26 auth: Error: ldap(gateway,10.0.0.110,): 
ldap_search(base=DC=domain,DC=local 
filter=(&(objectClass=person)(sAMAccountName=gateway))) failed: Operations error
Jun 07 18:10:26 auth: Error: LDAP: Reply with unknown msgid 2
Jun 07 18:10:26 auth: Error: LDAP: Reply with unknown msgid 2
Jun 07 18:10:26 auth: Error: LDAP: Reply with unknown msgid 2
Jun 07 18:10:26 auth: Error: LDAP: Reply with unknown msgid 2
Jun 07 18:10:28 auth: Debug: client out: FAIL 1 user=gateway temp
Jun 07 18:10:28 auth: Debug: client out: FAIL 1 user=gateway temp
Jun 07 18:13:18 imap-login: Info: Disconnected: Inactivity (auth failed, 1 
attempts in 172 secs): user=, method=PLAIN, rip=10.0.0.110, 
lip=10.0.0.3, session=


My dovecot-ldap.conf:

===
ldap_version = 3
hosts = ad.domain.local
base = DC=hrom,DC=local
scope = subtree

dn = CN=mailserver,CN=Users,DC=domain,DC=local
dnpass = here_is_pass
auth_bind = yes
pass_attrs = uid=user
pass_filter = "(&(objectClass=person)(sAMAccountName=%u))"
user_attrs = name=mail=maildir:/var/mail/virtual/hrom.local/%n
user_filter = "(&(objectClass=person)(sAMAccountName=%u))"
=== 
 
 I need base = DC=domain,DC=local for searching for user's accounts in 
different OU of my AD. If I set base = CN=Users,DC=domain,DC=local, Dovecot 
can't authorize user accounts from OU.

P.S.: Postfix with base = DC=domain,DC=local works perfectly, so the problem is 
not with our domain controller (LDAP server as well) .

Re: [Dovecot] Postfix don't relay to dovecot virtual user

2012-06-07 Thread Jerry
On Thu, 7 Jun 2012 15:33:34 +0200
phil25lsbin articulated:

>I run a mail server on debian squeeze system , i installed the
>following software
>
>postfix
>dovecot
>spamassassin
>postgrey
>
>I configured a virtual domain and virtual mailbox but postfix don't
>pipe mail in dovecot.

{SNIP}

1) Do not paste & copy your config files. Use:
dovecot -n
postconf -n

Paste the output of those commands in you post.

If Postfix is not relaying the mail you would probably be better served
on the Postfix forum. Its not that no one here could help you, I am
sure they will; however, it is really not a dovecot problem. For
Postfix, you might want to investigate the
 page, specifically:
 Check out the
postfinger tool. This can be found at http://ftp.wl0.org/SOURCES/postfinger.

Also, be sure to state the versions of the software that you are using
and you OS system version as well.

-- 
Jerry ♔

Disclaimer: off-list followups get on-list replies or get ignored.
Please do not ignore the Reply-To header.
__



[Dovecot] Accessing maildir snapshots through dovecot / namespace

2012-06-07 Thread Karl Oulmi

Hi,

I've the following setup :

- FreeBSD 9.0 / Dovecot 2.1.7
- Maildir storage over iSCSI (Dell MD3200i)
- Virtual users over LDAP

to render the storage snapshots available through
dovecot (to allow my users to browse their mail history).

Here is my conf :

namespace {
type = private
inbox = yes
list = yes
prefix = INBOX.
location = 
maildir:/home/%u/Maildir:CONTROL=/home/dovecot/control/%u:INDEX=/home/dovecot/indexes/%u

}


namespace snap {
prefix = INBOX.snapshot.h0.
hidden = no
inbox = no
list = yes
location = 
maildir:/da1/%u/Maildir:INDEX=/da1/dovecot/indexes/%u:CONTROL=/da1/dovecot/control/%u

type = private
}


The problem is that I don't see the content of the inbox folder 
contained in the snapshots whereas subfolders are perfectly viewed !


Inbox cur|new are is /da1/%u/Maildir/

If anyone have a tip, It would be nice...

Regards,
Karl.

--
___
Karl OULMI
Centre de Ressources Informatiques
Institut de Biologie de Lille - CNRS GDS3366

___






smime.p7s
Description: S/MIME Cryptographic Signature


[Dovecot] auth-worker problem here.

2012-06-07 Thread Marko Weber


hello,


in howto for gentoo i found this:

To tell Postfix about the maps that you've just set up, add the 
following (substituting mysql for pgsql if you're on PostgreSQL) to the 
bottom of /etc/postfix/main.cf:

virtual_alias_maps = mysql:/etc/postfix/sql_virtual_alias_maps.cf
virtual_mailbox_domains = mysql:/etc/postfix/sql_virtual_domain_maps.cf
virtual_mailbox_maps = mysql:/etc/postfix/sql_virtual_mailbox_maps.cf

Tip: Because this is using the Dovecot's LDA, all results from 
virtual_mailbox_maps are ignored beyond checking if they exist.


I added in the mysql db an alias postmas...@domainn.tld that should be 
forwarded to n...@domainn.tld.
The tip above tells me when using dovecot lda the virtual_alias_maps is 
ignored by dovecot.


now when i send a mail to postmas...@domainn.tld the mail is not 
transported to n...@domainn.tld.


in logfile i see this:

dovecot: auth-worker: sql(postmas...@zbfmail.de): Unknown user

how can i tell dovecot to also use the virtual_alias_maps?

thank you

marko



Re: [Dovecot] Postfix don't relay to dovecot virtual user

2012-06-07 Thread phil25lsbin
Sorry,

dovecot -n
# 1.2.15: /etc/dovecot/dovecot.conf
# OS: Linux 2.6.38.2-grsec--grs-ipv6-
64 x86_64 Debian 6.0.5 ext3
log_path: /var/log/dovecot/dovecot.log
info_log_path: /var/log/dovecot/dovecot-info.log
log_timestamp: %Y-%m-%d %H:%M:%S
protocols: imap imaps pop3 pop3s
disable_plaintext_auth: no
login_dir: /var/run/dovecot/login
login_executable(default): /usr/lib/dovecot/imap-login
login_executable(imap): /usr/lib/dovecot/imap-login
login_executable(pop3): /usr/lib/dovecot/pop3-login
mail_privileged_group: mail
mail_location: maildir:/home/smtp/%d/%n:INDEX=/home/smtp/%d/%n/indexes
mbox_write_locks: fcntl dotlock
mail_executable(default): /usr/lib/dovecot/imap
mail_executable(imap): /usr/lib/dovecot/imap
mail_executable(pop3): /usr/lib/dovecot/pop3
mail_plugin_dir(default): /usr/lib/dovecot/modules/imap
mail_plugin_dir(imap): /usr/lib/dovecot/modules/imap
mail_plugin_dir(pop3): /usr/lib/dovecot/modules/pop3
lda:
  postmaster_address: ad...@xxx.fr
  mail_plugin_dir: /usr/lib/dovecot/modules/lda
  auth_socket_path: /var/run/dovecot/auth-master
auth default:
  passdb:
driver: sql
args: /etc/dovecot/dovecot-mysql.conf
  userdb:
driver: sql
args: /etc/dovecot/dovecot-mysql.conf
  socket:
type: listen
client:
  path: /var/spool/postfix/private/auth
  mode: 432
  user: postfix
  group: postfix
master:
  path: /var/run/dovecot/auth-master
  mode: 384
  user: smtp

postconf -n
alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
config_directory = /etc/postfix

content_filter = amavis:[127.0.0.1]:10024
inet_interfaces = all
inet_protocols = ipv4
mailbox_size_limit = 0
mydestination = XXX.fr, smtp.XXX.fr, localhost.XXX.fr, localhost
myhostname = smtp.XXX.fr
mynetworks = 172.16.0.0/12 127.0.0.0/8
myorigin = XXX.fr
receive_override_options = no_address_mappings
relay_domains = mysql:/etc/postfix/mysql_relay_domains.cf
relayhost =

smtpd_recipient_restrictions = permit_mynetworks,
permit_sasl_authenticated,  reject_non_fqdn_hostname,
reject_non_fqdn_sender,  reject_non_fqdn_recipient,
reject_unauth_destination,  reject_unauth_pipelining,  check_policy_service
inet:127.0.0.1:10023,  reject_invalid_hostname
smtpd_sasl_auth_enable = yes
smtpd_sasl_security_options = noanonymous
virtual_alias_maps = mysql:/etc/postfix/mysql_virtual_alias_maps.cf

virtual_gid_maps = static:3000
virtual_mailbox_base = /home/smtp
virtual_mailbox_domains = mysql:/etc/postfix/
mysql_virtual_mailbox_domains.cf
virtual_mailbox_maps = mysql:/etc/postfix/mysql_virtual_mailbox_maps.cf
virtual_transport = dovecot
virtual_uid_maps = static:3000

Thanks for help


2012/6/7 Jerry 

> On Thu, 7 Jun 2012 15:33:34 +0200
> phil25lsbin articulated:
>
> >I run a mail server on debian squeeze system , i installed the
> >following software
> >
> >postfix
> >dovecot
> >spamassassin
> >postgrey
> >
> >I configured a virtual domain and virtual mailbox but postfix don't
> >pipe mail in dovecot.
>
> {SNIP}
>
> 1) Do not paste & copy your config files. Use:
>dovecot -n
>postconf -n
>
> Paste the output of those commands in you post.
>
> If Postfix is not relaying the mail you would probably be better served
> on the Postfix forum. Its not that no one here could help you, I am
> sure they will; however, it is really not a dovecot problem. For
> Postfix, you might want to investigate the
>  page, specifically:
>  Check out the
> postfinger tool. This can be found at
> http://ftp.wl0.org/SOURCES/postfinger.
>
> Also, be sure to state the versions of the software that you are using
> and you OS system version as well.
>
> --
> Jerry ♔
>
> Disclaimer: off-list followups get on-list replies or get ignored.
> Please do not ignore the Reply-To header.
> __
>
>


[Dovecot] Authentication issue

2012-06-07 Thread Emiliano Rago

Hi,

I need to set up a weird dovecot configuration:

1) outside a ssl tunnel I'd like to authenticate only with cram-md5 scheme
2) inside a ssl tunnel  I'd like to authenticate only with plain auth

The first is easily satisfied with

auth_mechanisms = plain cram-md5
disable_plaintext_auth = yes

but I don't know how to satisfy the second condition, if it's possible.

Thanks for help,
Emiliano Rago


[Dovecot] how to announce shared folders to clients using non-default mail prefix

2012-06-07 Thread Tom Lieuallen
We're using dovecot 2.1.3 and I've been doing some testing with 2.1.7. 
We have shared mail (maildir) folders working along with our default 
mbox mailboxes.  Our problem is trying to get this to work in a 
reasonable fashion with our iPhone or iPad mail.app clients.  It's well 
known that they don't honor the subscription list; they show all 
available mail folders and do not collapse trees of folders.  I have 381 
folders in directories under mail.  Normal clients are fine, but this is 
unmanageable in IOS.


What we have been doing is changing the mail prefix for the iPhone to a 
subfolder, then using soft links to point to the most commonly used 
folders we use.  This works, but when one changes the mail prefix, any 
shared folders are not presented.  I'm suspicious that this is a design 
decision.  If there is some way to make it work, I'd be very grateful.


Note the two 'sharedimap' folders listed in the first 'list'.

Note that if I change the prefix for that shared namespace to 
'iphonemail/', it does present my shared folders as well as anything in 
a personal iphonemail directory.  However, 'select' didn't work with the 
personal folders.  My guess is it's mostly due to the difference in mail 
formats between the two (mbox & maildir).  But, it does show that 
somewhere in the code it's checking the mail prefix against namespaces 
and not displaying shared folders in non-default prefixes.  I wish this 
were a configurable option.


thank you

Tom Lieuallen
Oregon State University

. list "" *
* LIST (\Noselect \HasChildren) "/" "foo1"
* LIST (\NoInferiors \UnMarked) "/" "foo1/folder1"
* LIST (\Noselect \HasChildren) "/" "iphonemail"
* LIST (\NoInferiors \Marked) "/" "iphonemail/foo1"
* LIST (\NoInferiors \UnMarked) "/" "Sent"
* LIST (\NoInferiors \UnMarked) "/" "Trash"
* LIST (\HasNoChildren) "/" "INBOX"
* LIST (\HasNoChildren) "/" "sharedimap/cesupport"
* LIST (\HasNoChildren) "/" "sharedimap/mimesupport"
. OK List completed.
. list "iphonemail/" *
* LIST (\NoInferiors \Marked) "/" "iphonemail/foo1"
. OK List completed.


===

# 2.1.7: /private/dovecot/etc/dovecot/dovecot.conf
# OS: SunOS 5.10 sun4v
auth_debug = yes
auth_verbose = yes
default_client_limit = 10245
default_process_limit = 5120
first_valid_uid = 100
mail_location = mbox:~/mail:INBOX=/var/mail/%u:INDEX=/a2/imap-index/%u
mail_nfs_storage = yes
mail_plugins = quota acl
namespace {
  inbox = yes
  location =
  prefix =
  separator = /
  type = private
}
namespace {
  hidden = yes
  inbox = no
  list = children
  location = maildir:/a1/dove-shared:INDEX=/a2/imap-index/dove-shared/%u
  prefix = sharedimap/
  separator = /
  type = shared
}
passdb {
  driver = pam
}
passdb {
  args = scheme=CRYPT username_format=%u /private/dovecot/etc/passwd
  driver = passwd-file
}
plugin {
  acl = vfile
  quota = fs:INBOX:mount=/a1
  quota2 = fs:Home quota:mount=%h
}
protocols = imap lmtp
service imap-login {
  inet_listener imaps {
port = 993
ssl = yes
  }
  process_min_avail = 16
  service_count = 1
}
service imap {
  process_limit = 2048
}
ssl_ca = 

[Dovecot] director: backend health monitoring

2012-06-07 Thread Костырев Александр Алексеевич
Hello!

I am wonder if there are plans to include backend health monitoring feature to 
Dovecot Director ?
Yes, I'm aware of poolmon by Brad Davidson but I think it's kind of must-have 
feature out of box.

 

thanks



[Dovecot] Corrupted mdbox on LMTP director delivery while user is logged in via IMAP

2012-06-07 Thread Daniel Parthey
Hi,

we get errors about corrupted indexes and we are losing flags with mdbox on 
NFSv4:

Error: Recent flags state corrupted for mailbox
Error: Corrupted dbox file
Error: Corrupted transaction log file

It looks like a LMTP director problem. The user has IMAP IDLE connections
open and lmtp delivers to another host. This leads to nfs corruption problems.

The user is logged into mail04 and has some IMAP IDLE mailbox connections open:

mail04:~# ps -ef|grep someuser
vmail 5217 23918 0 Jun07 ? 00:00:00 dovecot/imap [someu...@example.de 
10.129.3.190 IDLE]
vmail 8623 23918 0 Jun07 ? 00:00:00 dovecot/imap [someu...@example.de 
10.129.3.233 IDLE]
vmail 20279 23918 0 00:37 ? 00:00:00 dovecot/imap [someu...@example.de 
10.129.3.213 IDLE]

If postfix on mail01/dcmailbox01 receives an incoming mail now, the director on 
mail01
does NOT direct LMTP to the responsible host mail04/dcmailbox04 (10.129.3.190),
but delivers it locally to mail01 (10.129.3.193), which leads to file 
corruption.

mail01:~# doveadm -c /etc/dovecot-director/dovecot-director.conf director 
status someu...@example.de
Current: not assigned
Hashed: 10.129.3.193
Initial config: 10.129.3.193

mail01:~# host 10.129.3.193
193.3.129.10.in-addr.arpa domain name pointer dcmailbox01.example.net.

mail01 runs the lmtp proxy and lmtp delivery,
even though the user is logged in via IMAP IDLE on mail04:

mail01:~# grep "^Jun 8 03:36:.*someu...@example.de" /var/log/server/dovecot.log
Jun 8 03:36:02 10.129.3.233 dovecot: lmtp(27124): Debug: auth input: 
someu...@example.de home=/mail/dovecot/example.de/someuser uid=501 gid=123 
quota_rule=*:bytes=5000M:messages=0
Jun 8 03:36:02 10.129.3.233 dovecot: lmtp(27124, someu...@example.de): Debug: 
Effective uid=501, gid=123, home=/mail/dovecot/example.de/someuser
Jun 8 03:36:02 10.129.3.233 dovecot: lmtp(27124, someu...@example.de): Debug: 
Quota root: name=User quota backend=dict args=:proxy::quota
Jun 8 03:36:02 10.129.3.233 dovecot: lmtp(27124, someu...@example.de): Debug: 
Quota rule: root=User quota mailbox=* bytes=524288 messages=0
Jun 8 03:36:02 10.129.3.233 dovecot: lmtp(27124, someu...@example.de): Debug: 
Quota rule: root=User quota mailbox=Trash bytes=+104857600 messages=0
Jun 8 03:36:02 10.129.3.233 dovecot: lmtp(27124, someu...@example.de): Debug: 
Quota warning: bytes=4980736000 (95%) messages=0 reverse=no 
command=quota-warning 95 someu...@example.de
Jun 8 03:36:02 10.129.3.233 dovecot: lmtp(27124, someu...@example.de): Debug: 
Quota warning: bytes=4194304000 (80%) messages=0 reverse=no 
command=quota-warning 80 someu...@example.de
Jun 8 03:36:02 10.129.3.233 dovecot: lmtp(27124, someu...@example.de): Debug: 
dict quota: user=someu...@example.de, uri=proxy::quota, noenforcing=0
Jun 8 03:36:02 10.129.3.233 dovecot: lmtp(27124, someu...@example.de): Debug: 
fs: root=/mail/dovecot/example.de/someuser/mail, index=, control=, inbox=, alt=
Jun 8 03:36:02 10.129.3.233 dovecot: lmtp(27124, someu...@example.de): Debug: 
Namespace : Using permissions from /mail/dovecot/example.de/someuser/mail: 
mode=0700 gid=-1
Jun 8 03:36:02 10.129.3.233 dovecot: lmtp(27124, someu...@example.de): Debug: 
sieve: include: sieve_global_dir is not set; it is currently not possible to 
include `:global' scripts.
Jun 8 03:36:02 10.129.3.233 dovecot: lmtp(27124, someu...@example.de): Debug: 
jOv8JgJX0U/0aQAA3l+BKA: sieve: using sieve path for user's script: 
/mail/dovecot/example.de/someuser/.dovecot.sieve
Jun 8 03:36:02 10.129.3.233 dovecot: lmtp(27124, someu...@example.de): Debug: 
jOv8JgJX0U/0aQAA3l+BKA: sieve: opening script 
/mail/dovecot/example.de/someuser/.dovecot.sieve
Jun 8 03:36:02 10.129.3.233 dovecot: lmtp(27124, someu...@example.de): Debug: 
jOv8JgJX0U/0aQAA3l+BKA: sieve: script binary 
/mail/dovecot/example.de/someuser/.dovecot.svbin successfully loaded
Jun 8 03:36:02 10.129.3.233 dovecot: lmtp(27124, someu...@example.de): Debug: 
jOv8JgJX0U/0aQAA3l+BKA: sieve: binary save: not saving binary 
/mail/dovecot/example.de/someuser/.dovecot.svbin, because 
it is already stored
Jun 8 03:36:02 10.129.3.233 dovecot: lmtp(27124, someu...@example.de): Debug: 
jOv8JgJX0U/0aQAA3l+BKA: sieve: executing script from 
/mail/dovecot/example.de/someuser/.dovecot.svbin
Jun 8 03:36:02 10.129.3.213 dovecot: lmtp(23404): Debug: auth input: 
user=someu...@example.de proxy port=19024 host=10.129.3.193 proxy_refresh=450
Jun 8 03:36:02 10.129.3.233 dovecot: lmtp(27124, someu...@example.de): 
jOv8JgJX0U/0aQAA3l+BKA: sieve: mailbox: deliver: 
msgid=<201206080136.q581a1rc024...@iolite.ham.srv.mcs.de> 
from=serv...@cityline.net: stored mail into mailbox 'INBOX'
Jun 8 03:36:02 10.129.3.213 dovecot: lmtp(23406): Debug: auth input: 
user=someu...@example.de proxy port=19024 host=10.129.3.193 proxy_refresh=450
Jun 8 03:36:02 10.129.3.233 dovecot: lmtp(27125): Debug: auth input: 
someu...@example.de home=/mail/dovecot/example.de/someuser uid=501 gid=123 
quota_rule=*:bytes=5000M:messages=0
Jun 8 03:36:02 10.129.3.233 dovecot: lmtp(27125, someu...@exa

[Dovecot] Director pop3 real ips v2.1.1

2012-06-07 Thread Костырев Александр Алексеевич
good day!

I'm experiencing problem with pop3 proxying:
on backend servers in logs there's director's ip instead of remote's
like this:
Jun  8 15:21:23 host-01 dovecot: pop3-login: Login: user=, 
method=PLAIN, rip=192.168.5.102, lip=192.168.5.100, mpid=26170, secured
Jun  8 15:32:16 host-01 dovecot: pop3-login: Login: user=, 
method=PLAIN, rip=192.168.5.102, lip=192.168.5.100, mpid=26426, secured



--
С уважением,
Костырев Александр
системный администратор
ЗАО "Сервер-Центр"
тел.: (423) 262-02-62 (доб. 2037)
факс: (423) 262-02-10
a.kosty...@serverc.ru
icq: 404-198-497




Re: [Dovecot] Director pop3 real ips v2.1.1

2012-06-07 Thread Костырев Александр Алексеевич
*sorry, accidently send to soon.
continue:

but with imap it's ok

I've read thread "Dovecot Proxy and environment variables"
and as I understood there was no solution.

yes, I use v.2.1.1 on both director and backends
and yes, I've added 
login_trusted_networks = 192.168.5.0/24 on all of them
but it didn't help.

any workarounds? 
thanks






--
С уважением,
Костырев Александр
системный администратор
ЗАО "Сервер-Центр"
тел.: (423) 262-02-62 (доб. 2037)
факс: (423) 262-02-10
a.kosty...@serverc.ru
icq: 404-198-497

-Original Message-
From: dovecot-boun...@dovecot.org [mailto:dovecot-boun...@dovecot.org] On 
Behalf Of Костырев Александр Алексеевич
Sent: Friday, June 08, 2012 3:33 PM
To: dovecot@dovecot.org
Subject: [Dovecot] Director pop3 real ips v2.1.1

good day!

I'm experiencing problem with pop3 proxying:
on backend servers in logs there's director's ip instead of remote's
like this:
Jun  8 15:21:23 host-01 dovecot: pop3-login: Login: user=, 
method=PLAIN, rip=192.168.5.102, lip=192.168.5.100, mpid=26170, secured
Jun  8 15:32:16 host-01 dovecot: pop3-login: Login: user=, 
method=PLAIN, rip=192.168.5.102, lip=192.168.5.100, mpid=26426, secured



--
С уважением,
Костырев Александр
системный администратор
ЗАО "Сервер-Центр"
тел.: (423) 262-02-62 (доб. 2037)
факс: (423) 262-02-10
a.kosty...@serverc.ru
icq: 404-198-497