dovecot-lda from postfix on remote dovecot server

2014-10-24 Thread nik600
Dear all

i've got many SMTP front-end that filter the mail and do some custom
stuff... then when i've decided the final destination i'd like to call

/usr/lib/dovecot/dovecot-lda to deliver the mail.

Actually i have in master.cf:

#à
dovecot   unix  -   n   n   -   -   pipe
  flags=DRhu user=vmail:vmail null_sender=
argv=/usr/lib/dovecot/dovecot-lda -f ${sender} -d ${recipient}
#à

I'd like to know if is possible to use some other command or some
additional parameter to deliver the mail to a remote dovecot server.

Thanks

-- 
/*/
nik600
http://www.kumbe.it


Re: dovecot-lda from postfix on remote dovecot server

2014-10-24 Thread nik600
Ok i've used lmtp with some acl on firewall...thanks!
Il 24/ott/2014 12:27 Tom Hendrikx t...@whyscream.net ha scritto:

 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA256

 On 24-10-14 12:20, nik600 wrote:
  Dear all
 
  i've got many SMTP front-end that filter the mail and do some
  custom stuff... then when i've decided the final destination i'd
  like to call
 
  /usr/lib/dovecot/dovecot-lda to deliver the mail.
 
  Actually i have in master.cf:
 
  #à dovecot   unix  -   n   n   -
  -   pipe flags=DRhu user=vmail:vmail null_sender=
  argv=/usr/lib/dovecot/dovecot-lda -f ${sender} -d ${recipient}
  #à
 
  I'd like to know if is possible to use some other command or some
  additional parameter to deliver the mail to a remote dovecot
  server.
 

 You could enable LMTP on the remote server, and deliver to that. I
 don't know how secure that is: do postfix and dovecot both support
 lmtp over tls, and does that even matter when hardware is in the same
 rack and has dedicated networking?

 Or you could install an MTA on the remote server which delivers to
 dovecot, and configure postfix to relay the mail to that mta.

 Tom
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1

 iQIcBAEBCAAGBQJUSimhAAoJEJPfMZ19VO/10ngP/0dF4PqkFE7vy+jCxlM7tkN/
 dhr+btTSNhcjKlt1BgGkH4AJEidQLXKqFX7YOcAs+ZdLPwKthxIP8irokZwM0GkT
 d1crTQ0HoA8a3Mw6gw1Xw4qrpQnhhzBjEK4yPWLe9gig+ocgozfWM8+8sSNzZa5S
 9R8WzaAXhAox8ppZT9BR3a+hHPih0BSYA9yKwGQ2T/OzLjHhytLE46ZBmjBL09tp
 UM+ifYcjko1udFkZumbyGrdVBDjg3wG0veC+bCmFwLldOM7+cfsNqwuil5BST0JC
 Lz/98by/8mDJcF8645lcRkKkIGgQhmIg1VxjeGXRThFM64k+8iauClPb0/bdpvzw
 GvDN51R0ljjR8nGU2zpnax+BaxItgo8inDpE5CVaaH3gKAwpxaKOdgkABLldGMPH
 hNLpajHO15c/I/MNktDjRNojm9vP39jh7YRFVpkg6s2QjsDdjiP5EhaJkdfKe334
 hpVI5nJNwZUAuUCE72h0MO2vPesQZzZjH4T7WpxTCcVja3VNQnmWoJ/6MOgzHKOt
 l7jksmJwIFKukSTLZf1zEehyDjBcpbvDmgOY5r52SmBeY0QGyq7QpMs30iXFRmX0
 Qj8BYrknXB8EdV0GXb3voRxjjT6H4nBYfBkfQYOSMTxZ5g19NQ6Zzy5bpVpPfPQ+
 9pYFJ0mnxaV2vYdhXxvo
 =VY8B
 -END PGP SIGNATURE-



[Dovecot] problem with dovecot replication over tcp

2013-09-16 Thread nik600
Dear all

i'm following the wiki at this page http://wiki2.dovecot.org/Replication but
i'm getting this errors:


#doveadm -v sync tcp:dst_hostname
#doveadm(root): Fatal: Failed to start dsync-server command: 75

If i look at the dst dovecot.log file i get:

Sep 16 12:42:18 auth: Error: passdb(root,xx): Auth client doesn't have
permissions to do a PASS lookup: /var/run/dovecot/auth-userdb mode=0666,
but not owned by UID 1002(vmail)
Sep 16 12:42:18 doveadm(xx,root): Error: user root: Auth PASS lookup failed
Sep 16 12:42:18 doveadm(xx,root): Debug: auth input:
Sep 16 12:42:18 doveadm(xx,root): Error: dsync-server:
/var/run/dovecot/auth-userdb: passdb lookup failed (to see if user is
proxied, because doveadm_proxy_port is set)

I've also tried to perform a

#chown vmail /var/run/dovecot/auth-userdb

But the error is the same.

If i do the
#doveadm user *

I get a list of users loaded from the database i've added these line to my
dovecot-sql.conf

iterate_query = SELECT username from mailbox where active=1

Any idea?

Thanks

-- 
/*/
nik600
http://www.kumbe.it


[Dovecot] migration from IMAP/POP3 courier server to a remote dovecot server

2013-09-02 Thread nik600
Dear all

i'm planning a transparent migration from a courier server that provides
both IMAP and POP3 access to users to a remote dovecot server with both
IMAP and POP3 access.

I have to migrate about 2500 users for 250 GB of space.

I'm using dovecot 2.2.5.4 on debian6 squeeze.

To make a transparent migration i have to maintain old IMAP UIDs and POP3
UIDs, so i've read

http://wiki2.dovecot.org/Migration
and
http://wiki2.dovecot.org/Migration/Courier
and
http://wiki2.dovecot.org/Migration/Dsync

And decided that probably the best tool to use is Dsync, as the
courier-dovecot-migrate.plhttp://www.dovecot.org/tools/courier-dovecot-migrate.pl
script
works only locally.

I've tested the dsync following instructions reported above but after the
migration of one test-account the client re-download messages.


If i want to keep both  IMAP UIDs and POP3 UIDs i have to sync both imapc
and pop3c with two commands?

doveadm -o imapc_user=foo -o pop3c_user=foo -o imapc_password=bar -o
pop3c_password=bar backup -R -u user@domain imapc:

doveadm -o imapc_user=foo -o pop3c_user=foo -o imapc_password=bar -o
pop3c_password=bar backup -R -u user@domain pop3c:

Or imapc is enough?

Do you have any suggestion?

Thanks

-- 
/*/
nik600
http://www.kumbe.it


Re: [Dovecot] migration from IMAP/POP3 courier server to a remote dovecot server

2013-09-02 Thread nik600
to give some more information, i've set

pop3_uidl_format = UID%u-%v

on the courier-side i get this UIDL answer:

UIDL
+OK
1 1378040847.Vfe11I12801312M172099.myserver.cloud923
2 UID2-1378040947
3 UID3-1378040947
4 UID4-1378040947
5 UID5-1378040947


on the dovecot-side i get this UIDL answer:
UIDL
+OK
1 UID1-1378127599
2 UID2-1378127599
3 UID3-1378127599
4 UID4-1378127599
5 UID5-1378127599





2013/9/2 nik600 nik...@gmail.com

 Dear all

 i'm planning a transparent migration from a courier server that provides
 both IMAP and POP3 access to users to a remote dovecot server with both
 IMAP and POP3 access.

 I have to migrate about 2500 users for 250 GB of space.

 I'm using dovecot 2.2.5.4 on debian6 squeeze.

 To make a transparent migration i have to maintain old IMAP UIDs and POP3
 UIDs, so i've read

 http://wiki2.dovecot.org/Migration
 and
 http://wiki2.dovecot.org/Migration/Courier
 and
 http://wiki2.dovecot.org/Migration/Dsync

 And decided that probably the best tool to use is Dsync, as the
 courier-dovecot-migrate.plhttp://www.dovecot.org/tools/courier-dovecot-migrate.pl
  script
 works only locally.

 I've tested the dsync following instructions reported above but after the
 migration of one test-account the client re-download messages.


 If i want to keep both  IMAP UIDs and POP3 UIDs i have to sync both imapc
 and pop3c with two commands?

 doveadm -o imapc_user=foo -o pop3c_user=foo -o imapc_password=bar -o 
 pop3c_password=bar backup -R -u user@domain imapc:

 doveadm -o imapc_user=foo -o pop3c_user=foo -o imapc_password=bar -o 
 pop3c_password=bar backup -R -u user@domain pop3c:

 Or imapc is enough?

 Do you have any suggestion?

 Thanks

 --
 /*/
 nik600
 http://www.kumbe.it




-- 
/*/
nik600
http://www.kumbe.it


Re: [Dovecot] migration from IMAP/POP3 courier server to a remote dovecot server

2013-09-02 Thread nik600
Ok, it seems i found the problem, i was missing the plugin declaration into
dovecot.conf

imapc_host = mail.foo.com
imapc_features = rfc822.size
pop3c_host = mail.foo.com

namespace {
  separator = /
  inbox = yes
}

protocol doveadm {
  mail_plugins = $mail_plugins pop3_migration
}

disable_plaintext_auth = no
pop3_uidl_format = UID%u-%v


And then using command:

*doveadm -o imapc_user=foo -o pop3c_user=foo -o imapc_password=bar -o
pop3c_password=bar backup -R -u user at domain
http://dovecot.org/cgi-bin/mailman/listinfo/dovecot pop3c:*

The only doubt i have is how to sync both imap and pop3, i've seen
that if i made a pop3c sync ath then impac sync gives an error, and if
execute imapc and then pop3c it gives an error too.




2013/9/2 nik600 nik...@gmail.com

 to give some more information, i've set

 pop3_uidl_format = UID%u-%v

 on the courier-side i get this UIDL answer:

 UIDL
 +OK
 1 1378040847.Vfe11I12801312M172099.myserver.cloud923
 2 UID2-1378040947
 3 UID3-1378040947
 4 UID4-1378040947
 5 UID5-1378040947


 on the dovecot-side i get this UIDL answer:
 UIDL
 +OK
 1 UID1-1378127599
 2 UID2-1378127599
 3 UID3-1378127599
 4 UID4-1378127599
 5 UID5-1378127599





 2013/9/2 nik600 nik...@gmail.com

 Dear all

 i'm planning a transparent migration from a courier server that provides
 both IMAP and POP3 access to users to a remote dovecot server with both
 IMAP and POP3 access.

 I have to migrate about 2500 users for 250 GB of space.

 I'm using dovecot 2.2.5.4 on debian6 squeeze.

 To make a transparent migration i have to maintain old IMAP UIDs and POP3
 UIDs, so i've read

 http://wiki2.dovecot.org/Migration
 and
 http://wiki2.dovecot.org/Migration/Courier
 and
 http://wiki2.dovecot.org/Migration/Dsync

 And decided that probably the best tool to use is Dsync, as the
 courier-dovecot-migrate.plhttp://www.dovecot.org/tools/courier-dovecot-migrate.pl
  script
 works only locally.

 I've tested the dsync following instructions reported above but after the
 migration of one test-account the client re-download messages.


 If i want to keep both  IMAP UIDs and POP3 UIDs i have to sync both imapc
 and pop3c with two commands?

 doveadm -o imapc_user=foo -o pop3c_user=foo -o imapc_password=bar -o 
 pop3c_password=bar backup -R -u user@domain imapc:

 doveadm -o imapc_user=foo -o pop3c_user=foo -o imapc_password=bar -o 
 pop3c_password=bar backup -R -u user@domain pop3c:


 Or imapc is enough?

 Do you have any suggestion?

 Thanks

 --
 /*/
 nik600
 http://www.kumbe.it




 --
 /*/
 nik600
 http://www.kumbe.it




-- 
/*/
nik600
http://www.kumbe.it