Newbie why is dovecot classified diff then sendmail or courier

2015-09-28 Thread David Niklas
Hello, this is probably a dumb question, but I can't for the life of me
figure out why sendmail and courier are classified universally as
network-mail-mta whereas dovecot is in places like network-mail-general
or some such place. I've used several Linux distros and have noted this
keenly (they also normally classify photorec, the HD recovery tool as
hardware-photography,so this may just be a mistake).
I'm concerned that I'm looking into the wrong software for an mail
transport/delivery agent.

Thanks, David


Re: doveadm fetch line wrapping

2015-09-28 Thread Timo Sirainen
On 28 Sep 2015, at 23:35, Peter Chiochetti  wrote:
> 
>> doveadm -f table fetch -u jane 'guid hdr.Subject.utf8' mailbox a_Box | sort
>> 
> Indeed, that works, and the result is much easier to read. Thank You a lot 
> for the tip!
> 
> PS: Does mail_plugins mail_log mail_log_fiels also support this chaining of 
> decoder? If not, a feature wished for… Gonna try tomorrow or next week ;)

No, but I think it should be changed to do that always.. That would be a v2.3 
change though.


Re: doveadm fetch line wrapping

2015-09-28 Thread Peter Chiochetti

Am 2015-09-28 um 14:03 schrieb Timo Sirainen:

On 28 Sep 2015, at 14:03, Peter Chiochetti  wrote:


The manual at http://wiki2.dovecot.org/Tools/Doveadm/Deduplicate
tells how to estimate what will be expunged:


doveadm -f table fetch -u jane 'guid uid' mailbox a_Box | sort


I wanted to learn the subjects:


doveadm -f table fetch -u jane 'guid hdr.Subject' mailbox a_Box


In the output, long lines will be broken up, continuation lines starting with a 
blank (mostly), disabling the sort


doveadm -f table fetch -u jane 'guid hdr.Subject' mailbox a_Box \
| sed -e :a -e '$!N;s/\n\s//;ta' -e 'P;D' | sort --stable


Some (gnu) sed foo joins them back together, the sort works again :)


I think this would work too:

doveadm -f table fetch -u jane 'guid hdr.Subject.utf8' mailbox a_Box | sort



Indeed, that works, and the result is much easier to read. Thank You a 
lot for the tip!


PS: Does mail_plugins mail_log mail_log_fiels also support this chaining 
of decoder? If not, a feature wished for… Gonna try tomorrow or next week ;)


--
peter


v2.2.19 release candidate 2 released

2015-09-28 Thread Timo Sirainen
http://dovecot.org/releases/2.2/rc/dovecot-2.2.19.rc2.tar.gz
http://dovecot.org/releases/2.2/rc/dovecot-2.2.19.rc2.tar.gz.sig

There were still a bit too many bugs in RC1, so here's RC2. Hopefully this will 
be stable enough to become v2.2.19 final. Please test now rather than wait for 
v2.2.19 final, since v2.2.20 is unlikely to arrive anytime soon (unless there 
are some major problems).

Some fixes since RC1:

 - dict fixes, especially with pgsql
 - virtual plugin crashfixes
 - quota "count" backend fixes
 - lib-http fixes
 - some compiling fixes


Re: distuguish between different domains

2015-09-28 Thread Phil Turmel
On 09/28/2015 10:18 AM, Marco Fretz wrote:
> On 28.09.2015 10:48, Andreas Meyer wrote:

>> For my understanding it should not be possible to connect to server
>> server.aaa.de with an address line u...@bbb.de and dovecot serves
>> the mailbox of that user.
> the dovecot service does not care about the server dns name. the dns
> name resolves to the IP address on the client (roundcube) and the client
> connects to the server. if the same dovecot instance listens to all /
> both IP address, client will end up on this dovecot instance and all
> valid user-password combinations are authorized. that's the way it has
> to be, otherwise virtual / mass virtual domain hosting would not be
> possible as you cannot spawn 1000 instances on the same machine (ok, in
> theory you could do that :D)

No, it's only impossible if you are using passdb or otherwise
authenticating against real users of the system.  If you are using
virtual users (SQL, LDAP, etc.), you can include the domain name in the
auth lookups.

Phil


Re: object storage

2015-09-28 Thread Tom Johnson
I went to them to discuss 300-500,000 users, right after dovecot was  acquired 
by OpenXChange. The terms were onerous, to say the least.  It was straight 
per-user pricing with no flexibility for non-standard usage patterns.  Mostly 
they wanted to talk about OpenXChange, in which I have absolutely no interest. 

I walked away undecided: would I look at developing my own object storage 
back-end for dovecot and open-source it?  Or would I abandon dovecot entirely?  
I'm still undecided.  

> On Sep 28, 2015, at 6:18 AM, Paolo Cravero  wrote:
> 
> 
>> Timo Sirainen wrote:
>> Our typical projects have several million user accounts. I think 100k
>> users is around the minimum.
> 
> Interesting. So che choice for object storage is driven by the number of
> accounts rather than the amount of data stored? For example I am heading
> towards 10 TB online with "just" 10k users. It wouldn't be worth?
> 
> Paolo


Re: distuguish between different domains

2015-09-28 Thread Marco Fretz
On 28.09.2015 10:48, Andreas Meyer wrote:
> Hello!
>
> Marco Fretz  schrieb am 28.09.15 um 08:29:59 Uhr:
>
>> Hi Andreas,
>>
>> I'm not 100% sure what you're trying to accomplish.
>>
>> smtp_server in roundcube is the outgoing server (submission server, i.e.
>> postfix). Mailbox is IMAP (dovecot).
>> You can easily spawn 2 instances of dovecot, one serving aaa.de and one
>> serving bbb.de on different IPs.
> How do I do this?
http://wiki2.dovecot.org/RunningDovecot
I do this by creating a 2nd startup script / systemd service
you can then use another dovecot config file and specify different
listen IPs (and Ports). This is also useful for different SSL certs per
domain / ip, etc.
>
>> What exactly is the problem with 2 domains on one dovecot? I mean user
>> @aaa.de usually does not have the password for @bbb.de and vise versa.
> What is irritating me is that when there are two domains served by
> dovecot, in the client I can specify server.aaa.de although I have
> an email-address u...@bbb.de and connect as such.
>
> For my understanding it should not be possible to connect to server
> server.aaa.de with an address line u...@bbb.de and dovecot serves
> the mailbox of that user.
the dovecot service does not care about the server dns name. the dns
name resolves to the IP address on the client (roundcube) and the client
connects to the server. if the same dovecot instance listens to all /
both IP address, client will end up on this dovecot instance and all
valid user-password combinations are authorized. that's the way it has
to be, otherwise virtual / mass virtual domain hosting would not be
possible as you cannot spawn 1000 instances on the same machine (ok, in
theory you could do that :D)
>  
>> About the sending server in roundcube: I don't think there is a way to
>> have a different submission server for different sender domains in
>> roundcubde. But you could use the postfix configuration to map sender
>> domains to different outgoing connection IPs.
> Postfix is not the problem. It's the login into the IMAP-server that
> is irritating me. Or am I completely wrong?
>
> Regards
>
>   Andreas


mirroring one domain.tld to domain.tld.au

2015-09-28 Thread voytek
I have Postfix/Dovecot/postfixadmin/MySQL with several virtual mailbox
domains

one of the domains is like aname.com.au, the user also now has aname.com,
and, would like to 'mirror' most of the addresses to be u...@aname.com,
THOUGH, some are to remain as us...@aname.com.au

so, both u...@aname.com as well as u...@aname.com.au should be one user

the users retrive emails as u...@aname.com.au

longer term... some would want to use aname.com.au. some, aname.com

what's the best/proper way to do so in Dovecot ?

I think I can do Postfix with postfixadmin to "Mirror addresses of one of
your domains to another."

but what do I do at the Dovecot end...?

thanks for any pointers, suggestions or advice


Re: distuguish between different domains

2015-09-28 Thread Marco Fretz
Hi Andreas,

I'm not 100% sure what you're trying to accomplish.

smtp_server in roundcube is the outgoing server (submission server, i.e.
postfix). Mailbox is IMAP (dovecot).
You can easily spawn 2 instances of dovecot, one serving aaa.de and one
serving bbb.de on different IPs.

What exactly is the problem with 2 domains on one dovecot? I mean user
@aaa.de usually does not have the password for @bbb.de and vise versa.

About the sending server in roundcube: I don't think there is a way to
have a different submission server for different sender domains in
roundcubde. But you could use the postfix configuration to map sender
domains to different outgoing connection IPs.

Does this help? If not, please tell us more about what you're trying to do.

regards
Marco

On 27.09.2015 19:53, Andreas Meyer wrote:
> Hello!
>
> I asked myself wether it is possible to distinguish between
> different doamins in dovecot so that a user only sees his
> mailbox when he is connecting with us...@aaa.de specifying
> the server with mail.aaa.de for example.
>
> So the server does not handout the mailbox for us...@bbb.de
> when the client connects to mail.aaa.de as us...@bbb.de
>
> I have this problem with roundcube. Dovecot is responisble
> for two domains. With roundcube I can login as us...@aaa.de
> altough the client is configured like so:
> $config['smtp_server'] = 'tls://mail.bbb.de';
> and I am landing in the mailbox of us...@aaa.de
>
> Is there a way to striktly differentiate between doamins?
> Both domains have their own IP-addresses.
>
> Regards
>
>   Andreas


Re: Problem with SHA2/Geotrust and dovecot 2.0.9

2015-09-28 Thread Marco Fretz
Hi,

does the cert work if you open and output it as text with openssl command?
not sure if 2.0.9 does support sha2, I think it should - I guess it
actually depends on openssl libs not dovecot.


On 08.09.2015 15:17, Il Neofita wrote:
> Hi
> I have renew my geotrust certificate using sha2, and I have problem with
> Dovecot 2.0.9 and redhat 6.7.
> The same certificate is working in Apache.
>
> The error is
>
> dovecot: imap-login: Fatal: Can't load ssl_cert: There is no valid PEM
> certificate.
>
> and the configuration file is
>
> ssl_cert= ssl_key = ssl_ca = 
> What I should do?


Re: Sieve and forward

2015-09-28 Thread Marco Fretz
Hi,

I think the problem is you cannot resign the forwarded message... and if
you keep the original sender domain it looses the signature? I'm not a
DKIM guru though :-) Maybe just forward it as attachment from the users
address...

regards
Marco

On 18.09.2015 00:36, Il Neofita wrote:
> Hi
> I have already posted to the postfix group, however, I believe that sieve
> and dovecot should be able to fix this problem.
> When I receive a message from yahoo and the user forward it to a gmail or
> yahoo acount this email is considered as spam or rejected.
> From yahoo is rejected since it seems that I am try to send spam since the
> email should be signed with dkim.
> Is there a way to encpuslated or sign in some way.
>
> Thank you


Re: doveadm fetch line wrapping

2015-09-28 Thread Timo Sirainen
On 28 Sep 2015, at 14:03, Peter Chiochetti  wrote:
> 
> The manual at http://wiki2.dovecot.org/Tools/Doveadm/Deduplicate
> tells how to estimate what will be expunged:
> 
>> doveadm -f table fetch -u jane 'guid uid' mailbox a_Box | sort
> 
> I wanted to learn the subjects:
> 
>> doveadm -f table fetch -u jane 'guid hdr.Subject' mailbox a_Box
> 
> In the output, long lines will be broken up, continuation lines starting with 
> a blank (mostly), disabling the sort
> 
>> doveadm -f table fetch -u jane 'guid hdr.Subject' mailbox a_Box \
>> | sed -e :a -e '$!N;s/\n\s//;ta' -e 'P;D' | sort --stable
> 
> Some (gnu) sed foo joins them back together, the sort works again :)

I think this would work too:

doveadm -f table fetch -u jane 'guid hdr.Subject.utf8' mailbox a_Box | sort


doveadm fetch line wrapping

2015-09-28 Thread Peter Chiochetti

The manual at http://wiki2.dovecot.org/Tools/Doveadm/Deduplicate
tells how to estimate what will be expunged:


doveadm -f table fetch -u jane 'guid uid' mailbox a_Box | sort


I wanted to learn the subjects:


doveadm -f table fetch -u jane 'guid hdr.Subject' mailbox a_Box


In the output, long lines will be broken up, continuation lines starting 
with a blank (mostly), disabling the sort



doveadm -f table fetch -u jane 'guid hdr.Subject' mailbox a_Box \
 | sed -e :a -e '$!N;s/\n\s//;ta' -e 'P;D' | sort --stable


Some (gnu) sed foo joins them back together, the sort works again :)

--
peter


Re: distuguish between different domains

2015-09-28 Thread A.L.E.C
On 09/28/2015 10:48 AM, Andreas Meyer wrote:
> Postfix is not the problem. It's the login into the IMAP-server that
> is irritating me. Or am I completely wrong?

You are completely wrong ;) If the mailbox exist server handles it,
there's no difference from/to which "domain" was the connection. Besides
you can configure Roundcube to select server IP/host based on logon domain.

-- 
Aleksander 'A.L.E.C' Machniak
Kolab Groupware Developer[http://kolab.org]
Roundcube Webmail Developer  [http://roundcube.net]
---
PGP: 19359DC1 @@ GG: 2275252 @@ WWW: http://alec.pl


Error saving to IMAP folder

2015-09-28 Thread Peter Thomassen
Hi,

I have been using dovecot for multiple years, without a problem so far.
I'm running version 2.0.19-0ubuntu2.2.

A few weeks ago, the following problem started. When sending an e-mail
with Thunderbird, the message is saved to the "Sent" IMAP folder after
sending it out. Every few days, this



signature.asc
Description: OpenPGP digital signature


Re: distuguish between different domains

2015-09-28 Thread Andreas Meyer
Hello!

Marco Fretz  schrieb am 28.09.15 um 08:29:59 Uhr:

> Hi Andreas,
> 
> I'm not 100% sure what you're trying to accomplish.
> 
> smtp_server in roundcube is the outgoing server (submission server, i.e.
> postfix). Mailbox is IMAP (dovecot).
> You can easily spawn 2 instances of dovecot, one serving aaa.de and one
> serving bbb.de on different IPs.

How do I do this?

> What exactly is the problem with 2 domains on one dovecot? I mean user
> @aaa.de usually does not have the password for @bbb.de and vise versa.

What is irritating me is that when there are two domains served by
dovecot, in the client I can specify server.aaa.de although I have
an email-address u...@bbb.de and connect as such.

For my understanding it should not be possible to connect to server
server.aaa.de with an address line u...@bbb.de and dovecot serves
the mailbox of that user.
 
> About the sending server in roundcube: I don't think there is a way to
> have a different submission server for different sender domains in
> roundcubde. But you could use the postfix configuration to map sender
> domains to different outgoing connection IPs.

Postfix is not the problem. It's the login into the IMAP-server that
is irritating me. Or am I completely wrong?

Regards

  Andreas


Re: distuguish between different domains

2015-09-28 Thread Steffen Kaiser

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Mon, 28 Sep 2015, Andreas Meyer wrote:


For my understanding it should not be possible to connect to server
server.aaa.de with an address line u...@bbb.de and dovecot serves
the mailbox of that user.


that's virtual hosting :-)

- -- 
Steffen Kaiser

-BEGIN PGP SIGNATURE-
Version: GnuPG v1

iQEVAwUBVgkB93z1H7kL/d9rAQLwRQf9EYit7l2ZSaSQQhojeoqNKXcZj1FP9SZY
Wm+w3mI/zL/5xlWhvZPmZgTGs6aLUqU1la0zl4Nd95gRiVuG5DQPruUfu9uvG8XV
t6u+mpf4wGkeDZlkrYMSKmOrE8eUV6Bdi0fuBZrDCihChGSb8NceMn7u58uTBDFr
Pj5AmU+71OrWHisvmCjsQAelOXNpHMf+hFHxb5xJatbDl9wqf443WyoUBaVGCb2q
1rbYz+TT/5BGfLwibefmuTkzWn8ca/RryJV2GaynIyp+WynlRh5w+1Q1EPZgS/Di
xOIk7+H/JKbnlQ6quxOn9sfjiiqKEDIJmxPSRGsEJvSz9+EYxnhL7w==
=xR/L
-END PGP SIGNATURE-


Re: distuguish between different domains

2015-09-28 Thread Andreas Meyer
"A.L.E.C"  schrieb am 28.09.15 um 10:54:24 Uhr:

> On 09/28/2015 10:48 AM, Andreas Meyer wrote:
> > Postfix is not the problem. It's the login into the IMAP-server that
> > is irritating me. Or am I completely wrong?
> 
> You are completely wrong ;) If the mailbox exist server handles it,
> there's no difference from/to which "domain" was the connection. Besides
> you can configure Roundcube to select server IP/host based on logon domain.

It makes not difference when I define 
$rcmail_config['default_host'] = 'tls://mail.bbb.de';
in Roundcube. I guess the advantage of this setting
is to identify the server when the server are running
on different machines. But as long as the domains reside
on the same machine, it does not matter.

I can login as u...@aaa.de and the mailbox is served.
That's what is irritating me. But I can life with it.

Regards

  Andreas


Re: Error saving to IMAP folder

2015-09-28 Thread Peter Thomassen
Hi,

Apologies for the post. In the process of typing, I found this solution:
http://www.dovecot.org/list/dovecot/2012-January/080629.html

When closing the message window, I accidentally sent the message to the
list instead of deleting it.

Cheers,
Peter

On 09/28/2015 11:32 AM, Peter Thomassen wrote:
> Hi,
> 
> I have been using dovecot for multiple years, without a problem so far.
> I'm running version 2.0.19-0ubuntu2.2.
> 
> A few weeks ago, the following problem started. When sending an e-mail
> with Thunderbird, the message is saved to the "Sent" IMAP folder after
> sending it out. Every few days, this
> 



signature.asc
Description: OpenPGP digital signature


Re: object storage

2015-09-28 Thread Paolo Cravero

> Timo Sirainen wrote:
> Our typical projects have several million user accounts. I think 100k
> users is around the minimum.

Interesting. So che choice for object storage is driven by the number of
accounts rather than the amount of data stored? For example I am heading
towards 10 TB online with "just" 10k users. It wouldn't be worth?

Paolo


Re: object storage

2015-09-28 Thread Pierre Barre

Le 2015-09-28 15:18, Paolo Cravero a écrit :

Timo Sirainen wrote:
Our typical projects have several million user accounts. I think 100k
users is around the minimum.


Interesting. So che choice for object storage is driven by the number 
of
accounts rather than the amount of data stored? For example I am 
heading

towards 10 TB online with "just" 10k users. It wouldn't be worth?

Paolo


Since they sell it with a pricing /user, the data stored should not 
matter to them.