Re: [Dovecot] POLL: v2.2 to allow one mail over quota?

2013-02-11 Thread Dennis Guhl
On Mon, Feb 11, 2013 at 06:56:43AM -0500, Charles Marcus wrote:
 On 2013-02-10 8:43 PM, Sven Hartge s...@svenhartge.de wrote:
 quota_grace_extra
 
 Smaller is better... why not just
 
 quota_grace

Sounds good for me. In particular the similarity to the disk quotas
grace period is blatant.

Dennis


Re: [Dovecot] dovecot-lda delivery to Maildir/cur as 'seen'?

2012-10-26 Thread Dennis Guhl
On Fri, Oct 26, 2012 at 01:27:00PM +0200, Dale Gallagher wrote:
 Hi

[..]

 The problem now, is that the Sent folder shows the mail as unread,
 which MUAs flag (and notify, in the case of some). I've searched the

Use Sieve [1] with Imap4flags (RFC 5232)  to mark the email as read.

Dennis

[1] http://wiki2.dovecot.org/Pigeonhole/Sieve

[..]


Re: [Dovecot] Locking /var/mail/user issue with postfix and dovecot

2012-10-25 Thread Dennis Guhl
On Thu, Oct 25, 2012 at 10:23:29AM +0300, Robert JR wrote:

[..]

 should happen. My question is postfix locking option is = FCNTL,
 DOTLOCK , and dovecot = FCNTL, if postfix find a file already FCNTL,
 why it dotlock the file 5 secs then remove the dotlock and say
 resource unaviable? why in the first place it dotlock the file,
 althought it couldnot FCNTL it in the first place since it is FCNTL
 by dovecot while reading the in the moment

You are on the wrong mailing list, this is no problem of Dovecot.

Ask this question on postfix-users (maybe you are requested to show
evidence of this behaviour).

Dennis


Re: [Dovecot] Problem with sieve. dovecot 2.0.17

2012-10-23 Thread Dennis Guhl
On Tue, Oct 23, 2012 at 05:19:04PM +0200, Eliezer Croitoru wrote:

[..]

 the script is:
 require [fileinto, envelope];
 if envelope :is from elie...@test.dom {
   fileinto old;

stop; # seems to be needed with explicit keep

 } else {
   # The rest goes into INBOX
   # default is implicit keep, we do it explicitly here
   keep;
 }

Comparing various sieve scripts I concluded (but I didn't actually
test it) that you need a stop; in your if or elsif clauses in case you
have an else clause with an explicit keep; -- IMHO a behaviour
violating RFC 5228.

RFC 5228, Section 3.1

...

If the test of the if is false, it evaluates the test of the
first elsif (if any).  If the test of elsif is true, it
runs the elsif's block.  An elsif may be followed by an elsif,
in which case, the interpreter repeats this process until it
runs out of elsifs.

When the interpreter runs out of elsifs, there may be an
else case. If there is, and none of the if or elsif tests
were true, the interpreter runs the else's block.

...

Stefan, can you enlighten us?

Dennis

[..]


Re: [Dovecot] how to best import Evolution/Thunderbird mail into dovecot?

2012-10-18 Thread Dennis Guhl
On Wed, Oct 17, 2012 at 07:57:38PM +0200, Christoph Anton Mitterer wrote:
 On Wed, 2012-10-17 at 16:51 +0200, Dennis Guhl wrote:

[move through Evolution to IMAP]

 Well as I've mentioned... on looses the info in the From_ lines (that is
 the RCPT TO address and the date of arrival) because Evolution does not

The date and time of arrival can be concluded from the last Received:
header. The RCPT TO need to be converted to a X-Original-To: header.

[..]

  If they bug you remove them with sed or awk or perl or python or ...
 Yeah... but sed alone is not enough... cause such lines may also appear
 in the body... and I mustn't remove them...
 So in principle I'm looking for a smart parser of mbox which already
 gives me headers and body and I can modify either.

I think, like Rob suggested, you are in need of some serious
scripting.

Dennis


Re: [Dovecot] dovecot-core, dovecot-mysql for Debian squeeze

2012-10-18 Thread Dennis Guhl
On Wed, Oct 17, 2012 at 08:47:09PM -0300, Ricardo wrote:
 Hello list

[..]

 I have problems installing the daemon dovecot-core, dovecot-mysql
 dovecot-imapd dovecot-pop3d

[..]

 to install dovecot-core, dovecot-mysql, install it without problems
 is the version (2.1.7-2 ~ bpo60 +1) of both packages, now wanting to
 install dovecot-imapd dovecot-pop3d (version 1.2.15-7) breaks the
 dovecot-core, dovecot-mysql, apparently must be the same version all
 packages.

Yea, of course you must use the same version for all packages.
Upstream there is only one package for dovecot. It's part of Debian's
philosophy to split monolithic packages into a bunch separate packages.

 Debian Wheezy, installs without problems but installs the version
 (dovecot-core_2.1.7-2 ~ ppa12.04 +1 _i386.deb) all packets are the
 same version.

This no Debian version schema but from Ubuntu 12.04. I don't know if
they work correct on Debian.

 What is the correct version for Debian squeeze?

Stock Squeeze ships Dovecot in Debian version 1.2.15-7. Squeeze
Backports offers version 2.1.7-2~bpo60+1.

To install Dovecot 2.1 for Debian Squeeze:

% sudo apt-get update
% apt-get -s -t squeeze-backports install dovecot-imapd dovecot-pop3d 
dovecot-mysql

The '-s' switch simulates the installation and works without root
privileges. If you get no error and apt shows to install version
2.1.7-2~bpo60+1 repeat the command with a preceding 'sudo ' and no
'-s'.

Dennis


Re: [Dovecot] how to best import Evolution/Thunderbird mail into dovecot?

2012-10-17 Thread Dennis Guhl
On Wed, Oct 17, 2012 at 01:21:14AM +0200, Christoph Anton Mitterer wrote:
 Hi.

[..]

 First thing I tried was to simply copy mail within Evolution (i.e.
 draggingdropping it from the local folders to the IMAP folders from
 dovecot).

This seems to be the smartest idea.

 - that preserves the status from Evolution, but doesn't restore that
 from Thunderbird

Why not use TB to copy the emails from your 'TB mboxes' to Dovecot?
This way I moved around 25 GiB of emails from  50 mbox files,
created with TB 3.6 way down to some 0.x beta, to Dovecot -- without
any issues I could recall.

[..]

 - neither does it remove the Thunderbird or the X-Evolution-Source
 headers

If they bug you remove them with sed or awk or perl or python or ...

Dennis

[..]


Re: [Dovecot] finding messages deleted before timespec

2012-09-04 Thread Dennis Guhl
On Mon, Sep 03, 2012 at 01:31:18PM +0200, Sven Hartge wrote:
 Hi!

[..]

 I want to use this to expunge all DELETED messages which have been in
 that state for 24h or longer.

http://wiki2.dovecot.org/Tools/Doveadm/Expunge

HTH
Dennis

[..]


Re: [Dovecot] BEWARE: This list is being harvested for leads

2012-05-17 Thread Dennis Guhl
On Thu, May 17, 2012 at 10:56:50AM -0400, Charles Marcus wrote:
 On 2012-05-17 10:20 AM, dovecot-20120...@billmail.scconsult.com wrote:
 On 17 May 2012, at 9:46, Charles Marcus wrote:
 Tim is working closely with Timo, and I'm sure got Timo's permission
 to send that email to list subscribers.
 
 I subscribed to the Dovecot Users mailing list, not Whatever spam
 Timo thinks is justifiable.
 
 I'm about ready to add you to my PLONK file Bill.
 
 That is ridiculous... if a formal announcement about a commercial
 support company that has Timo's blessing isn't pertinent to
 participants on the dovecot support list, then what is?

I did not received this mail so I can't comment on the appearance but
I would not be happy to receive any unrequested commercial offers,
irrelevant which form it comes along.

I can understand Timo's desire to acquire as much paying customers as
possible, but in this case he should at least have announced --
publicly -- what he plans to do and how to opt out.

Such 'ideas' are a sure way to kill all the good reputation, which is
crucial for open source projects. And, not to forget, it can lead to
some nasty legal problems. Such forms of email marketing are at least
in the EU and US prohibited.

 Just admit you made a silly mistake and move on...

The only silly mistake was this answer of yours.

Dennis
-- 
Dennis Guhl
()  ascii ribbon campaign - against html e-mail 
/\  www.asciiribbon.org   - against proprietary attachments


Re: [Dovecot] BEWARE: This list is being harvested for leads

2012-05-17 Thread Dennis Guhl
On Thu, May 17, 2012 at 04:36:07PM +0100, Spyros Tsiolis wrote:
 I hear people complaining about Timos' 
 
 effort to try and make a profit out of
 his idea.

The complains are not about the intention to make profit but about the
way of costumer acquisition.

 Maybe these people would prefer for people
 like Timo to not announce anything at all and
 do this without informing anyone ?

This is exactly what happens and rises complains.

 My take on this (if anyone is interested
 in my opinion) is that Timo should be free
 to do whatever he wants with his code.

This is not about the code, this is about using data gathered from
subscriptions to a public mailing list to send unasked marketing
emails.

Dennis


Re: [Dovecot] BEWARE: This list is being harvested for leads

2012-05-17 Thread Dennis Guhl
On Thu, May 17, 2012 at 04:33:30PM +0100, Giles Coochey wrote:

[..]

 [sarcasm on]
 No, I think we should lock Tim  Timo up and force Timo to eat
 lentils while he codes his IMAP server for us. It's incredibly
 astounding that he should even need to be involved in a business
 where he makes money developing my free IMAP server software!!!
 [sarcasm off]

Sarcastic comments which torn the wrong point are sorry.

Dennis


[Dovecot] OT: Re: BEWARE: This list is being harvested for leads

2012-05-17 Thread Dennis Guhl
On Thu, May 17, 2012 at 11:37:15AM -0400, Charles Marcus wrote:
 On 2012-05-17 11:20 AM, Dennis Guhl d...@dguhl.org wrote:
 I did not received this mail so I can't comment on the appearance but
 I would not be happy to receive any unrequested commercial offers,
 irrelevant which form it comes along.
 
 It was a simple *notification* email, letting people know the new
 company exists.

If it was just one email with 'hey we are here, you can hire us' why
does it offlist? Why not just sending it to the list?

 Sheesh...
 
 I can understand Timo's desire to acquire as much paying customers as
 possible, but in this case he should at least have announced --
 publicly -- what he plans to do and how to opt out.
 
 Opt out of... what? Receiving a *single* *email* announcing the new
 company/service?

One unasked marketing mail is one spam mail. Do not forget, spam is
not about content it is about consent.

 I'm about ready to PLONK you too... as you're being more ridiculous
 than Bill.

If you desire, please. I won't stop you.

Dennis


Re: [Dovecot] BEWARE: This list is being harvested for leads

2012-05-17 Thread Dennis Guhl
On Thu, May 17, 2012 at 09:47:23AM -0600, Douglas Mortensen wrote:
 I personally didn't mind a one-time notice from the dev's team that
 that are now offering paid commercial support. What if I WANTED it?

There might be a lot of people who did not mind one offlist contact to
a list address, but on the other side there will also be the fraction
saying no, I subscribed to a mailing list and not to a marketing list.

 I felt like it was a courtesy email from them to let me know that
 it's available.

The company was announced onlist sometimes around this time last year
after Timo unofficially announced the company during a talk at the
mailserver conference in Berlin.

 If those emails continue unsolicited, then it may start to feel like
 spam to me, but this did not.

Obviously you are more tolerant in this regard then I would be.

 In general, I've actually been looking for ways to financially
 support good open source projects. I have worked with many  find

No question, but the way and form should be considered.

Dennis

[..]


Re: [Dovecot] dovecot %u variable problem....

2012-04-25 Thread Dennis Guhl
On Wed, Apr 25, 2012 at 07:17:18AM +0100, Kris wrote:

[..]

 the problem is a variable in dovecot (%u) which is normally used as
 a full username in sql query strings (i.e. user@domain) and is
 simply dropping the domain for some reason...

[..]

 and to further confuse me, this 'unchangeable' variable sometimes
 decides to right itself without any obvious reason...
 localhost dovecot: auth: Debug:
 sql(ad...@microhard.com,xx.xx.xx.xx): query: SELECT id as user,
 crypt as password FROM users WHERE id= 'ad...@microhard.com'
 
 im wondering if its something to do with my client dropping the
 domain, or whether dovecot has an error, or some other thing ive
 overlooked...

Indeed, it seems some of your users try to authenticate with a
username without the '@domain' part.

You can either try to make your users comply or you can use
auth_default_realm in your config:

# Default realm/domain to use if none was specified. This is
# used for both SASL realms and appending @domain to username
# in plaintext logins.
#
#auth_default_realm =

Dennis

[..]


Re: [Dovecot] dovecot %u variable problem....

2012-04-25 Thread Dennis Guhl
On Wed, Apr 25, 2012 at 09:50:20AM +0100, Kris Weston wrote:
 
 thanks for your help dennis...
 Indeed, it seems some of your users try to authenticate with a
 username without the '@domain' part.
 
 You can either try to make your users comply or you can use
 auth_default_realm in your config:
 
 in this case the users are me :)
 same username every time i connect, but each time i see a load of db
 lookups that are different but using this same u variable...

If it's no bug, I doubt it randomly changes the value for %u while the
input is the same. So it seems the problem lies somewhere else. And if
it is no layer 8 problem it must be the client ;)

  # Default realm/domain to use if none was specified. This is
  # used for both SASL realms and appending @domain to username
  # in plaintext logins.
  #
  #auth_default_realm =
 
 
 ahhh, ok. only i have multiple domains, so how does that werk ?
 just put em all in ?

IIRC no, you can only name one default.

Dennis


Re: [Dovecot] sieve against ldap in Dovecot 1.2 vacation messeage

2012-04-22 Thread Dennis Guhl
On Fri, Apr 20, 2012 at 04:10:18PM -0430, Victor Oñate wrote:
 Hi.
 I need configure sieve against ldap

You can't configure sieve against LDAP.

Sieve is a filter language, which is called by the LDA and configured
by files in your home dir.

For more information about sieve (with Dovecot 1) look here:

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

and here:

http://wiki.dovecot.org/LDA/Sieve/Dovecot

[..]

 The principal idea is keep the control the message by user with LDAP
 and Dovecot(IMAP).  without touching the postfix configuration file
 is that possible, or am I dreaming.

What you want is ManageSieve:

http://wiki.dovecot.org/ManageSieve

more specifically:

http://wiki.dovecot.org/ManageSieve/Clients

Dennis


Re: [Dovecot] Correction of home and mail directory config

2012-04-22 Thread Dennis Guhl
On Sat, Apr 21, 2012 at 08:20:32AM +0200, L. Grün wrote:
 Hello,
 after running dovecot for a while, I stumbled accross the warning,
 not to have mail and home directory settings point to one and same
 directory.
 Here is the output of dovecot -n:
 
  dovecot -n
 # 1.2.15: /etc/dovecot/dovecot.conf
 # OS: Linux 2.6.32-5-686 i686 Debian 6.0.4 ext3

[..]

 mail_location: maildir:/var/vmail/%d/%n/Maildir

[..]

 auth default:
   mechanisms: plain login
   passdb:
 driver: sql
 args: /etc/dovecot/dovecot-sql.conf
   userdb:
 driver: static
 args: uid=5000 gid=5000 home=/var/vmail/%d/%n/Maildir

[..]

 In args: uid=5000 gid=5000 home=/var/vmail/%d/%n/Maildir
 allow_all_users=yes I should delete  Maildir.

Yes, exactly.

 My question is:
 What files do I have to copy from /Maildir to the home directory
 /var/vmail/%d/%n/ ?

Everything concerning sieve should be in the home dir.

 Are there other side effects, I have to consider?

Less warnings ;)

Dennis


Re: [Dovecot] Apple od/ad authentication problem

2012-02-24 Thread Dennis Guhl
On Fri, Feb 24, 2012 at 08:55:57AM -0500, Troy Shafer wrote:
 Hello all.  Im pretty new to dovecot and postfix world. I'm completely 
 stumped.
 
 OS X 10.7.3, behind a Cisco asa NAT. 

Deactivate the SMTP improvements your ASA helpfully provide.

Dennis

[..]


Re: [Dovecot] Configuration problem?

2012-02-07 Thread Dennis Guhl
On Tue, Feb 07, 2012 at 08:08:24AM +, Anne Wilson wrote:
 On 6 February 2012 17:49, Dennis Guhl d...@dguhl.org wrote:
  On Mon, Feb 06, 2012 at 05:33:01PM +, Anne Wilson wrote:
  I have a new Scientific Linux 6.1 mail server (dovecot -n below) and
  am seeing the following in the logs, with no idea what is happening:
 
   - Dovecot Begin 
 
 
   Dovecot was killed, and not restarted afterwards.
 
  You shut dovecot down and does not restart it.
 
 It appears to be doing things without my intervention.  Despite the
 reports that it kept shutting down, Dovecot continued to serve
 messages throughout the day.

The messages logwatch shows appeared at some time within the analysed
period and are not necessarily in a time sorted order. Btw do not rely
on any summary of log files but look into the log yourself.

[..]

 You mean the version of logwatch is too old?  I'm beginning to wonder

Yes, the current version is 7.4.0 from march 2011
(http://www.logwatch.org).

 whether running an Enterprise version is such a good idea after all.

I don't know Scientific Linux but I use Debian stable on all my server
and I'm very happy with it. Nonetheless do I manually upgrade some
packages wich added needed features or are maintained by upstream.

It is crucial to know and understand the philosophy behind a
distribution and to decide if this works for you and if you can live
with the caveats resulting.

Dennis


Re: [Dovecot] Configuration problem?

2012-02-06 Thread Dennis Guhl
On Mon, Feb 06, 2012 at 05:33:01PM +, Anne Wilson wrote:
 I have a new Scientific Linux 6.1 mail server (dovecot -n below) and
 am seeing the following in the logs, with no idea what is happening:
 
  - Dovecot Begin 
 
 
  Dovecot was killed, and not restarted afterwards.

You shut dovecot down and does not restart it.

  **Unmatched Entries**
 dovecot: imap(anne): Connection closed bytes=205614/894243: 1 Time(s)

[..]

 dovecot: imap(anne): Disconnected: Logged out bytes=7914/89868: 1 Time(s)

The user closed the connection.

 dovecot: imap: Server shutting down. bytes=1309821/4473013: 1 Time(s)

[..]

 dovecot: imap: Server shutting down. bytes=3146/79269: 1 Time(s)

The server closed the connection due to a shutdown command.

 dovecot: master: Dovecot v2.0.9 starting up (core dumps disabled): 1 
 Time(s)

Dovecot did what it just said: it started.

Your logwatch is to old to knew about the messages dovecot emits to
syslog.

HTH
Dennis

[..]


Re: [Dovecot] Problem with huge IMAP Archive after Courier migration

2012-01-03 Thread Dennis Guhl
On Tue, Jan 03, 2012 at 11:55:27AM -0600, Stan Hoeppner wrote:

[..]

 I would suggest you thoroughly remove the Wheezy 2.0.15 package and

Not to use the Wheezy package might be wise.

 install the 1.2.15-7 STABLE package.  Read the documentation for 1.2.x

Alternatively you could use Stephan Bosch's repository:

deb http://xi.rename-it.nl/debian/ stable-auto/dovecot-2.0 main

Despite the warning at
http://wiki2.dovecot.org/PrebuiltBinaries#Automatically_Built_Packages
they work very stable.

 and configure it properly.  Then things will likely work as they should.

Dennis


Re: [Dovecot] crashes on 2.0.16

2011-12-22 Thread Dennis Guhl
On Thu, Dec 22, 2011 at 09:22:07AM +0100, Cor Bosman wrote:

[..]

 Actually, it hasn't. For the last few days we've been trying to
 pinpoint the problem by running half a dozen servers with different

In your initial posting you mentioned this happens on a machine wich
was updated from Lenny to Squeeze. Did you try a fresh install?
Sometimes I had some kernel related troubles in case of updateting
releases.

[..]

 Once we find the issue, i'll report back. Until then, this doesn't
 look like a dovecot problem.

Most likely it will be best to ask on a debian list.

Dennis


Re: [Dovecot] Autosubscribe new folders

2011-12-15 Thread Dennis Guhl
On Thu, Dec 15, 2011 at 03:03:40PM +0100, For@ll wrote:
 W dniu 14.12.2011 17:20, Dennis Guhl pisze:
 On Wed, Dec 14, 2011 at 01:49:39PM +0100, For@ll wrote:
 Hi,

[..]

 It doesn't work. This is a part of config file about lda:
 protocol lda {

[..]

lda_mailbox_autocreate = yes
lda_mailbox_autosubscribe = yes
 }
 I have dovecot 1.2.15

This are directives from 2.0 which won't work with dovecot 1.2.

IIRC dovecot 1.2 can only automatically create and subscribe
administratively defined folders on first login.

Dennis
-- 
Dennis Guhl
()  ascii ribbon campaign - against html e-mail 
/\  www.asciiribbon.org   - against proprietary attachments


Re: [Dovecot] Autosubscribe new folders

2011-12-14 Thread Dennis Guhl
On Wed, Dec 14, 2011 at 01:49:39PM +0100, For@ll wrote:
 Hi,

[..]

 When I get a new message, in user folder is automaticly created
 folder like subject but is not subscribed. What I must settings in
 dovecot to automaticly subscribe folders to subscriptions files.?

Add

lda_mailbox_autosubscribe = yes

to 15-lda.conf (or wherever you defined lda_mailbox_autocreate = yes).

Dennis


Re: [Dovecot] variable for gid

2011-10-26 Thread Dennis Guhl
On Wed, Oct 26, 2011 at 07:41:49AM +, Limperis Antonis wrote:
 Hi
 
 Is possible for a variable for gid of each user, such as %ifor uid .

I don't know what your question exactly is, but I tink the answer will
be no, there is no variable for GIDs.

http://wiki2.dovecot.org/Variables shows all valid variables for
Dovecot 2 (s/2/1/ works for old Dovecot).

HTH
Dennis


Re: [Dovecot] Getting the SMTP envelope through IMAP?

2011-10-22 Thread Dennis Guhl
On Sat, Oct 22, 2011 at 12:00:34AM +0200, Hadmut Danisch wrote:
 On 21.10.2011 20:02, Dennis Guhl wrote:
  The SMTP envelope does only exist within the involved MTAs and only as
  long as the message is not finally delivered.
 
 The intended use is to create a backup from a mailbox through IMAP,
 which is as close as possible to the original mbox file, thus resembling
 the FROM lines as well.

I don't think it will be possible. The tool for this would be rsync
(wich might be difficult if you only have IMAP access to the machine
in question).

 The envelope sender address does not drop it's meaning after delivery.

This I never claimed.

 It's required for debugging purposes, writing mail filters, create
 blacklist filters from detected spam, etc.

Disregarding end users mail filters this are all tasks for mailadmins
which can tell thier MTA to write a reliable Return-Path: header and
which have access to the corresponding maillog.

Dennis


Re: [Dovecot] Getting the SMTP envelope through IMAP?

2011-10-22 Thread Dennis Guhl
On Sat, Oct 22, 2011 at 11:09:28AM +0200, Hadmut Danisch wrote:
 On 22.10.2011 10:15, Dennis Guhl wrote:
  It's required for debugging purposes, writing mail filters, create
   blacklist filters from detected spam, etc.
  Disregarding end users mail filters this are all tasks for mailadmins

^^^

  which can tell thier MTA to write a reliable Return-Path: header and
  which have access to the corresponding maillog.
 
 Definitely wrong.
 
 Writing mail filters like ~/.mailfilter is a user's task. Training their
 individual spam filters as well.

. o O (  at least he didn't truncate the relevant quote this time )

 And whether you're even permitted to keep the maillog that long depends
 on your local data protection laws.

How long do you think a responsible mailadmin need to train filter.

Btw. even here in Germany, where we most likely have the most
restrictive laws regarding the protection of personal data, I am
allowed to keep the maillog as long as I can show that the log is
needed to satisfy user requests.

 And neither the Return-Path nor the  Received-Lines reveal the precise
 date of delivery as the From line contains.

Nonsense.

Every RFC conformant received line contains the full date-time as
specified in RFC 5322. Nothing else is taken into account for the mbox
From line.

Dennis


Re: [Dovecot] Getting the SMTP envelope through IMAP?

2011-10-21 Thread Dennis Guhl
On Fri, Oct 21, 2011 at 05:34:49PM +0200, Hadmut Danisch wrote:
 Hi,
 
 just a simple question about dovecot:
 
 The mbox file format contains the SMTP envelope sender and transmission
 date in a FROM ... line preceding the RFC822 mail header and body.

The line 'From foo@bar [..]' is only a seperation for different emails
in the mbox (in contrast, an RFC 822 From: is followed by a colon).

 As far as I see at the moment, the IMAP protocol does not support
 transmission of that SMTP envelope data in either way, but confusingly

The SMTP envelope does only exist within the involved MTAs and only as
long as the message is not finally delivered.

And if the MTA does not reveal the value of MAIL FROM: there will only
be the address from the Return-Path: or From: header fields to
populate the From line.

 uses the term „envelope” for a structure describing the RFC822 mail header.
 
 My question is, whether there is any way to retrieve the SMTP envelope
 through dovecot's IMAP anyway, maybe through some extension.

Hardly. Even something like FETCH 1 (BODY[HEADER.FIELDS (FROM)]) would
not reveal the mbox message seperator but the RFC 822 From: header.

Dennis


Re: [Dovecot] LMTP/Sieve/sendmail path

2011-06-03 Thread Dennis Guhl
On Fri, Jun 03, 2011 at 11:09:23AM +0200, Andreas Schulze wrote:
 Hello,
 
 I have a system using postfix multi instance feature.
 The first, main postfix-instance is a nullclient as suggested by

If you call the default instance (as in
http://www.postfix.org/MULTI_INSTANCE_README.html#default_instance)
the first, main postfix-instance and this is the null-client
instance, configured as sugested in the walk-through
(http://www.postfix.org/MULTI_INSTANCE_README.html#quick), this should
work.

What happens if you invoke sendmail manually, what happens to messages
from cronjobs?

 http://www.postfix.org/MULTI_INSTANCE_README.html#split
 
 The second instance is for real use. Postfix receive mail and
 handover them to the dovecot lmtp server.
 
 Thats working.
 
 The lmtp server supports sieve. One account has activated a vacation
 rule.  So while delivering a mail to this account, dovecot creates a
 new mail based on the vacation rules.
 
 *This one* fail. It is injected in the main postfix instance, which
 is wrong in this case.

Why is this wrong? The vacation message is a locally generated message
and as this should go to the null-client.

 I tried to start dovecot with an additional environment
 MAIL_CONFIG=/etc/postfix-instance2

I doubt this will affect the sendmail call from sieves vacation
plugin.

 and enabled alternate_config_directories in main.cf of the first
 insance.

You should not alter the config_directory for the default instance.

 ( http://www.postfix.org/postconf.5.html#alternate_config_directories
 ) I also configured the userdb to return an extrafield
 ) userdb_mail_config=/etc/postfix-instance2.

Does this even exist?

 But all produce strance postfix errors I never saw in my last 6
 years as postfix-admin.
 
 Would it be possible to configure dovecot lmtp server to use an
 external smtp-server to submit new mails ?
 
 Any other Ideas ?

If none of the above pointers help, go to the postfix-users list and
follow the guidelines in http://www.postfix.org/DEBUG_README.html#mail
when reporting the problem.

Dennis


[Dovecot] OT: Re: IMAP push

2011-05-07 Thread Dennis Guhl
This is going far off topic, let's take it off list.

On Sat, May 07, 2011 at 08:55:34AM +0200, Robert Schetterer wrote:
 Am 06.05.2011 17:02, schrieb Dennis Guhl:
  On Fri, May 06, 2011 at 03:57:23PM +0200, Robert Schetterer wrote:

[..]

  imap push means something like imap lemonade
  
  No, the LEMONADE profile (RFC 4550) is a set of extensions for IMAP.
  The focus is on saving bandwith and CPU while working with email on
  mobile devices and similar limited items. For this it describes how to
  handle email without the need to completely download it for replying
  or forwarding. There is nothing about push mail. Howerver IDLE is
  mentioned as an additionally extension which must be supportet.
  
  If you take a look on the website, you will see the push functionality
  is only a reference to IMAP IDLE as in RFC 2177.

[..]

 notice i wrote like not it is

I know what you wrote and it still is not correct.

 http://www.lemonadeformobiles.com/quick.html

This sounds like my abstract of the LEMONADE profile, just more
verbose.

[abstract_(peroration)_of_RFC2177]

This is the reference to IMAP IDLE I talked about earlier.

Dennis


Re: [Dovecot] IMAP push

2011-05-06 Thread Dennis Guhl
On Fri, May 06, 2011 at 03:57:23PM +0200, Robert Schetterer wrote:

[..]

  On Thu, May 05, 2011 at 03:53:29PM +0530, Janantha Marasinghe wrote:
  Im running dovecot v2 and want to know if it supports IMAP push
  capabilities.

[..]

 imap push means something like imap lemonade

No, the LEMONADE profile (RFC 4550) is a set of extensions for IMAP.
The focus is on saving bandwith and CPU while working with email on
mobile devices and similar limited items. For this it describes how to
handle email without the need to completely download it for replying
or forwarding. There is nothing about push mail. Howerver IDLE is
mentioned as an additionally extension which must be supportet.

If you take a look on the website, you will see the push functionality
is only a reference to IMAP IDLE as in RFC 2177.

[..]

 on android use k9 mail as best imap solution ( no need for z-push etc )
 dont know about good alternative imap clients vor iphone or blackberry

I don't know about iPhones IMAP client but the default IMAP client for
Blackberries is very good -- even better then K9, which I use on my
Android.

Dennis


Re: [Dovecot] IMAP push

2011-05-05 Thread Dennis Guhl
On Thu, May 05, 2011 at 03:53:29PM +0530, Janantha Marasinghe wrote:
 Dear all,
 Im running dovecot v2 and want to know if it supports IMAP push capabilities.

Dovecot supports IMAP IDLE as in RFC 2177
(http://tools.ietf.org/html/rfc2177).

 I have a few client who has blackberries, iphones and tabs.

Blackberries are using their own proprietary form of push service in
conjunction a Blackberry Enterprise Server. None the less they are
able to use IMAP IDLE like iPhones and other smartphones or tablet PCs.

Dennis


Re: [Dovecot] Outlook Calendar Connector Question

2011-04-28 Thread Dennis Guhl
On Thu, Apr 28, 2011 at 09:08:00AM -0700, Jake Johnson wrote:
 Is there a freeware or opensource calendar connector that will work with
 Dovecot?

 Any suggestions would be appreciated.

Take a look at bynari's Outlook Connector, it's not free (neither as
in free beer nor as in free software) but it might be your tool:

http://www.bynari.net/bynari.php?page=plugins

We never used it so I can't say anything about it.

Dennis


Re: [Dovecot] How to purge mailboxes manually [dovecot_1.2.15]

2011-04-15 Thread Dennis Guhl
On Thu, Apr 14, 2011 at 03:26:16PM -0300, Emilio Nacelle wrote:
 Hi,

[..]

 Due to some kind of problem the mails that are set for delete in the
 mail client are not being deleted in the
 mailbox (if we check the mbox the mails are marked to be purged).
 Unless the owner uses something lowlevel shell mail client like pine
 to do the purge, the mails start to pile filling the account.

Your users need to tell thier MUAs to expunge the emails.

 Is this some known bug with a fix, or is there some routine we can
 run as admins to actually purged the mails set for deletion?

This is no bug and no job for admins.

Dennis

[..]


Re: [Dovecot] different users with different quota

2011-03-23 Thread Dennis Guhl
On Wed, Mar 23, 2011 at 05:44:51PM +0100, Jim Knuth wrote:
 am 23.03.11 17:33 schrieb Sven Hartge s...@svenhartge.de:

Sorry Sven, this is not against you!

 Jim Knuthj...@jkart.de  wrote:
 
 How can one assign different users different Quota?

[..]

 Have you readhttp://wiki2.dovecot.org/Quota/Configuration  and

This link alone would have been a sufficient answer to your question.

 http://wiki2.dovecot.org/UserDatabase/ExtraFields?

This could be undoubtedly counted as spoon feeding.

Jim, RTFM!

 How your different user quotas are configured depends on the userdb
 backend you use.
 
 it`s via pam

PAM is no userdb: http://wiki2.dovecot.org/PasswordDatabase/PAM

Usually PAM is used with passwd (NSS) or static user databases. is a
direct quote from this link and should tell you which example to
follow in Sven's links.

Dennis


Re: [Dovecot] different users with different quota

2011-03-23 Thread Dennis Guhl
On Wed, Mar 23, 2011 at 07:36:20PM +0100, Jim Knuth wrote:
 am 23.03.11 18:38 schrieb Dennis Guhl d...@dguhl.org:
 On Wed, Mar 23, 2011 at 05:44:51PM +0100, Jim Knuth wrote:
 am 23.03.11 17:33 schrieb Sven Hartges...@svenhartge.de:

[..]

 Jim Knuthj...@jkart.de   wrote:
 
 How can one assign different users different Quota?

[..]

 Have you readhttp://wiki2.dovecot.org/Quota/Configuration   and
 
 This link alone would have been a sufficient answer to your question.
 
 http://wiki2.dovecot.org/UserDatabase/ExtraFields?
 
 This could be undoubtedly counted as spoon feeding.
 
 Jim, RTFM!

The key is to not only read the manual but to understand, too.

[..]

 plugin {

[garbage]

 }

What did you make believe this could actually work? 

Dennis


Re: [Dovecot] different users with different quota

2011-03-23 Thread Dennis Guhl
On Wed, Mar 23, 2011 at 07:52:39PM +0100, Jim Knuth wrote:
 am 23.03.11 19:45 schrieb Dennis Guhl d...@dguhl.org:
 On Wed, Mar 23, 2011 at 07:36:20PM +0100, Jim Knuth wrote:
 am 23.03.11 18:38 schrieb Dennis Guhld...@dguhl.org:
 On Wed, Mar 23, 2011 at 05:44:51PM +0100, Jim Knuth wrote:
 am 23.03.11 17:33 schrieb Sven Hartges...@svenhartge.de:
 
 [..]
 
 Jim Knuthj...@jkart.dewrote:
 
 How can one assign different users different Quota?
 
 [..]
 
 Have you readhttp://wiki2.dovecot.org/Quota/Configurationand
 
 This link alone would have been a sufficient answer to your question.
 
 http://wiki2.dovecot.org/UserDatabase/ExtraFields?
 
 This could be undoubtedly counted as spoon feeding.
 
 Jim, RTFM!
 
 The key is to not only read the manual but to understand, too.
 
 *lol* I understand only Bahnhof, because I understand nothing.
 Sorry, please give me an example. Thanx.

Prove that you actually read and at least try to understand the
directions we give you. Until now you stated a bad idea, answer a
question without thought and repeated your bad idea. To top it you
tried an ignorant joke and ask us to read the wiki to you.

Have a look at Eric Raymonds How To Ask Questions The Smart Way:
http://www.catb.org/~esr/faqs/smart-questions.html
particularly
http://www.catb.org/~esr/faqs/smart-questions.html#homework and
http://www.catb.org/~esr/faqs/smart-questions.html#rtfm.

 [..]
 
 plugin {
 
 [garbage]
 
 }
 
 What did you make believe this could actually work?

You should answer questions. They are usually not asked out of the
blue.

Dennis


Re: [Dovecot] dovecot proxy, imapproxy, perdition . . . or?

2011-03-19 Thread Dennis Guhl
On Sat, Mar 19, 2011 at 09:50:15PM +0100, Lorens Kockum wrote:
 Hi,
 
 I have two load-balanced dovecot servers using a single NFS
 mount. The version is 1.2.11. I chose this so that if one server

[..]

 reasons, and also that dovecot has an included proxy, and
 that its performance is better than perdition. However on
 http://wiki.dovecot.org/HowTo/ImapProxy the feature IMAP/POP3
 server with proxy feature is noted as This model is still a
 bit unfinished in current code.
 
 Is this still true? There's also a general note that This page
 was written quite a long time ago and may not match reality
 anymore . . .

I use 1.2.15 from Debian Lennys backports in a proxy configuration
for a medium three digit number of users without any problems.

Dennis


Re: [Dovecot] Master user creds for proxy stored statically/locally?

2011-03-16 Thread Dennis Guhl
Sorry for not coming back to you earlier than this.

On Sun, Mar 13, 2011 at 10:35:57PM -0400, Edward Carraro wrote:
 Thanks for the reply Dennis

dnf

 On Sun, Mar 13, 2011 at 7:19 PM, Dennis Guhl d...@dguhl.org wrote:
 
 
  You should not save the master users credentials with the mail user
  credentials. Instead you should use a dedicated userdb and passdb.
 
  For further reference have a look at
  http://wiki2.dovecot.org/Authentication/MasterUsers.
 
 I created the htpasswd file on the destination server already. Does it also
 need to be done on the proxy?

What do you mean here? Did you create a file like passwd.masterusers
with Apache's htpasswd(1) according to the wiki?

What is your configuration for the master user on the proxy
destination?

  I don't undestand your question. You can either forward plaintext
  credentials to your backend or authenticate on your proxy and go with
  the proxys master user to your backend
  (http://wiki2.dovecot.org/PasswordDatabase/ExtraFields/Proxy).
 
  Dennis
 
 
 I'm trying to authenticate on the proxy and use the master user to connect
 to the backend, just not sure how thats done.

This makes it a little tricky for me to help you. Since I use dovecot
1.2 with password forwarding and MySQL instead of LDAP I am unable to
verify or test my suggestions.

 The link for ExtraFields says I need to return: master=s and pass=s
 
 How do I state the user/pass for the master?
 
 I've compiled my proxy with ldap support and created the same master user on
 the proxy that exists on the destination server.
 
 I can telnet on the proxy still, but now its just creating user home
 directories on the proxy, and not going to the backend at all.
 
 My proxy config
 
 # 2.0.11: /usr/local/etc/dovecot/dovecot.conf
 # OS: Linux 2.6.26-2-openvz-amd64 i686 Debian 5.0.8

[..]

 auth_master_user_separator = *

[..]

 passdb {
   args = /usr/local/etc/dovecot/master-users
   driver = passwd-file
   master = yes
   pass = yes
 }

Both this you need on your backend.

 passdb {
   args = /usr/local/etc/dovecot/dovecot-ldap.conf.ext
   driver = ldap
 }

[..]

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

In your /usr/local/etc/dovecot/dovecot-ldap.conf.ext you need to query
for the users username and password as always. In conjunction to this
you query for the additional fields or giveback the  static values.

This could be something like this:
 pass_attrs=uid=user, userPassword=password, =proxy=y, hostName=host, 
=master=your_master_username, =pass=your_master_users_password

Dennis


Re: [Dovecot] Master user creds for proxy stored statically/locally?

2011-03-13 Thread Dennis Guhl
On Sun, Mar 13, 2011 at 03:26:58PM -0400, Edward Carraro wrote:
 I have successfully set up the master user on the destination server
 (2.0.11) and tests have worked. now I'm working on the proxy
 Before I had the proxy just forward everything to the backend and had the
 destination server do the authentication.
 
 My authentication is done via LDAP but not really sure how to append the
 master user and password to the users credentials after authentication is
 done.

You should not save the master users credentials with the mail user
credentials. Instead you should use a dedicated userdb and passdb.

For further reference have a look at
http://wiki2.dovecot.org/Authentication/MasterUsers.

 id rather not have the master user/pass in each users ldap entry and
 returned after doing a lookup or add a destuser field for each user...
 basically i prefer not having to add any new attributes to LDAP
 
 Can the information be stored locally in a file on the proxy? do i just make
 the same master user file that I have on the backend?

I don't undestand your question. You can either forward plaintext
credentials to your backend or authenticate on your proxy and go with
the proxys master user to your backend
(http://wiki2.dovecot.org/PasswordDatabase/ExtraFields/Proxy).

Dennis


Re: [Dovecot] RFE: IMAP LIST Extension for Special-Use Mailboxes

2011-03-11 Thread Dennis Guhl
On Fri, Mar 11, 2011 at 10:57:39PM +0100, Patrick Ben Koetter wrote:
 Timo,
 
 would you consider adding support for IMAP LIST Extension for Special-Use
 Mailboxes http://www.rfc-editor.org/rfc/rfc6154.txt any time near in the
 future?
 
 I would really love to get rid of all those folders created by all those
 different mail clients just because they can't agree to use the same folder
 for special purpose.

I would strongly endorse this request.

 Obviously clients need to support it too. Having Dovecot support it certainly
 would make them adopt the standard sooner.


[Dovecot] OT Re: auth on tcp socket?

2011-03-09 Thread Dennis Guhl
Sorry for becoming off topic. This will be my last post in this
thread.

On Wed, Mar 09, 2011 at 08:31:40AM +0100, Hajo Locke wrote:
 Hello,
 
 
 You should read Wietses post again.
 
 He told you to not rely on not documented settings since they can
 silently disappear.
 
 With postfix you can rely on the documented behaviour. So it is
 natural that there will be no warning for officially  unsupported
 features.
 
 
 yes, i know that. nobody should use undocumented  features.
 auth-service on tcp-socket was added by timo after my Suggestion
 last november.
 so when asking this on postfix's-side iam not really interested in
 current docs but wanted to suggest the update on implemention and
 docs to get it as official feature for next releases.

I can not see any feature request in your posts.

In http://archives.neohapsis.com/archives/postfix/2011-03/0111.html
you asked if inet: is a recommended mechanism or if there are
alternatives while it is not documented. Later you unconditionally
stated the warning is obsolete, implicating removal, and asked to
mention an unsupported feature in official documentation. Neither is a
feature request.

 as an user all i can do is telling some facts and ask...

But you should state your questions clearly.

Dennis


Re: [Dovecot] Dovecot + Sieve does not work

2011-03-09 Thread Dennis Guhl
On Wed, Mar 09, 2011 at 03:08:00PM +0100, Uppenbrink wrote:
 Hi,
 
 On Wed, 09 Mar 2011 14:33:56 +0100, Jimmi wrote:
 # dovecot -n
 # 1.2.16: /etc/dovecot/dovecot.conf
 # OS: Linux 2.6.26-110209 i686 Debian 6.0 ext3
 log_path: /var/log/dovecot.log
 log_timestamp: %Y-%m-%d %H:%M:%S
 protocols: imap sieve
 
 The protocol is managesieve, not sieve.
 Look at http://wiki1.dovecot.org/ManageSieve/Configuration
 
 After that in Roundcube 0.5.1 downloaded from http://roundcube.net/ I
 enabled the managesieve plugin but when I go to the filter page RC
 says that he cannot connect the server. I then realized that the port
 4190 is not open and I cannot understand why.
 In my dovecot.conf I have the section:
 protocol managesieve {
   # Specify an alternative address:port the daemon must listen on
   # (default: *:2000)
   listen = localhost:4190
 }
 
 Edit the config.inc.php from the managesieve roundcube plugin and
 change the managesieve_port. The default port is here also 2000.

Quite some time ago IANA assigned tcp port 4190 for sieve (tcp and udp
port 2000 is assaigned to cisco-sccp for yonks):

% egrep 'sieve|2000/tcp' /etc/services
cisco-sccp  2000/tcp# Cisco SCCP
sieve   4190/tcp# ManageSieve Protocol

Dennis


Re: [Dovecot] auth on tcp socket?

2011-03-08 Thread Dennis Guhl
On Tue, Mar 08, 2011 at 05:07:49PM +0100, Hajo Locke wrote:
 Hello,
 
 sorry, iam digest reader, always creating a new message...

On http://dovecot.org/cgi-bin/mailman/options/dovecot you can login to
change your membership options ;)

[..]

 The initial version, yes, but it has been heavily modified since. I
 never added that warning.
 
  Should there also made an update to support auth on tcp-socket without
  warnings from postfix side?
 
 Looks like someone already added the inet: support, so I guess it should
 work. You could ask on Postfix list to get the warning removed..
 
 wietse dont wants to change anything until it is not documented
 http://archives.neohapsis.com/archives/postfix/2011-03/0356.html
 may be the developers should talk directly to each other, i dont
 like to get forwarded to each other list to ask for reliability of
 features...

You should read Wietses post again.

He told you to not rely on not documented settings since they can
silently disappear.

With postfix you can rely on the documented behaviour. So it is
natural that there will be no warning for officially  unsupported
features.

Dennis


Re: [Dovecot] OT: Single-instance storage is bad for you!

2010-11-16 Thread Dennis Guhl

Stan Hoeppner schrieb:

Dennis Guhl put forth on 11/15/2010 5:23 PM:


I think you might have, by now, noticed OPs the humour -- so I won't
stress it.


I did.  It was weak, but it was there.  If you noticed, I responded to a


Apparently humour and sarcasm is not your strong point :)


specific point within his post, not to the entire post.  I was making a
serious point, regardless of his original intent.  This happens quite
frequently with mailing list topics. :)


Yes, I saw it sometimes happen.


Re: [Dovecot] Single-instance storage is bad for you!

2010-11-15 Thread Dennis Guhl

Stan Hoeppner schrieb:

[..]


I'm blowing nothing out of proportion.  I simply made an observation.  I


I think you might have, by now, noticed OPs the humour -- so I won't 
stress it.



don't know about Europe, or anywhere else, but in American cusiness
culture, in general, most users either dislike or outright hate the IT


I can't speak for Europe at all but in here in Germany most people like 
thier IT at large.


[..]


I believe you are making this into more than it needs to be.  Have you
ever worked in an IT environment with over 1000 users?  And those users


Yep.


all love the IT staff, baking cookies for them etc?  Send me contact


Yep.


info PLEASE so I can forward my resume.


Nope, the job is taken.

. o O (and Charles might be right, he might be bored to death)

Dennis


Re: [Dovecot] EVERYONE USING DOVECOT PLEASE SIGN: Thanks, Administrators of Dovecot!

2010-08-18 Thread Dennis Guhl
On Tue, Aug 17, 2010 at 12:28:50PM -0400, Jerrale G wrote:
 
 With the release of dovecot 2.0, the community of the Dovecot
 mailling list, and us at Shelton Computers, would sincerely like to
 thank the developers of Dovecot. For, if it were not for you, we
 would be stuck with Courier and would not have the impressive
 features of Sieve, as opposed to the unmanageable scripts, by end
 users, of maildrop.
 
 *Our gratitude  goes to, but not limited to:*
 
 *Timo Sirainen and Charles Marcus*
 
 
 *We apologize if we have missed anyone and ask that EVERYONE using
 dovecot would express their thanks and gratitude by signing this
 thread, to also include any people beyond the mentioned.*
 
 Please, Mr. Sirainen, make a donation link as we have tried to find
 one on dovecot.org!

+100

Thank you, Timo

 Sincerely,
 
 
 Jerrale Gayle,
 Senior Technical Admin of
 Shelton Computers


Re: [Dovecot] How to restart DOVECOT without rebooting

2010-05-25 Thread Dennis Guhl
On Tue, May 25, 2010 at 03:20:08PM +0100, Alexander wrote:
 Hi,
 How can one reload Dovecot without rebooting?

As a windows-user? - Impossible

As a un*x-user you would not ask this question.

dennis

P.S.
Who might find sarcasm may keep it.

P.P.S.
You would like to have a look into something like /etc/init.d/


Re: [Dovecot] wrong config file?

2010-05-10 Thread Dennis Guhl
On Mon, May 10, 2010 at 08:46:27AM -0400, Phil Howard wrote:
 On Fri, May 7, 2010 at 17:45, Dennis Guhl d...@dguhl.org wrote:
 
   You can also give the full command here instead a transport name
  defined in the master.cf. And you append all parameters directly
  behind the command.
 
 
 So I can do it either way?  I would prefer in main.cf if that is sufficient.

Yep, have a look at the provided link for further reference.

Dennis


Re: [Dovecot] wrong config file?

2010-05-10 Thread Dennis Guhl
On Mon, May 10, 2010 at 09:06:05AM -0400, Phil Howard wrote:
 On Fri, May 7, 2010 at 11:43, Dennis Guhl d...@dguhl.org wrote:
 
  Ubuntu is using dovecot-postfix.conf as the working config file if you
  install the package 'dovecot-postfix' from the Ubuntu server team. But
  if you install the seperate packages 'dovecot-[common|imapd|pop3d]'
  dovecot.conf will be used.
 
  And it might be, that your master.cf does not call dovecot deliver
  with '-c /etc/dovecot/dovecot-postfix.conf' as part of argv=.
 
 
 Apparently the config file selection is being done in /etc/init.d/dovecot so
 it applies to the daemon and probably anything started from it, but not to
 programs started elsewhere.  I'm guessing this special handling of Postfix
 is distro specific, and not part of the basic Dovecot package.  But if they
 are going to make such a change, they really should have made it fully
 consistent and universal by changing the default file name string (and maybe
 the logic to test between 2 different names) within the Dovecot programs.
 
 That init file is testing if dovecot-postfix.conf exists, and falling back
 to the default if not.
 
 If that observation is correct, then I can simply be sure of which config
 file I'm using by removing dovecot-postfix.conf and just using dovecot.conf
 only.

While not using Ubuntu I don't know if this is correct, but I agree
that they should have made the changes more consistent if they think
they are necessary at all.

Dennis


Re: [Dovecot] wrong config file?

2010-05-07 Thread Dennis Guhl
On Fri, May 07, 2010 at 10:59:45AM -0400, Phil Howard wrote:
 The sample provided config file (the one I started with by editing it)
 included the following text:
 
 # -- WARNING ---
 
  # If there's a file /etc/dovecot/dovecot-postfix.conf, which is part of
  # dovecot-postfix package, it will be used instead of dovecot.conf.
 
  # Keep in mind that, if that file exist, none of the changes in
  # /etc/dovecot/dovecot.conf will have effect on dovecot's configuration.
  # In that case you should customize /etc/dovecot/dovecot-postfix.conf.
 
  # -- WARNING ---
 
 
 So I expected it would use that by default.  It seems to not be doing so.
 Does this mean I have to modify the startup scripts to add the -c option to
 force the use of this config file?  Or should I just put all my configs in
 the default /etc/dovecot/dovecot.conf file?
 
 When doing dovecot -n it became apparent that my configs were not being
 used.  But dovecot -c /etc/dovecot/dovecot-postfix.conf -n was doing it.
 Any idea why it's not behaving as those comments described?

Ubuntu is using dovecot-postfix.conf as the working config file if you
install the package 'dovecot-postfix' from the Ubuntu server team. But
if you install the seperate packages 'dovecot-[common|imapd|pop3d]'
dovecot.conf will be used.

And it might be, that your master.cf does not call dovecot deliver
with '-c /etc/dovecot/dovecot-postfix.conf' as part of argv=.

Dennis


Re: [Dovecot] wrong config file?

2010-05-07 Thread Dennis Guhl
On Fri, May 07, 2010 at 12:34:11PM -0400, Phil Howard wrote:
 On Fri, May 7, 2010 at 11:43, Dennis Guhl d...@dguhl.org wrote:
 
  Ubuntu is using dovecot-postfix.conf as the working config file if you
  install the package 'dovecot-postfix' from the Ubuntu server team. But
  if you install the seperate packages 'dovecot-[common|imapd|pop3d]'
  dovecot.conf will be used.
 
 
 This is what I have installed:

[..]

 So, dovecot-postfix is intended as an alternative for all the others?

I don't use Ubuntu, but Debian. I think dovecot-postfix might be a
pseudo-package to omit installing all single packages but one which
'contains' everything.

  And it might be, that your master.cf does not call dovecot deliver
  with '-c /etc/dovecot/dovecot-postfix.conf' as part of argv=.
 
 
 Thanks, I'll have to check that, too.  I did not know it also needed to be
 in master.cf.  I have a reference in main.cf but it doesn't have args.
 
 smtpd_sasl_type = dovecot
 smtpd_sasl_path = private/dovecot-auth
 mailbox_command = /usr/lib/dovecot/deliver

You can also give the full command here instead a transport name
defined in the master.cf. And you append all parameters directly
behind the command.

Also have a look here:
http://www.postfix.org/postconf.5.html#mailbox_command

Dennis


Re: [Dovecot] Special user

2010-02-17 Thread Dennis Guhl

Daniel L. Miller schrieb:

[..]

Example:  accountspaya...@mydomain.com - is an alias for 
j...@mydomain.com, j...@mydomain.com, and j...@mydomain.com.  However - 
any mails sent (from a particular client software) should all only show 
accountspayable as the sender.


If you yust want to appear like comming to your clients with 'From: 
accountspaya...@mydomain.com' it might be the easiest to define a 
new identity in your MUA with accountspaya...@mydomain.com for your 
email address.


Else you create accountspaya...@mydomain.com as a normal user but 
prohibit him to login with imap or pop (like Timo suggested). In 
this case you can also implement a public mailbox with shared flags.


[..]

Dennis


Re: [Dovecot] upgrade 1.0.15-2.3+lenny1 to 1.2.9-1~bpo50+1

2010-02-11 Thread Dennis Guhl

Nikolay Shopik schrieb:

On 11.02.2010 5:11, Stan Hoeppner wrote:

System:Debian 5.0.4 Lenny
Kernel:custom 2.6.31.1 built from kernel.org source
Dovecot:1.0.15-2.3+lenny1
Available:1.2.9-1~bpo50+1


Since a few days there is 1.2.10-1~bpo50+1 available.

[..]

Before I do this upgrade I figured I'd ask first to see if there are 
any gotchas

or explosions awaiting me.  Any warnings, hints, pointers anyone?  Timo?

Thanks.


Only these
http://wiki.dovecot.org/Upgrading/1.1
http://wiki.dovecot.org/Upgrading/1.2


I did the same update some months ago and encountered some trouble with 
the config file while using the old 1.0-configuration. The plugins 
(sive, managedsieve and quota) did behave like expected.


This was solved by just copying my changes from the 1.0 config file in 
the one from 1.2.


Re: [Dovecot] Purging a large folder... anything I need to be careful of?

2010-02-10 Thread Dennis Guhl

Charles Marcus schrieb:

On 2010-02-10 12:59 AM, Dennis Guhl wrote:

Dave schrieb:

I've got a large message folder (about 40G in 'cur') that I need to
empty to a more reasonable size.  Oddly, my Thunderbird e-mail client
only sees about 2.4G of that, and has looped a few times.  What I
mean is, I thought someone was cleaning the folder out, but
Thunderbird apparently was actually just looping back to 0 every 4
gigs and starting to count up again  Ha.  But that's a sidenote.  So,
since Thunderbird 

But it's a strange one.
I have some fairly big folders (10G) too but there is no problem at
all with TB 2.0.0.23.


Not entirely accurate. TB does indeed have a big problem with mbox files


Oh, I think that should be a bug, since today files with more then 
4GB are nor rare. But using only IMAP I never encountered this 
problem and wasn't aware of it.



larger than 4GB. But as long as you don't set an IMAP folder that is
larger than 4GB to full offline mode, you should be fine, BUT... the
calculated size will be displayed using a 32-bit value, so as it
calculates the size, when it hits 4GB, it will roll over and start again
- so, a 6GB and a 10GB folder will both be displayed as 2GB...


OK, this I never observed. But there are no quotas on the folder so 
I never took a look at the size with TB.



apparently is not seeing all of the messages,


Yes it is - it is simply not calculating the folder size correctly. I
don't know if this an underlying OS issue (32-bit vs 64-bit), or a TB bug...


And what is displayed as the message count if exceed 32 bit?


what is the safest way
to delete the files straight from the 'cur' folder?  IS that safe? 
Will I mess up any of the dovecot indexes in any way??

Yes it is safe.
Dovecot has self healing abilities which will fix the index files.


I don't think dovecots indexes are affected by this - it is merely a
cosmetic TB issue.


When you go to ~/Maildir/cur/ to remove messages (as dave intend) 
dovecots indexes will indeed be affected. But it will cause no 
trouble beside throwing an entry in the log.


Re: [Dovecot] Purging a large folder... anything I need to be careful of?

2010-02-10 Thread Dennis Guhl

Timo Sirainen schrieb:

On Wed, 2010-02-10 at 13:40 +0100, Dennis Guhl wrote:
When you go to ~/Maildir/cur/ to remove messages (as dave intend) 
dovecots indexes will indeed be affected. But it will cause no 
trouble beside throwing an entry in the log.


It shouldn't even log anything. Dovecot's Maildir code was built so that
it expected there to be other non-Dovecot MUAs accessing and changing
the Maildir. Only recently I added maildir_very_dirty_syncs=yes setting
where it assumes it's the only thing accessing maildir to improve
performance.


Am I wrong or did you remove the log entry?
IIRC it was there in the past.


Re: [Dovecot] Purging a large folder... anything I need to be careful of?

2010-02-10 Thread Dennis Guhl

Timo Sirainen schrieb:

On Wed, 2010-02-10 at 14:45 +0100, Dennis Guhl wrote:

Timo Sirainen schrieb:

On Wed, 2010-02-10 at 13:40 +0100, Dennis Guhl wrote:
When you go to ~/Maildir/cur/ to remove messages (as dave intend) 
dovecots indexes will indeed be affected. But it will cause no 
trouble beside throwing an entry in the log.

It shouldn't even log anything. Dovecot's Maildir code was built so that
it expected there to be other non-Dovecot MUAs accessing and changing
the Maildir. Only recently I added maildir_very_dirty_syncs=yes setting
where it assumes it's the only thing accessing maildir to improve
performance.

Am I wrong or did you remove the log entry?
IIRC it was there in the past.


If you saw a log entry it happened because of something else, not simply
because you deleted a file from cur/ or new/.


Oh, then I think I should have a closer look when I see something 
about the indexes in the logs.


Thanks.


Re: [Dovecot] Purging a large folder... anything I need to be careful of?

2010-02-10 Thread Dennis Guhl

Charles Marcus schrieb:

On 2010-02-10 7:40 AM, Dennis Guhl wrote:

Charles Marcus schrieb:



Not entirely accurate. TB does indeed have a big problem with mbox files



Oh, I think that should be a bug, since today files with more then 4GB
are nor rare.


I agree... I've been considering opening a bug about this, but it hasn't
been high on my list since I don't have my large folders set to full
offline mode (just my Inbox mainly)...


I have no folder at all set to offline mode. So it would make no 
sense for to file this bug since I can't give any hints what goes wrong.

Maybe someone like Dave with a more urgent need will file it.

[..]


I don't think dovecots indexes are affected by this - it is merely a
cosmetic TB issue.



When you go to ~/Maildir/cur/ to remove messages (as dave intend)
dovecots indexes will indeed be affected. But it will cause no trouble
beside throwing an entry in the log.


Yes, of course the indexes will be rebuilt, but that is normal when
messages are deleted/added. I meant they won't be affected in any
abnormal way...


Yes, of course.


Re: [Dovecot] Delete messages with archivemail

2010-01-25 Thread Dennis Guhl

gstyle schrieb:

2010/1/25 Charles Marcus cmar...@media-brokers.com


Moin


You'd be better off upgrading to the latest stable version (via
backports) and using the expire plugin - its made for doing things just
like this.

http://wiki.dovecot.org/Plugins/Expire

Mh... could be an option...

Do I only install the new packages and tweak the config, or do I have to
convert the Maildirs in any way for an upgrade from Dovecot 1.0?


No, there are no problems with the Maildirs.


Anything importent to consider for the upgrade?


I encountered some trouble with the config file while using the old
1.0-configuration. Namely the plugins (sive, managedsieve and quota)
did not do what I wanted.

This was cured in fifteen minutes by copying my changes from my old
config file in the one delivered with 1.2.

In all cases you should read the webpages addressing the upgrades.


Cheers
Mario



Bye
Dennis



Re: [Dovecot] Can't receive mail from outside

2009-12-02 Thread Dennis Guhl

Joss Red schrieb:

Hi,


Hello,

I have a problem with my postfix/dovecot configuration, I can't receive 
mail from outside, i can send a mail from my mail to myself and others, 
but i can only receive one i send from myself, but when it comes from 
outside my domains, it dosn't work.


I see only smtps in your master.cf, which listens on port 465. But 
external server try to connect to plain SMTP on port 25.


Add this to your master.cf and it should work:

smtp  inet  n   -   -   -   -   smtpd


master.cf 
-
smtps inet  n   -   -   -   -   smtpd
  -o smtpd_tls_wrappermode=yes
  -o smtpd_sasl_auth_enable=yes
  -o smtpd_client_restrictions=permit_sasl_authenticated,reject


Bye
Dennis