Re: [EXT] Re: How to get a memory pointer in the core process

2024-03-14 Thread Eduardo M KALINOWSKI via dovecot

On 14/03/2024 02:49, Joan Moreau via dovecot wrote:

No, you don´t understand
There is a core process (/usr/bin/dovecot) running all the time. So I want to
allocate a memory block, the core process keep it and it is retrievable by the
pluging when laded again
At exit of /usr/bin/dovecot, it just does a "delete()" of the said allocation


While I cannot help you with plugin writing or dovecot internals, this 
does seem like an example of the XY problem[0]. Perhaps if you provide a 
high level description of what you're attempting to do someone might 
come up with a way to achieve that.


[0] https://en.wikipedia.org/wiki/XY_problem

--
Eduardo M KALINOWSKI
edua...@kalinowski.com.br

___
dovecot mailing list -- dovecot@dovecot.org
To unsubscribe send an email to dovecot-le...@dovecot.org


Re: DOvecot requires both IPv4 and IPV6 to start

2023-09-04 Thread Eduardo M KALINOWSKI via dovecot

On 04/09/2023 11:12, TWHG Technical via dovecot wrote:

But that is not this issue. The issue is that dovecot is assuming that IPV6 is 
there and crashes out if it's not. Hacking the config to only listen on IP4 
solves the problem but not while installing from standard repos to install the 
currently supported version.


dovecot can handle an IPv4-only setup, you just have to tell it to (by 
setting a custom 'listen' config entry, as you have already found out).


Your setup is non-standard, so it's expected that you'll have to make 
changes to accommodate that. Expecting that dovecot changes its default 
because of your particularities may be asking a little too much.


PS: It would be easier to follow the discussion if you actually replied 
to the messages (quoting the relevant parts) instead of sending a new 
message. But be sure to use a client that sets in-reply-to: or 
references: headers so that the thread is not broken.


--
Life is too short to stuff a mushroom.
-- Storm Jameson

Eduardo M KALINOWSKI
edua...@kalinowski.com.br

___
dovecot mailing list -- dovecot@dovecot.org
To unsubscribe send an email to dovecot-le...@dovecot.org


Re: How to correctly use readonly=yes with the sqlite driver?

2022-07-24 Thread Eduardo M KALINOWSKI

On 23/07/2022 20:07, oddlama wrote:
Hi! I want to use a sqlite database in readonly mode, which I found 
mentionend in the docs [1]. Unfortunately no examples were given, so I 
tried to infer the usage by inspecting core/driver-sqlite.c. If I 
interpret it correctly, this should have worked:


/etc/dovecot/dovecot-sql.conf.ext:
driver = sqlite
connect = readonly=yes /var/vmail/virtual.sqlite

user_query = #...


Unfortunately, dovecot tries to open a file named "readonly=yes 
/var/vmail/virtual.sqlite" instead. I have no idea why the option is 
not parsed. Is this a bug or am I using the feature incorrectly?


Best regards,
oddlama

[1]: https://doc.dovecot.org/settings/plugin/sql-sqlite/ 


The documentation mentions that "Prior to v2.3.18, Dovecot uses the 
whole value as filename to connect, whitespace included.". Are you 
running a new enough version?


--
You may get an opportunity for advancement today.  Watch it!

Eduardo M KALINOWSKI
edua...@kalinowski.com.br



Re: Dovecot and mutt

2021-01-27 Thread Eduardo M KALINOWSKI

On 26/01/2021 18:18, Rupert Gallagher wrote:
If someone needs to send a formatted text, then they can use a text 
editor on headed paper, export to PDF and send it as attachment. E-mail 
proper is the plain text body of the message. When people send fancy 
HTML and expect me to read it on my phone, then they have wasted their 
effort, because the message is too heavy to download, heavy to display, 
and because I ultimately read e-mails in plain text. And most of the 
times it is spam.


And yet, ironically, this message you sent is in HTML.

It does have a plain text part, but it's base64 encoded. Not a problem 
for any half-decent MUA, but for those read hardcore users that read 
their mail directly from ~/maildir (or something like that), it's an 
extra decoding step ;-)



--
"Rembrandt's first name was Beauregard, which is why he never used it."
-- Dave Barry

Eduardo M KALINOWSKI
edua...@kalinowski.com.br


Re: testing dovecot LMTP with postfix/spamassassin

2019-03-17 Thread Eduardo M KALINOWSKI via dovecot
On 16/03/2019 11:49, Marek Kozlowski via dovecot wrote:
> Can I test local mail delivery by dovecot LMTP manually? I mean: to
> simulate "I'm the Postfix" and produce for some testing e-mail the
> same effect as postfix granting it via `local_transport' to dovecot?
>
You can probably use swaks for that, it has LMTP support.


-- 
You canna change the laws of physics, Captain; I've got to have thirty minutes!

Eduardo M KALINOWSKI
edua...@kalinowski.com.br



Re: Auto configure email clients from Dovecot?

2018-06-30 Thread Eduardo M KALINOWSKI
On 30-06-2018 14:37, Davide Marchi wrote:
> Hi Friends,
>
> I'm using on Debian Jessie, Dovecot 1:2.2.13-12~deb8u3.
> I would like to know if is it possible to auto-configure the email
> client, for example Thunderbird or K-9 mail.
> Essentially I would like to know if is it possible to let dovecot
> instruct the mail client about how to auto-configure the email client.
>
> Actually my mail server parameters are not automatically taken from
> Thunderbird or K9-Mail.
> Is there a way to make this possible? Or am I on a wrong path?
>

It's possible. It has nothing to do with dovecot, though:
https://wiki.mozilla.org/Thunderbird:Autoconfiguration


-- 
Eduardo M KALINOWSKI
edua...@kalinowski.com.br



Re: Dovecot and Letsencrypt certs

2017-09-08 Thread Eduardo M KALINOWSKI
On 08-09-2017 09:47, @lbutlr wrote:
> Should dovecot check for certs being refreshed? Or is this an artifact of my 
> using symbolic links everywhere to point to the newest LE certs (which are 
> themselves links the dehydrate script creates to point to the newest 
> cert-1502534746.csr etc files?
>
> Should I just create a monthly cron to restart dovecot or is there something 
> else?
Dovecot needs a restart after the certificate is changed. certbot allows
you to define hooks to be run after a certificate is renewed, so you
could use that feature to restart dovecot after the renewal. Other
clients might have similar features.

-- 
While you recently had your problems on the run, they've regrouped and
are making another attack.

Eduardo M KALINOWSKI
edua...@kalinowski.com.br


Re: Permission denied when logrotating dovecot.log

2017-03-19 Thread Eduardo M KALINOWSKI
Please don't top post.


On 18-03-2017 22:56, Michael Heuberger wrote:
> Thank you. And what user/group/file perms does your dovecot.log file have?
>

Here I have
drwxr-xr-x 2 root root 4096 Mar 19 06:25 /var/log/dovecot/

And the files are
-rw--- 1 root root  4110 Mar 19 07:57 info.log
-rw--- 1 root root 0 Mar 19 06:25 main.log


-- 
No-one would remember the Good Samaritan if he had only had good
intentions.  He had money as well.
-- Margaret Thatcher

Eduardo M KALINOWSKI
edua...@kalinowski.com.br


Re: Upgrade from 1.2 to 2.2

2017-02-15 Thread Eduardo M KALINOWSKI

On Qua, 15 Fev 2017, Gandalf Corvotempesta wrote:

2017-02-15 13:27 GMT+01:00 Aki Tuomi <aki.tu...@dovecot.fi>:

For good pointers, see http://wiki.dovecot.org/Upgrading

it's not complete, but it should give you some idea.


I've already read that, and as wrote previously, everything broke down.
dovecont -n wasn't able to convert the configuration file and dovecot
wasn't started properly.
The only way to fix was to downgrade.

As this is a production server, I would like to avoid this kind of issue.


Set up a server replicating exactly the configuration you have at  
present. Doesn't need to be anything fancy, a virtual machine is  
enough. Actually, a virtual machine is a great tool if you can make  
snapshots and then rollback to known states if any attempt at a change  
fails.


Do your upgrade work in this new server. Take note of the problems and  
the solutions. If you have concrete issues, you can ask help in this  
mailing list.


Once you get your test server working, you can then upgrade the real  
server using what you've learned from the test server.


--
Eduardo M KALINOWSKI
edua...@kalinowski.com.br


Re: Configuration problem for secure virtual server

2016-12-15 Thread Eduardo M KALINOWSKI

On Qui, 15 Dez 2016, Karsten Malcher wrote:

Hello,

mail_uid = Debian-exim

This will be important later


Dec 15 18:03:25 pop3(karsten@server): Error: user karsten@server:  
Initialization failed: Initializing mail storage from
mail_location setting failed: stat(/mountpoint/mail/server/karsten)  
failed: Permission denied (euid=107(Debian-exim)
egid=8(mail) missing +x perm: /mnt, we're not in group 9(crypt), dir  
owned by 0:9 mode=0770)
Dec 15 18:03:25 pop3(karsten@server): Error: Invalid user settings.  
Refer to server log for more information.


But dovecot is definitely in the group crypt!


dovecot may be, but the process is not trying to access as user  
dovecot, but as Debian-exim (as shown in the log). And this happens  
because of the mail_uid line in your config.


--
Eduardo M KALINOWSKI
edua...@kalinowski.com.br


Re: Backing up dovecot mailboxes

2016-11-09 Thread Eduardo M KALINOWSKI

On Qua, 09 Nov 2016, Jerry wrote:


Does anyone have a working solution as to how I can use "doveadm
backup" to back up a virtual users mailbox to a removable USB device.

I keep receiving numerous errors and no files are backed up although
the directories are created.


No, but I can recommend a solution with rsync. Just use it to copy the  
directories where mail is stored. Depending on the format, you may  
need to save the indexes too.

--
Eduardo M KALINOWSKI
edua...@kalinowski.com.br


Re: btrfs for mail_attachment_dir

2015-02-25 Thread Eduardo M KALINOWSKI

On Qua, 25 Fev 2015, Hardy Flor wrote:
I don't find  any indication, that no btrfs for then filesystem for  
the path in mail_attachment_dir is to be used. but btrfs has a big  
problem with hard links in the same directory.


According to [0] (and the links in there), this problem has been long solved.

[0]http://en.wikipedia.org/wiki/Btrfs#File_system_tree

--
Eduardo M KALINOWSKI
edua...@kalinowski.com.br


Re: [Dovecot] Migrating mailboxes

2013-01-09 Thread Eduardo M KALINOWSKI

On Qua, 09 Jan 2013, Odhiambo Washington wrote:

See the output below

[root@mail home]# cd johndoe/
[root@mail johndoe]# du -h mail/
32K mail/.imap/Sent
40K mail/.imap/Trash
32K mail/.imap/Drafts
176Kmail/.imap/INBOX
284Kmail/.imap
88M mail/


Clearly most of the data (probably the emails) is not under the .imap  
subdir, which is exactly what you didn't show us. It's probably mbox  
files.


--
Hello again, Peabody here...
-- Mister Peabody

Eduardo M KALINOWSKI
edua...@kalinowski.com.br




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

2012-05-16 Thread Eduardo M KALINOWSKI

On Ter, 15 Mai 2012, Joseph Tam wrote:

It works by placing innocuous individualized tags in HTML formatted
Email e.g.  img src=http://your.domain/?id={hash} that downloads a
1x1 dot).  You can then correlate web logs with the hashes to see which
messages got rendered.  A hit does not necessarily mean it got read, and
the absense does not mean it was ignored, but it's better than nothing.
If you value your privacy, turn off HTML rendering on your Email reader.


Even with HTML on, many (if not most) readers, including webmail ones,  
disable loading remote images to avoid the problem, unless the users  
specifically asks the images to be loaded.


--
Spock: We suffered 23 casualties in that attack, Captain.

Eduardo M KALINOWSKI
edua...@kalinowski.com.br





Re: [Dovecot] v2.0.15 released

2011-09-16 Thread Eduardo M KALINOWSKI

On Sex, 16 Set 2011, Simon Brereton wrote:
I'll bite..  But it's probably not your concern.  When will we be  
able to get stable 2.x packages for Debian?  Apt installs 1.2.15-7


In Debian stable? Only when the next stable version (wheezy) is  
released. Not in squeeze. Though perhaps a backport might appear.



--
Colors may fade in time.

Eduardo M KALINOWSKI
edua...@kalinowski.com.br




Re: [Dovecot] Possible to Customize File Naming Scheme?

2011-09-12 Thread Eduardo M KALINOWSKI

On Seg, 12 Set 2011, Dave Stubbs wrote:

Hello all,

I'm watching how my mail system works, and I see that procmail  
creates a new file in the folder/new directory, each time an email  
is received.  This file is some complex combination of UIDs and  
things, suffixed by the server name.  So far, the filename has  
alphanumerics, a couple underscores, and a dot or two only.


But once dovecot gets it's hands on the file and moves it to the  
folder/cur directory, it starts doing terrible things to the  
file name.  Now, the filename starts to have evil things in it,  
like colons and commas.


The colon and commas are part of the Maildir spec[0], so no, it can't  
be changed.


[0]http://cr.yp.to/proto/maildir.html


--
If you want to read about love and marriage you've got to buy two separate
books.
-- Alan King

Eduardo M KALINOWSKI
edua...@kalinowski.com.br




Re: [Dovecot] how to limit size of dovecot.log

2011-04-29 Thread Eduardo M KALINOWSKI

On Qui, 28 Abr 2011, Aaron C Johnson wrote:
I've done some searching and maybe I'm missing something... I have a  
remote dovecot and postfix server running on debian 5. I then have a  
local fetchmail server that retrieves email from the dovecot server  
via pop3s every 5 minutes.


The problem is that the /var/log/dovecot.log file has grown to be  
over 1.1GiB over a period of less than 1 year.


Is there a way to limit the size of the dovecot.log file, or do I  
have to run a monthly cron job or something to take care of it for me?


On Debian that should happen automatically, via the logrotate package.  
Probably installing it is enough.




--
For external use only.

Eduardo M KALINOWSKI
edua...@kalinowski.com.br



Re: [Dovecot] What is the recommended way to move a message from one mailbox to another using CLI

2011-04-27 Thread Eduardo M KALINOWSKI

On Qua, 27 Abr 2011, Uffe Jakobsen wrote:

What is the recommended way to move a message from one mailbox to another
using CLI - serverside commands ?


If you are using maildir, you can just mv the file.



--
BOFH excuse #392:

It's union rules. There's nothing we can do about it. Sorry.

Eduardo M KALINOWSKI
edua...@kalinowski.com.br



Re: [Dovecot] deleted messages not going away in Thunderbird?

2011-03-05 Thread Eduardo M KALINOWSKI

On 03/05/2011 01:07 PM, Dave McGuire wrote:

Hi folks.  This may be a dumb question, but I can't seem to find a clue.

I'm running Dovecot v1.2.9 and Thunderbird v3.1.7.  If I delete
messages using a different IMAP client (I also use an iPhone and
occasionally SquirrelMail), I would expect those messages to disappear
from Thunderbird the next time I start it or click on Get Mail.  In
fact, they do...most of the time.  Sometimes, however, they just stick
around.  If I do a Repair Folder on the inbox in Thunderbird, the
messages go away.

Is this a known issue?  My gut tells me there's some Thunderbird
option to make it follow inbox contents with more attention but I've
not been able to find it.


I've also seen it. I've only observed it in INBOX, but I rarely delete 
mails from other folders, and in those other folders generally there are 
a lot of messages, so it would be hard for me to notice one that is 
there but shouldn't.


--
Eduardo M KALINOWSKI
edua...@kalinowski.com.br



Re: [Dovecot] Iphone IMAP access

2011-01-26 Thread Eduardo M KALINOWSKI

On Qua, 26 Jan 2011, Frank Bonnet wrote:

When I use my iphone to access my IMAP folders I can see ALL folders
in my userland and not only those listed in .subscriptions file ...

Anyone has an explaination of this ?

Might be a security/confidentiality hole isn't it ?


I don't own an iPhone, but I remember reading that that's the way it is.

You can complain to Apple. If you are lucky, you might get a rude  
response from Steve Jobs himself.


Or you could look for another mail client that honours subscriptions.  
But I'm not sure if the App Store allows other mail clients that  
compete with the built-in one.




--
/*
 * Buddy system. Hairy. You really aren't expected to understand this
 *
 */
-- From /usr/src/linux/mm/page_alloc.cA

Eduardo M KALINOWSKI
edua...@kalinowski.com.br



Re: [Dovecot] Iphone IMAP access

2011-01-26 Thread Eduardo M KALINOWSKI

On Qua, 26 Jan 2011, Robert Schetterer wrote:

so you cant verify


I can't, but the OP can, opening his mail account with a program that  
respects subscriptions, like Thunderbird.




--
Virtue is not left to stand alone.  He who practices it will have neighbors.
-- Confucius

Eduardo M KALINOWSKI
edua...@kalinowski.com.br



Re: [Dovecot] Iphone IMAP access

2011-01-26 Thread Eduardo M KALINOWSKI

On Qua, 26 Jan 2011, Giles Coochey wrote:
My Android HTC Desire works a dream with Dovecot... However,  
problems I have with the mail app on there is that I can't find a  
way to bottom post (will only top-post), and it strips the  
thread-ids of mailing list posts... so not so good for mailing lists  
like this one. Having said that - works great for normal IMAP email.


Profimail (http://www.lonelycatgames.com/?app=profimail) has been  
ported to Android. It's quite capable for a mobile app.



--
667:
The neighbor of the beast.

Eduardo M KALINOWSKI
edua...@kalinowski.com.br



Re: [Dovecot] v2.0.9 released

2011-01-14 Thread Eduardo M KALINOWSKI

On Qui, 13 Jan 2011, Philipp Haselwarter wrote:

And what's the status on debian? Sid still comes with 1.2.15, but it
has like 210k lines of patches; is there any chance that it'll get 2.x.x
any time soon? Or is debian just the wrong platform if I want to run the
dovecot 2 series?
What do other users do, roll your own .debs from source?


The next version of Debian, 6.0, which should be released soon will  
get 1.2.15. No 2.x, unfortunately.


It's possible that there will be a backport of version 2.x, however.


--
An ambassador is an honest man sent abroad to lie and intrigue for the
benefit of his country.
-- Sir Henry Wotton, 1568-1639

Eduardo M KALINOWSKI
edua...@kalinowski.com.br



Re: [Dovecot] Manual login to SSL-protected port?

2010-10-25 Thread Eduardo M KALINOWSKI

On Seg, 25 Out 2010, Ron Leach wrote:
We use only SSL-protected ports.  Is it possible to manually login  
to dovecot when dovecot uses SSL-protected imap ports?


Yes, just use openssl:

openssl s_client -connect your.host.org:993

This is described in the Wiki: http://wiki2.dovecot.org/TestInstallation


--
Acting is an art which consists of keeping the audience from coughing.

Eduardo M KALINOWSKI
edua...@kalinowski.com.br



Re: [Dovecot] Thunderbird IMAP woes

2010-08-11 Thread Eduardo M KALINOWSKI

On Qua, 11 Ago 2010, Timo Sirainen wrote:
Now, the problem is that to a lesser extent, Thunderbird 2, and to  
a larger extent Thunderbird 3 is having serious issues when I go  
(want to go) deeper than two levels of nesting. Like, in the  
Subscribe dialog sometimes I see the third level subfolders,  
sometimes I dont. If is subscribe to a second-level folder, then  
create a subfolder in it, the other subfolders suddenly appear.  
It's all very random, unfortunatelly, then only way I can use the  
system right now is to uncheck 'Show subscribed folders only' in  
Account Settings, and even then, sometimes folders disappear or  
reappear that are highly nested.


Some people have complained about this, but I thought this happened  
with all servers. So you're saying that the same TB versions with  
Courier didn't have this problem? .. Wonder what Courier could be  
doing differently here. I thought Dovecot and Courier outputs would  
be the same.


I have this problem with TB 3 (but it worked fine in TB 2, with the  
same Dovecot version).


Horde's IMP webmail does not have this problem. I believe it's a TB  
problem that has nothing to do with Dovecot.



--
Algol-60 surely must be regarded as the most important programming language
yet developed.
-- T. Cheatham

Eduardo M KALINOWSKI
edua...@kalinowski.com.br



Re: [Dovecot] mobile phone access to dovecot

2010-08-04 Thread Eduardo M KALINOWSKI

On Qua, 04 Ago 2010, casanova99 wrote:

I didn't find anything interesting in the search, so I just wanted to see
what other people have done (or thought about doing).

I'd like to be able to access my dovecot server via IMAP, from the Internet,
using the integrated e-mail client from a smart phone.  I'm very concerned
about security and don't feel comfortable just poking holes into the
firewall for direct access from the Internet.  Is there a better way to do
this?


The IMAP server is in your home machine, not a dedicated server, right?

Anyway, if you need to access it, you'll need to open your machine up  
for connections. If you can isolate the IPs you'd be connecting from,  
you can restrict access to them.



--
QOTD:
When she hauled ass, it took three trips.

Eduardo M KALINOWSKI
edua...@kalinowski.com.br



Re: [Dovecot] Feature request: usernames and passwords

2010-07-21 Thread Eduardo M KALINOWSKI

On Qua, 21 Jul 2010, Leonardo Rodrigues wrote:
i completly agree that dovecot is not the place for enforcing  
password policies nor checking them.


but, still on the subject, maybe dovecot could have some  
features for helping sysadmins to avoid/mitigate brute-force  
attacks. As told, some bots tries username=password, but those  
fuckers (the bots) also tries lots of common passwords, 123, 1234,  
the username followed by some numbers, and lots of others.


of course, if the provided password is not correct, dovecot  
denies access as it should  but in those situations, logs can  
get pretty filled with login failed messages, specially on servers  
with lots of accounts. And, in some cases, after lots of tries, the  
bot can found the correct username/password combination.


[snip]


I think none of this is dovecot's function. Let's keep the UNIX  
filosophy: one tool does one function, and does that function well.  
Dovecot is an execellent mail server. It should not be turned into a  
monster Windows-like application that does dozens of  
not-really-quite-related things.


What you want can be done with other tools.


--
Eduardo M KALINOWSKI
edua...@kalinowski.com.br



Re: [Dovecot] mdbox: Cannot create subfolder called dbox-Mails (2.0beta5)

2010-07-03 Thread Eduardo M KALINOWSKI
On 07/02/2010 07:37 PM, William Blunn wrote:
 They might decide to create folders thus:

 postfix-Mails
 exim-Mails
 dbox-Mails

 Oops. We just collided with the Special value.
   

In this case, I'll have to agree with Steve Jobs[0] and say: Change
your folders [sic] name. Not that big of a deal.

[0] http://thenextweb.com/2009/11/19/steve-jobs-small-developer-change-apps/

Since in a mailbox you will be inevitably storing mails, the -Mail part
is unnecessary anyway.

 Compare and contrast an alternative possibility zgo0kq2njs. This is 
 the uncommon character 'z' followed by nine random alphanumeric 
 characters, for a total of 10 characters, and as such should have equal 
 storage complexity to the original 10 ASCII character proposal 
 dbox-Mails. But it does not make any word or phrase in any language I 
 know of.

 This should make a better Special value because it should be less likely 
 to collide with any normal value.
   

The same argument that you use to say that dbox-Mails should be allowed
can be used to justify the need for a folder called zgo0kq2njs. One
just has to be more creative. :-)

And even if it's easy to type with command-completion, I doubt anyone
would have a clue to the purpose of a folder named like this, unlike a
folder with a descriptive name.

-- 
Nondeterminism means never having to say you are wrong.

Eduardo M KALINOWSKI
edua...@kalinowski.com.br



Re: [Dovecot] Thunderbird problem

2010-06-27 Thread Eduardo M KALINOWSKI
On 06/27/2010 06:04 AM, Stan Hoeppner wrote:
 Regardless, my point is valid and stands: there is no (good) reason
 for the
 protocol to require multiple socket connections when everything can be
 accomplished more efficiently (in terms of resources consumed) over a single
 socket.  I'm sure many people more qualified than me have pointed this out WRT
 the IMAP protocol over the years.
   

Tomas is right. It's only possible to monitor one folder via IDLE per
IMAP connection. It's stupid and inefficient, but that's how IMAP IDLE
was designed.

Fortunately, there's the NOTIFY extension to overcome that limitation.
But it's not supported in all clients (nor in all servers, I'd guess).


-- 
A visit to a strange place will bring fresh work.

Eduardo M KALINOWSKI
edua...@kalinowski.com.br



Re: [Dovecot] Dovecot 1.1.x and 1.2.x differencies

2010-06-16 Thread Eduardo M KALINOWSKI
We're drifting quite OT here, but...

On 06/16/2010 08:29 AM, Charles Marcus wrote:
 Again - this is why I have never been inclined to even give debian a
 try... with gentoo, with a very few minor exceptions, the most I've ever
 had to wait was a few weeks...
   

If you want newer releases, you can use debian testing or unstable.
Note that stable/unstable means changing/not changing, not
necessarily that the software is prone to instabilities (crashes, random
bugs, etc.). Naturally, software in testing/unstable was tested for less
time than the ones in the stable releases, but this will be true in
any rolling release system.


-- 
Eduardo M KALINOWSKI
edua...@kalinowski.com.br



Re: [Dovecot] dovecot vs. Thunderbird

2010-06-15 Thread Eduardo M KALINOWSKI
On 06/15/2010 08:11 AM, Bodo Schulz wrote:
 When i want subscribe Folders, i have no access to folder are deeper as
 second level!
   

I've seen this with Thunderbird 3.x (it worked fine with 2.x). I suppose
it's a Thunderbird bug. To be sure, connect manually and ask for a list
of folders: http://wiki.dovecot.org/TestInstallation

-- 
If you wish women to love you, be original; I know a man who wore fur
boots summer and winter, and women fell in love with him.
-- Anton Chekhov

Eduardo M KALINOWSKI
edua...@kalinowski.com.br



Re: [Dovecot] POP3 Problem with SPAM-Mail's over sieve

2010-05-20 Thread Eduardo M KALINOWSKI

On Qui, 20 Mai 2010, Michael Niehren wrote:

Hi together,

i am currently using dovecot 1.2.10 with the sieve-plugin and use a
sieve-filter to sort the SPAM-Mail's directly into a Junk-Folder:

require fileinto;
# rule:[junkfilter]
if header :contains X-Spam-Flag YES {
  fileinto Junk;
}


My problem is now, if i try to retrieve the Mails via POP3, i did not get the
SPAM-Mail's in the Junk-Folder, only the normal ones, that are not filtered
over the sieve plugin.

Could anyone tell me how to solve that issue ?


POP3 has no concept of folders, so only mails in INBOX are accessible.

In the wiki there's a Virtual INBOX por POP with all folders  
solution, but the net effect is displaying all e-mails from all  
folders in the INBOX, so you might save a few processor cycles and  
simply not filter mails in folders in the first place.


--
Some assembly required.

Eduardo M KALINOWSKI
edua...@kalinowski.com.br



Re: [Dovecot] feature question: local delivery from SMTP

2010-01-21 Thread Eduardo M KALINOWSKI

On Qua, 20 Jan 2010, Phil Howard wrote:

Does Dovecot really need a separate MTA for inbound mail?  Or can it receive
SMTP directly if there is no forwarding to do?  What about spam/virus
filtering in that case?


Dovecot does not receive mails. It only serves them to users via IMAP or POP3.

So, yes, you need a program like exim or postfix.

--
BOFH excuse #424:

operation failed because: there is no message for this error (#1014)

Eduardo M KALINOWSKI
edua...@kalinowski.com.br



Re: [Dovecot] handling filename of compressed messages

2010-01-17 Thread Eduardo M KALINOWSKI

On 01/17/2010 12:06 PM, Leonardo Rodrigues wrote:

The 'script compress idea' from the Wiki page sais:
Dovecot can now read the file, but to avoid compressing it again on the
next run, you'll probably want to rename it again to include e.g. a Z
flag in the file name to mark that it was compressed (e.g.
1223212411.M907959P17184.host,S=3271:2,SZ).


 If i rename the file and add the Z flag, i will be braking the
dovecot-uidlist file, which contain the filenames without the Z flag.
Users would have to download the compressed files again because the
filename was changed. That on big mailboxes and slow connections
(specially after the very 1st compression routine run) can be a BIG problem.

 keeping the filename intact, not even adding the Z flag, would be a
great idea to avoid clients from redownloading messages ??? Compression
routines would probably have to use file command to identify already
compressed files, which would badly impact on the performance of its run
... not being able to identify already compressed files based on its
filename would be very bad 
   


I think that file name comparison is based only on the part before the 
:, which identifies the message. What comes after are flags that might 
be set/unset independently of dovecot if another program also accesses 
the mail directory.


Note that it is not necessary to include the Z flag to prevent double 
compression. If you really want, you can keep the same file, just be 
sure in your compression script to check if files are compressed by 
looking at the first bytes: both gzip and bzip2 files always start with 
some fixed bytes.



--
The nation that controls magnetism controls the universe.
-- Chester Gould/Dick Tracy

Eduardo M KALINOWSKI
edua...@kalinowski.com.br



Re: [Dovecot] Update Dovecot index files on maildrop delivery?

2010-01-15 Thread Eduardo M KALINOWSKI

On Sex, 15 Jan 2010, Kārlis Repsons wrote:

On Friday 15 January 2010 12:20:05 Eduardo M KALINOWSKI wrote:

On Sex, 15 Jan 2010, Kārlis Repsons wrote:
 is there some easy way to inform Dovecot about a new delivery, which has
 happened after postfix invoked maildrop, so the index files would be
 updated?

That's exactly the task for which dovecot deliver was made.

But maybe you could also post a short info on how should deliver be called?

I read that The Dovecot LDA, called deliver, is a local delivery agent which
takes mail from an MTA and delivers it to a user's mailbox, while keeping
Dovecot index files up to date.
However in my case maildrop seems to be in the place of deliver.  
Would it work

if maildrop had deliver called by xfilter with the options appended, then
followed by to /dev/null?


I don't know maildrop, so I can't tell if this would work. But the  
idea is to use deliver instead of maildrop, unless you need something  
that only maildrop can do.


In this case, I'd leave things as they are and not worry about  
indexes. When the mail folder is opened next time dovecot will notice  
the new messages and update the indexes.




--
Mercury knghtbrd: Eww, find a better name, the movie sucked.. G
Knghtbrd Mercury: The engine is better than the movie

Eduardo M KALINOWSKI
edua...@kalinowski.com.br


Re: [Dovecot] First time Dovecot user, really impressed so far. What is best IMAP enabled webmail package to go with Dovecot?

2010-01-07 Thread Eduardo M KALINOWSKI
aja-li...@tni.org wrote:
 If you try Roundcube for a while you might find out nice features,
 like the del key works for deleting an email, drag and drop is
 possible, and there's email auto completion within the email compose
 window, and you can add email-addresses in emails to the address-book
 with just one mouse click.

 Drawbacks I've found in RoundCube so far : I couldn't find out how to 
 toggle individual emails in the mailbox window, and the search options 
 seem rather limited compared to Squirrelmail, and RoundCube only has one 
 official skin/theme included.
   

Also, according to the site threading support does not exist yet (but it
is planned). To me this is a big no-no.


-- 
QOTD:
You want me to put *holes* in my ears and hang things from them?
How...  tribal.

Eduardo M KALINOWSKI
edua...@kalinowski.com.br



Re: [Dovecot] Dovecot not delivering mail.

2010-01-06 Thread Eduardo M KALINOWSKI

On Qua, 06 Jan 2010, Pascal Volk wrote:

Sorry, but I really can't understand, why the most unbuntu users seems
to be unable to read AND understand so simple written documentation. :(


flamebait
If they could, they'd be running debian. :-)
/flamebait


--
The young lady had an unusual list,
Linked in part to a structural weakness.
She set no preconditions.

Eduardo M KALINOWSKI
edua...@kalinowski.com.br



Re: [Dovecot] First time Dovecot user, really impressed so far. What is best IMAP enabled webmail package to go with Dovecot?

2010-01-05 Thread Eduardo M KALINOWSKI

On Ter, 05 Jan 2010, Stan Hoeppner wrote:
I've looked a little at both now and am still reading.  One thing I  
don't like
is that I'm seeing requirements a SQL server.  That adds unnecessary  
complexity
to the system and I'd rather avoid it if possible.  IIRC, one of the  
reasons I

chose Squirrelmail a few years ago was that it's requirements were pretty
simple, and that it didn't require a database backend for anything.


IMP/Horde can work with a sqlite database, which is just a file and  
requires no running server.




--
Schizophrenia beats being alone.

Eduardo M KALINOWSKI
edua...@kalinowski.com.br



Re: [Dovecot] Dovecot vs Exim file locking

2009-12-18 Thread Eduardo M KALINOWSKI

On Sex, 18 Dez 2009, Daniel Campos wrote:

We're planning to deploy a large e-mail system storing maildirs in a NAS
system through NFS. One of the options we're thinking on is using
Dovecot+EXIM.

As far as I've read in both project's documentation, both services implement
locking allowing multiple servers to access the same maildirs in order to
distribute the service load. However, I can't find any information
explaining whether both locking mechanisms are compatible, whether any
additional configuration is needed both in Dovecot and/or EXIM, or even
whether any locking synchronization between both services is
needed/recommendable at all.

The only remote clue I've found is that, according to Dovecot docs: Because
Dovecot uses its own non-standard locking (dovecot-uidlist.lock dotlock
file), other MUAs accessing the maildir don't support it. (but EXIM is not
a MUA, anyway)

Anyhow theoretically MailDir could even be considered free of locking
problems, but I'm not sure of the real implications of putting together
several Exim and Dovecot installations pointing to the same NFS filesystem.

Any knowledge/experience/link/clue on this would be greatly appreciated.


As far as I know, maildir does not require locking.

I used sometime exim + dovecot without problems. Now I use dovecot's  
deliver, by doing that you'll certainly have no problems.




--
Genius doesn't work on an assembly line basis.  You can't simply say,
Today I will be brilliant.
-- Kirk, The Ultimate Computer, stardate 4731.3

Eduardo M KALINOWSKI
edua...@kalinowski.com.br



Re: [Dovecot] Dovecot Quota Configuration

2009-12-15 Thread Eduardo M KALINOWSKI

On Ter, 15 Dez 2009, Pattabi Prasanna wrote:

I setting up a Mail server for my company.  I have installed Postfix, it
is working fine.  I have installed Dovecot IMAP Server, i want to know how
to implement quotas for users mailbox. I have created Users using
/etc/passwd, No Mysql or LDAP at present. can you provide me the links to do
this.


This link should give you some starting point: http://wiki.dovecot.org/Quota


--
Eduardo M KALINOWSKI
edua...@kalinowski.com.br



Re: [Dovecot] Sieve mails with decoded subject

2009-12-10 Thread Eduardo M KALINOWSKI

On Qui, 10 Dez 2009, Johannes Bauer wrote:

I'm thinking about filtering all such encoded subjects (as there's no
reason to encode them US-ASCII), but suppose it were UTF-8 or something:
how can I filter on the actual content, not the encoded subject? Surely
someone has solved that problem already?


Yes, such as the guys behind SpamAssassin, or dspam, or any of the  
many spam filtering programs that exist. Actually, they make much more  
complicated decisions instead of only looking for bad words in the  
subject field. I'd suggest you try installing one of them.



--
Eduardo M KALINOWSKI
edua...@kalinowski.com.br



Re: [Dovecot] Help request

2009-10-28 Thread Eduardo M KALINOWSKI
Roy Lozano wrote:
 I'm very new to Linux and especially Dovecot.
 We are using Dovecot IMAP/POP3 for mail services.
 I was moving mail from one user account to another new account and the mail 
 just disappeared.
 Do I have a way to recover the mail?
 Please help
   

Sure, use the backups you made and recover from them. Oh, you don't have
backups? Well...

Anyway, this doesn't seem like a dovecot issue. But even if it is, we
can't help you much if you do not give details on what you were trying
to accomplish, how you tried to do that, and how it failed.

-- 
The meek are contesting the will.

Eduardo M KALINOWSKI
edua...@kalinowski.com.br



Re: [Dovecot] how to hide mailbox from the IMAP clients

2009-10-06 Thread Eduardo M KALINOWSKI

On Ter, 06 Out 2009, Kostik wrote:

Hello, everyone!

Is it possible to hide mailbox from the IMAP clients, so as to prevent
any user from subscribing to the some folders?

My storages are mbox maildir.

For example, to hide the directory where the personal Sieve scripts are
stored or etc.


I think you're approaching the problem from a wrong perspective. You  
should not hide non-mail folders from clients, but you should hide  
them from the server. If it's not a mail folder, Dovecot should not  
treat it as one.


How to do that depends on your settings, but basically you should not  
include the folder with scripts inside the folder with the mailboxes,  
but instead store it elsewhere.



--
Eduardo M KALINOWSKI
edua...@kalinowski.com.br



Re: [Dovecot] The file doesn't contain a certificate.

2009-09-23 Thread Eduardo M KALINOWSKI

On Qua, 23 Set 2009, A M wrote:

Yesterday I upgraded dovecot from 1.1.16 to 1.2.4 using portupgrade
 
I am now getting the following messages in the log file:
Sep 23 12:00:41 imap-login: Fatal: Can't load certificate  file  
/etc/ssl/imaps.example.org.csr: The file doesn't contain a  
certificate.

 
The certificate file contains exactly what it did before:
-BEGIN CERTIFICATE REQUEST-
MIIBhTCB7wIBADBGMQswCQYDVQQGEwJVUzELMAkGA1UECBMCQ0ExFDASBgNVBAcT
C0xvcyBBbmdlbGVzMRQwEgYDVQQKEwtCb3hJU1AsIExMQzCBnzANBgkqhkiG9w0B
AQEFAAOBjQAwgYkCgYEAue0xYWcYcLHQoI/nQj2tG3AV0Mepx1pvHbCSqmKxelyo
z5cToH9kFIPzxDJvL8ChQ21ftM7m79ChfiXgWsUhHuaoeNdwr12FQ+nbbZoaELGZ
3keZv93rYkGstkL8zxTIquDq1dKSp+3e1T7M0ktphlYWuNEv8vHa4zM3n5izdmcC
AwEAAaAAMA0GCSqGSIb3DQEBBQUAA4GBAA1JnGM4A5HvRy+TFjMrUHoJr79DaMpj
qmKT2R5uW0iQnRGjrSfMCaZgyEQqKU5eCAVx5xTih7iO7VKLP5zKRVMSAJ5kQW1o
7bM/NvbnI+Jdz749VkZtUXWWVNlIB0uVXp++moWN5+y94kj3f1VhHQke+pS8NWGG
YxhXEZtBBUdO
-END CERTIFICATE REQUEST-


That's not a certificate, that's a certificate request. You send it to  
a company that sells certificates (along with your credit card number  
:-) ) and receive the certificate.


Or you can generate a self-signed certificate by following the steps  
in http://openssl.linux-mirror.org/docs/HOWTO/certificates.txt .




--
Eduardo M KALINOWSKI
edua...@kalinowski.com.br


Re: [Dovecot] Move to a Specific Folder

2009-09-17 Thread Eduardo M KALINOWSKI

On Qui, 17 Set 2009, Darvin Denmian wrote:

Is there a way to automatically expurge or move messages from a
specific folder to another folder after X days?

Where X specifies the amount of days that messages in folder will be kept.


If it's maildir, you can use find(1) to search the messages and mv(1)  
them to another folder.


The next time the folders are opened dovecot will update the indexes.


--
Eduardo M KALINOWSKI
edua...@kalinowski.com.br



Re: [Dovecot] v2.0 configuration paths

2009-08-31 Thread Eduardo M KALINOWSKI

On Seg, 31 Ago 2009, Timo Sirainen wrote:

In Dovecot v2.0 I'm splitting dovecot-example.conf to multiple files.
It's probably annoying to have tons of dovecot-*-example.conf files, so
what do you think about:

1. Change default sysconfdir from $prefix/etc to $prefix/etc/dovecot
(that's what most distros do anyway)


That's a good change.


2. Install *.conf files to $sysconfdir/example/ without the -example
part in any of the config files.

So new installations would then start with mv example/* .


However, I don't think anywhere under /etc is the best place for  
example configuration files. I think they belong rather under  
/usr/share, though is no big deal if they are elsewhere.



--
Eduardo M KALINOWSKI
edua...@kalinowski.com.br



Re: [Dovecot] Two server certificates for two common names

2009-08-26 Thread Eduardo M KALINOWSKI

On Qua, 26 Ago 2009, Δημήτριος Καραπιπέρης wrote:

So ,
on one dovecot instance, it is impossible to have two ssl  
certificates for two distinct common names.

right?


At the moment, yes. In a future version this will be possible, but I  
suppose you will still need two IPs.



--
Eduardo M KALINOWSKI
edua...@kalinowski.com.br


Re: [Dovecot] problem with disable_plaintext_auth

2009-07-29 Thread Eduardo M KALINOWSKI

On Qua, 29 Jul 2009, Olivier Nicole wrote:

Hi,

I am using dovecot with postfix for authentication.

Everything (TLS/SSL, authentication) is working fine, except that when
I set:

disable_plaintext_auth = yes

I still can authenticate with plain text on a no TLS/SSL session:

20 mail2.cs.ait.ac.th ESMTP Postfix (2.6.2)
EHLO [192.41.170.57]
250-mail2.cs.ait.ac.th
250-PIPELINING
250-SIZE 1024
250-VRFY
250-ETRN
250-STARTTLS
250-AUTH PLAIN LOGIN
250-AUTH=PLAIN LOGIN
250-ENHANCEDSTATUSCODES
250-8BITMIME
250 DSN
AUTH PLAIN 
235 2.7.0 Authentication successful


disable_plaintext_auth affects logging in to dovecot IMAP/POP3 server.  
This is  a SMTP session with Postfix, you'll have to configure Postfix  
not to allow plain text authentication before STARTTLS.




--
Eduardo M KALINOWSKI
edua...@kalinowski.com.br



Re: [Dovecot] Urgent problem with deleting emails and maildirsize

2009-07-02 Thread Eduardo M KALINOWSKI

On Qui, 02 Jul 2009, Jose Luis Marin Perez wrote:

Dears Sirs,

I hope they can help me with this problem since it is urgent.

I've completed the migration from Courier to Dovecot that has been
running correctly, the only problem is that maildirsize file is not
updated when you delete the emails, resulting in accounts that reach to
100% faster, so I have to manually delete this file.

 Through Dovecot can be configured to automatically update when  
maildirsize delete emails?


Posting the same request twice in two hours in not going to get an  
answer faster. Especially if you do not add the missing information in  
the first post to the second one.


Please show us your dovecot -n output.

That will answer the question, but anyway: do you have the quota  
plugin configured?



--
Eduardo M KALINOWSKI
edua...@kalinowski.com.br



Re: [Dovecot] Urgent problem with deleting emails and maildirsize

2009-07-02 Thread Eduardo M KALINOWSKI

On Qui, 02 Jul 2009, Jose Luis Marin Perez wrote:

Thanks for your response Eduardo.

 Apologies to the list by the rush and lack of information when  
reporting a problem.


One of the webmails is configured so that when delete some
mail move to Trash directory, I have no problem here because I've
configured Dovecot to ignore this folder to quota

 The other
two webmails are not configured to use the Trash directory and when you
delete some mail will be maintained in the INBOX but it shows shading
and the server adds the flag T:

 1244457746.11461.domain.com, S = 5413:2, ST

 So no updates maildirsize and quota does not change, this may  
result in the accounts quickly reach 100% usage.


The quote does not change because the mail is not deleted. It's only  
marked as deleted (T flag). Once the folder is expunged (that's how  
IMAP call it; your webmail mail give a different name for this action)  
all mails flagged as deleted are actually deleted and space is released.


The easiest solution would be to use a Trash folder also for this  
domain. Or, if you do not want that, you'll have to instruct your  
users to expunge their folders when they want to claim space. I  
believe there is also a plugin that should do automatic expunging, but  
I don't known when it's triggered.



--
Eduardo M KALINOWSKI
edua...@kalinowski.com.br



Re: [Dovecot] Users with large (4GB) inboxes crippling dovecot

2009-05-29 Thread Eduardo M KALINOWSKI

On Qui, 28 Mai 2009, Curtis Maloney wrote:

But what sort of user puts 4GB of mail into a _single_ folder??


Those that never delete the emails nor move them into folders.  
Everything they ever received is in the INBOX.


And yes, this happens a lot.


--
Eduardo M KALINOWSKI
edua...@kalinowski.com.br



Re: [Dovecot] offlineimap with dovecot and sieve

2009-05-26 Thread Eduardo M KALINOWSKI

On Ter, 26 Mai 2009, Dieter Faulbaum wrote:

I have a dumb question, is it possible to use this combination:

Synchronising a remote IMAP-server and a local dovecot-IMAP-server by
offlineimap (with both types = IMAP), which works very well.
But it seems, that my sieve-scripts on the local dovecot server are not
recognised by this combination.
Is there a good debugging way for this?


There isn't much to debug. They are not run because they are only run  
when deliver is used to deliver mails to the user. When they are  
directly copied to the mail boxes they are not run.


I believe you cannot do that with offlineimap. But if you can get a  
program that downloads the e-mails from the other server and passes  
them to the deliver (or to your MTA, which then passes them to  
deliver) you'll achieve what you want.




--
Eduardo M KALINOWSKI
edua...@kalinowski.com.br



Re: [Dovecot] Deleting mail account?

2009-05-25 Thread Eduardo M KALINOWSKI

On Seg, 25 Mai 2009, David Reid wrote:

This is likely a daft question, but how do I remove a mailbox from a  
dovecot server? I'd like to simply remove it from the disk as well,  
deleting any messages, indexes etc etc


Is there a way?


There is an IMAP command that does that. I don't remember its name,  
but you can lookup in the RFC.


Or you can just remove the file (if using mbox) or directory (if using  
Maildir) that holds the mailbox. Then remove the indexes, which can be  
in the same directory or somewhere else, depending on how you  
configured dovecot.



--
Eduardo M KALINOWSKI
edua...@kalinowski.com.br



Re: [Dovecot] Deleting mail account?

2009-05-25 Thread Eduardo M KALINOWSKI

On Seg, 25 Mai 2009, David Reid wrote:
I'd like to be able to do it all via a web interface and dovecot to  
keep the admin to a minimum. I've seen the delete function in IMAP,  
but it fails when I try and remove the INBOX.


So you want to remove a whole account?

You'll need to disable (or even remove, but I wouldn't recommend that)  
in you authentication database. How it is done depends on which kind  
of authentication you are using.


Then, if you want to delete all the mails for that account, just  
remove the folders where they are stored. This is specified by the  
mail_location setting in dovecot.conf.



--
Eduardo M KALINOWSKI
edua...@kalinowski.com.br



Re: [Dovecot] Deleting mail account?

2009-05-25 Thread Eduardo M KALINOWSKI

On Seg, 25 Mai 2009, David Reid wrote:

Eduardo M KALINOWSKI wrote:
Then, if you want to delete all the mails for that account, just  
remove the folders where they are stored. This is specified by the  
mail_location setting in dovecot.conf.


This part is where I was hoping there was a way to get dovecot to  
remove the mails for me... Is that possible? If not I guess I need  
to look at other ways of dealing with it.


For all folders except the INBOX itself, you can delete them via IMAP.  
You can also remove everything from the INBOX, but you cannot delete  
the INBOX itself through dovecot.



--
Eduardo M KALINOWSKI
edua...@kalinowski.com.br



Re: [Dovecot] How can I put a file back in Maildir folder?

2009-05-23 Thread Eduardo M KALINOWSKI
Allan Cassaro wrote:
 Hi,

 I have a problem: today, when I ran fsck some file was linked to
 lost+find folder...
 After some hours I has all files mapped (File / User). So... how can I put
 this files back in Maildir folder of this users?

 I tried with:
 cat $file | deliver -d username

 but without success...

 Any help will be appreciated!
   

If it's a properly formed mail (basically headers, a blank line, and a
body), you could just copy/move it to the cur/ folder of the mailbox.
Dovecot will see it (and index it) next time the folder is opened.

-- 
The Celts invented two things, Whiskey and self-destruction.

Eduardo M KALINOWSKI
edua...@kalinowski.com.br



Re: [Dovecot] How do I get my mail from fetchmail into dovecot

2009-04-29 Thread Eduardo M KALINOWSKI

On Qua, 29 Abr 2009, Michael Steinbeck-Reeves wrote:

That is the problem, fetchmail just forwards it to port 25 (I think) and
I need to work out what to put between fetchmail and dovecot in order to
get the mail into the correct folders...


A MTA (Mail Tranfer Agent), such as exim, postfix or others.

Though there might be a way to configure fetchmail to store directly  
in the mail store, but I'm not sure (I don't use it).


--
Eduardo M KALINOWSKI
edua...@kalinowski.com.br



Re: [Dovecot] Dovecot - Gmail (via POP Mail Fetcher)

2009-04-20 Thread Eduardo M KALINOWSKI
Neil wrote:
 I'm trying to move my entire email store from my Dovecot installation (which
 I normally access via IMAP) into Gmail using Gmail's Mail Fetcher (which
 functions over POP); and I'm running into two problems:
 1. Gmail only imported 78 out of 1000+ mails in my inbox, which I'm taking
 to mean that Dovecot is reporting only those 78 as new.  How can I get
 Dovecot to send all mail over as new?

 2. I can't be sure of this yet (since, due to #1, Gmail doesn't seem to be
 downloading everything), but I'm pretty sure Dovecot is only reporting my
 Inbox emails over POP; is there a way I can get all my mail, from all my
 folders, to stream in over POP?
   

POP3 only accesses INBOX, so if the e-mails are in other folders, they
are not visible. Some time ago someone proposed a solution (I guess
using a virtual folder, but I'm not sure), try searching the archives.

-- 
It's bad enough that life is a rat-race, but why do the rats always have to win?

Eduardo M KALINOWSKI
edua...@kalinowski.com.br



Re: [Dovecot] deliver vs lda

2009-04-08 Thread Eduardo M KALINOWSKI
Charles Marcus wrote:
 heh... well, they would soon enough...

 Seriously though... why call it a 'local delivery agent', when its
 really more than that? Local suggests local/system users, and dovecot
 delivery agent works fine for both local and virtual users. Postfix
 calls its local delivery agent 'local', and its virtual delivery agent
 'virtual'
   

It's local because it stores e-mails somewhere in the local filesystem
hierarchy, instead of sending it to a remote machine via SMTP (or any
other protocol).

I don't know postfix a lot, but I wonder why it needs two LDAs, one for
real users and one for virtual ones, when the only conceptual difference
should be where to store e-mails and where to lookup information on the
existence of the user and his mail spool directory.


-- 
A lost ounce of gold may be found, a lost moment of time never.

Eduardo M KALINOWSKI
edua...@kalinowski.com.br



Re: [Dovecot] deliver vs lda

2009-04-08 Thread Eduardo M KALINOWSKI
Charles Marcus wrote:
 On 4/8/2009, Eduardo M KALINOWSKI (edua...@kalinowski.com.br) wrote:
   
 It's local because it stores e-mails somewhere in the local filesystem
 hierarchy, instead of sending it to a remote machine via SMTP (or any
 other protocol).
 

 But thats not the generally accepted meaning of local in context of
 email servers.

I don't know what is the generally accepted, but to me virtual users are
just as local as real users, they just don't have a proper account
(because there is no need to).

  Besides, this isn't true if you're using NFS...
   

Not quite... in the point of view of a program, writing to a NFS share
or a filesystem in the same machine is the same thing, the program
doesn't even have to know that it's storing a file in another machine.
And mail is not being transported, which would involve another MTA
that would further handle the e-mail.


-- 
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?

Eduardo M KALINOWSKI
edua...@kalinowski.com.br



Re: [Dovecot] dbox - how to awaken the monster

2009-03-31 Thread Eduardo M KALINOWSKI
Odhiambo Washington wrote:
 Hello people,

 Since the invention of this storage called dbox, I have never quite gotten
 round to understanding it, nor getting to use it. It seems so strange to me
 and I must ask a few stupid questions about it.
 I use the MTA to deliver mail to Maildir, either in ~/Maildir or
 /some/path/%d/%n/Maildir. It has always beat me how dbox comes into play
 under such circumstances. From the wiki, I see the following:
 dbox supports a quick migration from Maildir format - now this leaves me
 hanging. How? Suppose I migrate from Maildir to dbox, what changes do I make
 to the MTA to understand that I use dbox?
 Ok, I use Exim as my MTA.

 I hope someone can explain to me what I need to do to Exim and what to do th
 Dovecot so that I can test this dbox thing.
 And suppose I want to transfer userA's mail to UserB, what do I do? With
 Maildir, I can simply do something like
   

exim does not know about dbox (it's a dovecot-specific format). You'd
need to configure exim to use dovecot's deliver as LDA. There are
instructions for that in the Wiki.


-- 
Endy taniwha: Quote material :)
taniwha Endy: :)
knghtbrd Endy: I already snipped it

Eduardo M KALINOWSKI
edua...@kalinowski.com.br



Re: [Dovecot] Maildir and mail files question

2009-03-20 Thread Eduardo M KALINOWSKI
Harry Lachanas escreveu:
 If an incoming mail is saved in 2 mail locations via dovecot deliver,
 and its wished that if deleted from box a should also be deleted from 
 box b ...

 wil it be safe to delete based upon the W=x part of the file name 

 So far my tests indicate that It could be true ...
   

W= represents the size of the message. While it is relatively
unlikely that two messages will have the exact same size, it certainly
can happen.


-- 
Eduardo M Kalinowski
edua...@kalinowski.com.br



Re: [Dovecot] email stuck in outbox

2009-02-24 Thread Eduardo M KALINOWSKI
barnaby cockcroft wrote:
 Can anyone here help me out with a client side Outlook issue? I know
 outlook is a horrible imap client :(

 We intermittently have a problem where mail gets stuck in Outlook
 users' outboxes.

 Might have anything to do with dovecot?

I really doubt so. It could be a problem with your SMTP server, but
dovecot is only used for reading messages, not for sending.

  Is there anyway I can
 troubleshoot this server side? Are there any settings I can tweak?
   

Check your mail server logs. But first see what Outlook tells you: there
might be a clue.

This often happens when an invalid e-mail address is passed, which
causes rejection of the message and it stays in the outbox (and then
gets reject again, and so on). Are all the recipients valid e-mail
addresses?


-- 
In fiction the recourse of the powerless is murder; in life the recourse
of the powerless is petty theft.

Eduardo M KALINOWSKI
edua...@kalinowski.com.br
http://move.to/hpkb



Re: [Dovecot] auth_debug_passwords

2009-02-04 Thread Eduardo M KALINOWSKI
Josh Gentry wrote:
 Hi.  I'm new to Dovecot and about to start using it in production.  In
 the config file, I set the option, auth_debug_passwords, to yes.  I do
 not see any failed passwords logged, however.  It did cause more verbose
 authentication logging, but failed passwords are still hidden.
   

That option is not for logging passwords, but to ease problem
investigation in case something is not working as it should.

There might be a way to log password attempts, but it's not a good idea
from the point of view of security, so I'm glad it's not so easy to have
them logged.

Remember that a failed password might be someone using a dictionary
attack, but can be an user that simply mistyped one character in his
password. But even in the first case, what good would it do to know what
words an attacker is using?



-- 
Q:  Why does Washington have the most lawyers per capita and
New Jersey the most toxic waste dumps?
A:  God gave New Jersey first choice.

Eduardo M KALINOWSKI
edua...@kalinowski.com.br
http://move.to/hpkb



Re: [Dovecot] Script: Moving Maildirs between servers

2009-02-03 Thread Eduardo M KALINOWSKI
Charles Marcus wrote:
 So you're rsyncing a live mail system with no problems?
   

I do it every day for backups. :-)

 I've been tempted to start doing this, but I was under the impression it
 could be risky (cause file corruption)?
   

I can imagine that one could end up in the backup copy with an
incomplete/corrupt file (but this will be fixed in the next rsync,
hopefully), but I don't see how rsync could corrupt the original files
in the mail server.


-- 
Why is it called a funny bone when it hurts so much?

Eduardo M KALINOWSKI
edua...@kalinowski.com.br
http://move.to/hpkb



Re: [Dovecot] Adding Disclaimer to emails

2009-01-14 Thread Eduardo M KALINOWSKI
Romer Ventura escreveu:
 Hello,

   I was wondering if it was possible to add a disclaimer to every  
 outgoing email using my setup (Postfix+Dovecot)..

Dovecot only deals with allowing users to access the e-mail they've
received. This would be a task for postfix.

But please, please don't. http://www.goldmark.org/jeff/stupid-disclaimers/

-- 
Eduardo M Kalinowski
edua...@kalinowski.com.br



Re: [Dovecot] LDA - no bounces

2009-01-08 Thread Eduardo M KALINOWSKI
Andrzej Adam Filip wrote:
 How to call deliver program to be sure it will *NEVER* generate bounce
 messages?  [all signalling via deliver exit code ]
   

According to the Wiki (http://wiki.dovecot.org/LDA), that would be the
-e option.


-- 
A general leading the State Department resembles a dragon commanding ducks.
-- New York Times, Jan. 20, 1981

Eduardo M KALINOWSKI
edua...@kalinowski.com.br
http://move.to/hpkb



Re: [Dovecot] IMAP Folder permissions

2009-01-07 Thread Eduardo M KALINOWSKI
Stuart Gall escreveu:
 Hello,
 Happy new year.
 I have a dovecot with exim installation. I am using virtual users for  
 mail and IMAP.
 When dovecot creates a folder from imap user the permissions are  
 rwx--
 I need them to be rwxrwx---

 Is there a way to change this in the configuration file ?
   

You need a dovecot-shared file. See
http://wiki.dovecot.org/SharedMailboxes for details.

-- 
Eduardo M Kalinowski
edua...@kalinowski.com.br



Re: [Dovecot] change sender name in Sieve

2008-12-25 Thread Eduardo M KALINOWSKI
Jakob Grießmann wrote:
 thanks a lot, will look into it. I have quite a few systems to
 maintain, so I think best would be to set-up my own repository, as
 your patching instructions otherwise would have to be done by hand on
 all machines, which is quite time consuming. :-)
   

For one or two packages, you do not need to setup a repository, just
copy the .deb's and install them with dpkg -i.

-- 
Once you've tried to change the world you find it's a whole bunch easier
to change your mind.

Eduardo M KALINOWSKI
edua...@kalinowski.com.br
http://move.to/hpkb



Re: [Dovecot] SSL certs per listen IP

2008-12-21 Thread Eduardo M KALINOWSKI
Ian P. Christian wrote:
 Does anyone else see a value in my putting this in as a feature
 request?  IMO it would be useful to have a whole list of IP/SSL
 mappings, or perhaps different certs on different ports. I will
 happily accept I'm in the minority though is no one else sees value in
 this.  I don't really want to run X number of instances of dovecot on
 my setup, as X might be reasonably high, and I'm running this on a low
 member virtual machine - if it weren't for having to run multiple
 processes, memory requirements would be very low.
   

It would be nice, but it is hardly something essential.

I believe this feature is already planned by Timo for a future version.

-- 
I'm prepared for all emergencies but totally unprepared for everyday life.

Eduardo M KALINOWSKI
edua...@kalinowski.com.br
http://move.to/hpkb



Re: [Dovecot] Unbreakable NFS locking issues...

2008-11-11 Thread Eduardo M KALINOWSKI
Well, you just posted your message three times...

Rod Treweek wrote:
 Yeah, typical rookie move by posting twice...didn't see my post, so went
 into the dovecot list setting for my account to adjust it to get a
 confirmation, and then sent the message again.  Really stupid, and I
 apologize.
   

It's a gmail feature: you do not see your own posts to a list, at
least not until you get a reply to them.


-- 
Bell Labs Unix -- Reach out and grep someone.

Eduardo M KALINOWSKI
[EMAIL PROTECTED]
http://move.to/hpkb



Re: [Dovecot] Enh-Req: Mark As Read When Delivered

2008-10-30 Thread Eduardo M KALINOWSKI
Neil wrote:
 I'm under the impression bug-reports are supposed to go to the list,  
 so hopefully it's okay if I put in a feature request here too  
 (assuming it's not already implemented; but it doesn't look like it).

 Basically, all I would like to do is be able to sometimes deliver mail  
 as already mail into mail boxes.  Is there some way to do this?

 If not, could a flag perhaps be added to deliver to do it?  (And  
 Sieve; but for now I think procmail still has much higher adoption,  
 and thus having it in deliver would be rather key...)
   

You can do that with a sieve script, there's a feature (called imapflags
or something similar) that allows you to mark the e-mail as read.


-- 
The way of the world is to praise dead saints and prosecute live ones.
-- Nathaniel Howe

Eduardo M KALINOWSKI
[EMAIL PROTECTED]
http://move.to/hpkb



Re: [Dovecot] dovecot and postfix with tls and dovecot sasl issues for smtp clients

2008-10-22 Thread Eduardo M KALINOWSKI
Harondel J. Sibble wrote:
 dovecot -n

 # 1.1.4: /etc/dovecot.conf
 protocols: imaps pop3s
 ssl_listen(default): *:993
 ssl_listen(imap): *:993
 ssl_listen(pop3): *:995
 ssl_ca_file: /etc/openvpn/easy-rsa/keys/combined-ca-and-crl.crt
 ssl_cert_file: /etc/pki/dovecot/certs/dovecot-chained.cert
 ssl_key_file: /etc/pki/tls/private/server.myserver.net.key
 ssl_verify_client_cert: yes
 ssl_require_client_cert = yes
 verbose_ssl: yes
 login_dir: /var/run/dovecot/login
 login_executable(default): /usr/libexec/dovecot/imap-login
 login_executable(imap): /usr/libexec/dovecot/imap-login
 login_executable(pop3): /usr/libexec/dovecot/pop3-login
 mail_location: 
 mbox:~/mail:INBOX=/var/spool/mail/%u:INDEX=~/mail/.imap/indexes
 mail_debug: yes
 mail_executable(default): /usr/libexec/dovecot/imap
 mail_executable(imap): /usr/libexec/dovecot/imap
 mail_executable(pop3): /usr/libexec/dovecot/pop3
 mail_plugin_dir(default): /usr/lib/dovecot/imap
 mail_plugin_dir(imap): /usr/lib/dovecot/imap
 mail_plugin_dir(pop3): /usr/lib/dovecot/pop3
 auth default:
   mechanisms: plain login
   debug: yes
   debug_passwords: yes
   ssl_require_client_cert: yes
   passdb:
 driver: pam
   userdb:
 driver: passwd
   socket:
 type: listen
 client:
   path: /var/spool/postfix/private/auth
   mode: 432
   user: postfix
   group: postfix

 Interestingly enough the mode line in the dovecot.conf file is set as 0660, 
 not 432 as noted above?!?!?
   
0660 (octal) = 432 (decimal), so the setting is OK.

-- 
Esperto é o homem que acredita em apenas metade do que lhe dizem.
Genial é o homem que sabe em que metade acreditar.

Eduardo M KALINOWSKI
[EMAIL PROTECTED]
http://move.to/hpkb



Re: [Dovecot] dovecot delivery log

2008-10-22 Thread Eduardo M KALINOWSKI
jalal escreveu:
 Trying to debug a delivery problem recently (with Postfix) and I
 realized that Dovecot wasn't logging any of the delivery information.
 I'm using Postfix to recieve mail, which is passing it on to Dovecot's
 deliver to actually deliver the emails into the mail boxes.

 In dovecot.conf, I have:
 protocol lda {
   log_path = /var/tmp/dovecot-deliver.log
 }

 Any clues as to how I can have a delivery log?
   

That file will only log errors and abnormal conditions. To get
information on all deliveries, set info_log_path to the file you want.

-- 
Eduardo M Kalinowski
[EMAIL PROTECTED]



Re: [Dovecot] Dovecot-sieve processing optimizations

2008-10-08 Thread Eduardo M KALINOWSKI
Seth Mattinen escreveu:
 Roderick A. Anderson wrote:
   
 I'm working at the next part of the virtual domains mail server.  I'm
 moving this account ([EMAIL PROTECTED] is a forwarder) which has a bunch
 of procmail rules to file into folders.

 My question is if it is more efficient is use?

 if  {
...
 } elsif {
...
 } elsif {
...
 }
 else

 This seems to be the way many of the example scripts do it but I found
 at least one that used

 if {
...
 }

 if {
...
 }

 Which is more procmail like and for me reads easier.

 If not here where should I ask?

 

 Well, both accomplish different things. In the first example, one and
 only one of the conditions will be executed. In the second one, more
 than one could possibly be executed.

 I've never looked at Sieve's code, but the first will stop at the first
 matching condition. In the second case, because you could make it do
 more than one thing, it must check each condition.
   

If in each if you put a finish statement (or whatever is used to stop
processing the file), then the second one can be more efficient, since
it does not have to continue checking the file to see if there are
further conditions after the if/elseif/.../else block.

But in practice I doubt there is a practical difference between both.
You should use the one that is more readable for you.

-- 
Eduardo M Kalinowski
[EMAIL PROTECTED]



Re: [Dovecot] Zlib plugin question

2008-10-07 Thread Eduardo M KALINOWSKI
Ralf Hildebrandt wrote:
 http://wiki.dovecot.org/Plugins/Zlib
 says pop3 and imap can use this plugin.

 Does deliver also use it?

No, the zlib plugin is only for reading compressed messages/mailboxes.
You have to compress them manually.

-- 
calc Knghtbrd: irc doesn't compile c code very well ;)

Eduardo M KALINOWSKI
[EMAIL PROTECTED]
http://move.to/hpkb



Re: [Dovecot] Any suggestions for backing up an imap server and whould maildir or dbox be better than mbox?

2008-10-02 Thread Eduardo M KALINOWSKI
From: Götz Reinicke
 Hi,

 we run a Red Hat EL 5.2 mailserver with dovecot as the imap server.
 Mails are stored in mbox format and there are about 134GB of mail.

 At the moment users copy their importent mail to their workstation
 accounts wich are backed up nightly.

 What are your suggestions to back up the mails not copied? Thanks for
 any comments.

You can simply rsync the whole mail store. Gets pretty efficient after the 
first run. Or take a look at rdiff-backup if you need to store previous copies.

 BTW: Dose changing the mailbox format from mbox to Maildir or dbox dose
 have any advantages?

I don't think it makes any difference in this case.



Re: [Dovecot] create folder automatically

2008-10-01 Thread Eduardo M KALINOWSKI
From: Nicolas Letellier
 Indeed, the folder is created with the sieve rule (cf precedent mail). I
 see this line in my deliver log:
 
 Oct  1 10:48:42 trinite deliver([EMAIL PROTECTED]):
 msgid=[EMAIL PROTECTED]: saved mail to Junk
 
 However, when we connect us in the webmail, or download mail with IMAP,
 the folder is not present.
 
 The folder is created, but no line about it is present in subscriptions
 file. So, the folder is not viewable.

If I remember correctly, recently it was added an option to deliver to 
autosubscribe to created folders. I think it is only available in the git 
version.


Re: [Dovecot] create folder automatically

2008-09-30 Thread Eduardo M KALINOWSKI
Seth Mattinen escreveu:
 Nicolas Letellier wrote:
   
 Hello.

 I install a sieve rule automatically when a mailbox is created, like:
 if exists X-Spam-Flag {
 fileinto Junk;
 stop;
 }

 However, sometimes, this folder does not exist. How create it automatically?

 
 It is created automatically (at least on mine it does).
   

Indeed, the only way for deliver _not_ to create a folder that does not
exist is by giving the -n command line option, as stated in
http://wiki.dovecot.org/LDA .

-- 
Eduardo M Kalinowski
[EMAIL PROTECTED]



Re: [Dovecot] dovecot-1.1.3 failure to install

2008-09-26 Thread Eduardo M KALINOWSKI
tonj wrote:
 not for a newbie no.
 what's a complier?
   

Are you sure you need to install dovecot? And even if you do want an
IMAP server, do you feel confident enough to configure and maintain it?

-- 
Dry clean only.

Eduardo M KALINOWSKI
[EMAIL PROTECTED]
http://move.to/hpkb



Re: [Dovecot] [Dovecot 1.1.3] Strange problem with attachment download

2008-09-24 Thread Eduardo M KALINOWSKI
From: Thomas Gropp [EMAIL PROTECTED]
 I am testing Dovecot 1.1.3 at the moment to see if I can migrate from 
 UW-Imap(mbox) to Dovecot(maildir). Because I dont' want to influence the 
 production server I installed Dovecot on an ununsed computer with some 
 dummy-testusers using ssl and maildir. Installation was without any 
 problems and everything works fine with one exception: I cannot download 
 some attachments. If the attachment is a simple textfile or bitmap it's 
 ok, but everything else (pdf, zip, etc. - size doesn't matter) does not 
 work. Here is what happens:
 
 1) I right-click on the attached file - save as (using Thunderbird 2)
 2) I choose a target dir (no matter if local disk or nfs)
 3) the download-dialog pops up and says: starting

I'd suggest trying first with another client to see if it's not an issue
with Thunderbird, which in my opinion is not very good at handling
attachments in imap.


Re: [Dovecot] [Dovecot 1.1.3] Strange problem with attachment download

2008-09-24 Thread Eduardo M KALINOWSKI
Ed W escreveu:
 Actually I agree with the OP.  Thunderbird works with attachments, but
 it's handling seems very creaky... (I'm a big fan of TB by the way!)

 Stuff which annoys me is that it seems to download the attachment every
 time it's needed and in particular it seems to download it instantly as
 soon as you open a message (OE only downloads the text and gets the
 attachment only if you access it - I get a bunch of MB sized attachments
 from time to time and opening these messages just to review the text of
 the message is very slow and ponderous)

That's what I had in mind. It receives the whole message (including
attachments), and after it's finished, if you want to save/view the
attachment, it downloads it again!


-- 
Eduardo M Kalinowski
[EMAIL PROTECTED]



Re: [Dovecot] two server and dbox

2008-09-18 Thread Eduardo M KALINOWSKI
[EMAIL PROTECTED] wrote:
 Dear users,
 I have a question about the storage dbox. Is it possible to deliver e-mails
 from two different lda? 
 I would have two independent servers working at the same time on nfs. 
 Is it possible since the e-mails name will be the same? 
   

From what I understand dbox is Maildir format with some improvements.
And Maildir requires filenames to be unique.

-- 
Eduardo M KALINOWSKI
[EMAIL PROTECTED]
http://move.to/hpkb



Re: [Dovecot] Questions about using sieve

2008-09-13 Thread Eduardo M KALINOWSKI
Robin Atwood wrote:
 That was my impression! Since mail delivery is already working, I assumed I 
 do 
 not have to customise sendmail.cf. Is that not the case? I am not sure  I 
 understand this deliver thing, I thought in my case it actually meant 
 sendmail.

Your mail is being delivered by sendmail, so it's doing its job and
ignoring sieve completely. You'll have to configure sendmail to use
deliver to do the deliveries, and then it will use the sieve script.
Otherwise deliver is never called.

-- 
Eduardo M KALINOWSKI
[EMAIL PROTECTED]
http://move.to/hpkb



Re: [Dovecot] Panic in Dovecot 1.1.3: index-mail.c: line 1091: assertion failed: (!mail-data.destroying_stream)

2008-09-10 Thread Eduardo M KALINOWSKI
Timo Sirainen escreveu:
 On Wed, 2008-09-10 at 15:46 +0200, Peter Eriksson wrote:
   
 There seems to be a number of places in 'index-mail.c' that stores
 'time_t' values in 'uint32_t' variables.

 This might cause problems since 'time_t' is 64 bit on 64 bit Solaris
 systems... (Definitely will cause some funny behaviour in the future
 when time_t values won't fit inside 32 bits ints :-)
 

 It'll fit for the next 97 years. And I doubt it'll be a problem then
 anymore.
   

That's how the Y2K bug started.:-)

-- 
Eduardo M Kalinowski
[EMAIL PROTECTED]



Re: [Dovecot] Maildirsize file isn't updated after doing POP

2008-09-09 Thread Eduardo M KALINOWSKI
Nitass Sutaveephamochanon escreveu:
 Hello,

 I have a problem about updating Maildirsize file. It seems that the 
 Maildirsize file is not updated after user does POP mail from his maildir. I 
 do not want to use any quota limitation in Dovecot. I only want Dovevot to 
 update the Maildirsize file after user retrieves his mail. The Maildirsize 
 file is created by Postfix. Would it be possible to do like this? How can I 
 configure it? Could you please advice me?
   

Is the quota plugin loaded? You need it for Dovecot to maintain the
maildirsize.

Show us also the output of dovecot -n.

-- 
Eduardo M Kalinowski
[EMAIL PROTECTED]



Re: [Dovecot] Sieve problem with 1.1.2

2008-09-04 Thread Eduardo M KALINOWSKI
[EMAIL PROTECTED] escreveu:
 Hello,

 I am new here, so excuse me if i am asking something already asked. I am
 using dovecot 1.1.2 along with postfix 2.6 and a pgsql backend. So far
 everything is great, until i wanted to try out the sieve implementation.
 I am using dovecot for deliver and i have set

 global_script_path = /home/vmail/globalsieverc

 The script IS working until a given user defines his own sieve script (
 for example ) :

 This ( or any other script for all i know ) breaks up the global one,
 and it stops working. The global script looks like this :

 Am i missing something, or this is the desired behaviour ?
   

It is the documented behavior. (If this is desirable or not, that is
another question.) From http://wiki.dovecot.org/LDA/Sieve :

protocol lda {
..
  # If there is no user-specific Sieve-script, global Sieve script is
  # executed if set. (v1.0.1 and older used global_script_path)
  #sieve_global_path =

...

-- 
Eduardo M Kalinowski
[EMAIL PROTECTED]



Re: [Dovecot] umask and mails

2008-09-03 Thread Eduardo M KALINOWSKI
Nicolas Letellier wrote:
 Hello.

 I would like to have rights like 750 in my mailboxes
 (in /var/mail/vmails/domain.tld/user).

 http://wiki.dovecot.org/DovecotServerInstallations/RHEL/2_Users?highlight=(mask)

 I see an option called umask (in dovecot.conf). I set umask = 0750 in
 dovecot.conf.

 This option add good rights to directories, but not to the mail
 received (always in 700).

 Do you have a solution?
   

That setting is deprecated, don't use it (it does not work anyway).

Create a file named 'dovecot-shared' in each of your folders, give it
the mode you want your files to have, and files will be created with
that mode. See http://wiki.dovecot.org/SharedMailboxes for details.

-- 
Pure drivel tends to drive ordinary drivel off the TV screen.

Eduardo M KALINOWSKI
[EMAIL PROTECTED]
http://move.to/hpkb



Re: [Dovecot] Sieve fileinto a subfolder fails

2008-08-29 Thread Eduardo M KALINOWSKI
Rich McAllister wrote:
 I'm using Dovecot 1.0.10 on Ubuntu 8.04, using the packages from the
 distro; exim4 is my MTA and it's configured according to the
 instructions in the wiki, everything is working fine for delivery into
 the Maildir INBOX via Dovecot's LDA and reading mail via IMAP using
 Thunderbird.

 My habit on previous mail systems was to create a Lists folder and
 subfolders under Lists for each mailing list I subscribe to.  I tried
 to use Dovecot sieve to sort mail into the folders with sieve filters
 like

 require fileinto;
 if header :contains Subject [NCCC] {
 fileinto Lists/NCCC;
 } else {
 keep;
 }

 I created Lists/NCCC via Thunderbird (so I could set the check this
 folder for new mail property) but when Dovecot tries to deliver into
 the folder, I get the log message

  msgid=...: Couldn't open mailbox Lists/NCCC: Invalid mailbox name

 Is there some other syntax for specifying folder/subfolder names in
 Dovecot sieve, or do I just have to live with the folders all at the
 top level

Try fileinto Lists.NCCC, the . is the default folder separator.

It should be possible to change it to a / with namespaces, but it
would make a cosmetic change, and judging by other posts in the list, it
seems to cause a lot more trouble than benefits. :-)

-- 
My godda bless, never I see sucha people.
-- Signor Piozzi, quoted by Cecilia Thrale

Eduardo M KALINOWSKI
[EMAIL PROTECTED]
http://move.to/hpkb



Re: [Dovecot] compile with ssl support

2008-08-27 Thread Eduardo M KALINOWSKI
Catalin Ciubotariu escreveu:
 I did'nt know that  i have to install first SSL then recompile with 
 CPPFLAGS=-I/usr/local/ssl/include LDFLAGS=-L/usr/local/ssl/lib ./configure

 it's ok now but the server does not accept the password

 There was a problem logging onto your mail server. Your User Name was 
 rejected. Account: '10.10.10.4', Server: '10.10.10.4', Protocol: POP3, Server 
 Response: '-ERR Plaintext authentication disallowed on non-secure 
 connections.', Port: 110, Secure(SSL): No, Server Error: 0x800CCC90, Error 
 Number: 0x800CCC91
   

Your client is not connecting with SSL. I guess that's not what you want.

In dovecot.conf, enable the protocol pop3s (right in the beginning), and
configure your clients to use SSL. The default port for POP3 over SSL is
995, if I recall correctly.


Re: [Dovecot] Webmail app ... again.

2008-08-15 Thread Eduardo M KALINOWSKI

Timo Sirainen escreveu:
I've heard that imapproxy isn't all that useful with Dovecot once auth 
cache is enabled and set large enough. It'll then just basically 
replace Dovecot's process fork(s) with the overhead of its own.


If I understand Dovecot's auth caching, it will save DB lookups (or 
sequential passwd-file lookups, etc), but it will still need to spawn a 
new imap process for each connection the webmail does.


With imapproxy, the process will be kept running for a couple minutes 
after the webmail disconnects that connection and will be reused if a 
new request is made in sequence.




Re: [Dovecot] Webmail app ... again.

2008-08-15 Thread Eduardo M KALINOWSKI
Timo Sirainen wrote:
 On Aug 15, 2008, at 2:22 PM, Eduardo M KALINOWSKI wrote:
 If I understand Dovecot's auth caching, it will save DB lookups (or
 sequential passwd-file lookups, etc), but it will still need to spawn
 a new imap process for each connection the webmail does.

 With imapproxy, the process will be kept running for a couple minutes
 after the webmail disconnects that connection and will be reused if a
 new request is made in sequence.


 Yes, but is it worth it to keep an extra daemon proxying all TCP
 connetions to IMAP server just to save a some imap process creations?

Good question, only benchmarking could tell, and the results would
probably vary between different machines, operating systems and
architectures.

 v2.0 hopefully allows this kind of wait a couple of minutes before
 dying natively.

That would be really nice.

-- 
BOFH excuse #52:

Smell from unhygienic janitorial staff wrecked the tape heads

Eduardo M KALINOWSKI
[EMAIL PROTECTED]
http://move.to/hpkb



Re: [Dovecot] POP3 dictionary attacks

2008-08-15 Thread Eduardo M KALINOWSKI
Charles Marcus wrote:
 Dictionary attacks are a fact of life these days.

 Just install some kind of blocking on your firewall (fail2ban is a good
 one), and let it take care of the worst of it..

I wonder what  they want by cracking a POP3 server. Read the user's
mails? It's true POP3 passwords are almost always equal to SMTP ones
(which is useful for spamming), but then why not try to crack the SMTP
server directly?

-- 
The bomb will never go off.  I speak as an expert in explosives.
-- Admiral William Leahy, U.S. Atomic Bomb Project

Eduardo M KALINOWSKI
[EMAIL PROTECTED]
http://move.to/hpkb



Re: [Dovecot] Auto Vacation replies again

2008-08-12 Thread Eduardo M KALINOWSKI

CJ Keist escreveu:

Stephan,
   Thank you.  I understand what you are saying in trying to keep a
vicious cycle of auto-replies responding to each other.  But in our
environment I don't have any choice as our central virus/spam email
gateway will can any message without a valid from address in the headers


The messages do have a valid from address in the headers - but their 
Envelope From address is empty, as the RFC recommends. These are two 
different things.


Re: [Dovecot] problems with sieve and lda

2008-08-11 Thread Eduardo M KALINOWSKI
Harondel J. Sibble wrote:
 Following the wiki here for system users

 http://wiki.dovecot.org/LDA/Postfix

 I never get any info in the logs about cmusieve, the only way I see anything 
 show up is if I add the transport settings to postfix/master.cf or see below

 From reading the list archives, as best as I can tell, the only time I need 
 to make the changes in postfix's master.cf is if I am using a virtual 
 environment, otherwise for local delivery, all I need is the mailbox_command 
 setting in postfix/main.cf

 However with that setting, I get nothing! If I then run deliver from the 
 command line as per a couple of mailling postings,

 cat /etc/hosts | /usr/libexec/dovecot/deliver -d [EMAIL PROTECTED] -f 
 [EMAIL PROTECTED]

 I get 

 deliver([EMAIL PROTECTED]): Aug 10 22:07:17 Info: Loading modules 
 from directory: /usr/lib/dovecot/lda
 deliver([EMAIL PROTECTED]): Aug 10 22:07:17 Info: Module loaded: 
 /usr/lib/dovecot/lda/lib90_cmusieve_plugin.so
 deliver([EMAIL PROTECTED]): Aug 10 22:07:17 Error: Can't connect to 
 auth server at /var/run/dovecot/auth-master: No such file or directory
   

To use -d ACCOUNT, you need a master socket where deliver looks up user
information: see the Virtual Users section in
http://wiki.dovecot.org/LDA . But if you are not using virtual users
(and only used -d to test), you should not need it.

How are you calling deliver in postfix? Do you see in postfix's logs the
messages being handled to deliver?


-- 
Deadwood, n.:
Anyone in your company who is more senior than you are.

Eduardo M KALINOWSKI
[EMAIL PROTECTED]
http://move.to/hpkb



Re: [Dovecot] virtual domains and SSL certificates

2008-08-07 Thread Eduardo M KALINOWSKI

Kacper Wysocki escreveu:

Hi all,

I have dovecot 1.1.0 setup to access vpopmail accounts for several
virtual domains.
Dovecot IMAP is accessed through several virtual domains as well, ie
mail.foo.com an d mail.bar.com
The problem is that the configuration file specifies only one
certificate file for dovecot, which means only one Common Name, which
means one cannot provide one server cert that will match mail.foo.com
AND mail.bar.com, and either [EMAIL PROTECTED] or [EMAIL PROTECTED] will get a
Security Error: Domain Name Mismatch in their mail client when
connecting through IMAPS.

How can I avoid this domain name mismatch error?
  


a) Use a single host name for all domains.

b) If you really want different hostnames for all domains, you'll need 
one IP address for each domain. Dovecot can at this moment listen on 
several addresses, but it only uses one SSL certificate for all of them, 
which means you would need several dovecot instantes running.


Which leads us to the request: could it be that in a future version one 
could select a different certificate for each IP that Dovecot listens to?


Re: [Dovecot] Expire Plugin - LDA with Vpopmail errors

2008-08-07 Thread Eduardo M KALINOWSKI
Ron Culler wrote:
 I am trying to setup Dovecot to use the expire plugin and wanted to use
 the LDA so I can ensure the messages are indexed as they are delivered
 to the mailboxes. This system is only accessed via a webmail interface

 Using dovecot-1.1.2 and Vpopmail with Qmail

 Dovecot.conf file
 [snip]

 I see errors in the /var/log/dovecot-deliver.log deliver ([EMAIL PROTECTED])
 Error: Can't connect to auth server at
 /usr/local/var/run/dovecot//auth-master: no such file or directory.

 What do I need to do to create this?  

A socket master definition in the config file, as described in
http://wiki.dovecot.org/LDA .

-- 
Insults are effective only where emotion is present.
-- Spock, Who Mourns for Adonais?  stardate 3468.1

Eduardo M KALINOWSKI
[EMAIL PROTECTED]
http://move.to/hpkb



Re: [Dovecot] dovecot-auth requires userdb, but already configured

2008-08-04 Thread Eduardo M KALINOWSKI
Carl Vondrick wrote:
 Greetings!

 My ultimate goal is to have fetchmail/getmail poll from POP3/IMAP servers
 and deliver mail into Dovecot mailboxes.  This does not work because the
 Dovecot LDA for some reason fails.

 I believe I have narrowed down the problem to dovecot-auth not finding my
 userdb.  But, I am able to connect to dovecot via IMAP in my MUA and preform
 operations (read, delete mail, create folders).  This leads me to believe my
 userdb is setup correctly.

 Does anyone have any idea as to why dovecot-auth would not find my userdb?
 (Configuration is below).

Are you using virtual users? In this case, Dovecot's deliver needs a
master socket to get user information from. See instructions at
http://wiki.dovecot.org/LDA .

-- 
FORTRAN is the language of Powerful Computers.
-- Steven Feiner

Eduardo M KALINOWSKI
[EMAIL PROTECTED]
http://move.to/hpkb



Re: [Dovecot] related, but off-topic: how to allow users to change password?

2008-08-02 Thread Eduardo M KALINOWSKI
Sahil Tandon wrote:
 My dovecot is currently configured to authenticate vs. a userdb/passdb 
 passwd-file that contains, for each user:

 username:passhash:5000:5000::/path/to/home::userdb_mail=/path/to/maildir

 Is it possible to let users authenticate and change their passwords?  There 
 are some webmail client add-ons that allow such things if users are system 
 accounts or in a MySQL/LDAP db.  Does anyone else use passdb/userdb 
 passwd-files like above and have a method for allowing users to change their 
 passwords from the web?

 Sorry for the slightly off-topic question, but hoping another Dovecot admin 
 has solved this problem.  Preference is to not to be tied to any particular 
 webmail client just for this change password feature.
   

There isn't a general utility to do that. I wrote a simple script for
one such case, namely sork-passwd from the Horde suite. The script just
receives the username, old password and new password from stdin and then
changes the password entry in a file. But I'm using only passwd files,
without the extra fields in a userdb file. Besides that, there are other
things that could have been done in a better way.

If you want to take a look, I posted it here some time ago:
http://www.dovecot.org/list/dovecot/2008-June/031629.html

-- 
Never do today what you can put off until tomorrow.

Eduardo M KALINOWSKI
[EMAIL PROTECTED]
http://move.to/hpkb



Re: [Dovecot] Seen flag in maildir filename not being respected

2008-07-31 Thread Eduardo M KALINOWSKI
Timo Sirainen wrote:
 Do you have dovecot-shared file in the maildir? If it exists, Dovecot
 uses only its index file for storing \Seen flags (to get per-user
 \Seen flags with shared mailboxes).

I do, to set the owner/group and mode of files. (The mailboxes aren't
really shared, actually.) Any workarounds?

-- 
Despite all appearances, your boss is a thinking, feeling, human being.

Eduardo M KALINOWSKI
[EMAIL PROTECTED]
http://move.to/hpkb



  1   2   >