Re: [Dovecot] Hints for a NFS-Setup

2012-04-02 Thread Timo Sirainen
On Fri, 2012-03-30 at 21:37 +0200, Patrick Westenberg wrote:
> Nick Warr schrieb:
> 
> > I think some of the new Dovecot (director?) software is user aware, but
> > I don't know if it's quite ready for production.
> 
> Yes, with director it should be something like that:
> 
> MTA --(lmtp)--\   /--(lmtp)--> backend1 --\
>  -- director -- -- NFS
> MTA --(lmtp)--/   \--(lmtp)--> backend2 --/
> 
> 
> IMAP-User --> frontend1 --\  /--(imap)--> backend1 --\
> -- director -- -- NFS
> IMAP-User --> frontend2 --/  \--(imap)--> backend2 --/

The director above must be the same one for both IMAP and MTA.

> So what happens if us...@example.tld receives a mail?
> 
> - The director decides to connect to backend1 which in turn stores
> the mail on the NFS share and the index file locally?
> 
> - Then, us...@example.tld connects to one of the frontends. Does the 
> director know that, earlier, this user received a mail and proxies him
> to backend1 too?

Yes. Director process actually doesn't know anything about mail
protocols, it simply does username -> backend mapping. The regular
Dovecot IMAP/POP3/LMTP/doveadm proxying code handles the rest.



Re: [Dovecot] Backtrace on mdbox index

2012-04-02 Thread Timo Sirainen
On Mon, 2012-04-02 at 11:14 -0300, Francisco Wagner C. Freire wrote:

> I current using dovecot with mdbox and on one account i get this error:
> 
> doveadm(user@domain): Panic: file mail-index-sync-ext.c: line 209
> (sync_ext_reorder): assertion failed: (offset < (uint16_t)-1)

Dovecot version? I think I've fixed this in recent v2.1.x.




Re: [Dovecot] Mail migration troubles

2012-04-02 Thread Timo Sirainen
On Sun, 2012-04-01 at 22:54 +0100, Spyros Tsiolis wrote:
> However, I have this nagging problem with most of the thunderbird
> MTAs. When I try to delete some "test" messages I sent to make sure
> that everything works, it comes back with the following message on
> the bottom of the Thunderbird window :
> 
> "The current operation on InBox did not succeed. 
> The mail server for account "acco...@bloomingdomain.gr" 
> responded [TRYCREATE] mailbox doesn't exist : Trash"

That error probably happens when deleting a message.

> Dovecot v1.2.15 AFAIK

dovecot -n output would have helped. Mainly: do you have a namespace
prefix or not? That's about the only thing I can think of related to
that error message (e.g. dovecot has non-empty namespace prefix, while
TB has empty namespace prefix).




Re: [Dovecot] setting up ldap for sasl::solved::

2012-04-02 Thread jeff donovan
I had to compile with ldap-- duh.

smime.p7s
Description: S/MIME cryptographic signature


Re: [Dovecot] setting up ldap for sasl

2012-04-02 Thread jeff donovan

On Apr 2, 2012, at 9:01 AM, jeff donovan wrote:

> Greetings
> im new to the list
> dovecot --version
> 2.0.13
> ubuntu 11.10
> i want to use dovecot to authenticate my ldap users.  My local users can 
> authenticate and send email. Using postfix sasl/tls dovecot pam.
> 
> I have read many docs/tutorials, which all have a plethora of options and 
> information. my file structure is different than most of the documentation. 
> I have ../etc/dovecot.conf which points to.
> 
> !include_try /usr/share/dovecot/protocols.d/*.protocol
> !include conf.d/*.conf
> !include_try local.conf


i included /etc/dovecot/conf.d/dovecot-ldap.conf 

and I get errors from dovecot config.

doveconf: Fatal: Error in configuration file 
/etc/dovecot/conf.d/dovecot-ldap.conf line 17: Unknown setting: hosts
doveconf: Error: managesieve-login: dump-capability process returned 89

i remove it, then it goes to the next option i have set;

doveconf: Fatal: Error in configuration file 
/etc/dovecot/conf.d/dovecot-ldap.conf line 21: Unknown setting: uris
doveconf: Error: managesieve-login: dump-capability process returned 89

any help would be great

-j

smime.p7s
Description: S/MIME cryptographic signature


Re: [Dovecot] dsync redesign

2012-04-02 Thread Micah Anderson
Charles Marcus  writes:

> On 2012-03-27 11:47 AM, Micah Anderson  wrote:
>> One would be the ability to perform *intelligent* incremental /
>> rotated backups. I can do this now by running a dsync backup
>> operation and then doing manual hardlinking or moving of the backup
>> directories (daily.1, daily.2, weekly.1, monthly.1, etc.), but it
>> would be more intelligent if this were baked into the backup process.
>
> There are already numerous tools that do this flawlessly - I've been using
> rsnapshot (which uses rsync) for this for years.

Are you snapshotting your filesystem (using LVM, or SAN, or similar)
before doing rsnapshot? Because if you aren't then rsync will not
assuredly get everything in a consistent state.

> I don't know if Timo should be spending his time reinventing the wheel.

dsync backup is already here, and it is quite useful.

> I'm much more interested in dsync working flawlessly to keep one or more
> secondary servers in sync, and leave backups to backup software.

I'm not against that idea, I just have not yet found a good way to use
any backup software in such a way to handle large numbers of user's
mail.

> Although, one interesting piece that I am hopeful I'll be able to implement 
> soon
> (with Timo's professional help) is the ability to easily and automatically map
> my rsnapshot snapshots directory to a read-only 'Backups' namespace that
> automatically shows the snapshots by date and time as they are produced. This
> way users could 'go back in time' anytime they wanted without having to call
> me... :)

Interesting idea, would be a great one to share with the community if
you decide to do so.

micah



Re: [Dovecot] Dovecot stones

2012-04-02 Thread Stan Hoeppner
On 3/31/2012 4:28 PM, Timo Sirainen wrote:

There are only a limited number of such rocks available (we disposed of
most of them to our neighbors' yards years ago)

:)

-- 
Stan



[Dovecot] dovecot and unison

2012-04-02 Thread FZiegler
I am successfully using dovecot purely as a personal local mail store on 
my desktop. (There is only one account, and it's only ever accessed by 
local mail clients on the machine. The point is to have a common store I 
can use with any client; plus, I prefer dovecot's Mailbox storage to 
Thunderbird's mboxes.)


Now I'd like if possible, to replicate this setup on my laptop and keep 
both in sync with unison (http://www.cis.upenn.edu/~bcpierce/unison/), 
which I am already using to sync much of my home dir about once a day.


I found at least one positive message regarding this topic 
(http://dovecot.org/list/dovecot/2010-April/048092.html), but I feel I 
could use some more advice.


Namely, which of the ancillary files should I be syncing (or perhaps 
deleting before sync)? In addition to the mails themselves I'm seeing:


-rw---   1 fz  501 13 Apr  1 17:10 dovecot-keywords
-rw---   1 fz  501   2483 Apr  1 17:10 dovecot-uidlist
-rw---   1 fz  501   1040 Mar 29 14:50 dovecot.index
-rw---   1 fz  501  44032 Apr  1 17:10 dovecot.index.cache
-rw---   1 fz  501   9772 Apr  1 17:10 dovecot.index.log

and at the top level (in .local/var/Maildir/):

-rw---   1 fz  501  8 Apr  1 17:10 dovecot-uidvalidity
-r--r--r--   1 fz  501  0 Apr  1 17:10 dovecot-uidvalidity.4efb323d
-rw---   1 fz  501   3288 Apr  1 17:10 dovecot.mailbox.log
-rw---   1 fz  501   4104 Mar 28 10:53 dovecot.mailbox.log.2
-rw---   1 fz  501   5114 Apr  1 17:10 subscriptions

In my naive trials I ended up at least once in a situation where 
Thunderbird would not see some subfolders (even though they were there). 
That's since fixed but I guess my question is, what's the safe 
recommended way to not have this happen?


Thanks,
FZiegler


[Dovecot] 2.1.3: doveadm mailbox delete lost the -s option

2012-04-02 Thread Micah Anderson

Looks like the recently added -s (for unsubscribing) option to doveadm
mailbox delete went missing:

root@vireo# /usr/bin/doveadm mailbox delete -u micahtest -s restored
delete: invalid option -- 's'
doveadm mailbox delete [-u |-A] [-S ] [-s]  [...]

although the option still is shown as valid :)

micah


-- 




Re: [Dovecot] Dsync automation

2012-04-02 Thread Micah Anderson
Jitendra Bhaskar  writes:

> I am using dovecot-2.1.3 on centos 5.7. Its running fine. I have two
> systems for mail server one is for backup. Currently I am running rsync
> daily. But I want to use dsync. I went through all the
> http://wiki2.dovecot.org/Tools/Dsync and
> http://blog.dovecot.org/2012/02/dovecot-clustering-with-dsync-based.htmlbut
> I couldn't understood how to automatize dsync. Can anybody give me any
> idea ho to do it ?

As far as I can tell, doing a for loop around 'doveadm user \*' is the
only way. That will do a dsync of all the users. On the backup server
you will need to decide what to do with the data. I've been rotating it
on a daily basis to try and get several daily backups, then some weekly,
and monthly.

I've been working on a backupninja[0] handler to do dsync backups, but
its still rough.

micah

0. https://labs.riseup.net/code/projects/backupninja


-- 



[Dovecot] imapdir still a configuration option?

2012-04-02 Thread Kurt Mosiejczuk
I've been looking at moving an old IMAPdir-based solution to dovecot.  I 
came across references that dovecot (to my pleasant surprise) added 
imapdir support in 1.1.  However, in trying 2.0.13 (from an OpenBSD 
package) things start okay, but I see in the logs:


"Initialization failed: Initializing mail storage from mail_location 
setting failed: Unknown mail storage driver imapdir"


Poking around in the sources, I still see lots of references to imapdir, 
but see very little in the documentation.


Is IMAPdir still supported in 2.0.x (or even 2.1.x)?  I'd prefer not to 
have to migrate users via renaming, especially since they like the 
IMAPdir layout for their own searching.


--Kurt


Re: [Dovecot] Dovecot stones

2012-04-02 Thread Mark Moseley
On Sat, Mar 31, 2012 at 2:28 PM, Timo Sirainen  wrote:
> For the last few days I've been thinking about my company and what it really 
> should do, and as much as the current plan seems reasonable, I think in good 
> conscience I really can't help but to bring up an alternative plan:
>
>...

I'm slightly concerned that there's been no mention of what license
these stones are going to be released under. GPL2? GPL3? Apache? I'm
just hoping these aren't some sort of "open core" stones that will
only work for basic features but that I'll end up needing to buy
"Enterprise-grade stones"  to cover large clusters.


[Dovecot] imapsync, namespaces and Dovecot 2.x

2012-04-02 Thread Aleix Dorca
Hi people,

I recently tried to migrate from Exchange using imapsync. It didn't work 
because it complained that dovecot had no namespace capablity. After looking 
through Dovecot's config files I found that namespaces could be defined, but if 
you did not a 'private' default one was created.

In the 2.x wiki documentation (http://wiki2.dovecot.org/Migration) it says 
nothing about Namespaces. I don't know if I have to create one or not. If I add 
the parameters --sep2 . --prefix2 '' to imapsync then it works fine.

I'm proxying using dovecot as frontend and backend, version 2.0.18 (The one 
that comes with Debian Wheezy).

Any thoughts, please?

Thanks,

Aleix.

[Dovecot] lmtp sometimes fails to deliver a message to all recipients

2012-04-02 Thread Artur Zaprzała

Dovecot version: 2.1.3

lmtp config:
protocol lmtp {
  mail_plugins = zlib acl sieve
}

Running strace on lmtp reveals that when lmtp delivers a message to multiple 
recipients it saves the message to a file in the first mailbox and hard links 
that file to other mailboxes. But when in the meantime of delivery that file is 
deleted, lmtp fails to deliver the message to remaining mailboxes. For example a 
message for 46 recipients is delivered by lmtp to the first 12 only (fortunately 
postfix retries delivery for remaining recipients) and for the rest lmtp logs 
the following error messages:


lmtp(3344, foo@domain): Error: RU1WMnueeU9QDQABxjIODQ: sieve: msgid=unspecified: 
failed to store into mailbox 'INBOX': Message was expunged (guid)
lmtp(3344, foo@domain): Error: RU1WMnueeU9QDQABxjIODQ: sieve: script 
/vmail/domain/foo/.dovecot.sieve failed with unsuccessful implicit keep (user 
logfile /vmail/domain/foo/.dovecot.sieve.log may reveal additional details)


I'm seeing this error for about 10 messages per hour.


Best regards,
Artur Zaprzała


[Dovecot] Connection queue full on dovecot 2.0.13

2012-04-02 Thread Giovanni Mancuso
Hi,

i have a problem with dovecot 2.0.13.

I have one dovecot in Front-end that has only:

passdb { driver = static args = proxy=y host=10.0.0.6 nopassword=y }

In Back-end i have one dovecot that does auth and exports imap/pop3 ports.

In dovecot's log of Front-end i see:

/Apr 02 14:33:34 imap-login: Info: proxy(//u...@example.com/
/): started proxying to
10.0.0.6:143: user=mailto:amministrazionevend...@pec.gmatica.it>/>, method=PLAIN,
rip=//xx.xx.xx.xx//, lip=xx.xx.xx.xx, TLS
Apr 02 14:34:36 imap-login: Info: Disconnected: *Connection queue full
*(auth failed, 1 attempts): user=mailto:amministrazionevend...@pec.gmatica.it>/>, method=PLAIN,
rip=//xx.xx.xx.xx//, lip=//xx.xx.xx.xx//, TLS/

I see this wiki page: http://wiki2.dovecot.org/LoginProcess but i read:

It works by using a number of long running login processes, each
handling a number of connections. This loses much of the security
benefits of the login process design, because in case of a security hole
(in Dovecot or SSL library) the attacker is now able to see other users
logging in and steal their passwords, read their mails, etc.

Is there another way?

Thanks



Re: [Dovecot] Mail migration troubles

2012-04-02 Thread Spyros Tsiolis
Hi again Charles,


>>> Did you compare FS permissions on a working setup and the
>>> non-working one?

I don't have a non-working setup of dovecot

>> Well, I checked the dovecot log files
>> (dovecot-info.log / dovecot.log)
>> It doesn't show something suspicious.
>> Just the usual login logout and
>> password chatter.
> 
> Well, maybe one of the reasons people don't always try to help you is you 
> often just don't respond with answers to questions...

Oh, I see. It's like what I ask questions about issues and 
get answers on other issues...
 
> WHAT ARE THE FS PERMISSIONS ON THAT USERS MAIL FOLDERS? And don't just say 
> 'they are ok' - SHOW them...


All users run with the virtual mail account (vmail)
accounts (if I recall correctly) are stored in %maildir format.
Do you want me to display user perms ? OK ! Fine.
Here's the contents of the folder with the problem :

[root@mailserver mailaccount]# ls -l
total 8
drwx-- 6 vmail vmail 4096 Apr  2 17:08 Maildir
-rw-rw-rw- 1 vmail vmail  141 Mar 30 17:21 user.tab


Is this what you need ? 
I didn't answer this not because I don't want to but
because I don't know if this is what you want.
There's no need to shout.

 

> And how about SHOWING SOME LOG EXCERPTS (and increase verbosity if needed), 
> instead of just saying you don't see anything relevant.


Here goes :

Apr 02 14:26:02 auth(default): Info: client out: OK1user=acco...@domain.gr
Apr 02 14:26:02 auth(default): Info: master in: REQUEST1785294431
Apr 02 14:26:02 auth(default): Info: master out: 
USER1785account@domain.gruid=501gid=502home=/ho
me/vmail/acco...@domain.gr
Apr 02 14:26:02 imap-login: Info: Login: user=, 
method=PLAIN, rip=192.168.0.20, lip=192.168.1.
4, TLS
Apr 02 14:26:02 auth(default): Info: new auth connection: pid=29450
Apr 02 14:27:02 auth(default): Info: client in: 
AUTH1PLAINservice=imapsecuredlip=192.168.1.4rip=192.
168.0.20lport=993rport=4494
Apr 02 14:27:02 auth(default): Info: client out: CONT1
Apr 02 14:27:02 auth(default): Info: client in: 
CONT1AHRpY2ldA29ZnzWzc9c5cgxTQA==
Apr 02 14:27:02 auth(default): Info: 
passwd-file(acco...@domain.gr,192.168.0.20): lookup: user=acco...@domain.gr
 file=/etc/dovecot/passwd
Apr 02 14:27:02 auth(default): Info: client out: OK1user=acco...@domain.gr
Apr 02 14:27:02 auth(default): Info: master in: REQUEST1786294501
Apr 02 14:27:02 auth(default): Info: master out: 
USER1786account@domain.gruid=501gid=502home=/ho
me/vmail/acco...@domain.gr
Apr 02 14:27:02 imap-login: Info: Login: user=, 
method=PLAIN, rip=192.168.0.20, lip=192.168.1.
4, TLS
Apr 02 14:27:02 auth(default): Info: new auth connection: pid=29453


s.





 

"I merely function as a channel that filters 
music through the chaos of noise"
- Vangelis


[Dovecot] Backtrace on mdbox index

2012-04-02 Thread Francisco Wagner C. Freire
Hello,

I current using dovecot with mdbox and on one account i get this error:

doveadm(user@domain): Panic: file mail-index-sync-ext.c: line 209
(sync_ext_reorder): assertion failed: (offset < (uint16_t)-1)
doveadm(user@domain): Error: Raw backtrace:
/usr/lib/dovecot/libdovecot.so.0(+0x3fd8a) [0x7fae684fdd8a] ->
/usr/lib/dovecot/libdovecot.so.0(default_fatal_handler+0x32)
[0x7fae684fde72] -> /usr/lib/dovecot/libdovecot.so.0(i_error+0)
[0x7fae684d719f] -> /usr/lib/dovecot/libdovecot-storage.so.0(+0x9bdc3)
[0x7fae68c1edc3] ->
/usr/lib/dovecot/libdovecot-storage.so.0(mail_index_sync_ext_intro+0x1e6)
[0x7fae68c1fa76] ->
/usr/lib/dovecot/libdovecot-storage.so.0(mail_index_sync_record+0x49f)
[0x7fae68c21a3f] ->
/usr/lib/dovecot/libdovecot-storage.so.0(mail_index_sync_map+0x234)
[0x7fae68c225a4] ->
/usr/lib/dovecot/libdovecot-storage.so.0(mail_index_map+0x86)
[0x7fae68c13cd6] -> /usr/lib/dovecot/libdovecot-storage.so.0(+0x8b609)
[0x7fae68c0e609] ->
/usr/lib/dovecot/libdovecot-storage.so.0(mail_index_open+0x210)
[0x7fae68c0eaa0] -> /usr/lib/dovecot/libdovecot-storage.so.0(+0x591c6)
[0x7fae68bdc1c6] ->
/usr/lib/dovecot/libdovecot-storage.so.0(mdbox_map_get_zero_ref_files+0x2d)
[0x7fae68bdcd6d] ->
/usr/lib/dovecot/libdovecot-storage.so.0(mdbox_purge+0xbc) [0x7fae68bde7ac]
-> doveadm() [0x40a135] -> doveadm() [0x40a813] ->
doveadm(doveadm_mail_single_user+0x61) [0x40a8d1] -> doveadm() [0x40aafd]
-> doveadm(doveadm_mail_try_run+0x141) [0x40af11] -> doveadm(main+0x381)
[0x4109c1] -> /lib/libc.so.6(__libc_start_main+0xfd) [0x7fae67d6ec8d] ->
doveadm() [0x409ff9]
Aborted

All doveadm commands fail on thie error, index / force-resync / search /
fetch etc.

Any help?


Re: [Dovecot] Dovecot stones

2012-04-02 Thread Jan Phillip Greimann

STOP TALKING AND TAKE MY MONEYelf

Am 31.03.2012 23:28, schrieb Timo Sirainen:

For the last few days I've been thinking about my company and what it really 
should do, and as much as the current plan seems reasonable, I think in good 
conscience I really can't help but to bring up an alternative plan:

The support for Dovecot is quite good already, but wouldn't it be better if it 
was GUARANTEED that your email server was ALWAYS working with zero downtime or 
other problems?  After some thinking, planning and consulting with my spiritual 
guides I realized I really should just go ahead and do it:

 From now on you can buy blessed Dovecot stones 
(http://www.dovecot.org/tmp/stone1.jpg), which are guaranteed to keep your 
email server running.  I don't think there's really any further reason for me 
to provide commercial support.  Probably the whole Dovecot mailing list will be 
pretty much useless after this as well, so I might as well stop posting there.  
If you have any problems, you'll just buy a Dovecot stone and the problem will 
go away.  If for any reason that doesn't work, it means that your problem is 
more difficult than most and you need to buy a few more stones.  Please 
remember that each shipment may take up to 3 weeks to reach you, so get your 
stones early and in sufficient quantities.

A small email server will be happy enough with a single small Dovecot stone, 
but the more users you have the more stones you'll likely need.  This is 
because most people are rather unhappy with their lives, and they project their 
negative energies towards their surroundings, including their email servers.  
To overcome this negative energy you need to have a counterbalancing positive 
energy, which the Dovecot stones will provide you.

The Dovecot stones are hand painted from the finest materials available to the 
sister of the author of Dovecot that she could find in the local shops. Each 
stone contains such love and dedication towards the well being of Dovecot that 
you will shed tears when you lay your eyes upon their physical being.  The 
images provided here unfortunately don't do justice to them.

http://www.dovecot.org/tmp/stone2.jpg - This is how i keep my home desktop 
running all day every day.  I have NEVER broken a single hard drive in my life. 
 I don't even bother to keep backups, because I KNOW it is useless for me.

A small Dovecot stone can be bought for 10 euros, a medium sized stone for 100 
euros and a large stone for 500 euros.  Each large stone can usually handle 
around 1000-2000 users before you need to buy more.  If you have millions of 
users we'll need to find you a larger rock from my parents' backyard.  There 
are only a limited number of such rocks available (we disposed of most of them 
to our neighbors' yards years ago), so their prices need to be negotiated in 
advance.




Re: [Dovecot] Mail migration troubles

2012-04-02 Thread Charles Marcus

On 2012-04-02 8:49 AM, Spyros Tsiolis  wrote:

On2 April 2012, 12:55, Charles Marcus wrote:

On 2012-04-02 6:51 AM, Spyros Tsiolis wrote:

As far as I can tell everything went well except for one
user (so far) that he tries to move fresh mail to (mv'd)
folders and it doesn't get there.
Also when he tries to delete messages, they don't get
deleted.
I did "cp -r" actually and kept the old mailboxes nearby
just in case.



What do the logs show when he tries this?

Did you compare FS permissions on a working setup and the
non-working one?



Well, I checked the dovecot log files
(dovecot-info.log / dovecot.log)
It doesn't show something suspicious.
Just the usual login logout and
password chatter.


Well, maybe one of the reasons people don't always try to help you is 
you often just don't respond with answers to questions...


WHAT ARE THE FS PERMISSIONS ON THAT USERS MAIL FOLDERS? And don't just 
say 'they are ok' - SHOW them...


And how about SHOWING SOME LOG EXCERPTS (and increase verbosity if 
needed), instead of just saying you don't see anything relevant.


--

Best regards,

Charles


[Dovecot] setting up ldap for sasl

2012-04-02 Thread jeff donovan
Greetings
im new to the list
 dovecot --version
2.0.13
ubuntu 11.10
i want to use dovecot to authenticate my ldap users.  My local users can 
authenticate and send email. Using postfix sasl/tls dovecot pam.

I have read many docs/tutorials, which all have a plethora of options and 
information. my file structure is different than most of the documentation. 
I have ../etc/dovecot.conf which points to.

!include_try /usr/share/dovecot/protocols.d/*.protocol
!include conf.d/*.conf
!include_try local.conf


which leads me to /etc/dovecot/conf.d, which is full of config files. All were 
traditionally located in dovecot.conf in previous versions.

im using PAM to authenticate my local system users. I have read that could 
adjust PAM, to use LDAP. 

How do I configure dovecot to keep using pam for local users and ldap for 
remote ? Do i just add the passdb lines 

dovecot.conf:

passdb ldap {

  args = /etc/dovecot-ldap.conf

}

userdb prefetch {

}

# The userdb below is used only by deliver.

userdb ldap {

  args = /etc/dovecot-ldap.conf

}
dovecot-ldap.conf:

pass_attrs = uid=user,userPassword=password, 
homeDirectory=userdb_home,uidNumber=userdb_uid,gidNumber=userdb_gid

# For deliver:
user_attrs = homeDirectory=home,uidNumber=uid,gidNumber=gid


any assistance would be helpful.
-j



smime.p7s
Description: S/MIME cryptographic signature


Re: [Dovecot] Mail migration troubles

2012-04-02 Thread Spyros Tsiolis
- Original Message -

> From: Charles Marcus 
> To: dovecot@dovecot.org
> Cc: 
> Sent: Monday, 2 April 2012, 12:55
> Subject: Re: [Dovecot] Mail migration troubles
> 
> On 2012-04-02 6:51 AM, Spyros Tsiolis  wrote:
>>  As far as I can tell everything went well except for one
>>  user (so far) that he tries to move fresh mail to (mv'd)
>>  folders and it doesn't get there.
>>  Also when he tries to delete messages, they don't get
>>  deleted.
>>  I did "cp -r" actually and kept the old mailboxes nearby
>>  just in case.
> 
> What do the logs show when he tries this?
> 
> Did you compare FS permissions on a working setup and the non-working one?
> 
> -- 
> Best regards,
> 
> Charles
> 

Hi Charles,

Well, I checked the dovecot log files 
(dovecot-info.log / dovecot.log) 
It doesn't show something suspicious.
Just the usual login logout and
password chatter.

At this point, I suspect it's thunderbird
again. I asked the rest of the people how
they are doing and they said they were 
doing fine. So I suspect there's something
wrong with this specific dovecot installation.

Thank you though,


s.




 

"I merely function as a channel that filters 
music through the chaos of noise"
- Vangelis



Re: [Dovecot] Mail migration troubles

2012-04-02 Thread Spyros Tsiolis
> On 2/4/2012 1:51 μμ, Spyros Tsiolis wrote:
> 
>> I did "cp -r" actually and kept the old mailboxes nearby
>> just in case.
> 
> If on CentOS/RHEL (don't know for other systems), you could try using 
> explicitly:
> 
>   /bin/cp -pr
> 
> for better results, because cp is aliased.
> 
> You might already be aware of this, but just in case...
> 
> Nick
>



Hi Nick,

No I didn't know this.
I mean I had it stored in the back of my head but 
to tell you the truth I would never use it.
Yes, thank you kindly for pointing that.

I'll use that switch from now on.
And , yes, I am using CentOS.
Can't live without it, no matter what the people
say :-)

Thank you again,

s.

 

"I merely function as a channel that filters 
music through the chaos of noise"
- Vangelis


Re: [Dovecot] Mail migration troubles

2012-04-02 Thread Nikolaos Milas

On 2/4/2012 1:51 μμ, Spyros Tsiolis wrote:


I did "cp -r" actually and kept the old mailboxes nearby
just in case.


If on CentOS/RHEL (don't know for other systems), you could try using 
explicitly:


   /bin/cp -pr

for better results, because cp is aliased.

You might already be aware of this, but just in case...

Nick


Re: [Dovecot] Mail migration troubles

2012-04-02 Thread Charles Marcus

On 2012-04-02 6:51 AM, Spyros Tsiolis  wrote:

As far as I can tell everything went well except for one
user (so far) that he tries to move fresh mail to (mv'd)
folders and it doesn't get there.
Also when he tries to delete messages, they don't get
deleted.
I did "cp -r" actually and kept the old mailboxes nearby
just in case.


What do the logs show when he tries this?

Did you compare FS permissions on a working setup and the non-working one?

--

Best regards,

Charles


Re: [Dovecot] Mail migration troubles

2012-04-02 Thread Spyros Tsiolis
> On 2012-04-02 6:19 AM, Spyros Tsiolis  wrote:
>> Is the above what I need if I migrate mailboxes FROM dovecot TO dovecot ?
>> E.g. in my example, I only copy mailboxes from an old 
> "u...@domaina.gr" to
>> "u...@domainb.gr".
>> 
>> Is the above all I need ?
>> 
>> Is there a native dovecot tool for this or should I just use imapsync ?
> 
> Are these on ths same box? If so, why not just mv them??

Hi Charles,

Yes, on the same box, on the same drive, on the same
partition/filesystem.
I have a box with dovecot/XMail (pop3/smtp) and two domains;
DomainA and DomainB
The company bosses decided to move about 20 mailboxes from
DomainA to DomainB.
As far as I can tell everything went well except for one
user (so far) that he tries to move fresh mail to (mv'd)
folders and it doesn't get there.
Also when he tries to delete messages, they don't get
deleted.
I did "cp -r" actually and kept the old mailboxes nearby
just in case.

Thanks,

s.




 


"I merely function as a channel that filters 
music through the chaos of noise"
- Vangelis



Re: [Dovecot] Mail migration troubles

2012-04-02 Thread Arne K. Haaje
Mandag 2. april 2012 11.19.47 skrev Spyros Tsiolis:

[snip]

> Is the above what I need if I migrate mailboxes FROM dovecot TO dovecot ?
> E.g. in my example, I only copy mailboxes from an old "u...@domaina.gr" to
> "u...@domainb.gr".
> 
> Is the above all I need ?

That worked for me when creating a backup copy of a mailbox, but with a 
different login.

I copied mailbox A to mailbox B, then created an entry in the auth table that 
pointed to mailbox B.

This was with maildir. I don't know if it works the same with all other types.

Regards,

Arne
-- 
Arne K. Haaje
http://www.drlinux.no/  
LinkedIn: http://no.linkedin.com/pub/arne-haaje/27/189/bb




Re: [Dovecot] Dovecot stones

2012-04-02 Thread Charles Marcus

On 2012-03-31 5:28 PM, Timo Sirainen  wrote:

For the last few days I've been thinking about my company and what it
really should do, and as much as the current plan seems reasonable, I
think in good conscience I really can't help but to bring up an
alternative plan:

The support for Dovecot is quite good already, but wouldn't it be
better if it was GUARANTEED that your email server was ALWAYS working
with zero downtime or other problems?  After some thinking, planning
and consulting with my spiritual guides I realized I really should
just go ahead and do it:

From now on you can buy blessed Dovecot stones
(http://www.dovecot.org/tmp/stone1.jpg), which are guaranteed to keep
your email server running.  I don't think there's really any further
reason for me to provide commercial support.


Alright Timo, where do I send the bill for my new keyboard? Mine is no 
ruined from the coffee I just spilled all over it...


Rotflmao!

Thanks, I needed that...

--

Best regards,

Charles


Re: [Dovecot] Mail migration troubles

2012-04-02 Thread Charles Marcus

On 2012-04-02 6:19 AM, Spyros Tsiolis  wrote:

Is the above what I need if I migrate mailboxes FROM dovecot TO dovecot ?
E.g. in my example, I only copy mailboxes from an old "u...@domaina.gr" to
"u...@domainb.gr".

Is the above all I need ?

Is there a native dovecot tool for this or should I just use imapsync ?


Are these on ths same box? If so, why not just mv them??

--

Best regards,

Charles


Re: [Dovecot] Mail migration troubles

2012-04-02 Thread Spyros Tsiolis
I have a suspicion that, as usual, no one is going to 
answer my message.
Because of the fact that this is a call for help and
no-one ever bothers, I 'll just have to re-phrase my
question :

Here's what I found on the dovecot wiki :


imapsync
Here's an example of how to run imapsync for a single user:
imapsync --syncinternaldates \  --host1 192.168.1.57 --authmech1 LOGIN --user1 
l...@example.com --password1 secret \  --host2 127.0.0.1--authmech2 LOGIN 
--user2 l...@example.com --password2 secret
It is quite easy to script this for a number of users, assuming you have their 
passwords. Even if you do not, imapsync also supports logging in as an admin 
user that has the ability to copy message for sub users, and a variety of other 
authentication options.


Is the above what I need if I migrate mailboxes FROM dovecot TO dovecot ?
E.g. in my example, I only copy mailboxes from an old "u...@domaina.gr" to
"u...@domainb.gr".

Is the above all I need ?

Is there a native dovecot tool for this or should I just use imapsync ?

Thank you again,

s.





"I merely function as a channel that filters 
music through the chaos of noise"
- Vangelis


- Original Message -
> From: Spyros Tsiolis 
> To: Spyros Tsiolis 
> Cc: 
> Sent: Monday, 2 April 2012, 11:24
> Subject: Re: [Dovecot] Mail migration troubles
> 
> Hello again,
> 
> Well, it seems I have trouble with the migration after all.
> After the migration and eventhough all folders and messages
> are on their respective places, any new mail users get
> inside their mailbox cannot be dragged-and-dropped to
> their respective folders.
> 
> So, if a user has a folder with my name on it and I send
> him an e-mail, the user will try to drag-and-drop that
> message to the folder with my name, but the message won't
> move.
> 
> Any gurus out there on this ?
> Any help would be greatly appreciated.
> 
> spyros
> 
> 
>  
> 
> "I merely function as a channel that filters 
> music through the chaos of noise"
> - Vangelis
>  


[Dovecot] Dsync automation

2012-04-02 Thread Jitendra Bhaskar
Hi,


I am using dovecot-2.1.3 on centos 5.7. Its running fine. I have two
systems for mail server one is for backup. Currently I am running rsync
daily. But I want to use dsync. I went through all the
http://wiki2.dovecot.org/Tools/Dsync and
http://blog.dovecot.org/2012/02/dovecot-clustering-with-dsync-based.htmlbut
I couldn't understood how to automatize dsync. Can anybody give me any
idea ho to do it ?



-- 
* Thanks & Regards   *
*Jitendra Kumar Bhaskar*
Cell:- +91 7306311531
 +91 8102997821