Re: Outlook not showing all email in inbox at random

2023-08-07 Thread Robert Schetterer via dovecot

Am 06.08.23 um 22:15 schrieb David Koski:
Note that this is not just an Outlook problem.  I have discovered that 
Thunderbird fails on the same emails but continues forward with 
synchronization instead of blocking.  Why would changing the file name 
for the email on the server make it work?  (See below.)  Now its looking 
like a Dovecot issue, no?


David Koski


for me it looks more like a problem with indexing on dovecot
have you tried to recreate the index  and/or force resync of this mailbox


https://doc.dovecot.org/3.0/man/doveadm-force-resync.1/




On 8/5/23 02:35, Marc wrote:
I have discovered a whole list of bugs in Outlook 2019 and reported 
them constantly at this Q of them, up to a point where their advised 
workarounds where even contradictory and I got blocked. One bug that 
surprised me the most (existing already for years) is that if your 
outlook profile has issues your emails are not saved in Sent, they 
just disappear. If you don't use exchange's public folders just forget 
about outlook. What is also super annoying is that if you tend to 
archive emails in folders, outlook is not able to move them to these 
folders after a specific time.


PS I think outlook on ios/android is not even a real client, they send 
your credentials to the cloud and the cloud is accessing your email.



I found the problem in Dovecot.  It was an illusion that Thunderbird
works.  Where in Outlook there are certain emails that stop
synchronization, Thunderbird continues but without loading the specific
emails.  I have copied content from a good email to the one that errors
out due to "connection reset by peer" to no avail. However, renaming the
Dovecot created file name resolves the problem and the email can now be
viewed.  The original file name that does not work in Dovecot and
renamed to:

# mv 1691104011.M395237P16733.mail\,S\=2180375\,W\=2208740\:2\,S
1691104011.M395237P16733.mail

Regards,
David Koski
dko...@sutinen.com

On 8/4/23 15:35, David Koski wrote:

I manage IT for a small office with about 10 workstations.  Dovecot
has been installed for years and is now at 2.3.4.1-5 (Debian).  I just
discovered that the user cannot see many emails in the inbox. I was
alerted when email was not appearing to be coming in for many hours.
Other users observed the same thing.  On investigation, I noticed many
inbox emails missing in the Outlook GUI from times past that were on
the server.  It appears to be a broken client (Outlook 2019) to me but
troubleshooting has yielded no solid leads.  The profile and OST files
have been re-created many times with no change in outcome.  Each time,
the inbox does not synchronize about 40 most recent emails but does
for the last one for the day before and many before that.

It may well be an Outlook issue so I'm looking for information to work
around an Outlook bug if necessary.  Thunderbird works perfectly.
Also, interestingly, I can copy email from Thunderbird (or move emails
on the server) to a temporary directory form the inbox, then move them
back and they will appear if I don't move too many at a time.

Regards,
David Koski
dko...@sutinen.com

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

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

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


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


--
[*] sys4 AG

http://sys4.de, +49 (89) 30 90 46 64
Schleißheimer Straße 26/MG, 80333 München

Sitz der Gesellschaft: München, Amtsgericht München: HRB 199263
Vorstand: Patrick Ben Koetter, Marc Schiffbauer
Aufsichtsratsvorsitzender: Florian Kirstein

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


Re: Read-only / archive mode for IMAP mailboxes?

2023-03-20 Thread Robert Schetterer

Am 20.03.23 um 18:26 schrieb Brendan Braybrook:
check out the imap acl support: 
https://doc.dovecot.org/configuration_manual/acl/


On 2023-03-20 10:12, Rᴇɴᴇ́ Pꜰᴇɪꜰꜰᴇʀ wrote:

Hello!

We are currently exploring email archiving solutions. Is there a way 
to use an
IMAP mailbox in read-only / archive mode? The requirement is that 
delibveries of
new emails should be possible (via SMTP/LMTP), but no messages should 
be deleted

via IMAP access.

Frankly I don't think this works, but maybe some of you have tried 
this already.


Regards,
René.





years ago i created a archive concept

https://blog.sys4.de/mailarchiv-mit-dovecot-und-postfix-sortiert-nach-datum-mailadressen-und-ein-ausgehend-unterordnern-de.html
read only via imap acl should also be addable

but however read

https://en.wikipedia.org/wiki/Email_archiving

when it comes to i.e

Regulatory compliance etc


--
[*] sys4 AG

http://sys4.de, +49 (89) 30 90 46 64
Schleißheimer Straße 26/MG, 80333 München

Sitz der Gesellschaft: München, Amtsgericht München: HRB 199263
Vorstand: Patrick Ben Koetter, Marc Schiffbauer
Aufsichtsratsvorsitzender: Florian Kirstein



Re: sasl service for other app

2022-12-07 Thread Robert Schetterer

Am 08.12.22 um 06:14 schrieb justina colmena ~biz:

On Wednesday, December 7, 2022 7:53:43 PM AKST, Henry R wrote:

can dovecot run as a general sasl service for other apps? such as webdav.

Thanks.


For some reason I use cyrus-sasl with postfix, but I can't get it to 
work with dovecot. Ideas? Pointers to docs online?


usally its more easy to configure dovecot,postfix with a database like 
mysql, mysql auth with i.e apache should be easy then


--
[*] sys4 AG

http://sys4.de, +49 (89) 30 90 46 64
Schleißheimer Straße 26/MG, 80333 München

Sitz der Gesellschaft: München, Amtsgericht München: HRB 199263
Vorstand: Patrick Ben Koetter, Marc Schiffbauer
Aufsichtsratsvorsitzender: Florian Kirstein



Re: new feature: sieve forward plugin

2022-09-26 Thread Robert Schetterer

Am 26.09.2022 um 15:19 schrieb Marc:

Hi Paul,

I appreciate the huge response! :)




Ok this in itself is a issue however forwards should be fully received
by the server and then resent to get around this issue.

I use the mapping feature & the database to handle forwards in postfix
which appears to work without any issues bypassing sieve.



But this creates a dependency between your dovecot mail server and your 
outgoing. You should keep things simple.


#Postgres Stuff


I am using ldap ;)
  


So when using the above postfix receives it, remaps it and resends the
email as its own thus fixing any spf issues along the way as it is sent
by the local server.


Yes always. I do not see anything that distinguishes between senders that have 
or have not set spf. It is still nice to receive the forwarded message 
unchanged (think of internal delivery)


I understand that forwarding in a sieve script might over ride this and
cause an spf failure, in that case (and i have not tried) then the sieve
script should somehow deliver local and then resend?


I have no idea, but this code forwards, so it should be possible to change the 
envelope here at this stage.

# rule:[Forward]
if false # true
{
  redirect :copy "s...@gmail.com";
}


remapping the address through postfix would be the better approach.


No, because postfix needs to know, and you create complicated relationships 
between outgoing mail servers and your mail server.
It would not surprise me if your solution is also using much more resources, 
because your solution constantly has to verify. Less cpu cycles is better for 
the environment. ;)


this would mark the email as coming from the local sending server and
the spf record sent down the line would reflect that.

spf verification would have already been verified by incoming postfix so
you are not passing along something that got rejected in the first
place?


No, not really relevant.



https://docs.microsoft.com/en-us/microsoft-365/security/office-365-
security/high-risk-delivery-pool-for-outbound-messages?view=o365-
worldwide

the above link was microsoft's explanation on why they refused to fix
their spf record.



I see a manual about "Outbound delivery pools" no explanaition of why spf 
should not have '-all'



Apparently google is now also using unverified (or insecure) servers
setup the same way.

why i have no idea?


The only reason for using ~all, is because they do not know what servers are 
sending outgoing email. Afaik this is just a statement of being incompetent. 
Google does not give a fuck if others need to clean up their mess.
  

Microsoft replied with the ticket after 3 months of messing around that
they would not fix their spf record.



Microsoft and Google are probably the companies you do 'business' with that have broken 
more laws than anyone else you know. Recently I have seen that Bill Gates is proud of his 
slogan "Why you should hire lazy people". Which undoubtedly is the cause of 
much of the shit I have with windows/exchange/outlook.
So forgive me if I do not really take Microsoft or Google as an example nor 
standard.









i wrote something about this issue

years ago

https://blog.sys4.de/email-forward-mit-sieve-ohne-spf-dmarc-und-dkim-konflikte-de.html



--
[*] sys4 AG

https://sys4.de, +49 (89) 30 90 46 64
Schleißheimer Straße 26/MG,80333 München

Sitz der Gesellschaft: München, Amtsgericht München: HRB 199263
Vorstand: Patrick Ben Koetter, Marc Schiffbauer, Wolfgang Stief
Aufsichtsratsvorsitzender: Florian Kirstein



Re: Use different log files

2022-05-16 Thread Robert Schetterer

Am 16.05.2022 um 11:58 schrieb Cristiano Deana:

Hi,

I have a mailserver with dovecot logging to syslog (by default, to 
/var/log/maillog) and my MTA (postfix) is doing the same.
I use dovecot's services imap/pop3, auth and lmtp and now logs files are 
hard to read because I havve all together MTA and these services.


Is it possibile to have different log with different services?

Example:
auth logging: /var/log/mail.auth
delivery: /var/log/mail.delivery and so on

Thank you



https://blog.sys4.de/xymon-dovecot-count-imap-pop3-logins-graph-central-rsyslog-server-ubuntu-lucid-en.html

use filter in syslog i.e

/etc/rsyslog.d/50-default.conf

...
daemon.*;mail.*;\
news.err;\
*.=debug;*.=info;\
*.=notice;*.=warn   |/dev/xconsole
...
# dovecot
:programname, isequal, "dovecot" /var/log/dovecot.log
#pop3
:msg, contains, "pop3" /var/log/dovecot-pop3.log
#imap
:msg, contains, "imap" /var/log/dovecot-imap.log
...

and dont forget to configure logrotate
too


--
[*] sys4 AG

https://sys4.de, +49 (89) 30 90 46 64
Schleißheimer Straße 26/MG,80333 München

Sitz der Gesellschaft: München, Amtsgericht München: HRB 199263
Vorstand: Patrick Ben Koetter, Marc Schiffbauer, Wolfgang Stief
Aufsichtsratsvorsitzender: Florian Kirstein


Re: AntiVirus in Maildir

2022-03-14 Thread Robert Schetterer

Am 14.03.22 um 08:17 schrieb Aki Tuomi:



On 14/03/2022 08:43 Robert Schetterer  wrote:

  
Am 14.03.22 um 05:56 schrieb Masakazu Hirose:

Hi all,

I run a mail server on Maildir.
Does Dovecot work correctly if I delete the mail files stored in
Maildir? Do I need to run the doveadm command?

I want to run a virus scan on Maildir. When a virus is detected, the
mail file is deleted without notifying Dovecot. I assumed this was
incorrect behavior for Dovecot.

Please help me when someone has time.


Thanks,
Masa


Hi, if you just delete mailfiles in maildir
dovecot does not update its index at once
it "may" it repair later , delete with doveadm is the right way

--
[*] sys4 AG



Maildir is special case in the sense that dovecot assumes that there might be 
external changes, so indexes are synced when the mailbox is opened the next 
time.


Aki


this may not work all the time, in special if you very have big mailboxes

--
[*] sys4 AG

http://sys4.de, +49 (89) 30 90 46 64
Schleißheimer Straße 26/MG, 80333 München

Sitz der Gesellschaft: München, Amtsgericht München: HRB 199263
Vorstand: Patrick Ben Koetter, Marc Schiffbauer
Aufsichtsratsvorsitzender: Florian Kirstein


Re: AntiVirus in Maildir

2022-03-14 Thread Robert Schetterer

Am 14.03.22 um 05:56 schrieb Masakazu Hirose:

Hi all,

I run a mail server on Maildir.
Does Dovecot work correctly if I delete the mail files stored in
Maildir? Do I need to run the doveadm command?

I want to run a virus scan on Maildir. When a virus is detected, the
mail file is deleted without notifying Dovecot. I assumed this was
incorrect behavior for Dovecot.

Please help me when someone has time.


Thanks,
Masa


Hi, if you just delete mailfiles in maildir
dovecot does not update its index at once
it "may" it repair later , delete with doveadm is the right way

--
[*] sys4 AG

http://sys4.de, +49 (89) 30 90 46 64
Schleißheimer Straße 26/MG, 80333 München

Sitz der Gesellschaft: München, Amtsgericht München: HRB 199263
Vorstand: Patrick Ben Koetter, Marc Schiffbauer
Aufsichtsratsvorsitzender: Florian Kirstein


Re: macOS ManageSieve client?

2022-02-20 Thread Robert Schetterer

Am 19.02.22 um 15:20 schrieb Gerben Wierda:
I have a dovecot & dovecot-sieve running under MacPorts on my macOS 
’server’. I do a very low tech maintenance on sieve, by using the cli on 
the server and edit sieve by hand for myself. I’d like to open this up 
to other users.


How do people use this from their macOS clients? For this, the 
ManageSieve protocol exists and this is implemented by dovecot-sieve, 
but other than installing roundcube and offering a web-based mail client 
that also supports ManageSieve, is there another way? A ManageSieve 
client that directly runs on the macOS client and interfaces with 
dovecot-sieve on the server?


After all, routing mail to different mailboxes better happens 
server-side so that all clients profit.


Gerben Wierda (LinkedIn )
R IT Strategy  (main site)
Book: Chess and the Art of Enterprise Architecture 


Book: Mastering ArchiMate 



Might not be exact what you want but Thunderbird has a sieve add on 
which works nice


https://addons.thunderbird.net/de/thunderbird/addon/sieve/

--
[*] sys4 AG

http://sys4.de, +49 (89) 30 90 46 64
Schleißheimer Straße 26/MG, 80333 München

Sitz der Gesellschaft: München, Amtsgericht München: HRB 199263
Vorstand: Patrick Ben Koetter, Marc Schiffbauer
Aufsichtsratsvorsitzender: Florian Kirstein


Re: High Availability Dovecot / Roundcube / PostfixAdmin ?

2021-07-10 Thread Robert Schetterer

Am 09.07.21 um 17:13 schrieb Joelly Alexander:
I do that with two Debian 10 servers - Postfix, PostfixAdmin, Dovecot, 
MariaDB, Keepalived.
MariaDB in active/active mode, each node accesses the DB via localhost, 
Dovecot with dsync replication, Keepalived for a virtual ip.
The MX record points to each node, DNS A/PTR records for the clients 
pointing to the virtual ip.


you may have a look to

https://blog.sys4.de/loadbalancing-mit-keepalived-postfix-dovecot-de.html

its old  but the loadbalancing part
maybe good enough as a pointer




I separated Roundcube from the mail server and have them running on two 
separate VM's as i didn't want to expose the webserver on the mail 
servers to the Internet.
There is also keepalived on the two webmail VM's for a virtual ip where 
the users connect to.
Both Roundcube instances connect to the DB or SMTP/LDAP server via the 
virtual ip there.


Working since almost two years without issues.

On 7/9/21 11:15 AM, White, Daniel E. (GSFC-770.0)[NICS] wrote:

This is a new setup, running on RHEL 8 with the latest everything.

Has anyone out there set up a high availability pair of Dovecot servers 

- with Roundcube and PostfixAdmin - successfully ?


"Callahan's Law: Shared pain is lessened; shared joy, increased — 

thus do we refute entropy" (Spider Robinson)






--
[*] sys4 AG

http://sys4.de, +49 (89) 30 90 46 64
Schleißheimer Straße 26/MG, 80333 München

Sitz der Gesellschaft: München, Amtsgericht München: HRB 199263
Vorstand: Patrick Ben Koetter, Marc Schiffbauer
Aufsichtsratsvorsitzender: Florian Kirstein


Re: dovecot director and keepalived

2021-03-15 Thread Robert Schetterer

Am 14.03.21 um 17:52 schrieb Steven Varco:

Hi All

I’m trying to establish a dovecot HA setup with two loadbalancers, running 
keepalived for sharing a virtual public IP.
On the same machines I’m running a dovecot director which proxies the requests 
to two underlying mail servers (on seperate machines).

Now I’m hitting the issue with the way director determines his „Self IP“ by 
trying to bind to all configured director_servers IPs, taking the first one 
possible.

However this approach only works, when the sysctl setting is: 
net.ipv4.ip_nonlocal_bind=0
On the other side keepalived needs net.ipv4.ip_nonlocal_bind=1 in order to bind 
the VIP.

The last topic on that is dating back to 2016 
(https://dovecot.org/pipermail/dovecot/2016-August/105191.html) with references 
to 2012 (https://www.dovecot.org/list/dovecot/2012-November/087033.html) and no 
solution posted so far.

After five more years :D, I’m asking myself if we finally have a solution for 
that, or if my approach of achieving clustered director servers is potentially 
wrong?

Other possible solutions I could think about:
- Configure each director as „independent“ by setting only one IP in 
director_servers.
   => With this aporach you would loose the user to mailserver mapping, 
although only in a a case of a failover on the loadbalancer, which might can be 
neglected (or are there any other fallbacks?)

- Only have director running on the currently active loadblancer node and 
stopped on the passive loadblancer node (would possibly have the same effects 
as above).

- Putting director on seperated intermediate machines and proxing the requests through 
haproxy on the keepalived servers (keepalived -> haproxy -> director -> IMAP
=> Besides the disadvantage of having another bunch of servers in the 
chain, also some special configuration on the directory servers might be 
neccessary to assure director works neatly with haproxy.


So 2021, what is the „correct“ (best practive) way of having a reduntant HA 
setup for dovecot?

This means a MUA connects to one public IP and gets connected to (preferably 
the same) IMAP Server, no matter which machine in the whole chain might be down?
PS: Using just multiple A records on the mail domain name (round-robin), while 
working perfectly for SMTP is not accepatbl for IMAP IMHO, as in case of a 
failure every second request from the client (MUA) would fail and most MUAs are 
not automatially reconnecting again in that case.

thanks,
Steven



hi ,i had this long time ago

https://blog.sys4.de/tag/keepalived.html

but dovecot has some new stuff since then, you might combinate them with 
keepalived which worked extrem good


--
[*] sys4 AG

http://sys4.de, +49 (89) 30 90 46 64
Schleißheimer Straße 26/MG, 80333 München

Sitz der Gesellschaft: München, Amtsgericht München: HRB 199263
Vorstand: Patrick Ben Koetter, Marc Schiffbauer
Aufsichtsratsvorsitzender: Florian Kirstein


Re: Long Term Archival

2021-01-29 Thread Robert Schetterer

Am 29.01.21 um 17:01 schrieb Odhiambo Washington:

Between the MTA and the IMAP4 who should be responsible for archiving?
I think if you need to keep copies of e-mails, it's better done at the 
MTA level.

Deliver one copy to the recipient and another copy to the archive.
IMHO.



off topic at dovecot but

here is a solution with homebrew postfix/dovecot blog

https://blog.sys4.de/mailarchiv-mit-dovecot-und-postfix-sortiert-nach-datum-mailadressen-und-ein-ausgehend-unterordnern-de.html

a good idea is to use maildir  for archive / every mail is a file ,you 
can hash too, depend on how much you have to store you need a storage 
which should work over years


however you should/prefer use a prof solution

something like

https://www.mailstore.com

cause of legally reasons

read

https://en.wikipedia.org/wiki/Email_archiving





On Fri, 29 Jan 2021 at 17:12, Rupert Gallagher > wrote:


Hello, I would like to know what is your strategy for legally
compliant long term archival of e-mails (up to 10 years). Thank you



--
Best regards,
Odhiambo WASHINGTON,
Nairobi,KE
+254 7 3200 0004/+254 7 2274 3223
"Oh, the cruft.", grep ^[^#] :-)



--
[*] sys4 AG

http://sys4.de, +49 (89) 30 90 46 64
Schleißheimer Straße 26/MG, 80333 München

Sitz der Gesellschaft: München, Amtsgericht München: HRB 199263
Vorstand: Patrick Ben Koetter, Marc Schiffbauer
Aufsichtsratsvorsitzender: Florian Kirstein


Re: SMTP tool for Email validation

2021-01-29 Thread Robert Schetterer

Am 29.01.21 um 09:09 schrieb Julian Kippels:

Am Fri, 29 Jan 2021 10:39:16 +0530
schrieb "Amol Kale" :


Hi,

  


We are looking for a tool for bulk SMTP testing / Email validation
using telnet or similar protocol ( which doesn't send the mails )

  


It generally involves steps like NSlookup to check MX of destination
server, opening port25, telnet to communicate with client server,
then finally checking the correctness of user email account.

  


Please connect if you have such ready tool with you or you can develop

  


Process example-

https://blog.mailtrap.io/verify-email-address-without-sending/

  


Thanks & regards

Amol Kale

Founder Director

Talent Trackers HR

7350002596



Hi,

I would recommend using the Swiss Army Knife for SMTP (swaks) for this.
It should be already included in most Linux distributions. Otherwise
you can find it here: https://github.com/jetmore/swaks

You can check the whole SMTP-Protocol chain, or you can tell swaks
after which step to abort. Your use case would be stopping after RCPT,
so you would start it using the extra flag "-q RCPT"

Julian



thats off topic dovecot

but time ago i wrote a blog, including swaks usage

https://blog.sys4.de/recipient-verification-tls-mandatory-modus-en.html

some more info

https://blog.sys4.de/outbound-dane-mit-postfix-de.html

--
[*] sys4 AG

http://sys4.de, +49 (89) 30 90 46 64
Schleißheimer Straße 26/MG, 80333 München

Sitz der Gesellschaft: München, Amtsgericht München: HRB 199263
Vorstand: Patrick Ben Koetter, Marc Schiffbauer
Aufsichtsratsvorsitzender: Florian Kirstein


Re: Looking for a guide to collect all e-mail from the ISP mail server

2020-10-26 Thread Robert Schetterer

Am 25.10.20 um 21:01 schrieb Marc Roos:
  
Maybe get something like Zimbra, such solutions also have support that

you can buy when you need it or don't have time (I guess).



-Original Message-
From: R. Diez [mailto:rdiezmail-2...@yahoo.de]
Sent: Sunday, October 25, 2020 6:57 PM
To: dovecot@dovecot.org
Subject: Looking for a guide to collect all e-mail from the ISP mail
server

Hi all:

I am evaluating mail server solutions for a small business. The trouble
is, I am only a part-time admin and a newbie to mail servers.

Most guides I have seen are rather unrealistic: they encourage you to
expose your e-mail server to the Internet, and hope that you have the
resources
to keep it patched up.

I would rather have an internal mail server that collects e-mails from a
standard ISP mail server.  It is like the old "POP3 Connector" that came
with
Microsoft Exchange.  Sometimes, there is a mailbox per user on the ISP,
and a corresponding one on the local server.  Other times, there is a
single
"catch all" or "multidrop" mailbox on the ISP.

Users can still access their internal mailboxes from outside through an
OpenVPN connection.  The goal is that only VPN, and perhaps SSH, are
accessible from the outside.  We do not need to arrange any special SMTP
configuration with the ISP either.

This kind of mail server setup is rather different to the standard
configuration. You do not normally need you own antivirus and spam
filter, and you
do not need to configure SSL certificates, MX or SPF DNS records. Most
ISP handle that correctly and economically.  Internal e-mail does not
leave
your LAN, and your internal SMTP server is just a relay for the external
ISP SMTP server.

Furthermore, most guides do not explain how to setup an autoresponder
("I am on holiday until xxx") so that users can enable theirs with the
mouse.
Editing configuration files over SSH is not really an option for normal
users. This detail is important because it could be the only thing I
need
above standard e-mail. Further groupware features can be seen as nice
but ultimately unnecessary luxury, and a basic shared calendar can be
accomplished with a separate server like https://radicale.org/ and a
calendar client like one built into Thunderbird. Hopefully, that is all
I would
need for a small business.

Can anyone point me to the kind of guide I need? Failing that, I would
need information or examples about using fetchmail, getmail or similar
software
with Dovecot.  Good or bad experiences from you guys would also help.

Each of those tools has a detailed man page, but there are many options
and ways with different advantages and disadvantages.  I would need a
simpler
guide to get started.

I am aware that there are pre-packaged mail server solutions that would
perhaps bring an easy-to-use autoresponder, but I haven't seen one yet
that
where you could tick a box like "this server is only internal and
collects mail from the ISP server" during installation. Nor have I seen
instructions
about reconfiguring the mail server for my ISP mail scenario.

I am prepared to learn more and write my own Perl scripts and/or
installation guide, but it would be stupid to waste time if something
easy already
exists.  After all, the setup I am describing (external ISP mail server
+ internal mail server) is not so weird.

Thanks in advance,
rdiez




see
https://blog.sys4.de/abholdienst-fur-mail-de.html

--
[*] sys4 AG

http://sys4.de, +49 (89) 30 90 46 64
Schleißheimer Straße 26/MG, 80333 München

Sitz der Gesellschaft: München, Amtsgericht München: HRB 199263
Vorstand: Patrick Ben Koetter, Marc Schiffbauer
Aufsichtsratsvorsitzender: Florian Kirstein


Re: forwarding email with sieve of spf domains

2020-10-25 Thread Robert Schetterer

Am 25.10.20 um 16:48 schrieb Marc Roos:


Say someone has setup spf for his domain and sends an email to a user
that has in roundcube enabled the sieve forward. If the message is
forwarded without altering the message headers, this could result in a
message being blocked or not relayed, because sending hosts ip, is not
in the spf of the from: domain.

Possible solutions are:

  -  add option if enabled, it replaces the From: with that of the email
address of the sieve user. (Maybe move the original sender to the
Reply-To header? Maybe exception for 'internal' forward?)
  -  Upon processing the message, check the spf records, if they are
enforced, do the above, otherwise do nothing.


https://tools.ietf.org/html/rfc5228#section-4.2



long time ago i did tests about this

https://blog.sys4.de/email-forward-mit-sieve-ohne-spf-dmarc-und-dkim-konflikte-de.html

perhaps it helps , but its not up2date

--
[*] sys4 AG

http://sys4.de, +49 (89) 30 90 46 64
Schleißheimer Straße 26/MG, 80333 München

Sitz der Gesellschaft: München, Amtsgericht München: HRB 199263
Vorstand: Patrick Ben Koetter, Marc Schiffbauer
Aufsichtsratsvorsitzender: Florian Kirstein


Re: How to move/reorganise existing e-mails to yearly subfolders

2020-10-20 Thread Robert Schetterer

Am 20.10.20 um 12:15 schrieb R. Diez:


First of all, thanks for your answer.

What is the problem with having huge online mailboxes? Just choose a > 
good european provider that has encryption all the way through to 
their> storage platform.


We already have a European ISP with a standard e-mail server. I wanted 
to keep our own mail server on premises, so that it is not exposed on 
the Internet. The current server fetches (and removes) all e-mails from 
the ISP. That has many advantages, for example, internal e-mail still 
works in case of an Internet outage.


If I wanted to change the setup, I would have to start evaluating such 
an "encryption all the way through to their storage platform" feature. I 
am not sure that it is worth the effort. In any case, that sounds like a 
limiting factor when choosing another ISP, in case the current one 
starts making trouble.



I had exactly the same idea about migrating. You have to think twice > 
about moving emails around of users. They do not like it ;)

 > [...]

I don't really want to do that, that's why I wrote "If I set a mailbox 
size limit, users will have to delete old mails by themselves".


I do not know much about the legal aspects, but in case we need to keep 
all e-mails for legal data retention requirements, I would like to store 
those e-mails separately, so that if a user deletes it, the original 
e-mail is still archived somewhere else.


That is why I mentioned the Postfix's BCC feature. The idea is that you 
have a separate mailbox where a separate copy of all e-mails to and from 
all users land. That is the separate mailbox where I wanted to 
reorganise e-mails by date, in order to archive the e-mails in smaller 
chunks on a yearly basis. Those e-mails do not need to be online after 
all. Chances are, they will never be needed anyway.



I have created an 'archive' environment on a distributed filesystem, 
and it

takes me quite a lot of persuading to have people (or allow me) to move
messages from common Sent and Inbox mailboxes to the Archive namespace

 > [...]

I am actually a newbie in mail service matters, but my guess is that 
there is no amount of persuasion that could possibly help. You have to 
set a hard limit per mailbox and let the users deal with it, don't you? 
Otherwise, sooner or later the server will overload. Or I would need to 
become a full-time e-mail server admin, which is not an option either!


I am actually a friend of having 2 backup disks that rotate, where one 
is always physically off premises, and offline. But I wonder how I could 
keep the backups encrypted and synchronised with 2 rotating disks. Maybe 
Veracrypt + rsync.


I am hoping that the amount of big attachments in all incoming and 
outgoing mail still fits in normal external USB 3.0 disks. Or at least a 
few years' worth of it per disk. But I still would not want to have say 
1 TB of mail data online. That would make the VM unmanageable for 
part-time sysadmins like me.




[@~]# mailbox-ls.sh testtest size

 > [...]

I would not trust anyone else's programming with my
users email, you should also not.


I am not sure that I would trust my own e-mail server programming 
abilities either. 8-)


If you have written such scripts, perhaps you could point me to some 
example scripts that I could use as a starting point for such e-mail 
reorganisation tasks?



 > [...]

But when I migrate to mdbox this is not necessary anymore.


I am not sure that I would trust a file format where the indexes cannot 
be rebuilt if they become corrupt. If I need an advanced format for 
search performance reasons, I would probably consider an SQL-based 
backend then.




I do not like the sound of "Postfix BCC feature", I use sendmail and I
can duplicate messages with that, without altering anything in them.

 > [...]

I am actually not sure yet how to achieve the copying. I am still a 
little confused anyway. 8-)


On the incoming side, I may not use Postfix at all, because Dovecot 
actually needs to download the e-mails from the ISP mail server. I am 
hoping that I can use a single "catch all" mailbox on the ISP. So I 
would need to copy the incoming e-mails in another way.


On the outgoing side, anything sent (actually per SMTP relay) through 
our internal mail server could be copied somehow with some BCC feature. 
But if the user connects to the external ISP's SMTP servers directly, 
then I cannot get a copy so easily. Maybe I need to force the users to 
always use the internal mail server for sending.


In any case, let's say that the duplicate mails, stored somewhere else 
for data retention purposes, get altered in some way, like some header 
is added or changed in a predictable way. I am thinking of a header like 
"BCC: dataretent...@example.com". Why would that be a problem?



Best regards,
   rdiez


why not use archive solution
like


Re: Version controlled (git) Maildir generated by Dovecot

2020-10-07 Thread Robert Schetterer

Am 07.10.20 um 13:20 schrieb Adam:

Thank you Vitalii.

Could you please tell me / do you know if those dovecot* files have to be also 
backed / archived?

Kind regards,

Adam


-- Původní e-mail --
Od: Vitalii 
Komu: Adam 
Datum: 7. 10. 2020 12:04:11
Předmět: Re: Version controlled (git) Maildir generated by Dovecot
My 5 cents:
Git is REVISION control, It make sense to use it if files are modified.
Email is static files so it's better to use any backup system with
archiving capabilities (gzip or similar). It provide ability to copy
partially or just some old years to another HDD that is not possible
with git.
Also you can archive by dsync to that new server with account on mdbox
account with gzip compression. That will save space and gives you full
access to all email.

P.S. there are many options to choose. I use borg to backup
everything, including email and mdbox format with separate folder for
attachments that deduplicate attachments on backups and in filesystem.







Hi, with maildir you can just use rsync
for pure backup

for archive i.e

something like

https://blog.sys4.de/mailarchiv-mit-dovecot-und-postfix-sortiert-nach-datum-mailadressen-und-ein-ausgehend-unterordnern-de.html

but there are many ways to goal this

--
[*] sys4 AG

http://sys4.de, +49 (89) 30 90 46 64
Schleißheimer Straße 26/MG, 80333 München

Sitz der Gesellschaft: München, Amtsgericht München: HRB 199263
Vorstand: Patrick Ben Koetter, Marc Schiffbauer
Aufsichtsratsvorsitzender: Florian Kirstein


Re: Syncing emails from external server like Gmail

2020-07-13 Thread Robert Schetterer

Am 13.07.2020 um 11:23 schrieb Vitalii:

On Mon, 13 Jul 2020 10:50:09 +0200
Robert Schetterer  wrote:


perhaps this help

getmail should use /usr/lib/dovecot/deliver


That is what I used before and wanted to switch off. Here is the 2 main
reasons:
  1) It add extra header overhead similar to: Received by localost at
  time, etc)
  2) It put emails in local delivery queue so syncing becomes slow.
  3) only backup, no syncing back.



https://blog.sys4.de/abholdienst-fur-mail-de.html

and/or imapsync is your friend

Don't know about imapsync but I believe it has the same disadvantages
as it isn't native dovecot.


https://blog.sys4.de/mail-migration-mit-imapsync-de.html




 its pure imap fetching, and it works like charme

--
[*] sys4 AG

https://sys4.de, +49 (89) 30 90 46 64
Schleißheimer Straße 26/MG,80333 München

Sitz der Gesellschaft: München, Amtsgericht München: HRB 199263
Vorstand: Patrick Ben Koetter, Marc Schiffbauer, Wolfgang Stief
Aufsichtsratsvorsitzender: Florian Kirstein


Re: Syncing emails from external server like Gmail

2020-07-13 Thread Robert Schetterer

Am 11.07.2020 um 13:22 schrieb Vitalii:

Greeting

I've managed to backup my emails from external email server via dsync
and imapc: protocol like this:

doveadm -Dv -o imapc_user='u...@gmail.com' -o imapc_password="pass"
-o imapc_host=imap.gmail.com backup -R -u d...@ejoom.com imapc:

taken from https://wiki.dovecot.org/Migration/Dsync

I wish to do regular syncing of 5min interval to substitute 'getmail'
program.

When I repeat the command It doesn't download all the attachments(!good)
but It seems that at retrieve all the the GUIDs and UIDs(!bad) again
that take quite long considering 30K emails.
The question is how to speed it up and retrieve only new emails? Does
anyone have a solution for regular synchronization? What is the best
way?


Logs look like this:
   
https://gist.githubusercontent.com/vnagara/87e0da1b21b51f68fd74270b3ec653b3/raw/70ebd6d98338aa80c33ecabf7f108f5e7ce10d49/dsync%2520logs.log

It wrights that "Mailboxes are equal" but still verifies all the UIDs
again.


Thanks.



perhaps this help

getmail should use /usr/lib/dovecot/deliver

https://blog.sys4.de/abholdienst-fur-mail-de.html

and/or imapsync is your friend

https://blog.sys4.de/mail-migration-mit-imapsync-de.html

--
[*] sys4 AG

https://sys4.de, +49 (89) 30 90 46 64
Schleißheimer Straße 26/MG,80333 München

Sitz der Gesellschaft: München, Amtsgericht München: HRB 199263
Vorstand: Patrick Ben Koetter, Marc Schiffbauer, Wolfgang Stief
Aufsichtsratsvorsitzender: Florian Kirstein


Re: Ms Exchange vs dovecot

2020-05-12 Thread Robert Schetterer

Am 12.05.20 um 16:45 schrieb Benny Pedersen:

On 2020-05-12 16:23, Bobber wrote:

On 5/12/20 8:45 AM, Michael Hirmke wrote:

Hi Robert,


Hi, sorry for top post
but short answer is ,there is no exchange without outlook, that is what
makes exchange a good "groupware solution", on windows only.
So compare it to dovecot makes only small sense.


Have you looked at SOGo for a groupware option?

https://sogo.nu/


or https://kopano.com/



these are not dovecot, yes i know them all and much more
and used them, also exchange, what i tried to say is

exchange/outlook are groupware solutions ( it makes no sense to look at 
it seperate ) hosted on windows servers ,in a windows active dir,you may 
compare it with other groupware solutions/combinations , but dovecot is 
a imap/pop3 server in first line, and stand for its own, just like i.e 
postfix
however it may part and/or combined/bundled in/with other groupware 
solutions.


At the end the subject question makes no sense...

--
[*] sys4 AG

http://sys4.de, +49 (89) 30 90 46 64
Schleißheimer Straße 26/MG, 80333 München

Sitz der Gesellschaft: München, Amtsgericht München: HRB 199263
Vorstand: Patrick Ben Koetter, Marc Schiffbauer
Aufsichtsratsvorsitzender: Florian Kirstein


Re: Ms Exchange vs dovecot

2020-05-12 Thread Robert Schetterer

Hi, sorry for top post
but short answer is ,there is no exchange without outlook, that is what 
makes exchange a good "groupware solution", on windows only.

So compare it to dovecot makes only small sense.

Am 12.05.20 um 13:24 schrieb Michael Hirmke:

Hi Marc,



How did you decide for the Baikal? I have been testing a long time ago


it was easy to install/configure and it was sufficient for my needs.


with this apple ccs calendarserver, but it did/does not feel right. I


I have no idea about anything regarding the Apple universe.


think there were tasks also in this one, but I am not sure anymore. I


They are called "Todos", if I get your intention right.


had argument with the developers that they should not enforce openssl
building, they did not get that they are developers and not sysadmins
and should just do development. Their approach made it cumbersome to
update the ccs server, exactly the opposite of their goal. I even saw
some issues recently that meeting invitation requests were not
compatible. Which is an issue with lots of caldav implementations. I
have everything in ldap, so that support is necessary.



I don't think people use that many exchange features, like with office
80%-90% can just do fine with libre/open office. Granting someone access
to folders is mostly it I guess. Ccs was supporting this also if I
remember correctly.


At work we use nearly everything, Exchange offers.
And thats my "fault", because when I was the admin in duty, I tried to
get most of our money we had to pay MS.

Bye.
Michael.



-Original Message-
From: (Michael Hirmke) [mailto:m...@mike.franken.de]
Sent: 09 May 2020 13:36
To: dovecot@dovecot.org
Subject: Re: Ms Exchange vs dovecot



Hi Marc,



I have recently been working/testing with exchange 2016 and started
thinking if I should even migrate to this platform. I assume more
people here have experience with exchange and this idea.



I was an Exchange admin for years and even had an Exchange server at
home for about 20 years - just for fun and for testing purposes.
Three months ago I migrated to dovecot and baikal - and dropped Exchange
completely.
This worked flawless, so *I* don't miss Exchange at all.



But:



You can't compare dovecot with Exchange, because dovecot is a mail
server, Exchange is a groupware server. This is why I added a baikal
server to my infrastructure. Baikal is a Cal- and CardDAV server, that
can replace the calendar und contact parts of Exchange.
Nevertheless you loose many features of an Exchange server after
migrating to such a setup, so if your users got used to these feature,
it wouldn't be possible to drop Exchange. It is only feasable for small
environments with few people or in a new environment, where nobody has
used an Exchange Server until now. IMHO.
This was not your question, it is meant as background information, if
you wouldn't already know that.



For your environment I can't tell if it is possible to migrate to
Exchange, because you didn't write, if you already have an Active
Directory in place, which is necessary for Exchange on premise.
If you want to use Microsoft's Azure AD and the Exchange cloud services
on top, you have to migrate your users to Azure AD. In any case you need
an Active Directory for Exchange server.



I was wondering if this is possible with a dovecot setup



1. public folder can be implemented with a public mailbox?



Yes, but public folders in Exchange are dying for years.
They still exist, but are only supported so so.
Public mailboxes in dovecot are supported full fledged.



2. authorize users via groups access to mailboxes/folders of the
public folder/mailbox. I think I saw ACL's with dovecot, does this
compare to 'folder permissions'



Not really, but I'm not an expert for permissions on public mailboxes.



3. is it possible with sieve to apply a rule on any mailbox/folder?
Thus if I 'drag' a message to a folder, the sieve rule is activated?



You can configure a folder to act on incoming mail in the folder
properties. I never tested, though, if "incoming" also applies when
copying to a folder.



Bye.
Michael.
--
Michael Hirmke





--
[*] sys4 AG

http://sys4.de, +49 (89) 30 90 46 64
Schleißheimer Straße 26/MG, 80333 München

Sitz der Gesellschaft: München, Amtsgericht München: HRB 199263
Vorstand: Patrick Ben Koetter, Marc Schiffbauer
Aufsichtsratsvorsitzender: Florian Kirstein


Re: Applying Dovecot for a large / deep folder-hierarchy archive.

2019-06-27 Thread Robert Schetterer via dovecot

Am 27.06.2019 um 07:35 schrieb Aki Tuomi via dovecot:


On 26.6.2019 22.12, Arnold Opio Oree via dovecot wrote:

Hello to you all,

I'd like to ask about my intended application of Dovecot to create a 
folder-hierarchy for storing our enterprise emails, which are treated as live 
data rather than archives for compliance or occasional / reactive retrieval.

The data is presently not that large (a few gigabytes), but it is expected to 
grow rapidly. Up to this stage the data has been contained
in a Microsoft Exchange mailbox (2013), and then in an offline PST. The move to 
the offline PST was by necessity, as the large number of
folders, and depth of hierarchy to my best understanding caused the exchange 
server / outlook / evolution mail clients to begin to
malfunction. To cope with this the archive was broken up and the bulk stored in 
the offline PST and the most active components stored in
online Exchange mailboxes.

I have some understanding of the fs mbox format, and also the mitigations to be 
made for certain characters / strings. My main concern is whether Dovecot is 
likely to be able to cope well with a large number of folders / depth of 
hierarcy.

I will really appreciate any help / advice you can give.

Best regards,

Arnold Opio Oree



Hi!

Dovecot 2.2.34/2.3 supports unlimited folder depth, the only limiting
factor is that the total name may not exceed 4096 bytes. Also individual
folder names may not exceed 255 bytes.

Prior to that the limit is 255 per folder up to 16 levels.

I can't recommend using 'mbox' storage format, please consider using
maildir or sdbox instead.

Aki



Also you may run into client limits i ve seen this with outlook, 
apple mail, thunderbird via imap in the past


--
[*] sys4 AG

https://sys4.de, +49 (89) 30 90 46 64
Schleißheimer Straße 26/MG,80333 München

Sitz der Gesellschaft: München, Amtsgericht München: HRB 199263
Vorstand: Patrick Ben Koetter, Marc Schiffbauer, Wolfgang Stief
Aufsichtsratsvorsitzender: Florian Kirstein


Re: IMAP Limitations with Outlook 2013?

2018-11-19 Thread Robert Schetterer

Am 19.11.18 um 18:49 schrieb Robert Adkins:

Good Day!

     I have a fairly new user on my network that has, over 
about 10 months, created in root inbox and nested sub-folders totaling 
over 900 individual folders.


     In the past few weeks, newly created folders will be 
visible in Outlook 2013, but when an email is moved into that folder, it 
is no longer visible. I can ssh into the server, drill down to that 
sub-folder and see the email in the folder AND it is also available to 
be seen without issue in Thunderbird.


     I know this is a longshot, but if there is some feature 
that I haven’t found in Dovecot to force Outlook to synchronize with all 
the folders/sub-folders, please let me know.


     Beyond that… With this particular users habits, over 
the next 5 years, there could be nearly 10,000 folders/sub-folders. Does 
anyone know if this will create any problems with Dovecot or is this 
JUST a Microsoft software problem?


--

Best Regards,

Robert Adkins

IT Manager/Tool Designer

Impel Industries, Inc.
586-254-5800



perhaps this helps

https://support.microsoft.com/en-gb/help/2768656/outlook-performance-issues-when-there-are-too-many-items-or-folders-in

--
[*] sys4 AG

http://sys4.de, +49 (89) 30 90 46 64
Schleißheimer Straße 26/MG, 80333 München

Sitz der Gesellschaft: München, Amtsgericht München: HRB 199263
Vorstand: Patrick Ben Koetter, Marc Schiffbauer
Aufsichtsratsvorsitzender: Florian Kirstein


Re: Dovecot submission announces CHUNKING but backend Postfix does not support it

2018-09-20 Thread Robert Schetterer

Am 20.09.2018 um 11:04 schrieb Michael Goth:

Hello,

I'm setting up Dovecot 2.3.2.1 as a submission proxy to a Postfix 
backend server. Dovecot announces CHUNKING, but the Postfix backend does 
not support (or announce) it.


HELO from Postfix:

   220 backend.mydomain.com ESMTP Postfix (Ubuntu)
   ehlo test
   250-backend.mydomain.com
   250-PIPELINING
   250-SIZE 104857600
   250-VRFY
   250-ETRN
   250-STARTTLS
   250-ENHANCEDSTATUSCODES
   250-8BITMIME
   250 DSN


HELO from Dovecot proxy:

   220 proxy.mydomain.com Dovecot ready.
   ehlo test
   250-proxy.mydomain.com
   250-8BITMIME
   250-AUTH PLAIN LOGIN
   250-BURL imap
   250-CHUNKING
   250-ENHANCEDSTATUSCODES
   250-SIZE
   250-STARTTLS
   250 PIPELINING


When a client sends BDAT, Postfix closes the connection. Here's a log 
snippet from Postfix:


   < MAIL FROM:
   > 250 2.1.0 Ok
   < RCPT TO:
   > 250 2.1.5 Ok
   < BDAT 114098 LAST
   > 502 5.5.2 Error: command not recognized
   < Content-Type: multipart/alternative; 
boundary=Apple-Mail-55D35F74-2EB7-4B3B-A607-E421DD71C07A

   > 221 2.7.0 Error: I can break rules, too. Goodbye.


Apple Mail seems to ignore the fact that Postfix does not understand 
BDAT and Postfix does not like that :-)



 From a quick glance at the code it seems CHUNKING is always added to 
the capabilities and that's not configurable. Is this a bug or am I 
doing something wrong?



Thanks,

  Michael


that "may" version depend

http://www.postfix.org/features.html
...
Postfix 3.4 	SMTP server support for RFC 3030 CHUNKING (without 
BINARYMIME).

...

--
[*] sys4 AG

https://sys4.de, +49 (89) 30 90 46 64
Schleißheimer Straße 26/MG,80333 München

Sitz der Gesellschaft: München, Amtsgericht München: HRB 199263
Vorstand: Patrick Ben Koetter, Marc Schiffbauer, Wolfgang Stief
Aufsichtsratsvorsitzender: Florian Kirstein


Re: Best way to move mail from one server to another

2018-09-06 Thread Robert Schetterer

Am 05.09.2018 um 07:37 schrieb Aki Tuomi:



On 04 September 2018 at 23:20 Robert Schetterer  wrote:


Am 04.09.2018 um 18:27 schrieb Sami Ketola:




On 4 Sep 2018, at 18.38, Robert Schetterer  wrote:

Sorry i migrated terrabytes of mail with imapsync and never had a
problem, it works as designed, also with maildir rsync did a good job,
what never worked as it should was dsync ,cause of bugs ,that may
changed now



I would like to very much hear about the problems you had with dsync as we have 
successfully migrated tens of petabytes of mails with it successfully while 
preserving the UID numbers.
Imapsync would have been totally out of question as it is absolutely crucial in 
those migrations to keep the UID -> MAIL pairs matching legacy server. And 
usually also POP3 UIDLs. If not keeping the data the servers would have literally 
melted under load when switching over then of thousands of users forcing them to 
redownload headers of even mail bodies for millions of mails.

Sami




I think you should know the dove buglist, i used dovecot since the beginning
and believe me dsync had a lot of problems, as i stated i hope this had
changed now. I didnt used/tested it again the last years cause i had no
big migration job to do, we ever tried to use it that days cause youre
right we would have prefer not broke pop3 stuff at migration. But it
never worked, so imapsync was the best way to go, also having courier,
cyrus migrations with format/namespace change etc.

Imapsync works as designed and migration might not be ideal at some
points but it has no real stoppers if migration is well prepared and
organized.


Best Regards
MfG Robert Schetterer


There has been progress with dsync in the past years, and it can do courier and cyrus 
migrations with format/namespace changes. "Few years ago" is a long time.


we will give a retry end of this year and report



Aki


--
[*] sys4 AG

http://sys4.de, +49 (89) 30 90 46 64
Schleißheimer Straße 26/MG, 80333 München

Sitz der Gesellschaft: München, Amtsgericht München: HRB 199263
Vorstand: Patrick Ben Koetter, Marc Schiffbauer
Aufsichtsratsvorsitzender: Florian Kirstein



--
[*] sys4 AG

https://sys4.de, +49 (89) 30 90 46 64
Schleißheimer Straße 26/MG,80333 München

Sitz der Gesellschaft: München, Amtsgericht München: HRB 199263
Vorstand: Patrick Ben Koetter, Marc Schiffbauer, Wolfgang Stief
Aufsichtsratsvorsitzender: Florian Kirstein


Re: Best way to move mail from one server to another

2018-09-04 Thread Robert Schetterer
Am 04.09.2018 um 18:27 schrieb Sami Ketola:
> 
> 
>> On 4 Sep 2018, at 18.38, Robert Schetterer  wrote:
>>
>> Sorry i migrated terrabytes of mail with imapsync and never had a
>> problem, it works as designed, also with maildir rsync did a good job,
>> what never worked as it should was dsync ,cause of bugs ,that may
>> changed now
>>
> 
> I would like to very much hear about the problems you had with dsync as we 
> have successfully migrated tens of petabytes of mails with it successfully 
> while preserving the UID numbers.
> Imapsync would have been totally out of question as it is absolutely crucial 
> in those migrations to keep the UID -> MAIL pairs matching legacy server. And 
> usually also POP3 UIDLs. If not keeping the data the servers would have 
> literally melted under load when switching over then of thousands of users 
> forcing them to redownload headers of even mail bodies for millions of mails.
> 
> Sami
> 
> 

I think you should know the dove buglist, i used dovecot since the beginning
and believe me dsync had a lot of problems, as i stated i hope this had
changed now. I didnt used/tested it again the last years cause i had no
big migration job to do, we ever tried to use it that days cause youre
right we would have prefer not broke pop3 stuff at migration. But it
never worked, so imapsync was the best way to go, also having courier,
cyrus migrations with format/namespace change etc.

Imapsync works as designed and migration might not be ideal at some
points but it has no real stoppers if migration is well prepared and
organized.


Best Regards
MfG Robert Schetterer

-- 
[*] sys4 AG

http://sys4.de, +49 (89) 30 90 46 64
Schleißheimer Straße 26/MG, 80333 München

Sitz der Gesellschaft: München, Amtsgericht München: HRB 199263
Vorstand: Patrick Ben Koetter, Marc Schiffbauer
Aufsichtsratsvorsitzender: Florian Kirstein


Re: Best way to move mail from one server to another

2018-09-04 Thread Robert Schetterer
Am 04.09.2018 um 17:18 schrieb Sami Ketola:
> 
> 
>> On 4 Sep 2018, at 18.00, Robert Schetterer  wrote:
>>
>> Am 04.09.2018 um 16:52 schrieb Sami Ketola:
>>>
>>>
>>>> On 4 Sep 2018, at 17.47, Robert Schetterer  wrote:
>>>>
>>>> Am 04.09.2018 um 09:41 schrieb Sami Ketola:
>>>>> imapsync always loses data
>>>>
>>>> never saw this, be carefull by anounce such myths
>>>
>>>
>>> It is a fact. Imapsync works over IMAP only and IMAP protocol does not even 
>>> support transferring all data. At most at least UID numbering will be lost 
>>> and end users need to invalidate their local caches.
>>
>> but using "looses data" might others think it also may fail with imap,
>> so be more detailed next time
> 
> 
> UID number is also data that is saved on the IMAP backend. If that is lost 
> then it's "lost data".
> 
> Sami
> 

Sorry i migrated terrabytes of mail with imapsync and never had a
problem, it works as designed, also with maildir rsync did a good job,
what never worked as it should was dsync ,cause of bugs ,that may
changed now

so this is my answer to topic

 "Best way to move mail from one server to another"

after all there is no "best way", there are a few ways
choose the one which fits best to your needs goals and starting points (
kind of servers etc )

Best Regards
MfG Robert Schetterer

-- 
[*] sys4 AG

http://sys4.de, +49 (89) 30 90 46 64
Schleißheimer Straße 26/MG, 80333 München

Sitz der Gesellschaft: München, Amtsgericht München: HRB 199263
Vorstand: Patrick Ben Koetter, Marc Schiffbauer
Aufsichtsratsvorsitzender: Florian Kirstein


Re: Best way to move mail from one server to another

2018-09-04 Thread Robert Schetterer
Am 04.09.2018 um 16:52 schrieb Sami Ketola:
> 
> 
>> On 4 Sep 2018, at 17.47, Robert Schetterer  wrote:
>>
>> Am 04.09.2018 um 09:41 schrieb Sami Ketola:
>>> imapsync always loses data
>>
>> never saw this, be carefull by anounce such myths
> 
> 
> It is a fact. Imapsync works over IMAP only and IMAP protocol does not even 
> support transferring all data. At most at least UID numbering will be lost 
> and end users need to invalidate their local caches.

but using "looses data" might others think it also may fail with imap,
so be more detailed next time
> 
> Sami
> 



Best Regards
MfG Robert Schetterer

-- 
[*] sys4 AG

http://sys4.de, +49 (89) 30 90 46 64
Schleißheimer Straße 26/MG, 80333 München

Sitz der Gesellschaft: München, Amtsgericht München: HRB 199263
Vorstand: Patrick Ben Koetter, Marc Schiffbauer
Aufsichtsratsvorsitzender: Florian Kirstein


Re: Best way to move mail from one server to another

2018-09-04 Thread Robert Schetterer
Am 04.09.2018 um 09:41 schrieb Sami Ketola:
> imapsync always loses data

never saw this, be carefull by anounce such myths


Best Regards
MfG Robert Schetterer

-- 
[*] sys4 AG

http://sys4.de, +49 (89) 30 90 46 64
Schleißheimer Straße 26/MG, 80333 München

Sitz der Gesellschaft: München, Amtsgericht München: HRB 199263
Vorstand: Patrick Ben Koetter, Marc Schiffbauer
Aufsichtsratsvorsitzender: Florian Kirstein


Re: Auto configure email clients from Dovecot?

2018-06-30 Thread Robert Schetterer
Am 30.06.2018 um 19:37 schrieb Davide Marchi:
> 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?
> 
> Many many thanks!
> 
> Davide
> Italy

see

https://automx.org/en/

https://blog.sys4.de/outlook-2013-special-use-mit-dovecot-de.html

https://wiki.dovecot.org/MailboxSettings


Best Regards
MfG Robert Schetterer

-- 
[*] sys4 AG

http://sys4.de, +49 (89) 30 90 46 64
Schleißheimer Straße 26/MG, 80333 München

Sitz der Gesellschaft: München, Amtsgericht München: HRB 199263
Vorstand: Patrick Ben Koetter, Marc Schiffbauer
Aufsichtsratsvorsitzender: Florian Kirstein


Re: limit pop login per user and per minute

2018-03-22 Thread Robert Schetterer
Am 22.03.2018 um 12:42 schrieb Robert Schetterer:
> Am 22.03.2018 um 11:21 schrieb Markus Eckerl:
>> Hi,
>>
>> like I have written in the subject line I want to limit the pop login
>> per user and per minute.
>>
>> Currently I am having several customers which are fetching their email
>> with popcon (MS Exchange).
>>
>> This has never been a problem. But... They all have got the same
>> "technician" which take care of their systems.
>>
>> The problem is, that he misconfigured the servers of these customers. In
>> detail: their servers are trying to fetch email every 2 - 5 seconds. For
>> every email address.
>>
>> In the past I contacted the technician and told him about his mistake.
>> He was not very helpful and simply told me that he is doing the same
>> configuration since several years at all of his customer servers.
>> Without problems. It is up to me to fix my problem myself.
>>
>> Well, I googled a lot but all I found is to limit for a specific IP or
>> for a secific account. Both is not what I am looking for.
>>
>> Maybe someone can give me a hint?
>>
>> Thanks and kind regards
>>
>> Markus
>>
>>
>>
> 
> I had about 5000 popcon users in the past , dovecot can handle this
> if you turn right parameters on. As far i remember there were also 2
> different ways to configure popcon, users per time or all users in one
> session ( which was really bullshit ) , after all i wouldnt recommand
> trying limiting ,that might lead to further problems. Your customer has
> to understand his misconfiguration
> 
> some graph of that time is here
> 
> https://blog.sys4.de/xymon-dovecot-count-imap-pop3-logins-graph-central-rsyslog-server-ubuntu-lucid-en.html
> 
> 
> 
> 

beside iptables recent, or fail2ban
which may have unwanted side effects and only work by ip

here was a post with a dovecot solution

https://www.dovecot.org/list/dovecot/2017-July/108521.html

never tested this


Best Regards
MfG Robert Schetterer

-- 
[*] sys4 AG

http://sys4.de, +49 (89) 30 90 46 64
Schleißheimer Straße 26/MG, 80333 München

Sitz der Gesellschaft: München, Amtsgericht München: HRB 199263
Vorstand: Patrick Ben Koetter, Marc Schiffbauer
Aufsichtsratsvorsitzender: Florian Kirstein


Re: limit pop login per user and per minute

2018-03-22 Thread Robert Schetterer

Am 22.03.2018 um 11:21 schrieb Markus Eckerl:

Hi,

like I have written in the subject line I want to limit the pop login
per user and per minute.

Currently I am having several customers which are fetching their email
with popcon (MS Exchange).

This has never been a problem. But... They all have got the same
"technician" which take care of their systems.

The problem is, that he misconfigured the servers of these customers. In
detail: their servers are trying to fetch email every 2 - 5 seconds. For
every email address.

In the past I contacted the technician and told him about his mistake.
He was not very helpful and simply told me that he is doing the same
configuration since several years at all of his customer servers.
Without problems. It is up to me to fix my problem myself.

Well, I googled a lot but all I found is to limit for a specific IP or
for a secific account. Both is not what I am looking for.

Maybe someone can give me a hint?

Thanks and kind regards

Markus





I had about 5000 popcon users in the past , dovecot can handle this
if you turn right parameters on. As far i remember there were also 2 
different ways to configure popcon, users per time or all users in one 
session ( which was really bullshit ) , after all i wouldnt recommand
trying limiting ,that might lead to further problems. Your customer has 
to understand his misconfiguration


some graph of that time is here

https://blog.sys4.de/xymon-dovecot-count-imap-pop3-logins-graph-central-rsyslog-server-ubuntu-lucid-en.html



--
[*] sys4 AG

https://sys4.de, +49 (89) 30 90 46 64
Schleißheimer Straße 26/MG,80333 München

Sitz der Gesellschaft: München, Amtsgericht München: HRB 199263
Vorstand: Patrick Ben Koetter, Marc Schiffbauer, Wolfgang Stief
Aufsichtsratsvorsitzender: Florian Kirstein


Re: Outlook 2016 IMAP trouble

2018-03-05 Thread Robert Schetterer
Am 05.03.2018 um 17:44 schrieb Robert Giles:
> On 2018-03-05 at 10:40, Robert Schetterer wrote:
>> Am 05.03.2018 um 09:45 schrieb G:
>>> Hello List,
>>>
>>> I'm facing an issue with dovecot (2.2.27) IMAP  and Outlook as a client.
>>>
>>> George
>>
>> i have no Outlook 2016 to test but if you setup is right
>> no trouble should come up, however simply look in the dovecot log files
>> what your user did, perhaps he was offline and only thinking that he
>> synced via imap
> 
> I've observed similar behavior for a user with Outlook 2013 and Panda
> IMAP;  when synchronization failed for whatever reason, Outlook wasn't
> very verbose about it, and the user continued operating for several
> months not realizing their local mailbox had entirely diverged from the
> "true" contents on the IMAP server.
> 
> Robert
> 

never had this with Outlook 2013
but ost files may brake any time , also with exchange
mostly with big mailboxes, and there is less you can do against buggy
users, give them webmail to show real imap status on the server



Best Regards
MfG Robert Schetterer

-- 
[*] sys4 AG

http://sys4.de, +49 (89) 30 90 46 64
Schleißheimer Straße 26/MG, 80333 München

Sitz der Gesellschaft: München, Amtsgericht München: HRB 199263
Vorstand: Patrick Ben Koetter, Marc Schiffbauer
Aufsichtsratsvorsitzender: Florian Kirstein


Re: getmail, dovecot, virtual users

2018-03-05 Thread Robert Schetterer
Am 05.03.2018 um 15:46 schrieb David Mehler:
> Hello,
> 
> I've got a dovecot setup with virtual users coming from a MySQL
> database. The only system user I have is the vmail owner of the email
> store. What i'd like to do is use the program getmail to back up my
> gmail account and place that in my user's virtual mail store. I'm
> having issues making the configuration file and where to put it.
> Should it go in the virtual user's home directory or somewhere else
> and run by which user root or the vmail user?
> 
> If anyone has this working any suggestions appreciated.
> 
> Thanks.
> Dave.
> 

here is a example

https://blog.sys4.de/abholdienst-fur-mail-de.html

...
[destination]
type = MDA_external
path = /usr/lib/dovecot/deliver
arguments = ("-d", "u...@server.com")
user = vmail
group = vmail

may the magic youre looking for


Best Regards
MfG Robert Schetterer

-- 
[*] sys4 AG

http://sys4.de, +49 (89) 30 90 46 64
Schleißheimer Straße 26/MG, 80333 München

Sitz der Gesellschaft: München, Amtsgericht München: HRB 199263
Vorstand: Patrick Ben Koetter, Marc Schiffbauer
Aufsichtsratsvorsitzender: Florian Kirstein


Re: Outlook 2016 IMAP trouble

2018-03-05 Thread Robert Schetterer
Am 05.03.2018 um 09:45 schrieb G:
> Hello List,
> 
> I'm facing an issue with dovecot (2.2.27) IMAP  and Outlook as a client.
> I have some users that use
> Outlook (2016) as  a client . One of them has a desktop PC in the office
> and a laptop machine
> which I've setup some days ago . The user did some work, during the
> weekend, in his laptop
> (filling messages into IMAP folders) and to his (and mine) surprise,
> today in the office he saw that none of his
> work is reflected on the server. Messages are not where they supposed to
> be .Tomorrow he will bring the laptop
> over to check, but I have seen this problem again in the past  again
> with outlook 2016 as a client
> (specifically I've had a user which during work he was deleting or
> renaming folders which appear fine
> on his copy of outlook (ost) but not on the server). Anyone has any
> experience with dovecot and outlook
> and related problems ?
> 
> 
> thanks in advance
> George

by the way ost file may broke any time

https://support.office.com/en-us/article/repair-outlook-data-files-pst-and-ost-25663bc3-11ec-4412-86c4-60458afc5253

Recreate an offline Outlook Data File (.ost)

Some account types, such as Microsoft Exchange Server, use an offline
Outlook Data File (.ost). This type of data file is a copy of
information saved on your mail server. If you encounter problems with an
offline Outlook Data File (.ost), the file can be deleted and recreated
by downloading a copy of your items again. We don't recommend repairing
an offline Outlook Data File, so if your offline data file isn't usable,
you should recreate it.


Best Regards
MfG Robert Schetterer

-- 
[*] sys4 AG

http://sys4.de, +49 (89) 30 90 46 64
Schleißheimer Straße 26/MG, 80333 München

Sitz der Gesellschaft: München, Amtsgericht München: HRB 199263
Vorstand: Patrick Ben Koetter, Marc Schiffbauer
Aufsichtsratsvorsitzender: Florian Kirstein


Re: Outlook 2016 IMAP trouble

2018-03-05 Thread Robert Schetterer
Am 05.03.2018 um 09:45 schrieb G:
> Hello List,
> 
> I'm facing an issue with dovecot (2.2.27) IMAP  and Outlook as a client.
> I have some users that use
> Outlook (2016) as  a client . One of them has a desktop PC in the office
> and a laptop machine
> which I've setup some days ago . The user did some work, during the
> weekend, in his laptop
> (filling messages into IMAP folders) and to his (and mine) surprise,
> today in the office he saw that none of his
> work is reflected on the server. Messages are not where they supposed to
> be .Tomorrow he will bring the laptop
> over to check, but I have seen this problem again in the past  again
> with outlook 2016 as a client
> (specifically I've had a user which during work he was deleting or
> renaming folders which appear fine
> on his copy of outlook (ost) but not on the server). Anyone has any
> experience with dovecot and outlook
> and related problems ?
> 
> 
> thanks in advance
> George

i have no Outlook 2016 to test but if you setup is right
no trouble should come up, however simply look in the dovecot log files
what your user did, perhaps he was offline and only thinking that he
synced via imap


Best Regards
MfG Robert Schetterer

-- 
[*] sys4 AG

http://sys4.de, +49 (89) 30 90 46 64
Schleißheimer Straße 26/MG, 80333 München

Sitz der Gesellschaft: München, Amtsgericht München: HRB 199263
Vorstand: Patrick Ben Koetter, Marc Schiffbauer
Aufsichtsratsvorsitzender: Florian Kirstein


Re: use IMAP and POP3 simultaneously (single inbox)

2018-02-27 Thread Robert Schetterer
Am 28.02.2018 um 01:17 schrieb Stanislaw Findeisen:
> Hi
> 
> Is it safe to use IMAP and POP3 simultaneously to access the same inbox
> (using Maildir structure)?
> 
> Thanks!
> Stanisław
> 

It works as designed, you may use virtual plugin with it , too


Best Regards
MfG Robert Schetterer

-- 
[*] sys4 AG

http://sys4.de, +49 (89) 30 90 46 64
Schleißheimer Straße 26/MG, 80333 München

Sitz der Gesellschaft: München, Amtsgericht München: HRB 199263
Vorstand: Patrick Ben Koetter, Marc Schiffbauer
Aufsichtsratsvorsitzender: Florian Kirstein


Re: Client Identification

2018-01-12 Thread Robert Schetterer
Am 12.01.2018 um 21:17 schrieb spaceman:
> I have two seperate clients (using fetchmail) on two seperate machines that 
> use the same login and the same ip address as each other fetching their mail 
> over IMAP using IMAP idle. Naturally Dovecot assumes that they are the same 
> machine but they are not so messages only get downloaded to one of the 
> machines rather than both which is what I want. How do I get Dovecot to 
> recognize them as two individual clients so that mail downloads to both of 
> them?
> 
> Regards,
> spaceman
> 


fetchmail shouldn be your first choice , better use  or verify with getmail

http://pyropus.ca/software/getmail/
https://blog.sys4.de/abholdienst-fur-mail-de.html

however an idea maybe use one imap over 143 and tls
the other one via imaps 993 hopefully this is uniq enough for dovecot

Best Regards
MfG Robert Schetterer

-- 
[*] sys4 AG

http://sys4.de, +49 (89) 30 90 46 64
Schleißheimer Straße 26/MG, 80333 München

Sitz der Gesellschaft: München, Amtsgericht München: HRB 199263
Vorstand: Patrick Ben Koetter, Marc Schiffbauer
Aufsichtsratsvorsitzender: Florian Kirstein


Re: POP3 lock

2017-12-19 Thread Robert Schetterer
Am 19.12.2017 um 21:32 schrieb The Doctor:
> This might be trivial or not.
> 
> I have a customer access his e-mail via POP3 using multiple devs.
> 
> I recommend they switch to IMAP , however,
> 
> How can the POP3 locking be made into a non-issue?
> 
> --
> Member - Liberal International This is doctor@@nl2k.ab.ca Ici 
> doctor@@nl2k.ab.ca
> Yahweh, Queen & country!Never Satan President Republic!Beware AntiChrist 
> rising!
> https://www.empire.kred/ROOTNK?t=94a1f39b  Look at Psalms 14 and 53 on Atheism
> Happy Christmas 2017 and Merry New Year 2018
> 

once, i had a customer which did thousends of parallel pop3 downloads
you might need some tuning ( see wiki ) but dovecot on modern hardware
can easy handle it, pop3 feature "let mails stay on the server" is done
in/by the pop3 client , so you shouldnt run in major problems

Best Regards
MfG Robert Schetterer

-- 
[*] sys4 AG

http://sys4.de, +49 (89) 30 90 46 64
Schleißheimer Straße 26/MG, 80333 München

Sitz der Gesellschaft: München, Amtsgericht München: HRB 199263
Vorstand: Patrick Ben Koetter, Marc Schiffbauer
Aufsichtsratsvorsitzender: Florian Kirstein


Re: New Dovecot service: SMTP Submission (RFC6409)

2017-12-12 Thread Robert Schetterer
Am 12.12.2017 um 00:14 schrieb Stephan Bosch:
> Hi,
> 
> As some of you know, I started implementing the SMTP submission proxy a
> few years ago. It acts as a front-end for any MTA, adding the necessary
> functionality for an SMTP submission service, also known as a Mail
> Submission Agent (MSA) (https://tools.ietf.org/html/rfc6409). The main
> reason I created this, back then, was implementing the BURL capability
> (https://tools.ietf.org/html/rfc4468). The main application of that
> capability -- together with IMAP URLAUTH -- is avoiding a duplicate
> upload of submitted e-mail messages; normally the message is both sent
> through SMTP and uploaded to the "Sent" folder through IMAP. Using BURL,
> the client can first upload the message to IMAP and then use BURL to
> make the SMTP server fetch the message from IMAP for submission, thereby
> avoiding a second upload. Apart from BURL, the submission proxy service 
> also adds the required AUTH support, avoiding the need to configure the
> MTA for SASL authentication. More SMTP capabilities like CHUNKING and
> SIZE are supported, without requiring the backend MTA supporting these
> extensions. Other capabilities like DSN currently require support from
> the backend/relay MTA.
> 
> At this point, the submission proxy is still pretty basic. However, it
> will provide a basis for adding all kinds of functionality in the (not
> so distant) future. For the first time, it will be possible to act upon
> message submission, rather than only message retrieval; e.g. plugins can
> be devised that process outgoing messages somehow. Examples of the
> things we could do are adding Sieve filtering support for outgoing
> messages, or implicitly storing submitted messages to the Sent folder.
> Once a plugin API is devised, you can create your own plugins.
> 
> The reason I send this message now, is that this code is finally merged
> into the Dovecot master repository. This means that it is part of the
> upcoming 2.3 release. Now that it is merged, you can install and test it
> from Github if you like. Feedback is of course appreciated. The
> documentation is still pretty sparse, but there is currently not much to
> configure. Just add "submission" to the protocols and configure the
> relay MTA server. The configuration is currently only documented in the
> example configuration in doc/example-config/conf.d/20-submission.conf.
> The submission service is a login service, just like IMAP, POP3 and
> ManageSieve, so clients are required to authenticate. The same
> authentication configuration will also apply to submission, unless
> you're doing protocol-specific things, in which case you may need to
> amend your configuration for the new protocol. BURL support requires a
> working IMAP URLAUTH implementation.
> 
> I've updated the automated Xi Debian package builder to create an
> additional dovecot-submissiond package. So, if you're using the Xi
> packages, you only need to install that package and configure the relay MTA.
> 
> Regards,
> 
> Stephan.
> 
> 
> 
> 
> 

Hi Stephan, this is extreme cool !


Best Regards
MfG Robert Schetterer

-- 
[*] sys4 AG

http://sys4.de, +49 (89) 30 90 46 64
Schleißheimer Straße 26/MG, 80333 München

Sitz der Gesellschaft: München, Amtsgericht München: HRB 199263
Vorstand: Patrick Ben Koetter, Marc Schiffbauer
Aufsichtsratsvorsitzender: Florian Kirstein


Re: How to limit Apple Mail (desktop)?

2017-10-31 Thread Robert Schetterer
Am 31.10.2017 um 14:06 schrieb María Arrea:
> 
>    If you use Linux you can use netfilter (iptables) mark feature to
> track individual connections from a given IP, and above a threshold you
> can shape the bandwitdh based on those iptables mark. For example, if an
> IMAP connection from ip X exceed 100 megabytes of data, bandwitdh for
> that ip would be limited to 100 KB/sec (or whatever number). First 100
> megabytes, top speed, above that they get slower.

dont think this will work
tons of cons can come from a nat ip
so you would punish everyone behind that ip ,not only apple mail

i see no real solution for the problem, cause if the server works out
some slow down this would only lead to longer download times, but will
no solve the orig wanted task. It will all be workarounds for a "buggy"
client




> 
>     Regards
> 
>     María
> 
> 
> El 30/10/17 a las 10:38, Rupert Gallagher escribió:
>> By default, Apple Mail downloads all e-mails from  server's account.
>> Previous versions of this client allowed to opt-out. The latest two
>> versions? however, only allow to opt-out from downloading the
>> attachments.
>>
>> The stress on the server is unbearable. We cannot ask users to be
>> considerate: this is the default behaviour of Apple Mail.
>>
>> We need a server-side solution to the problem.
>>
>> Please share your ideas.



Best Regards
MfG Robert Schetterer

-- 
[*] sys4 AG

http://sys4.de, +49 (89) 30 90 46 64
Schleißheimer Straße 26/MG, 80333 München

Sitz der Gesellschaft: München, Amtsgericht München: HRB 199263
Vorstand: Patrick Ben Koetter, Marc Schiffbauer
Aufsichtsratsvorsitzender: Florian Kirstein


Re: How to limit Apple Mail (desktop)?

2017-10-30 Thread Robert Schetterer
Am 30.10.2017 um 17:50 schrieb Robert Schetterer:
> Am 30.10.2017 um 10:38 schrieb Rupert Gallagher:
>> By default, Apple Mail downloads all e-mails from  server's account. 
>> Previous versions of this client allowed to opt-out. The latest two 
>> versions? however, only allow to opt-out from downloading the attachments.
>>
>> The stress on the server is unbearable. We cannot ask users to be 
>> considerate: this is the default behaviour of Apple Mail.
>>
>> We need a server-side solution to the problem.
>>
>> Please share your ideas.
>>
> 
> first check if you can ident Apple Mail versions related, i recent have
> none in my  log , but i.e Android does
> 
> ---log
> ID sent: name=com.samsung.android.email.provider, os=android,
> os-version=7.0; NRD90M, vendor=samsung, x-android-device-model=SM-G930F
> -
> 
> then you need a procedure for limiti have no idea which one
> 
> Best Regards
> MfG Robert Schetterer
> 

I dont know Apple Mail very good, but as workaround you might use sieve
to presort mails on the server at incomming in (sub)folders which arent
synced at default i.e in a date named folder, for sure users ( you
should know your apple mail users ) then need configure an extra
subscribe on these folders. Perhaps a combi with virtual folders may
usefull , for now not better idea , iam nearly sure this is not what you
you expected and/or wanted

seems google has a feature to "hide" mails

see

https://www.guidingtech.com/44581/prevent-mail-app-space-mac/

however if feel very strange with this

Best Regards
MfG Robert Schetterer

-- 
[*] sys4 AG

http://sys4.de, +49 (89) 30 90 46 64
Schleißheimer Straße 26/MG, 80333 München

Sitz der Gesellschaft: München, Amtsgericht München: HRB 199263
Vorstand: Patrick Ben Koetter, Marc Schiffbauer
Aufsichtsratsvorsitzender: Florian Kirstein


Re: How to limit Apple Mail (desktop)?

2017-10-30 Thread Robert Schetterer
Am 30.10.2017 um 10:38 schrieb Rupert Gallagher:
> By default, Apple Mail downloads all e-mails from  server's account. Previous 
> versions of this client allowed to opt-out. The latest two versions? however, 
> only allow to opt-out from downloading the attachments.
> 
> The stress on the server is unbearable. We cannot ask users to be 
> considerate: this is the default behaviour of Apple Mail.
> 
> We need a server-side solution to the problem.
> 
> Please share your ideas.
> 

first check if you can ident Apple Mail versions related, i recent have
none in my  log , but i.e Android does

---log
ID sent: name=com.samsung.android.email.provider, os=android,
os-version=7.0; NRD90M, vendor=samsung, x-android-device-model=SM-G930F
-

then you need a procedure for limiti have no idea which one

Best Regards
MfG Robert Schetterer

-- 
[*] sys4 AG

http://sys4.de, +49 (89) 30 90 46 64
Schleißheimer Straße 26/MG, 80333 München

Sitz der Gesellschaft: München, Amtsgericht München: HRB 199263
Vorstand: Patrick Ben Koetter, Marc Schiffbauer
Aufsichtsratsvorsitzender: Florian Kirstein


Re: Migrating maildirs - Courier to Dovecot

2017-09-21 Thread Robert Schetterer
Am 21.09.2017 um 20:34 schrieb Stroller:
> I apologise, because I'm sure this subject has been done to death, but I want 
> to migrate from Courier to Dovecot.
> 
> I think my main question is whether there's any reason I shouldn't just rsync 
> the maildirs across from the old mail server to the new one? 

I think
it will work, but if maildir is the best solution for you ,study dovecot
wiki, be sure  configure dovecot right using maildir

> 
> There aren't many clients using this server, so I don't care if clients have 
> to redownload all their messages (in fact, I expect they'll probably end up 
> doing so anyway).
> 
> I'd like to preserve read/unread status of each message, but can't think of 
> anything else important.
> 
> It doesn't matter if there's a few hours of downtime, but I thought to use 
> rsync because I figured I copy the maildirs a day or two ahead of time, and 
> then a sync immediately before going live will be quicker.
> 
> Using imapsync [1] looks pretty good, and I'm happy to use that if it'll be 
> "cleaner" or help Dovecot to create its hierarchy more neatly.
> 
> It looks like Courier creates a courierimapuiddb, courierimapkeywords and 
> courierimapacl in each folder - can I not just delete these, and hand Dovecot 
> a bunch of maildir directories and files to reindex for itself?

dovecot will index and acl by itself

> 
> There are probably only a few hundred thousand messages on the server, a few 
> GB worth, although some of them are many years old.
> 
> Some of the messages on the old server have the wrong "received" date on 
> them, having the wrong file creation / modification date on the server's 
> filesystem, having been copied there previously (years ago) without using 
> cp's --archive flag. I've always thought I should one day write a script to 
> fix this, perhaps using mboxgrep.
> 
> Thanks in advance for any of your thoughts,
> 
> Stroller.
> 
> 

i did maildir rsync migration from dovecot to dovecot many times, no
problem, never tested from Courier, but its easy to test before
production ,so simply try out, if something dont work go imapsync way
which is easy too



> 
> 
> 
> [1] https://wiki2.dovecot.org/Migration#IMAP_.3C-.3E_IMAP_copying
> 



Best Regards
MfG Robert Schetterer

-- 
[*] sys4 AG

http://sys4.de, +49 (89) 30 90 46 64
Schleißheimer Straße 26/MG, 80333 München

Sitz der Gesellschaft: München, Amtsgericht München: HRB 199263
Vorstand: Patrick Ben Koetter, Marc Schiffbauer
Aufsichtsratsvorsitzender: Florian Kirstein


Re: lda

2017-09-05 Thread Robert Schetterer
Am 05.09.2017 um 20:00 schrieb Pol Hallen:
> Sep  5 19:59:21 domain postfix/qmgr[19936]: warning: connect to
> transport private/spamassassin: Connection refused
> 
> Pol

why not simply use spamass-milter with postfix and then lmtp from
dovecot, your desired way is really old fashioned...and has no benefit
in any way

> 
> On 2017-09-05 03:10, Bill Shirley wrote:
>> Try main.cf:
>> # dovecot 2.x
>> mailbox_command = /usr/bin/spamc -e /usr/libexec/dovecot/dovecot-lda
>> -a "$RECIPIENT" -f "$SENDER" -m "$EXTENSION"
>>
>> Bill
>>
>>
>> On 9/3/2017 12:33 PM, doveco...@fuckaround.org wrote:
>>> Hi all :)
>>>
>>> I will try to use /usr/lib/dovecot/deliver instead of postfix. I'd
>>> like automatically move email to junk folder. I use debian 9.
>>>
>>> cat /etc/postfix/master.cf
>>> [...]
>>> spamassassin unix - n   n   -   -   pipe
>>>   user=debian-spamd argv=/usr/bin/spamc -f -e
>>> /usr/lib/dovecot/deliver -f ${sender} -d ${recipient}
>>>
>>> with this line dovecot works perfectly but only with virtual users,
>>> my system has also system users /etc/passwd
>>>
>>> How to tell dovecot to deliver email also to real system users?
>>>
>>> Sep 03 17:05:08 auth: Debug: master in: USER    1 t...@mydomain.org  
>>>  service=lda
>>> Sep 03 17:05:08 auth-worker(24749): Debug: passwd(t...@mydomain.org):
>>> lookup
>>> Sep 03 17:05:08 auth: Debug: pam(t...@mydomain.org): passdb doesn't
>>> support credential lookups
>>> Sep 03 17:05:08 lda(t...@mydomain.org): Debug: auth USER input:
>>> Sep 03 17:05:08 auth: Debug: passwd-file(t...@mydomain.org): lookup:
>>> user=t...@fuckaround.org file=/etc/dovecot/users
>>> Sep 03 17:05:08 auth: Debug: userdb out: NOTFOUND    1
>>> Sep 03 17:05:08 auth: Debug: auth client connected (pid=24758)
>>> Sep 03 17:05:08 auth: Debug: client in: AUTH    1    PLAIN
>>> service=imap    secured    session=GIfuUUpY1BCXMEZw lip=192.168.0.2  
>>>  rip=x.x.x.x    lport=993    rport=4308 local_name=imap.mydomain.org
>>> Sep 03 17:05:08 auth: Debug: client passdb out: CONT    1
>>> Sep 03 17:05:08 auth: Debug: client in: CONT    1
>>> hfdskjfsdkjdshjkfd== (previous base64 data may contain sensitive data)
>>> Sep 03 17:05:08 auth-worker(24749): Debug:
>>> pam(user,151.48.70.112,): lookup service=dovecot
>>> Sep 03 17:05:08 auth-worker(24749): Debug:
>>> pam(user,151.48.70.112,): #1/1 style=1 msg=Password:
>>> Sep 03 17:05:09 auth: Debug: client passdb out: OK    1 user=user
>>> Sep 03 17:05:09 auth: Debug: master in: REQUEST    2331639809 24758  
>>>  1    754574397549379543789547    session_pid=24760 request_auth_token
>>>
>>> thanks for help!
>>>
>>> Pol
> 



Best Regards
MfG Robert Schetterer

-- 
[*] sys4 AG

http://sys4.de, +49 (89) 30 90 46 64
Schleißheimer Straße 26/MG, 80333 München

Sitz der Gesellschaft: München, Amtsgericht München: HRB 199263
Vorstand: Patrick Ben Koetter, Marc Schiffbauer
Aufsichtsratsvorsitzender: Florian Kirstein


Re: Dovecot - Postfix Calender Synchronisation

2017-08-25 Thread Robert Schetterer
Am 23.08.2017 um 10:09 schrieb Maurizio Caloro:
> Hello Together
> 
>  
> 
> Please witch add-on possibilities exist to synchronize the Calednar with
> Dovecot and Postfix.
> 
> Can give me here any a possible direction ?
> 
>  
> 
> thanks regards
> 
> Mauri
> 
>  
> 

This has mostly ( there is some rare use with ics files stored on imap
servers ,but its not wide spreaded ) nothing to do with postfix and/or
dovecot
modern calendar sync ist mostly done via active sync and/or caldav (
which is kinda http(s) )

see/go i.e horde webmail has such servers included, the only relate
to smtp and/or imap is that most mail clients have add ons to deal with
calendar servers under the same gui i.e thunderbird lightning



Best Regards
MfG Robert Schetterer

-- 
[*] sys4 AG

http://sys4.de, +49 (89) 30 90 46 64
Schleißheimer Straße 26/MG, 80333 München

Sitz der Gesellschaft: München, Amtsgericht München: HRB 199263
Vorstand: Patrick Ben Koetter, Marc Schiffbauer
Aufsichtsratsvorsitzender: Florian Kirstein


Re: under another kind of attack

2017-07-30 Thread Robert Schetterer
Am 29.07.2017 um 20:29 schrieb mj:
> Hi Doug,
> 
> On 07/29/2017 07:44 PM, Doug Barton wrote:
>> Instead, take a look at the fail2ban scenarios in this thread, which
>> solve the actual problem with a precision tool, instead of a hammer.
> 
> I have implemented (most of) those as well, and additionally choose to
> also block certain countries. It helps tremendously.
> 
> MJ

You can only use strict geoip blocking as long as your users do not travel
so this is not a solution in most cases.

But you can use
geoip in an "anomal filter" which compares  more informations
i.e a user is recent logged in germany so normally he dont want to be
logged in from china at the same time, additional count bad logins
using some magic formula and he will blocked auto etc, this will prevent
hacking and abuse accounts too.


Best Regards
MfG Robert Schetterer

-- 
[*] sys4 AG

http://sys4.de, +49 (89) 30 90 46 64
Schleißheimer Straße 26/MG, 80333 München

Sitz der Gesellschaft: München, Amtsgericht München: HRB 199263
Vorstand: Patrick Ben Koetter, Marc Schiffbauer
Aufsichtsratsvorsitzender: Florian Kirstein


Re: under another kind of attack

2017-07-25 Thread Robert Schetterer
Am 25.07.2017 um 16:54 schrieb mj:
> Hi Olaf,
> 
> Since we implemented country blocking, everything seems nicely under
> control, with only 'normal levels' of knocking.
> 
> We first have impemented:
> http://blog.jeshurun.ca/technology/block-countries-ubuntu-iptables-xtables-geoip
> 
> 
> Then we did:
> https://github.com/firehol/blocklist-ipsets

simply geoip blocking may work at your site
but it does not work for many other cases

> 
> And finale iptables rules like these:
> 
>> iptables -A INPUT -p tcp --dport 143 -m geoip --src-cc
>> CN,AG,MX,NI,MF,VE,CO,AR,RU,UA -j DROP
>> iptables -A INPUT -p tcp --dport 143 -m geoip --src-cc
>> MD,SD,SS,GA,CN,AZ,IN,ID,KZ,LA -j DROP
>> iptables -A INPUT -p tcp --dport 143 -m geoip --src-cc
>> MY,MN,SG,VN,TH,TW,HK,KR,KP,HT -j DROP
>> iptables -A INPUT -p tcp --dport 143 -m geoip --src-cc CR,MZ -j DROP
>>
>> iptables -A INPUT -p tcp --dport 993 -m geoip --src-cc
>> CN,AG,MX,NI,MF,VE,CO,AR,RU,UA -j DROP
>> iptables -A INPUT -p tcp --dport 993 -m geoip --src-cc
>> MD,SD,SS,GA,CN,AZ,IN,ID,KZ,LA -j DROP
>> iptables -A INPUT -p tcp --dport 993 -m geoip --src-cc
>> MY,MN,SG,VN,TH,TW,HK,KR,KP,HT -j DROP
>> iptables -A INPUT -p tcp --dport 993 -m geoip --src-cc CR,MZ -j DROP
>>
>> iptables -A INPUT -p tcp --dport 465 -m geoip --src-cc
>> CN,AG,MX,NI,MF,VE,CO,AR,RU,UA -j DROP
>> iptables -A INPUT -p tcp --dport 465 -m geoip --src-cc
>> MD,SD,SS,GA,CN,AZ,IN,ID,KZ,LA -j DROP
>> iptables -A INPUT -p tcp --dport 465 -m geoip --src-cc
>> MY,MN,SG,VN,TH,TW,HK,KR,KP,HT -j DROP
>> iptables -A INPUT -p tcp --dport 465 -m geoip --src-cc CR,MZ -j DROP
> 
> I tried to combine the various dports in one single rule, but that
> didn't seem to work. Perhaps someone here knows how to combine --match
> "geoip" and "multiport" in one single rule?
> 
> Anyway: for us these combined measures did the tric.
> 
> Users in one of the imap-blocked countries will have to use ActiveSync
> (works over https), the webmail-interface, or launch the VPN first.
> 
> This works for us.
> 
> Only one thing on my wishlist: application specific passwords. I would
> very much appreciate a respond on that thread... (posted yesterday
> evening, with a pseudo-dovecot-config file...)
> 
> Hope the above helps you a bit, Olaf.
> 
> MJ
> 
> On 07/25/2017 04:37 PM, Olaf Hopp wrote:
>> Hi folks,
>>
>> "somehow" similar to the thread "under some kind oof attack" started
>> by "MJ":
>>
>> I have dovecot shielded by fail2ban which works fine.
>> But since a few days I see many many IPs per day knocking on
>> my doors with wron password and/or users. But the rate at which they
>> are knocking
>> is very very low. So fail2ban will never catch them.
>>
>> For example one IP:
>>
>> Jul 25 14:03:17 irams1 dovecot: auth-worker(2212):
>> pam(eurodisc,101.231.247.210,): unknown user
>> Jul 25 15:16:36 irams1 dovecot: auth-worker(11047):
>> pam(gergei,101.231.247.210,): pam_authenticate()
>> failed: Authentication failure (password mismatch?)
>> Jul 25 16:08:51 irams1 dovecot: auth-worker(3379):
>> pam(icpe,101.231.247.210,): unknown user
>> Jul 25 16:10:47 irams1 dovecot: auth-worker(4250):
>> pam(endsulei,101.231.247.210,): unknown user
>>
>> Note the timestamps.
>> If I look the other way round (tries to one account) I'll get
>>
>> Jul 25 01:30:48 irams1 dovecot: auth-worker(11276):
>> pam(endsulei,60.166.12.117,): unknown user
>> Jul 25 01:31:26 irams1 dovecot: auth-worker(11276):
>> pam(endsulei,222.243.211.200,<s0+6nBhVabHe89PI>): unknown user
>> Jul 25 13:29:22 irams1 dovecot: auth-worker(4745):
>> pam(endsulei,60.2.50.114,<4elhpCJVtcw8AjJy>): unknown user
>> Jul 25 13:30:27 irams1 dovecot: auth-worker(4747):
>> pam(endsulei,222.84.118.83,): unknown user
>> Jul 25 16:10:47 irams1 dovecot: auth-worker(4250):
>> pam(endsulei,101.231.247.210,): unknown user
>> Jul 25 16:11:45 irams1 dovecot: auth-worker(5933):
>> pam(endsulei,206.214.0.120,): unknown user
>>
>> Also note the timestamps!
>>
>> And I see many many distinct IPs per day (a few hundred) trying many
>> many existing and non-existings accounts.
>> As you see in the timestamps in my examples, this can not be handled
>> by fail2ban without affecting
>> regular users with typos.
>> Is anybody observing something similar ?
>> Anybody an idea against this ?
>> Many of these observed IPs are chinese mobile IPs, if this matters.
>> But we have also chinese students and
>> researchers all abroad.
>>
>>
>> Regards,
>> Olaf
>>



Best Regards
MfG Robert Schetterer

-- 
[*] sys4 AG

http://sys4.de, +49 (89) 30 90 46 64
Schleißheimer Straße 26/MG, 80333 München

Sitz der Gesellschaft: München, Amtsgericht München: HRB 199263
Vorstand: Patrick Ben Koetter, Marc Schiffbauer
Aufsichtsratsvorsitzender: Florian Kirstein


Re: under another kind of attack

2017-07-25 Thread Robert Schetterer
Am 25.07.2017 um 16:37 schrieb Olaf Hopp:
> Hi folks,
> 
> "somehow" similar to the thread "under some kind oof attack" started by
> "MJ":
> 
> I have dovecot shielded by fail2ban which works fine.
> But since a few days I see many many IPs per day knocking on
> my doors with wron password and/or users. But the rate at which they are
> knocking
> is very very low. So fail2ban will never catch them.
> 
> For example one IP:
> 
> Jul 25 14:03:17 irams1 dovecot: auth-worker(2212):
> pam(eurodisc,101.231.247.210,): unknown user
> Jul 25 15:16:36 irams1 dovecot: auth-worker(11047):
> pam(gergei,101.231.247.210,): pam_authenticate()
> failed: Authentication failure (password mismatch?)
> Jul 25 16:08:51 irams1 dovecot: auth-worker(3379):
> pam(icpe,101.231.247.210,): unknown user
> Jul 25 16:10:47 irams1 dovecot: auth-worker(4250):
> pam(endsulei,101.231.247.210,): unknown user
> 
> Note the timestamps.
> If I look the other way round (tries to one account) I'll get
> 
> Jul 25 01:30:48 irams1 dovecot: auth-worker(11276):
> pam(endsulei,60.166.12.117,): unknown user
> Jul 25 01:31:26 irams1 dovecot: auth-worker(11276):
> pam(endsulei,222.243.211.200,<s0+6nBhVabHe89PI>): unknown user
> Jul 25 13:29:22 irams1 dovecot: auth-worker(4745):
> pam(endsulei,60.2.50.114,<4elhpCJVtcw8AjJy>): unknown user
> Jul 25 13:30:27 irams1 dovecot: auth-worker(4747):
> pam(endsulei,222.84.118.83,): unknown user
> Jul 25 16:10:47 irams1 dovecot: auth-worker(4250):
> pam(endsulei,101.231.247.210,): unknown user
> Jul 25 16:11:45 irams1 dovecot: auth-worker(5933):
> pam(endsulei,206.214.0.120,): unknown user
> 
> Also note the timestamps!
> 
> And I see many many distinct IPs per day (a few hundred) trying many
> many existing and non-existings accounts.
> As you see in the timestamps in my examples, this can not be handled by
> fail2ban without affecting
> regular users with typos.
> Is anybody observing something similar ?


all the time ,since years, in my case its
always schema user xyz.abc
in my case all username without @ could be dropped at once
a regex deny should be fine, but i havent implemented/thinked of  it cause
it comming in small waves and mostly fail2ban stops it soon



> Anybody an idea against this ?
> Many of these observed IPs are chinese mobile IPs, if this matters. But
> we have also chinese students and
> researchers all abroad.
> 
> 
> Regards,
> Olaf
> 



Best Regards
MfG Robert Schetterer

-- 
[*] sys4 AG

http://sys4.de, +49 (89) 30 90 46 64
Schleißheimer Straße 26/MG, 80333 München

Sitz der Gesellschaft: München, Amtsgericht München: HRB 199263
Vorstand: Patrick Ben Koetter, Marc Schiffbauer
Aufsichtsratsvorsitzender: Florian Kirstein


Re: Corrupt index files

2017-07-22 Thread Robert Schetterer
Am 21.07.2017 um 23:58 schrieb Bruce Guenter:
> On Fri, Jul 21, 2017 at 03:25:39PM -0600, Bruce Guenter wrote:
>> We had been using a loadbalancer with persistence to reduce the
>> problems, and today I switched to everything running on a single box to
>> avoid any cross-node contention. Unfortunately, the problem still
>> happens, even when they were all running imap on a single box.
> 
> I just confirmed this. One of the mailboxes was deleted and recreated
> from scratch, and since recreation it has only been accessed on a single
> box. It *still* is having corrupt index problems.
> 
> This is not just caused by accessing the mailboxes on different servers.
> 

there may exist additional problems, but do you moved away from cluster
filesystem too, switching back related parameters ? On a single box with
local storage you shouldnt have a problem unless there are hardware
failures or other broken config settings, again rethink your whole setup,
if you in production and afraid brake something in total, you should
call paid guru support


Best Regards
MfG Robert Schetterer

-- 
[*] sys4 AG

http://sys4.de, +49 (89) 30 90 46 64
Schleißheimer Straße 26/MG, 80333 München

Sitz der Gesellschaft: München, Amtsgericht München: HRB 199263
Vorstand: Patrick Ben Koetter, Marc Schiffbauer
Aufsichtsratsvorsitzender: Florian Kirstein


Re: Corrupt index files

2017-07-21 Thread Robert Schetterer
Am 21.07.2017 um 19:47 schrieb Bruce Guenter:
> 
> I am running Dovecot IMAP on Linux, on a LizardFS storage cluster with
> Maildir storage. This has worked well for most of the accounts for
> several months.
> 
> However in the last couple of weeks we are seeing increasing errors
> regarding corrupted index files.

you should avoid this
one solution is to use loadbalancers with persistance
and/or with i.e

https://wiki2.dovecot.org/Director

i dont know LizardFS
but problems are somekind equal with all storage clusters
and there are different solutions to handle
this so i dont know what may the best at your place

i would read and ask here for settings with storage clusters, a good
start could be

https://wiki2.dovecot.org/NFS
https://wiki2.dovecot.org/SharedMailboxes/ClusterSetup
https://wiki2.dovecot.org/MailLocation/SharedDisk



 Some of the accounts affected are
> unable to retrieve messages due to timeouts.

index settings and mailbox format has impact about this
maildir mostly is self healing but that may fail sometimes on cluster

> 
> It appeared the problems were due to the accounts being accessed from
> multiple servers simultaneously, so I forced them all to access one
> server, but the errors remained. It looks like it has something to do
> with file locking, but LizardFS supports advisory file locking and I do
> have it enabled.
> 
> Deleting the corrupted indexes fixes the problem for a while, but it
> eventually returns, particularly for some accounts.

yeah that is perhaps per design

> 
> Here are some errors I'm seeing (just a random grab). Actual home
> directories are munged for confidentiality.
> 
> imap[25157]: (clientes.standby) Error: Failed to fix view for 
> HOME/clientes:standby/dovecot.index: Missing middle file seq=1 (between 1..1, 
> we have seqs 8): File is already open
> imap[5565]: (stadiumchair) Error: Transaction log file 
> HOME/stadiumchair/.Drafts/dovecot.index.log: marked corrupted
> imap[5005]: (stadiumchair) Error: Corrupted transaction log file 
> HOME/stadiumchair/.Drafts/dovecot.index.log seq 2: indexid changed 1418941056 
> -> 1500658549 (sync_offset=0)
> imap[20243]: (martha) Error: Transaction log HOME/martha/dovecot.index.log: 
> duplicate transaction log sequence (539)
> imap[4665]: (emsspam) Error: Index file HOME/emsspam/dovecot.index: indexid 
> changed: 1500658479 -> 1297175382
> imap[4665]: (emsspam) Error: Corrupted transaction log file 
> HOME/emsspam/dovecot.index.log seq 3: indexid changed: 1500658479 -> 
> 1297175382 (sync_offset=316)
> imap[22985]: (emsspam) Error: Corrupted transaction log file 
> HOME/emsspam/dovecot.index.log seq 10742: Invalid transaction log size (9296 
> vs 9296): HOME/emsspam/dovecot.index.log (sync_offset=9296)
> imap[3267]: (emsspam) Error: Failed to map view for 
> HOME/emsspam/dovecot.index: Failed to map file seq=10742 
> offset=9052..18446744073709551615 (ret=0): corrupted, indexid=0
> imap[3267]: (emsspam) Error: HOME/emsspam/dovecot.index view is inconsistent: 
> uid=3062271 inserted in the middle of mailbox
> 
> The output of dovecot -n is pasted in below. Note that some of the boxes
> are running 4.9, some running 4.4, all have the same problems. Also note
> that I am using a custom authentication front end for our virtual
> mailboxes, but it just sets up the minimal environment variables and
> runs imap.
> 
> Is there anything I can change to eliminate these problems? Are there
> any other diagnostics I can provide to shed light on this?
> 
> # 2.2.31 (65cde28): /etc/dovecot/dovecot.conf
> # OS: Linux 4.4.66 x86_64 Gentoo Base System release 2.3 
> log_path = /dev/stderr
> mail_debug = yes
> mail_fsync = always
> mail_location = maildir:~/.maildir
> mail_log_prefix = "%s[%p]: (%u) "
> mmap_disable = yes
> namespace inbox {
>   inbox = yes
>   location = 
>   mailbox Drafts {
> special_use = \Drafts
>   }
>   mailbox Junk {
> special_use = \Junk
>   }
>   mailbox Sent {
> special_use = \Sent
>   }
>   mailbox "Sent Messages" {
> special_use = \Sent
>   }
>   mailbox Trash {
> special_use = \Trash
>   }
>   prefix = INBOX
>   separator = 
>   type = private
> }
> passdb {
>   args = *
>   driver = pam
> }
> passdb {
>   args = /etc/dovecot/dovecot-sql.conf.ext
>   driver = sql
> }
> plugin {
>   mail_log_events = delete undelete expunge copy mailbox_delete mailbox_rename
> }
> ssl_cert =  ssl_key =  # hidden, use -P to show it
> userdb {
>   driver = passwd
> }
> userdb {
>   args = /etc/dovecot/dovecot-sql.conf.ext
>   driver = sql
> }
> 

i think you could rare the corrupt
with optimize settings
to i.e

mail_fsync = always
mail_nfs_storage = yes
mai

Re: under some kind of attack

2017-07-20 Thread Robert Schetterer
Am 20.07.2017 um 20:03 schrieb mj:
> Hi Robert,
> 
>> i dont understand why you focused on that ldap strings
>> fail2ban should trigger on some "Authentication failure" regex in the
>> related syslog
>>
>> perhaps this will help to make it more clear
>>
>> http://www.stefan-seelmann.de/wiki/fail2ban#postfix-and-dovecot
> 
> Yes, but I have that as well. :-)
> 
> I wanted two kinds of blockings:
> 
> #1: Everybody trying the well-known passwords (password, 123321, 1q2w3e,
> etc, etc) to become blocked *immediately* and for *always*.
> 
> #2: I wanted all others have to have the 'regular' settings, with three
> shots at typing a password, etc.
> 
> #2 being the 'regular fail2ban' settings, but during this attack, I
> wanted special settings, #1, for anyone trying one of the malicious
> passwords.
> 
> I did NOT want to have them the usual three opportunities to try.
> 
> In fact: this is a bit similar to your iptables solution, but that only
> works for non-ssl/non-tls connections.
> 
> Your iptables solution makes sure that thy cannot authenticate *at all*,
> while the above solution makes sure they can only authnticate *once*.
> 
> MJ

Ok I understand, not a bad idea, report how it works for you


Best Regards
MfG Robert Schetterer

-- 
[*] sys4 AG

http://sys4.de, +49 (89) 30 90 46 64
Schleißheimer Straße 26/MG, 80333 München

Sitz der Gesellschaft: München, Amtsgericht München: HRB 199263
Vorstand: Patrick Ben Koetter, Marc Schiffbauer
Aufsichtsratsvorsitzender: Florian Kirstein


Re: under some kind of attack

2017-07-20 Thread Robert Schetterer
Am 20.07.2017 um 12:28 schrieb mj:
> I have concoted something that seems to work. And for the archives, this
> is it:
> 
>> failregex = auth: Info: ldap\(.+,,.+\): invalid credentials
>> \(given password: .+ssword\)
>> auth: Info: ldap\(.+,,.+\): invalid credentials
>> \(given password: 1qaz2wsx\)
>> auth: Info: ldap\(.+,,.+\): invalid credentials
>> \(given password: 123321\)
>> auth: Info: ldap\(.+,,.+\): invalid credentials
>> \(given password: 1234567890\)
>> auth: Info: ldap\(.+,,.+\): invalid credentials
>> \(given password: 1q2w3e4r.+\)
> 
> It's still reactive, and not pro-active.
> 
> All the other suggestions are very much appreciated, including
> weakforced, however implementing that is a much larger project.

i dont understand why you focused on that ldap strings
fail2ban should trigger on some "Authentication failure" regex in the
related syslog

perhaps this will help to make it more clear

http://www.stefan-seelmann.de/wiki/fail2ban#postfix-and-dovecot



> 
> Next I have to find out how to feed my fail2ban logs back to
> blocklist.de, to improve their mail.txt hit rate.
> 
> Thanks again for all kind assistance.
> 
> MJ
> 
> On 07/20/2017 11:16 AM, mj wrote:
>> Hi all,
>>
>> If I may, one more question on this subject:
>>
>> I would like to  create a fail2ban filer, that scans for these lines:
>>
>>> Jul 20 11:10:09 auth: Info:
>>> ldap(user1,60.166.35.162,): invalid credentials
>>> (given password: password)
>>> Jul 20 11:10:19 auth: Info:
>>> ldap(user2,61.53.66.4,<V+nyHbxU+wA9NUIE>): invalid credentials (given
>>> password: password)
>>
>> (as you can see, I have enabled auth_verbose_passwords to do this,
>> making me very uncomfortable...)
>>
>> Anyway: since there are only a few password variations, I would like
>> to block anyone using those passwords.
>>
>> (since the connections are over TLS/SSL, I cannot use iptables, as
>> suggested earlier)
>>
>> So I need a specific fail2ban rule that extracts the  from that
>> line, and matches on "(given password: password)"
>>
>> Can anyone here help out with a failregex line that would match..?



Best Regards
MfG Robert Schetterer

-- 
[*] sys4 AG

http://sys4.de, +49 (89) 30 90 46 64
Schleißheimer Straße 26/MG, 80333 München

Sitz der Gesellschaft: München, Amtsgericht München: HRB 199263
Vorstand: Patrick Ben Koetter, Marc Schiffbauer
Aufsichtsratsvorsitzender: Florian Kirstein


Re: under some kind of attack

2017-07-18 Thread Robert Schetterer
Am 18.07.2017 um 22:53 schrieb mj:
> Hi Robert,
> 
> On 07/18/2017 10:15 PM, mj wrote:
>> Robert, your iptables suggestions are _very_ interesting! However,
>> will they also work on imaps/993, because of the ssl?
> 
> I have adjusted and put into place your iptables suggestion like this:
>> iptables -I INPUT -p tcp --dport 143 -m string --algo bm --string
>> '1q2w3e4r' -j DROP
>> iptables -I INPUT -p tcp --dport 993 -m string --algo bm --string
>> '1q2w3e4r' -j DROP

dont speculate verify if your bots are using ssl , and what flows over
the wire if plain is used, you dont need to use 1q2w3e4r, i think you
can use any dovecot answer that "means rejected", sorry no time to test
myself

> 
> However, I don't think it's working, as the login attempts just keep
> coming. Probably the reason is: smtp is plain text, and imap TLS/SSL is
> not, so the rules never get triggered.
> 
> MJ



Best Regards
MfG Robert Schetterer

-- 
[*] sys4 AG

http://sys4.de, +49 (89) 30 90 46 64
Schleißheimer Straße 26/MG, 80333 München

Sitz der Gesellschaft: München, Amtsgericht München: HRB 199263
Vorstand: Patrick Ben Koetter, Marc Schiffbauer
Aufsichtsratsvorsitzender: Florian Kirstein


Re: under some kind of attack

2017-07-18 Thread Robert Schetterer
Am 18.07.2017 um 22:15 schrieb mj:
> Hi,
> 
> Thanks for the quick follow-ups! Much appreciated. After posting this, I
> immediately started working on fail2ban. And between my initial posting
> and now, fail2ban already blocked 114 IPs.
> 
> I have fail2ban with maxretry=1 and bantime=1800
> 
> However, it seems almost all IPs are different, and I don't think I can
> keep the above settings permanently.
> 
> Robert, your iptables suggestions are _very_ interesting! However, will
> they also work on imaps/993, because of the ssl?

i guess not, but typical bots arent using ssl, check it

however fail2ban sometimes is to slow
but as an alternative you may create a filter out of syslog to directly
feed in iptables recent, here is an example with smtp

https://sys4.de/de/blog/2012/12/28/botnets-mit-rsyslog-und-iptables-recent-modul-abwehren/



> 
> Thanks for the quick replies!
> 
> MJ
> 
> On 07/18/2017 09:52 PM, Robert Schetterer wrote:
>> Am 18.07.2017 um 21:44 schrieb mj:
>>> Hi all,
>>>
>>> It seems we are under some kind of password guessing attack:
>>>
>>>> Jul 18 21:33:33 auth: Info:
>>>> ldap(username1,103.6.223.61,): invalid credentials
>>>> (given password: 1q2w3e4r5t)
>>>> Jul 18 21:34:16 auth: Info:
>>>> ldap(username1,221.4.61.180,<89WnmZxUrADdBD20>): invalid credentials
>>>> (given password: 1q2w3e4r5t)
>>>> Jul 18 21:36:13 auth: Info:
>>>> ldap(username2,117.243.180.225,): invalid
>>>> credentials (given password: 1q2w3e4r)
>>>> Jul 18 21:36:50 auth: Info:
>>>> ldap(username2,58.59.103.230,): invalid credentials
>>>> (given password: 1q2w3e4r)
>>>> Jul 18 21:36:56 auth: Info:
>>>> ldap(username4,58.215.13.154,): invalid credentials
>>>> (given password: 1q2w3e4r5t)
>>>> Jul 18 21:37:18 auth: Info:
>>>> ldap(username3,220.175.154.205,): invalid
>>>> credentials (given password: 1q2w3e4r)
>>>> Jul 18 21:37:25 auth: Info:
>>>> ldap(username5,14.142.29.142,<40zopJxUSgAOjh2O>): invalid credentials
>>>> (given password: 1q2w3e4r)
>>>> Jul 18 21:37:27 auth: Info:
>>>> ldap(username4,119.1.98.121,): invalid credentials
>>>> (given password: 1q2w3e4r5t)
>>>> Jul 18 21:37:54 auth: Info:
>>>> ldap(username3,218.76.156.11,): invalid credentials
>>>> (given password: 1q2w3e4r)
>>>
>>> Different IPs, different usernames, but all (almost) the same password.
>>>
>>> Any idea what we can do about this??
>>>
>>> Any advice you could give us would be very much appreciated.
>>>
>>> MJ
>>
>> perhaps this
>>
>> https://wiki.dovecot.org/HowTo/Fail2Ban
>>
>>
>> or you may adapt this
>>
>> https://sys4.de/de/blog/2015/11/07/abwehr-des-botnets-pushdo-cutwail-ehlo-ylmf-pc-mit-iptables-string-recent-smtp/
>>
>>
>> https://sys4.de/de/blog/2014/03/27/fighting-smtp-auth-brute-force-attacks/
>>
>>
>> to pop3(s)/imap(s) and your needs
>>
>>
>>
>>
>> Best Regards
>> MfG Robert Schetterer
>>



Best Regards
MfG Robert Schetterer

-- 
[*] sys4 AG

http://sys4.de, +49 (89) 30 90 46 64
Schleißheimer Straße 26/MG, 80333 München

Sitz der Gesellschaft: München, Amtsgericht München: HRB 199263
Vorstand: Patrick Ben Koetter, Marc Schiffbauer
Aufsichtsratsvorsitzender: Florian Kirstein


Re: under some kind of attack

2017-07-18 Thread Robert Schetterer
Am 18.07.2017 um 21:44 schrieb mj:
> Hi all,
> 
> It seems we are under some kind of password guessing attack:
> 
>> Jul 18 21:33:33 auth: Info:
>> ldap(username1,103.6.223.61,): invalid credentials
>> (given password: 1q2w3e4r5t)
>> Jul 18 21:34:16 auth: Info:
>> ldap(username1,221.4.61.180,<89WnmZxUrADdBD20>): invalid credentials
>> (given password: 1q2w3e4r5t)
>> Jul 18 21:36:13 auth: Info:
>> ldap(username2,117.243.180.225,): invalid
>> credentials (given password: 1q2w3e4r)
>> Jul 18 21:36:50 auth: Info:
>> ldap(username2,58.59.103.230,): invalid credentials
>> (given password: 1q2w3e4r)
>> Jul 18 21:36:56 auth: Info:
>> ldap(username4,58.215.13.154,): invalid credentials
>> (given password: 1q2w3e4r5t)
>> Jul 18 21:37:18 auth: Info:
>> ldap(username3,220.175.154.205,): invalid
>> credentials (given password: 1q2w3e4r)
>> Jul 18 21:37:25 auth: Info:
>> ldap(username5,14.142.29.142,<40zopJxUSgAOjh2O>): invalid credentials
>> (given password: 1q2w3e4r)
>> Jul 18 21:37:27 auth: Info:
>> ldap(username4,119.1.98.121,): invalid credentials
>> (given password: 1q2w3e4r5t)
>> Jul 18 21:37:54 auth: Info:
>> ldap(username3,218.76.156.11,): invalid credentials
>> (given password: 1q2w3e4r)
> 
> Different IPs, different usernames, but all (almost) the same password.
> 
> Any idea what we can do about this??
> 
> Any advice you could give us would be very much appreciated.
> 
> MJ

perhaps this

https://wiki.dovecot.org/HowTo/Fail2Ban


or you may adapt this

https://sys4.de/de/blog/2015/11/07/abwehr-des-botnets-pushdo-cutwail-ehlo-ylmf-pc-mit-iptables-string-recent-smtp/

https://sys4.de/de/blog/2014/03/27/fighting-smtp-auth-brute-force-attacks/

to pop3(s)/imap(s) and your needs




Best Regards
MfG Robert Schetterer

-- 
[*] sys4 AG

http://sys4.de, +49 (89) 30 90 46 64
Schleißheimer Straße 26/MG, 80333 München

Sitz der Gesellschaft: München, Amtsgericht München: HRB 199263
Vorstand: Patrick Ben Koetter, Marc Schiffbauer
Aufsichtsratsvorsitzender: Florian Kirstein


Re: How to query for headers by regexp?

2017-04-23 Thread Robert Schetterer
Am 23.04.2017 um 18:59 schrieb Ralf Hildebrandt:
> I need to find all mails with a certain numerical range in my quarantine:
> 
> X-Spam-Status: No, score=4.5 tagged_above=2 required=4.6 ...
> 
> Assume I'd be looking for 4.5-6.0; so I tried searching for
> 
> doveadm import -u restore mdbox:/home/quarantine/mdbox "" \
>mailbox INBOX header X-Spam-Status  "No, score=4.5"
> 
> doveadm import -u restore mdbox:/home/quarantine/mdbox "" \
>mailbox INBOX header X-Spam-Status  "No, score=4.6"
> 
> etc.
> 
> Which would only return 2 Mails, with score score=4.5
> What am I doing wrong here? Can I search using regular expressions?
> 
Hi Ralf,

i remember doing something equal with dates years ago by combine with

https://wiki.dovecot.org/Tools/Doveadm/Search

did you do a look at this ?

Sorry i cant remember the exact syntax

Best Regards
MfG Robert Schetterer

-- 
[*] sys4 AG

http://sys4.de, +49 (89) 30 90 46 64
Schleißheimer Straße 26/MG, 80333 München

Sitz der Gesellschaft: München, Amtsgericht München: HRB 199263
Vorstand: Patrick Ben Koetter, Marc Schiffbauer
Aufsichtsratsvorsitzender: Florian Kirstein


Re: welcome plugin

2017-03-14 Thread Robert Schetterer
Am 14.03.2017 um 17:46 schrieb David Mehler:
> Hello,
> 
> If anyone is using the welcome plugin in dovecot 2.2.x to sent a
> one-time new welcome email to new users can I get a look at your
> configuration? I'm stuck, I create a user and the welcome action does
> not execute. If you've got a script to send the mail can I get a look
> at that as well?
> 
> Thanks.
> Dave.
> 

postfixadmin has an option for welcome mails, but that has "nearly" null
relation to dovecot


Best Regards
MfG Robert Schetterer

-- 
[*] sys4 AG

http://sys4.de, +49 (89) 30 90 46 64
Schleißheimer Straße 26/MG, 80333 München

Sitz der Gesellschaft: München, Amtsgericht München: HRB 199263
Vorstand: Patrick Ben Koetter, Marc Schiffbauer
Aufsichtsratsvorsitzender: Florian Kirstein


Re: Sharing between domains?

2017-01-28 Thread Robert Schetterer
Am 28.01.2017 um 22:22 schrieb dovecot@avv.solutions:
> Hello Community,
> 
> I am facing the following question: how is it possible to share malboxes
> between domains?
> 
> Example:
> - 2 domains present on the same dovecot: domA and domB
> - userA@domA
> - userB@domB
> 
> userA@domA wants to share his mailbox to userB@domB (again same server)?
> 
> Thank you for your help.
> 
> Greetz

https://wiki2.dovecot.org/ACL
this works also cross domain

you may use
https://addons.mozilla.org/de/thunderbird/addon/imap-acl-extension/

or horde webmail, roundcube webmail


Best Regards
MfG Robert Schetterer

-- 
[*] sys4 AG

http://sys4.de, +49 (89) 30 90 46 64
Schleißheimer Straße 26/MG, 80333 München

Sitz der Gesellschaft: München, Amtsgericht München: HRB 199263
Vorstand: Patrick Ben Koetter, Marc Schiffbauer
Aufsichtsratsvorsitzender: Florian Kirstein


Re: Migrate from dovecot 1.1 to 2.2 Maildir to 2.2 mdbox

2016-12-08 Thread Robert Schetterer
Am 08.12.2016 um 11:23 schrieb Daniel Betz:
> Hello list,
> 
> im am trying to migrate customer mails via dsync from an old dovecot 1.1 
> setup to an new installed dovecot 2.2.25 setup with mdbox.
> Upgrading the old dovecot 1.1 to 2.2 with Maildir isnt an problem and the 
> replication to the new setup works well too.
> 
> The only problem now is, that the POP3 UIDL are completely wrong on the 
> target setup.
> Im using for Maildir pop3_uidl_format = %f
> With mdbox i cant use it anymore.
> 
> But what do i need for mdbox ?
> Or is there an way to migrate the POP3 uidl list to the mdbox ?
> 
> I could live with it, when i were able to mark the mails older 14 days as 
> read. Is there an way to do this on many mailboxes ?
> 
> I have read in Release News from 2.2.26 that there are some fixes with POP3 
> UIDL .. what is it in detail and could it help me ?
> 
> Hop you can point me to the right direction.
> 
> 
> Regards,
> Daniel

For such an extrem version migration with format change you should
better use imapsync, this will also give the chance for dry runs and
testing before live migration and going production

like

https://sys4.de/de/blog/2013/04/26/mail-migration-mit-imapsync/

i "guess" you will fail migrate with POP3 uidl in that scenario in any case

> 
> 
> 
> 
> 
> 
> Freundliche Grüße,
> 
> Daniel Betz
> System Design Engineer / Senior Systemadministration
> ___
> 
> domainfactory GmbH
> Oskar-Messter-Str. 33
> 85737 Ismaning
> Germany
> 
> Telefon:  +49 (0)89 / 55266-364
> Telefax:  +49 (0)89 / 55266-222
> 
> E-Mail:   db...@df.eu<mailto:db...@df.eu>
> Internet: www.df.eu<http://www.df.eu/>
> 
> Registergericht: Amtsgericht München
> HRB-Nummer 150294, Geschäftsführer:
> Tobias Mohr, Stephan Wolfram
> 



Best Regards
MfG Robert Schetterer

-- 
[*] sys4 AG

http://sys4.de, +49 (89) 30 90 46 64
Schleißheimer Straße 26/MG, 80333 München

Sitz der Gesellschaft: München, Amtsgericht München: HRB 199263
Vorstand: Patrick Ben Koetter, Marc Schiffbauer
Aufsichtsratsvorsitzender: Florian Kirstein


Re: Sieve filtering SPAM and redirect

2016-09-12 Thread Robert Schetterer
Am 12.09.2016 um 19:25 schrieb Andre Luiz Paiz:
>  Quoting Robert Schetterer <r...@sys4.de>:
> 
>> Am 12.09.2016 um 15:59 schrieb Andre Luiz Paiz:
>>> In my case I need that SPAM mails also be redirected with the forward
>>> filter
>>
>> sorry i dont understand why this should be needed ever, please explain
>>
>> Best Regards
>> MfG Robert Schetterer
>>
>> -- 
>> [*] sys4 AG
>>
>> http://sys4.de, +49 (89) 30 90 46 64
>> Schleißheimer Straße 26/MG, 80333 München
>>
>> Sitz der Gesellschaft: München, Amtsgericht München: HRB 199263
>> Vorstand: Patrick Ben Koetter, Marc Schiffbauer
>> Aufsichtsratsvorsitzender: Florian Kirstein
>>
>> Scanned and tagged with DSPAM 3.10.2 by Instituto de Quimica
>> !DSPAM:9735,57d6d82010011542927698!
> 
> In case of false-positive. Some users prefer to redirect their e-mail to
> their external providers instead of using our corporate network webmail.
> And they want all e-mail to be forwarded.

then solve it via i.e postfix transport  etc, thats not a native  sieve job
if you need a user gui for that ,postfixadmin , modoboa etc should work

but however forwarding spam external is a very, very bad idea, external
networks
will punish your server for doing so

>  Atenciosamente
>  
> André Luiz Paiz
> Administração de Redes
> Instituto de Química – Unicamp
> andre.p...@iqm.unicamp.br
> Telefone: (19)3521-0197



Best Regards
MfG Robert Schetterer

-- 
[*] sys4 AG

http://sys4.de, +49 (89) 30 90 46 64
Schleißheimer Straße 26/MG, 80333 München

Sitz der Gesellschaft: München, Amtsgericht München: HRB 199263
Vorstand: Patrick Ben Koetter, Marc Schiffbauer
Aufsichtsratsvorsitzender: Florian Kirstein


Re: Sieve filtering SPAM and redirect

2016-09-12 Thread Robert Schetterer
Am 12.09.2016 um 15:59 schrieb Andre Luiz Paiz:
> In my case I need that SPAM mails also be redirected with the forward filter

sorry i dont understand why this should be needed ever, please explain


Best Regards
MfG Robert Schetterer

-- 
[*] sys4 AG

http://sys4.de, +49 (89) 30 90 46 64
Schleißheimer Straße 26/MG, 80333 München

Sitz der Gesellschaft: München, Amtsgericht München: HRB 199263
Vorstand: Patrick Ben Koetter, Marc Schiffbauer
Aufsichtsratsvorsitzender: Florian Kirstein


Re: Sieve filtering SPAM and redirect

2016-09-12 Thread Robert Schetterer
 inet_listener pop3 {
> port = 110
>   }
>   inet_listener pop3s {
> port = 995
> ssl = yes
>   }
>   process_limit = 6000
>   process_min_avail = 10
>   service_count = 1
> }
> service pop3 {
>   process_limit = 3000
> }
> service quota-warning {
>   executable = script /usr/local/bin/quota-warning.sh
>   unix_listener quota-warning {
> mode = 0666
> user = dovecot
>   }
>   user = root
> }
> ssl = required
> ssl_cert = **
> ssl_key = **
> userdb {
>   driver = passwd
> }
> userdb {
>   args = /etc/dovecot/dovecot-ldap.conf.ext
>   driver = ldap
> }
> protocol lmtp {
>   mail_plugins = " mail_log notify quota sieve quota"
> }
> protocol imap {
>   mail_plugins = " mail_log notify quota imap_quota"
> }
>  Atenciosamente
>  
> André Luiz Paiz
> Administração de Redes
> Instituto de Química – Unicamp
> andre.p...@iqm.unicamp.br
> Telefone: (19)3521-0197

i have a nearly the same setup incl Horde , solved like this

spam tag added via spamass-milter and postfix, dove lmtp

/etc/dovecot/sieve/global.sieve
...
if header :contains "X-Spam-Flag" "YES" {fileinto "Junk";stop;}
...

http://wiki2.dovecot.org/Pigeonhole/Sieve/Examples

90-sieve.conf
...
sieve = file:~/sieve;active=~/.dovecot.sieve
...
#sieve_default = /var/lib/dovecot/sieve/default.sieve
...
sieve_global = /etc/dovecot/sieve/
...

i use no sieve includes

that forces the spam filter act ever, only mail that went inbox can be
redirected by user scripts later

but check if this may fit to your dove setup


Best Regards
MfG Robert Schetterer

-- 
[*] sys4 AG

http://sys4.de, +49 (89) 30 90 46 64
Schleißheimer Straße 26/MG, 80333 München

Sitz der Gesellschaft: München, Amtsgericht München: HRB 199263
Vorstand: Patrick Ben Koetter, Marc Schiffbauer
Aufsichtsratsvorsitzender: Florian Kirstein


Re: stat .../.dovecot.sieve/tmp failed: Not a directory

2016-06-02 Thread Robert Schetterer
Am 02.06.2016 um 07:56 schrieb Steffen Kaiser:
> On Wed, 1 Jun 2016, Robert Schetterer wrote:
> 
>> Am 1. Juni 2016 09:33:11 MESZ, schrieb Steffen Kaiser
>> <skdove...@smail.inf.fh-brs.de>:
>>> -BEGIN PGP SIGNED MESSAGE-
>>> Hash: SHA1
>>>
>>> On Wed, 1 Jun 2016, Robert Schetterer wrote:
>>>
>>>> Hi, i have
>>>>
>>>> stat .../.dovecot.sieve/tmp failed: Not a directory
>>>>
>>>> using
>>>>
>>>> sieve = file:~/sieve;active=~/.dovecot.sieve
>>>>
>>>> dovecot_2.2.24-1-auto-38
>>>>
>>>> cause i can subscribe to dovecot sieve
>>>>
>>>> cant remember to see this in previous versions
>>>
>>> you are sure that home dir != mail location, arn't you? :-)
> 
>> Stephan allready posted a solution found in archive set
>> Maildir_stat_dirs yes fixed it, but should be avoided if possible
> 
> that's the workaround, if you have homedir == mail location, for the
> penalty of performance decrease

for now i am happy with this, hopefully i remember
when redesign the servers

> 
> -- Steffen Kaiser

Best Regards
MfG Robert Schetterer

-- 
[*] sys4 AG

http://sys4.de, +49 (89) 30 90 46 64
Schleißheimer Straße 26/MG, 80333 München

Sitz der Gesellschaft: München, Amtsgericht München: HRB 199263
Vorstand: Patrick Ben Koetter, Marc Schiffbauer
Aufsichtsratsvorsitzender: Florian Kirstein


Re: forwarding emails using sieve

2016-06-01 Thread Robert Schetterer
Am 01.06.2016 um 16:58 schrieb Stephan Bosch:
> 
> 
> Op 1-6-2016 om 3:39 schreef Thorsten von Eicken:
>> I know this is a tad tangential to dovecot, but maybe someone has some
>> pointers for me. I'm trying to forward emails using the sieve
>> filtering and redirect doesn't do it because it doesn't wrap the
>> message in a new email, instead, it seems to just change the envelope
>> From (and To). This causes the outbound relay to reject the message
>> for security/spam reasons (forged From).
> 
> Forwarding like that is currently not possible with the Sieve language.
> The "enclose" extension seems to come close, but it explicitly has no
> effect on redirected messages, which I find rather strange.
> 
>> It looks like the dovecot sieve implementation doesn't let me change
>> the From header in the sieve script. Is there a way to accomplish what
>> I'm looking for?
> 
> Changing the "From" header field can be done using the "editheader"
> extension (https://tools.ietf.org/html/rfc5293).
> 
> require "editheader";
> 
> deleteheader "From";
> addheader "From" "User <u...@example.com>";
> 
> Note that this extension is not enabled by default and thus requires
> explicit configuration.
> 
> Regards,
> 
> Stephan.

you may read this ( german )

https://sys4.de/de/blog/2016/01/24/e-mail-weiterleitungen-mit-dovecot-sieve-ohne-spf-dmarc-und-dkim-konflikte-2/

highly experimental !

remember Stephan s post before give it a try


Best Regards
MfG Robert Schetterer

-- 
[*] sys4 AG

http://sys4.de, +49 (89) 30 90 46 64
Schleißheimer Straße 26/MG, 80333 München

Sitz der Gesellschaft: München, Amtsgericht München: HRB 199263
Vorstand: Patrick Ben Koetter, Marc Schiffbauer
Aufsichtsratsvorsitzender: Florian Kirstein


Re: stat .../.dovecot.sieve/tmp failed: Not a directory

2016-06-01 Thread Robert Schetterer
Am 1. Juni 2016 09:33:11 MESZ, schrieb Steffen Kaiser 
<skdove...@smail.inf.fh-brs.de>:
>-BEGIN PGP SIGNED MESSAGE-
>Hash: SHA1
>
>On Wed, 1 Jun 2016, Robert Schetterer wrote:
>
>> Hi, i have
>>
>> stat .../.dovecot.sieve/tmp failed: Not a directory
>>
>> using
>>
>> sieve = file:~/sieve;active=~/.dovecot.sieve
>>
>> dovecot_2.2.24-1-auto-38
>>
>> cause i can subscribe to dovecot sieve
>>
>> cant remember to see this in previous versions
>
>you are sure that home dir != mail location, arn't you? :-)
>
>- -- 
>Steffen Kaiser
>-BEGIN PGP SIGNATURE-
>Version: GnuPG v1
>
>iQEVAwUBV06Pt3z1H7kL/d9rAQJPgAgAqinz9UpDofcUsjG5KYbqStZHWeQAgD15
>r4ntBPC9Ru66cbfdpROUgIHNBx0xZy4g5SXT20u8k/Eob5i/24ikhltkt9NJQVJd
>+1jU2hzHbaKqobOehZQskpWWmN7xN82VtO+oXVBkztiDkQHmwlJ1Yn7lCcgcQh4T
>naWTAcLUerXiEJpKJU967/GHFrnllWncLhd83s5C0b9f5tDsqMqnYc+uk2Ya5B43
>gglbIMSjxF+6w+S5C752f2js4WaSmomYj1O0BwwgEtzba9dpK5XhTmFBFxSoV8Sc
>sopxt27e/ZkGKqLzeq2F8PWHlDGQi+RLLp20fZEJqDZiZjQcxO8vLg==
>=DV+s
>-END PGP SIGNATURE-

Stephan allready posted a solution found in archive set
Maildir_stat_dirs yes fixed it, but should be avoided if possible
-- 
[*] sys4 AG

http://sys4.de, +49 (89) 30 90 46 64
Franziskanerstraße 15, 81669 München

Sitz der Gesellschaft: München, Amtsgericht München: HRB 199263
Vorstand: Patrick Ben Koetter, Marc Schiffbauer
Aufsichtsratsvorsitzender: Florian Kirstein


stat .../.dovecot.sieve/tmp failed: Not a directory

2016-05-31 Thread Robert Schetterer
Hi, i have

stat .../.dovecot.sieve/tmp failed: Not a directory

using

sieve = file:~/sieve;active=~/.dovecot.sieve

dovecot_2.2.24-1-auto-38

cause i can subscribe to dovecot sieve

cant remember to see this in previous versions


any idea ?


Best Regards
MfG Robert Schetterer

-- 
[*] sys4 AG

http://sys4.de, +49 (89) 30 90 46 64
Schleißheimer Straße 26/MG, 80333 München

Sitz der Gesellschaft: München, Amtsgericht München: HRB 199263
Vorstand: Patrick Ben Koetter, Marc Schiffbauer
Aufsichtsratsvorsitzender: Florian Kirstein


Re: sieve vacation: write to the .lda-dupes database without generating a vacation response.

2016-04-19 Thread Robert Schetterer
Am 19.04.2016 um 20:55 schrieb Tom Hendrikx:
> On 19-04-16 20:01, Bradley M. Kuhn wrote:
>> I'm using Dovecot's sieve extensions quite happily, they are very good!
>> Thanks for all who worked on them.  I have a question that maybe is
>> appropriate for a sieve-specific discussion list, so if there is one I
>> should post to instead, please let me know:
>>
>>
>> I've poked through the sieve vacation RFC and all the documentation I
>> can find and I cannot figure out how to do this.  It's more-or-less not
>> the intent of sieve's vacation, so perhaps it's more of a "you can't get
>> there from here" situation, but maybe folks here have an idea:
>>
>> I am (ab)?using sieve vacation to send an automated response at all
>> times to all senders who put me in the To line, every 90 days, which
>> explains my lack of responsiveness and to explain who else might be
>> better contact. (I have hundreds of emails sent to me to which I will
>> never have time to respond, and probably should have been routed to
>> someone else at my organization anyway.)
>>
>> However, I *don't* want my regular correspondents to receive this
>> autoreply.  I'd thus like to seed the database with known individuals
>> I'm corresponding with to pretend they've already received the
>> autoresponder.
>>
> 
> You shouldn't try to force feed the dupes files, that's a hack: the
> dupes files has no public api so you probably shouldnt be messing with
> it directly.
> A proper solution would be to include a list of excluded addresses in
> the sieve script, and exempt those from the autoresponder, maybe
> something like this:
> 
> require "envelope";
> require "variables";
> 
> set :lower "whitelist" "first@example,com sec...@example.com";
> 
> if envelope :matches "from" "*" {
>   set :lower "sender" "${0}";
>   if string :matches "${sender}" "${whitelist}" {
> # do nothing, sender is on whitelist
>   } else{
> # do regular autoresponder stuff
>   }
> }
> 
> The whitelist variable could be auto generated and updated from your
> address book or archive box parser.
> 
> I have no idea if this actually scales. You could also implement the
> whitelist variable using extdata
> (http://wiki2.dovecot.org/Pigeonhole/Sieve/Plugins/Extdata), or
> outsource the complete whitelist check to an external program (a trivial
> script in a real programming language) using extprograms's "execute"
> (http://wiki2.dovecot.org/Pigeonhole/Sieve/Plugins/Extprograms).
> 
> Good luck!
> 
> Kind regards,
>   Tom
> 

at sometime in the future

https://tools.ietf.org/html/draft-ietf-sieve-external-lists-10

may solve such cases


Best Regards
MfG Robert Schetterer

-- 
[*] sys4 AG

http://sys4.de, +49 (89) 30 90 46 64
Franziskanerstraße 15, 81669 München

Sitz der Gesellschaft: München, Amtsgericht München: HRB 199263
Vorstand: Patrick Ben Koetter, Marc Schiffbauer
Aufsichtsratsvorsitzender: Florian Kirstein


Re: sieve - editheader - edit in place

2016-03-21 Thread Robert Schetterer
Am 21.03.2016 um 10:24 schrieb Hajo Locke:
> Hello,
> 
> i do some tests with sieve editheader extensions. deleteheader and
> addheader are working, but i noticed that new headerlines are always
> prepended to current header. So new lines can be found always on top. I
> am looking for a possibility to edit a headerline in place, without
> moving the new line to top of stack(replaceheader?). It is not looking
> good if a Subject-Line suddenly moves to top of header.
> Is there a possibility for me?
> 
> Thanks,
> Hajo

i tested this

https://sys4.de/de/blog/2016/01/24/e-mail-weiterleitungen-mit-dovecot-sieve-ohne-spf-dmarc-und-dkim-konflikte-2/

perhaps the example helps


Best Regards
MfG Robert Schetterer

-- 
[*] sys4 AG

http://sys4.de, +49 (89) 30 90 46 64
Franziskanerstraße 15, 81669 München

Sitz der Gesellschaft: München, Amtsgericht München: HRB 199263
Vorstand: Patrick Ben Koetter, Marc Schiffbauer
Aufsichtsratsvorsitzender: Florian Kirstein


Re: v2.2.22 release candidate released

2016-03-05 Thread Robert Schetterer
Am 06.03.2016 um 03:00 schrieb The Doctor:
> Error: Couldn't load plugin /usr/dovecot2221/lib/doveco
> t/settings/libmanagesieve_settings.so: Module is for different ABI version 
> 2.2.
> ABIv13(2.2.13) (we have 2.2.ABIv22(2.2.22.rc1))

that looks like you didnt really upgraded


Best Regards
MfG Robert Schetterer

-- 
[*] sys4 AG

http://sys4.de, +49 (89) 30 90 46 64
Franziskanerstraße 15, 81669 München

Sitz der Gesellschaft: München, Amtsgericht München: HRB 199263
Vorstand: Patrick Ben Koetter, Marc Schiffbauer
Aufsichtsratsvorsitzender: Florian Kirstein


Re: Ubuntu packages

2016-03-05 Thread Robert Schetterer
Am 05.03.2016 um 18:40 schrieb Andrew McGlashan:
> 
> On 5/03/2016 5:15 AM, Peter Chiochetti wrote:
>> Since dovecot put up packages on their own repo, bigmichi stopped
>> providing his'. I guess this is not Stephan; Would the kind person
>> update ppa.launchpad.net/bigmichi1 ?
> 
> Trusting ppas  not for me.
> 
> Running somebody elses' ppa on your system can be a serious security
> risk; you really have to trust those giving you the ppa access.
> 
> Cheers
> A.
> 

for paranoid people, create you own repo
and for info dovecot had nice compiled from scratch to me in the past too


Best Regards
MfG Robert Schetterer

-- 
[*] sys4 AG

http://sys4.de, +49 (89) 30 90 46 64
Franziskanerstraße 15, 81669 München

Sitz der Gesellschaft: München, Amtsgericht München: HRB 199263
Vorstand: Patrick Ben Koetter, Marc Schiffbauer
Aufsichtsratsvorsitzender: Florian Kirstein


Re: Ubuntu packages

2016-03-04 Thread Robert Schetterer
Am 04.03.2016 um 19:15 schrieb Peter Chiochetti:
> Since dovecot put up packages on their own repo, bigmichi stopped
> providing his'. I guess this is not Stephan; Would the kind person
> update ppa.launchpad.net/bigmichi1 ?
> 
> Thank You
> 

what wrong with

http://wiki.dovecot.org/PrebuiltBinaries#Automatically_Built_Packages

builds fine on ubuntu 14.04


Best Regards
MfG Robert Schetterer

-- 
[*] sys4 AG

http://sys4.de, +49 (89) 30 90 46 64
Franziskanerstraße 15, 81669 München

Sitz der Gesellschaft: München, Amtsgericht München: HRB 199263
Vorstand: Patrick Ben Koetter, Marc Schiffbauer
Aufsichtsratsvorsitzender: Florian Kirstein


Re: edit ACL files

2016-02-18 Thread Robert Schetterer
Am 18.02.2016 um 17:54 schrieb Chris:
> Robert Schetterer wrote:
>> Am 17.02.2016 um 20:09 schrieb Chris:
>>> is it possible to edit ACL files regularly with an editor or is there
>>> any
>>> reason to use doveadm?
>>>
>>
>> webmailers have acl imap guis , such as Horde/imp
>> doveadm is a multi admin tool for dovecot which covers many complex tasks
> 
> Sorry, my question was unclear.
> 
> I'd like to use a script to set ACLs. Is it better to call doveadm or can
> I write / modify the acl-files directly?
> 
> - Chris
> 

hm

read

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

and

http://wiki.dovecot.org/ACL

decide what fits better in your usecase

long time ago i modified acl files via cron directly
but i think more clean way is to use doveadm cause
it may give additional warnings and fits better to all kind of mailbox
type setups

Best Regards
MfG Robert Schetterer

-- 
[*] sys4 AG

http://sys4.de, +49 (89) 30 90 46 64
Franziskanerstraße 15, 81669 München

Sitz der Gesellschaft: München, Amtsgericht München: HRB 199263
Vorstand: Patrick Ben Koetter, Marc Schiffbauer
Aufsichtsratsvorsitzender: Florian Kirstein


Re: edit ACL files

2016-02-17 Thread Robert Schetterer
Am 17.02.2016 um 20:09 schrieb Chris:
> Dear All,
> 
> is it possible to edit ACL files regularly with an editor or is there any
> reason to use doveadm?
> 
> - Chris
> 

webmailers have acl imap guis , such as Horde/imp

you can also use Thunderbird

https://addons.mozilla.org/de/thunderbird/addon/imap-acl-extension/

doveadm is a multi admin tool for dovecot which covers many complex tasks


Best Regards
MfG Robert Schetterer

-- 
[*] sys4 AG

http://sys4.de, +49 (89) 30 90 46 64
Franziskanerstraße 15, 81669 München

Sitz der Gesellschaft: München, Amtsgericht München: HRB 199263
Vorstand: Patrick Ben Koetter, Marc Schiffbauer
Aufsichtsratsvorsitzender: Florian Kirstein


Re: Redundant and Geobalancing setup

2016-02-13 Thread Robert Schetterer
Am 13.02.2016 um 04:00 schrieb Cedric Malitte:
> Hi,
> 
> I use dovecot for a long time now, but only as a single isolated server
> each time.
> 
> I joined a company a few years back. We had trouble with compagnies hosting
> our mail, supposedly full redundant and so on.
> 
> The company is small, but we have many dealers around the world, and it's
> growing.
> 
> Mail became the fist choice for clients to contact the dealers.
> No mail, and we loose sales.
> 
> For now we have a single server ( with a backup ) on east coast.
> And sometimes peoples from EU complain about speed ah users :)
> 
> What I'd like to implement is a redundant system with 2 servers, one in NA,
> one in EU.
> And I'd also like to be able to add another server if needed on the west
> coast.
> 
> Idea is, that if a server goes down, the users will be able to still
> receive and send mails, and never loose mails.
> 
> For geobalacing and failover, I read that I can do it with DNS ( I'm with
> easydns ).
> 
> I'm at the first stage where I collect informations that I try to
> understand and foresee a solution.
> 
> First idea is to set up servers with a mysql master, slaves and a glusterfs
> in replica mode on the servers.
> I tried glusterfs on FreeBSD and OMG, it's slow as hell ! ( well maybe it's
> a trouble on the VMs nics )
> On centos it's way better.
> But I read there might be trouble/index corruption for the mail storage on
> "shared" space using maildir.
> 
> I also had a look at dsync, but I wonder if it can be used on more than 2
> servers.
> 
> I found many pages on dovecot clusters using shared storage NFS mounted,
> but I feel it's not really what I need as the servers will be in different
> datacenters.
> 
> So any guide, clue hint would be really appreciated for me to do my
> homework !
> 
> Regards.
> 
> Cedric
> 

complicated and expensive for a small company
why not have one imap server in US and the other in EU
so US Users should have their Mailboxes on the US Server
EU users should have their Mailboxes on the EU Server

Smtp you might manage via smtp routing, perhaps with subdomains us eu
and aliasing

Or you might take some paid service which has geo stuff allready up and
and running, dont try or think of doing it yourself, unlees youre a guru

Best Regards
MfG Robert Schetterer

-- 
[*] sys4 AG

http://sys4.de, +49 (89) 30 90 46 64
Franziskanerstraße 15, 81669 München

Sitz der Gesellschaft: München, Amtsgericht München: HRB 199263
Vorstand: Patrick Ben Koetter, Marc Schiffbauer
Aufsichtsratsvorsitzender: Florian Kirstein


Re: Redundant and Geobalancing setup

2016-02-13 Thread Robert Schetterer
Am 14.02.2016 um 07:15 schrieb Cedric Malitte:
> Thanks Robert,
> 
> Having 2 separate servers would mean domain splitting in a way.
> So I'll have to dispatch incoming mail, and maintain 2 or more users
> databases.
> Well I could only maintain one, and let the DB replicate itself to other
> servers and only grab the users they are allowed to.
> 
> We have many domain aliases for many countries and a dozen users traveling
> around the globe.
> So geo balacing would not be the best for them.

hm...
you could do some dns setup which gives differ results
for your mail servers depending to the clients source ip

> 
> But the redundancy is missing if one server goes down, I loose a bunch
> of users and that's not what I am looking for.

yes storage and balancing is the problem, there are differ ways to solve it

> 
> I looked for providers offering that, but I guess my bosses would not let
> me spend over 3000$ per month on that.
> Else I would already have the mails hosted by microsoft and have a cocktail
> on the beach :)

a selfdone setup will not be cheap too

> 
> I'm not any kind of guru, I do not have any disciples.
> I did kernel mod development on embedded systems with freebsd 4 and 5, I
> still develop some linux kernel drivers for proprietary systems from time
> to time.
> My main degree is electronic engineering and I also graduated in computing
> related to management in other words I learned a bit of everything to be
> able to manage teams developers and understand what they do.

what i mean is experts in mail setups not your degree

> 
> Looks like it's doable, so I'll continue to dig and experiment.

of course it can be done ,but i think you will have a hard time unless
you get help from people with experience in that


> 
> Best regards
> 
> Cedric
> 
> 
> 2016-02-13 16:05 GMT-05:00 Robert Schetterer <r...@sys4.de>:
> 
>> Am 13.02.2016 um 04:00 schrieb Cedric Malitte:
>>> Hi,
>>>
>>> I use dovecot for a long time now, but only as a single isolated server
>>> each time.
>>>
>>> I joined a company a few years back. We had trouble with compagnies
>> hosting
>>> our mail, supposedly full redundant and so on.
>>>
>>> The company is small, but we have many dealers around the world, and it's
>>> growing.
>>>
>>> Mail became the fist choice for clients to contact the dealers.
>>> No mail, and we loose sales.
>>>
>>> For now we have a single server ( with a backup ) on east coast.
>>> And sometimes peoples from EU complain about speed ah users :)
>>>
>>> What I'd like to implement is a redundant system with 2 servers, one in
>> NA,
>>> one in EU.
>>> And I'd also like to be able to add another server if needed on the west
>>> coast.
>>>
>>> Idea is, that if a server goes down, the users will be able to still
>>> receive and send mails, and never loose mails.
>>>
>>> For geobalacing and failover, I read that I can do it with DNS ( I'm with
>>> easydns ).
>>>
>>> I'm at the first stage where I collect informations that I try to
>>> understand and foresee a solution.
>>>
>>> First idea is to set up servers with a mysql master, slaves and a
>> glusterfs
>>> in replica mode on the servers.
>>> I tried glusterfs on FreeBSD and OMG, it's slow as hell ! ( well maybe
>> it's
>>> a trouble on the VMs nics )
>>> On centos it's way better.
>>> But I read there might be trouble/index corruption for the mail storage
>> on
>>> "shared" space using maildir.
>>>
>>> I also had a look at dsync, but I wonder if it can be used on more than 2
>>> servers.
>>>
>>> I found many pages on dovecot clusters using shared storage NFS mounted,
>>> but I feel it's not really what I need as the servers will be in
>> different
>>> datacenters.
>>>
>>> So any guide, clue hint would be really appreciated for me to do my
>>> homework !
>>>
>>> Regards.
>>>
>>> Cedric
>>>
>>
>> complicated and expensive for a small company
>> why not have one imap server in US and the other in EU
>> so US Users should have their Mailboxes on the US Server
>> EU users should have their Mailboxes on the EU Server
>>
>> Smtp you might manage via smtp routing, perhaps with subdomains us eu
>> and aliasing
>>
>> Or you might take some paid service which has geo stuff allready up and
>> and running, dont try or think of doing it yourself, unlees youre a guru
>>
>> Best Regards
>> MfG Robert Schetterer
>>
>> --
>> [*] sys4 AG
>>
>> http://sys4.de, +49 (89) 30 90 46 64
>> Franziskanerstraße 15, 81669 München
>>
>> Sitz der Gesellschaft: München, Amtsgericht München: HRB 199263
>> Vorstand: Patrick Ben Koetter, Marc Schiffbauer
>> Aufsichtsratsvorsitzender: Florian Kirstein
>>



Best Regards
MfG Robert Schetterer

-- 
[*] sys4 AG

http://sys4.de, +49 (89) 30 90 46 64
Franziskanerstraße 15, 81669 München

Sitz der Gesellschaft: München, Amtsgericht München: HRB 199263
Vorstand: Patrick Ben Koetter, Marc Schiffbauer
Aufsichtsratsvorsitzender: Florian Kirstein


Re: Released Pigeonhole v0.4.12 for Dovecot v2.2.21

2016-02-08 Thread Robert Schetterer
Am 08.02.2016 um 18:49 schrieb Stephan Bosch:
> Op 2/7/2016 om 8:11 AM schreef Robert Schetterer:
>> Am 06.02.2016 um 11:32 schrieb Stephan Bosch:
>>> Hello Dovecot users,
>>>
>>> Here is the final v0.4.12 release of Pigeonhole for Dovecot v2.2.21.
>>> Nothing changed since the RC.
>>>
>>> Changelog v0.4.12:
>>>
>>> + Implemented the Sieve extracttext extension (RFC 5703; Section 7). It
>>>   is now possible to extract body text from a message into a variable.
>>> * Increased ABI version due to changes in the Sieve interpreter's object
>>>   definitions.
>>> - multiscript: Fixed bug in handling of (implicit) keep; final keep
>>>   action was always executed as though there was a failure. This caused
>>>   the keep action to revert back to the initial message, causing
>>>   editheader actions to be ignored.
>>> - managesieve-login: Fixed proxy to allow SASL mechanisms other than
>>>   PLAIN. Before, the proxy would fail if the server did not support the
>>>   PLAIN mechanism.
>>> - ldap storage: Prevent segfault occurring when assigning certain
>>>   (global) configuration options.
>>>
>>> The release is available as follows:
>>>
>>> http://pigeonhole.dovecot.org/releases/2.2/dovecot-2.2-pigeonhole-0.4.12.tar.gz
>>> http://pigeonhole.dovecot.org/releases/2.2/dovecot-2.2-pigeonhole-0.4.12.tar.gz.sig
>>>
>>> Refer to http://pigeonhole.dovecot.org and the Dovecot v2.x wiki for
>>> more information. Have fun testing this release and don't hesitate to
>>> notify me when there are any problems.
>>>
>>> Regards,
>>>
>> Hi Stephan, looks like
>> the last update at http://xi.rename-it.nl/
>> was on 04-Feb-2016 perhaps an additional build is need
>> with Pigeonhole v0.4.12 ?
>  
> As I mentioned earlier, Xi currently does not track release branches; it
> only follows master which has placeholder version 2.2.devel (Pigionhole
> has 0.4.devel).  So, unless I intervene manually, base versions are
> stuck at where they were last: Dovecot v2.2.21 and Pigeonhole v0.4.11.
> Of course, all changes are in there, but the versions are not updated
> with recent releases. This will be implemented once Dovecot v2.2.22 is
> released, so that I can test this properly.
> 
> Currently, as a workaround, you can use the git hash in the version
> output from `dovecot -n` to find which master commits are part of your
> package and thereby get an idea of what approximate version you are
> actually running.
> 
> Regards,
> 
> Stephan.
> 

thx Stephan , i am thinking i am fine now

with

dovecot_2.2.21-1~auto+115

looks like all sieve patches i want to test are included
reading git changelog


Best Regards
MfG Robert Schetterer

-- 
[*] sys4 AG

http://sys4.de, +49 (89) 30 90 46 64
Franziskanerstraße 15, 81669 München

Sitz der Gesellschaft: München, Amtsgericht München: HRB 199263
Vorstand: Patrick Ben Koetter, Marc Schiffbauer
Aufsichtsratsvorsitzender: Florian Kirstein


Re: Released Pigeonhole v0.4.12 for Dovecot v2.2.21

2016-02-06 Thread Robert Schetterer
Am 06.02.2016 um 11:32 schrieb Stephan Bosch:
> Hello Dovecot users,
> 
> Here is the final v0.4.12 release of Pigeonhole for Dovecot v2.2.21.
> Nothing changed since the RC.
> 
> Changelog v0.4.12:
> 
> + Implemented the Sieve extracttext extension (RFC 5703; Section 7). It
>   is now possible to extract body text from a message into a variable.
> * Increased ABI version due to changes in the Sieve interpreter's object
>   definitions.
> - multiscript: Fixed bug in handling of (implicit) keep; final keep
>   action was always executed as though there was a failure. This caused
>   the keep action to revert back to the initial message, causing
>   editheader actions to be ignored.
> - managesieve-login: Fixed proxy to allow SASL mechanisms other than
>   PLAIN. Before, the proxy would fail if the server did not support the
>   PLAIN mechanism.
> - ldap storage: Prevent segfault occurring when assigning certain
>   (global) configuration options.
> 
> The release is available as follows:
> 
> http://pigeonhole.dovecot.org/releases/2.2/dovecot-2.2-pigeonhole-0.4.12.tar.gz
> http://pigeonhole.dovecot.org/releases/2.2/dovecot-2.2-pigeonhole-0.4.12.tar.gz.sig
> 
> Refer to http://pigeonhole.dovecot.org and the Dovecot v2.x wiki for
> more information. Have fun testing this release and don't hesitate to
> notify me when there are any problems.
> 
> Regards,
> 

Hi Stephan, looks like
the last update at http://xi.rename-it.nl/
was on 04-Feb-2016 perhaps an additional build is need
with Pigeonhole v0.4.12 ?


Best Regards
MfG Robert Schetterer

-- 
[*] sys4 AG

http://sys4.de, +49 (89) 30 90 46 64
Franziskanerstraße 15, 81669 München

Sitz der Gesellschaft: München, Amtsgericht München: HRB 199263
Vorstand: Patrick Ben Koetter, Marc Schiffbauer
Aufsichtsratsvorsitzender: Florian Kirstein


Re: Setting Recent Flag on New Messages?

2016-01-28 Thread Robert Schetterer
Am 28.01.2016 um 16:51 schrieb Haravikk:
> I’ve tried sieve, but it can’t set this flag.

imapflags muss be added in 90-sieve.conf like

sieve_extensions = +notify +imapflags +editheader

from short sight on


https://tools.ietf.org/html/rfc5232

i found no reason why it shouldnt work, but Stephan Bosch should be the
best man to answer it


Best Regards
MfG Robert Schetterer

-- 
[*] sys4 AG

http://sys4.de, +49 (89) 30 90 46 64
Franziskanerstraße 15, 81669 München

Sitz der Gesellschaft: München, Amtsgericht München: HRB 199263
Vorstand: Patrick Ben Koetter, Marc Schiffbauer
Aufsichtsratsvorsitzender: Florian Kirstein


Re: dsync: INBOX Can't be deleted

2016-01-26 Thread Robert Schetterer
Am 26.01.2016 um 16:29 schrieb Marc Schiffbauer:
> * Timo Sirainen schrieb am 26.01.16 um 16:00 Uhr:
>>
>>> On 26 Jan 2016, at 15:56, Marc Schiffbauer <m...@sys4.de> wrote:
>>>
>>> * Sami Ketola schrieb am 23.01.16 um 23:27 Uhr:
>>>>
>>>>
>>>> On 23/01/16 15:33, Robert Schetterer wrote:
>>>>> for multiple advanced imap settings at migration you might use 
>>>>> imapsync not dsync Best Regards MfG Robert Schetterer 
>>>> Sure but imapsync does not preserve message UID's which means that users 
>>>> end up redownloading all their messages or message/UID mismatches will 
>>>> happen.
>>>
>>> IIRC that is not true. Some years ago I migrated a server to dovecot and 
>>> managed to do it with proper UID migration. No clients were required to 
>>> re-download Mail. Nor over IMAP neither POP3.
>>
>> IMAP protocol doesn't have a way for clients to specify UIDs.
>> Especially UIDVALIDITY can't be preserved in any way. IMAP clients
>> don't necessarily make it clearly visible that they're redownloading
>> mails though. With POP3 clients if they use the keep-mails-on-server
>> it pretty much has to redownload mails as duplicates. Unless the UIDL
>> was based on some email headers or such, the POP3 UIDL can't be
>> preserved either.
> 
> IDNRC ;-)
> 
> Then I am pretty sure that I used dsync. Because I AM sure that I had no 
> issues with re-dpwnloadeing and that I had an eye on especially on that.
> 

Hi Marc, you used dsync before on your project with success, then we
tried it too on the "our" project, that failed ,so we used imapsync
we ignored the problem with users pop3 letting their mails on the server
or better ,we pre informed them what will happen.


> -Marc
> 
> 



Best Regards
MfG Robert Schetterer

-- 
[*] sys4 AG

http://sys4.de, +49 (89) 30 90 46 64
Franziskanerstraße 15, 81669 München

Sitz der Gesellschaft: München, Amtsgericht München: HRB 199263
Vorstand: Patrick Ben Koetter, Marc Schiffbauer
Aufsichtsratsvorsitzender: Florian Kirstein


Re: dsync: INBOX Can't be deleted

2016-01-24 Thread Robert Schetterer
Am 23.01.2016 um 23:27 schrieb Sami Ketola:
> 
> 
> On 23/01/16 15:33, Robert Schetterer wrote:
>> for multiple advanced imap settings at migration you might use
>> imapsync not dsync Best Regards MfG Robert Schetterer 
> Sure but imapsync does not preserve message UID's which means that users
> end up redownloading all their messages or message/UID mismatches will
> happen.
> 
> Sami

One Year ago i tested Migration with dsync and it never worked
as awaited with non dovecot source server, hopefully somebody
other may help you and dsync code is now good enough to fix your
problem.


Best Regards
MfG Robert Schetterer

-- 
[*] sys4 AG

http://sys4.de, +49 (89) 30 90 46 64
Franziskanerstraße 15, 81669 München

Sitz der Gesellschaft: München, Amtsgericht München: HRB 199263
Vorstand: Patrick Ben Koetter, Marc Schiffbauer
Aufsichtsratsvorsitzender: Florian Kirstein


Re: dsync: INBOX Can't be deleted

2016-01-24 Thread Robert Schetterer
Am 24.01.2016 um 12:21 schrieb Sami Ketola:
> 
> 
> On 24/01/16 11:38, Robert Schetterer wrote:
>> Am 23.01.2016 um 23:27 schrieb Sami Ketola:
>>>
>>> On 23/01/16 15:33, Robert Schetterer wrote:
>>>> for multiple advanced imap settings at migration you might use
>>>> imapsync not dsync Best Regards MfG Robert Schetterer
>>> Sure but imapsync does not preserve message UID's which means that users
>>> end up redownloading all their messages or message/UID mismatches will
>>> happen.
>>>
>>> Sami
>> One Year ago i tested Migration with dsync and it never worked
>> as awaited with non dovecot source server, hopefully somebody
>> other may help you and dsync code is now good enough to fix your
>> problem.
>>
> One year ago we made successfull migrations with dsync. What kind of
> problems you had with it? Since dsync is the way we basicly do all our
> migrations.
> 
> Sami

I didnt remember exactly , i think it was no preserve message UID's from
courier source and additional namespace change on dovecot target
however it was not a big problem with imapsync and advice the users to
configure their clients to new server in total



Best Regards
MfG Robert Schetterer

-- 
[*] sys4 AG

http://sys4.de, +49 (89) 30 90 46 64
Franziskanerstraße 15, 81669 München

Sitz der Gesellschaft: München, Amtsgericht München: HRB 199263
Vorstand: Patrick Ben Koetter, Marc Schiffbauer
Aufsichtsratsvorsitzender: Florian Kirstein


Re: Sieve "foreverypart" and "mime" extensions (RFC 5703) now implemented

2016-01-24 Thread Robert Schetterer
Am 29.11.2015 um 20:48 schrieb Robert Schetterer:
> Am 29.11.2015 um 20:20 schrieb Stephan Bosch:
>> Hi,
>>
>> I have finally managed to implement the Sieve "foreverypart" and "mime"
>> extensions (RFC 5703). These are now included in the main Mercurial
>> repository and will be included in the next release.
>>
>> I will be fixing a few minor details in the coming week; e.g.,
>> interaction with "include" and "editheader" extensions needs more work.
>> Still,  in the mean time, those of you who are interested can already
>> test this feature a bit. It is not a small feature, so knowing bugs
>> early is helpful. You can install it from the Mercurial repository or
>> get the latest Debian packages from Xi.
>>
>> When I finish the last details (probably next week), I will release a
>> first RC version of Pigeonhole v0.4.10 right away.
>>
>> Regards,
>>
>> Stephan.
>>
> 
> Hi Stephan, thats good news, thx for coding
> so i can go on with tests about
> 
> forward mail without SPF DMARC conflicts via sieve
> 
> i ve written a german blog about that a year ago
> 
> https://sys4.de/de/blog/2014/10/29/email-forward-mit-sieve-ohne-spf-dmarc-und-dkim-konflikte/
> 
> 
> Best Regards
> MfG Robert Schetterer
> 


now tests with new extensions

https://sys4.de/de/blog/2016/01/24/e-mail-weiterleitungen-mit-dovecot-sieve-ohne-spf-dmarc-und-dkim-konflikte-2/


Best Regards
MfG Robert Schetterer

-- 
[*] sys4 AG

http://sys4.de, +49 (89) 30 90 46 64
Franziskanerstraße 15, 81669 München

Sitz der Gesellschaft: München, Amtsgericht München: HRB 199263
Vorstand: Patrick Ben Koetter, Marc Schiffbauer
Aufsichtsratsvorsitzender: Florian Kirstein


Re: dsync: INBOX Can't be deleted

2016-01-23 Thread Robert Schetterer
Am 23.01.2016 um 10:30 schrieb Christoph Adomeit:
> Hi,
> 
> I am Migrating an old cyrus mailserver to dovecot.
> 
> in the old cyrus Mailserver all User Mailboxes are
> sub-mailboxes of their INBOX.
> 
> I have to preserve that structure.
> 
> During Migration with dsync I get these Errors:
> 
> Error: Mailbox INBOX sync: mailbox_delete failed: INBOX can't be deleted
> 
> Is there a way to work around these Errors ?
> 
> Thanks
>   Christoph
> 

for multiple advanced imap settings at migration you might use imapsync
not dsync


Best Regards
MfG Robert Schetterer

-- 
[*] sys4 AG

http://sys4.de, +49 (89) 30 90 46 64
Franziskanerstraße 15, 81669 München

Sitz der Gesellschaft: München, Amtsgericht München: HRB 199263
Vorstand: Patrick Ben Koetter, Marc Schiffbauer
Aufsichtsratsvorsitzender: Florian Kirstein


Re: segfaults with Dovecot 2.2.21

2016-01-22 Thread Robert Schetterer
Am 22.01.2016 um 10:06 schrieb Peer Heinlein:
> Am 21.01.2016 um 23:20 schrieb Robert Schetterer:
> 
> 
>> just recompiled the same on ubuntu 14.04
>> running tests no bugs yet
> 
> Yes, we also have this version running on other systems without segfaults.
> 
>> dovecot-core:amd64 2:2.2.21-1~auto+66
> 
> (and we also had segfaults with older builds)
> 
> 
> Peer
> 
> 
> 
> 

Ok thx for info


Best Regards
MfG Robert Schetterer

-- 
[*] sys4 AG

http://sys4.de, +49 (89) 30 90 46 64
Franziskanerstraße 15, 81669 München

Sitz der Gesellschaft: München, Amtsgericht München: HRB 199263
Vorstand: Patrick Ben Koetter, Marc Schiffbauer
Aufsichtsratsvorsitzender: Florian Kirstein


Re: segfaults with Dovecot 2.2.21

2016-01-21 Thread Robert Schetterer
-> /usr/lib/dovecot/libdovecot.so.0(io_loop_handler_run_internal+0xd7)
> [0x7fcbf55b1ee7] ->
> /usr/lib/dovecot/libdovecot.so.0(io_loop_handler_run+0x25)
> [0x7fcbf55b0bb5] -> /usr/lib/dovecot/libdovecot.so.0(io_loop_run+0x38)
> [0x7fcbf55b0d58] ->
> /usr/lib/dovecot/libdovecot.so.0(master_service_run+0x13)
> [0x7fcbf554c4b3] -> dovecot/imap [p142324p3 80.153.228.104 NOOP
> NOOP](main+0x2d8) [0x7fcbf5d77eb8] ->
> /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xfd) [0x7fcbf51adead]
> -> dovecot/imap [p142324p3 80.153.228.104 NOOP NOOP](+0xf03d)
> [0x7fcbf5d7803d]
> 
> 
> 
> 

just recompiled the same on ubuntu 14.04
running tests no bugs yet

dovecot-core:amd64 2:2.2.21-1~auto+66

any idea what action provided  your segfault

Best Regards
MfG Robert Schetterer

-- 
[*] sys4 AG

http://sys4.de, +49 (89) 30 90 46 64
Franziskanerstraße 15, 81669 München

Sitz der Gesellschaft: München, Amtsgericht München: HRB 199263
Vorstand: Patrick Ben Koetter, Marc Schiffbauer
Aufsichtsratsvorsitzender: Florian Kirstein


Re: sieve - content checks with special chars

2016-01-11 Thread Robert Schetterer
Am 11.01.2016 um 11:24 schrieb Hajo Locke:
> Hello,
> 
> currently i try subject tests with special chars and german umlauts öäü
> etc.
> 
> if header :contains "subject" [" äää"] {
>   fileinto "umlauts";
> }
> 
> iam surprised, this is working out of the box. great! in procmail i had
> to add a second step by manual coding the needle with perl.
> is sieve reliable at this kind of tests or are there some special cases?
> iam worried about this, because it was to easy.  confusing... ;)
> 
> Thanks,
> Hajo

I mail fail, but i think working with special chars was fixed some time
ago and is now default on


i found some info here

http://wiki2.dovecot.org/Pigeonhole/Sieve/Troubleshooting#Mailbox_Names_with_non-ASCII_Characters_Cause_Problems



Best Regards
MfG Robert Schetterer

-- 
[*] sys4 AG

http://sys4.de, +49 (89) 30 90 46 64
Franziskanerstraße 15, 81669 München

Sitz der Gesellschaft: München, Amtsgericht München: HRB 199263
Vorstand: Patrick Ben Koetter, Marc Schiffbauer
Aufsichtsratsvorsitzender: Florian Kirstein


Re: Sieve "foreverypart" and "mime" extensions (RFC 5703) now implemented

2015-11-29 Thread Robert Schetterer
Am 29.11.2015 um 20:20 schrieb Stephan Bosch:
> Hi,
> 
> I have finally managed to implement the Sieve "foreverypart" and "mime"
> extensions (RFC 5703). These are now included in the main Mercurial
> repository and will be included in the next release.
> 
> I will be fixing a few minor details in the coming week; e.g.,
> interaction with "include" and "editheader" extensions needs more work.
> Still,  in the mean time, those of you who are interested can already
> test this feature a bit. It is not a small feature, so knowing bugs
> early is helpful. You can install it from the Mercurial repository or
> get the latest Debian packages from Xi.
> 
> When I finish the last details (probably next week), I will release a
> first RC version of Pigeonhole v0.4.10 right away.
> 
> Regards,
> 
> Stephan.
> 

Hi Stephan, thats good news, thx for coding
so i can go on with tests about

forward mail without SPF DMARC conflicts via sieve

i ve written a german blog about that a year ago

https://sys4.de/de/blog/2014/10/29/email-forward-mit-sieve-ohne-spf-dmarc-und-dkim-konflikte/


Best Regards
MfG Robert Schetterer

-- 
[*] sys4 AG

http://sys4.de, +49 (89) 30 90 46 64
Franziskanerstraße 15, 81669 München

Sitz der Gesellschaft: München, Amtsgericht München: HRB 199263
Vorstand: Patrick Ben Koetter, Marc Schiffbauer
Aufsichtsratsvorsitzender: Florian Kirstein


Re: sieve is working/forwarding mail - but not for all users

2015-11-25 Thread Robert Schetterer
Am 25.11.2015 um 15:05 schrieb Götz Reinicke - IT Koordinator:
> Hi,
> 
> we have dovecot-ee-2.2.18.2 and pigeonhole/managesieve 0.4.8 running for
> some time.
> 
> Today some users informed us that they did not get mails from one
> project account forwarded to there personal accounts any more.
> 
> This worked till one week ago and I cant think of any changes we made...
> 
> The project account keeps a copy of received mails.
> 
> I tried two different accounts to configure forwarding to internal and
> external mail addresses which is working.
> 
> Question: Any hint or idea? How may I debug sieve forwarding?
> 
>   Thanks and regards . Götz
> 

look at the related rules and logs ( search for sieve )

i.e

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

...
Compile and Runtime Logging


Best Regards
MfG Robert Schetterer

-- 
[*] sys4 AG

http://sys4.de, +49 (89) 30 90 46 64
Franziskanerstraße 15, 81669 München

Sitz der Gesellschaft: München, Amtsgericht München: HRB 199263
Vorstand: Patrick Ben Koetter, Marc Schiffbauer
Aufsichtsratsvorsitzender: Florian Kirstein


Re: master user in dovecot 1.2

2015-10-15 Thread Robert Schetterer
1.2.9 is very outdated, install a recent version

2009-12-16  1.2.9   changeset | changelog | files

vs

12 days ago Timo Sirainen   Released v2.2.19. 2.2.19


Am 15.10.2015 um 13:12 schrieb Michal Žila:
> Hello list,
> 
> i would like to use master user functionality in dovecot v1.2, but i just 
> cant get it to work:
> 
> Here’s my configuration:
> 
> # dovecot -n
> # 1.2.9: /etc/dovecot.conf
> # OS: Linux 2.6.18-164.10.1.el5PAE i686 Red Hat Enterprise Linux Server 
> release 5.4 (Tikanga)
> 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
> first_valid_uid: 200
> mail_privileged_group: mail
> mail_location: mbox:~/mail:INBOX=/var/mail/%u
> mail_executable(default): /root/dovecot-master-postlogin
> mail_executable(imap): /root/dovecot-master-postlogin
> 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
> lda:
>   postmaster_address: postmas...@example.com
> auth default:
>   master_user_separator: *
>   debug: yes
>   passdb:
> driver: passwd-file
> args: /etc/dovecot.passwd.masterusers
> pass: yes
> master: yes
>   passdb:
> driver: pam
>   userdb:
> driver: passwd
> 
> 
> # cat /root/dovecot-master-postlogin
> #!/bin/bash
> MASTER_USER=$USER
> export MASTER_USER
> exec /usr/libexec/dovecot/imap "$@“
> 
> 
> # cat /etc/dovecot.passwd.masterusers
> masteruser:{PLAIN}Heslo42
> 
> 
> Trying login as normal user:
> 
> # telnet localhost imap
> Trying 127.0.0.1...
> Connected to localhost.localdomain (127.0.0.1).
> Escape character is '^]'.
> * OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE 
> STARTTLS AUTH=PLAIN] Dovecot ready.
> a1 login jozefkova jozefkova026
> a1 OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE SORT 
> SORT=DISPLAY THREAD=REFERENCES THREAD=REFS MULTIAPPEND UNSELECT IDLE CHILDREN 
> NAMESPACE UIDPLUS LIST-EXTENDED I18NLEVEL=1 CONDSTORE QRESYNC ESEARCH ESORT 
> SEARCHRES WITHIN CONTEXT=SEARCH] Logged in
> 
> 
> Trying login as master user:
> 
> # telnet localhost imap
> Trying 127.0.0.1...
> Connected to localhost.localdomain (127.0.0.1).
> Escape character is '^]'.
> * OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE 
> STARTTLS AUTH=PLAIN] Dovecot ready.
> a1 login jozefkova*masteruser Heslo42
> a1 NO [AUTHORIZATIONFAILED] Authorization failed
> 
> 
> log sequence of failed auth:
> 
> Oct 15 13:04:47 linux dovecot: auth(default): client in: AUTH 1   PLAIN   
> service=imapsecured lip=127.0.0.1   rip=127.0.0.1   lport=143   
> rport=34618 resp=
> Oct 15 13:04:47 linux dovecot: auth(default): 
> passwd-file(masteruser,127.0.0.1,master): lookup: user=masteruser 
> file=/etc/dovecot.passwd.masterusers
> Oct 15 13:04:47 linux dovecot: auth(default): 
> passdb(masteruser,127.0.0.1,master): Master user logging in as jozefkova
> Oct 15 13:04:47 linux dovecot: auth-worker(default): 
> pam(jozefkova,127.0.0.1): lookup service=dovecot
> Oct 15 13:04:47 linux dovecot: auth-worker(default): 
> pam(jozefkova,127.0.0.1): #1/1 style=1 msg=Password:
> Oct 15 13:04:49 linux dovecot: auth-worker(default): 
> pam(jozefkova,127.0.0.1): pam_authenticate() failed: Authentication failure 
> (password mismatch?)
> Oct 15 13:04:51 linux dovecot: auth(default): client out: FAIL1   
> user=jozefkova  authz
> 
> 
> 
> So i can see it’s trying to loggin in using pam mech. Is there something i 
> can configure in dovecot userdb or is it something else? I use pam to 
> authenticate my real users…
> 
> 
> Thank you in advance…
> 
> 
> 
> —
> Michal Zila
> 



Best Regards
MfG Robert Schetterer

-- 
[*] sys4 AG

http://sys4.de, +49 (89) 30 90 46 64
Franziskanerstraße 15, 81669 München

Sitz der Gesellschaft: München, Amtsgericht München: HRB 199263
Vorstand: Patrick Ben Koetter, Marc Schiffbauer
Aufsichtsratsvorsitzender: Florian Kirstein


Re: master user in dovecot 1.2

2015-10-15 Thread Robert Schetterer
Am 15.10.2015 um 17:40 schrieb Benny Pedersen:
> Robert Schetterer skrev den 2015-10-15 17:31:
>> 1.2.9 is very outdated, install a recent version
>>
>> 2009-12-16 1.2.9 changeset | changelog | files
> 
> 1.2.17 is latest, if its not any problem with that version i just
> consider its stable
> 
> but fair its outdated, but not unstable

but dont expect wide list support and recent bugfixes included




Best Regards
MfG Robert Schetterer

-- 
[*] sys4 AG

http://sys4.de, +49 (89) 30 90 46 64
Franziskanerstraße 15, 81669 München

Sitz der Gesellschaft: München, Amtsgericht München: HRB 199263
Vorstand: Patrick Ben Koetter, Marc Schiffbauer
Aufsichtsratsvorsitzender: Florian Kirstein


Re: master user in dovecot 1.2

2015-10-15 Thread Robert Schetterer
Am 15.10.2015 um 17:58 schrieb Benny Pedersen:
> Robert Schetterer skrev den 2015-10-15 17:48:
> 
>> but dont expect wide list support and recent bugfixes included
> 
> i have no problem with stable software even if its outdated, for me it
> changes if its unstable

stable vs unstable is a very personal idea from software

over the time related to dovecot there may existed versions called stable
but there was never a bugfree one, depend to all features included, so
its more like a rolling release in general. So using latest is always
the best option




Best Regards
MfG Robert Schetterer

-- 
[*] sys4 AG

http://sys4.de, +49 (89) 30 90 46 64
Franziskanerstraße 15, 81669 München

Sitz der Gesellschaft: München, Amtsgericht München: HRB 199263
Vorstand: Patrick Ben Koetter, Marc Schiffbauer
Aufsichtsratsvorsitzender: Florian Kirstein


Re: master user in dovecot 1.2

2015-10-15 Thread Robert Schetterer
Am 15.10.2015 um 19:27 schrieb Benny Pedersen:
> bugs can be resolved with patchs

i cant speak for Timo

but  1.2.x latest patch

was 17 months ago

perhaps there will be some security patches, if needed, but i guess no
one will fix feature bugs, so it makes no sense to answer list support
questions ,cause they maybe results of unfixed bugs , allready fixed in
latest


Best Regards
MfG Robert Schetterer

-- 
[*] sys4 AG

http://sys4.de, +49 (89) 30 90 46 64
Franziskanerstraße 15, 81669 München

Sitz der Gesellschaft: München, Amtsgericht München: HRB 199263
Vorstand: Patrick Ben Koetter, Marc Schiffbauer
Aufsichtsratsvorsitzender: Florian Kirstein


Re: v2.2.19 released

2015-10-03 Thread Robert Schetterer
Am 03.10.2015 um 10:50 schrieb Timo Sirainen:
> On 02 Oct 2015, at 23:28, Robert Schetterer <r...@sys4.de> wrote:
>>
>> Am 02.10.2015 um 18:13 schrieb Timo Sirainen:
>>> + Added imap-hibernate processes (see imap_hibernate_timeout setting).
>>>  IDLEing IMAP connections can be hibernated, which saves memory.
>>
>> Hm, i have
>>
>> Couldn't hibernate imap client: Couldn't export state: COMPRESS enabled
>>
>> does this mean if zlib plugin is enabled, hibernate dont works ?
> 
> imap_zlib plugin enables COMPRESS. If COMPRESS is used, it can't currently be 
> hibernated. The plan to get this fixed in future means moving the COMPRESS 
> handling code to imap-login process similar to how SSL is handled. But this 
> then needs some post-login communication between imap and imap-login 
> processes, which is a bit larger change.
> 

Thx Timo, for explain, perhaps this should be in the wiki, meanwhile


Best Regards
MfG Robert Schetterer

-- 
[*] sys4 AG

http://sys4.de, +49 (89) 30 90 46 64
Franziskanerstraße 15, 81669 München

Sitz der Gesellschaft: München, Amtsgericht München: HRB 199263
Vorstand: Patrick Ben Koetter, Marc Schiffbauer
Aufsichtsratsvorsitzender: Florian Kirstein


Re: v2.2.19 released

2015-10-02 Thread Robert Schetterer
Am 02.10.2015 um 18:13 schrieb Timo Sirainen:
> + Added imap-hibernate processes (see imap_hibernate_timeout setting).
>   IDLEing IMAP connections can be hibernated, which saves memory.

Hm, i have

Couldn't hibernate imap client: Couldn't export state: COMPRESS enabled

does this mean if zlib plugin is enabled, hibernate dont works ?


Best Regards
MfG Robert Schetterer

-- 
[*] sys4 AG

http://sys4.de, +49 (89) 30 90 46 64
Franziskanerstraße 15, 81669 München

Sitz der Gesellschaft: München, Amtsgericht München: HRB 199263
Vorstand: Patrick Ben Koetter, Marc Schiffbauer
Aufsichtsratsvorsitzender: Florian Kirstein


Re: sieve_extprograms - run any individual script?

2015-09-21 Thread Robert Schetterer
Am 21.09.2015 um 14:34 schrieb Hajo Locke:
> Hello,
> 
> i use sieve extension sieve_extprograms to send incoming mail to some
> script.
> For security reasons it is needed that script-paths etc. are registered
> in dovecot.conf
> This is my current dovecot.conf
> 
> plugin {
>   sieve = ~/.dovecot.sieve
>   sieve_plugins = sieve_extprograms
>   sieve_extensions = +vnd.dovecot.pipe +vnd.dovecot.filter
> +vnd.dovecot.execute
>   sieve_pipe_bin_dir = /usr/local/bin/
>   sieve_filter_bin_dir = /usr/local/bin/
> }
> 
> .dovecot.sieve example:
> 
> if address "to" "t...@example.com"
> {
> filter "myfilter";
> }
> 
> This is all working without problems.
> 
> Is there a possibility to allow users the execution of individual
> scripts in own homepath? Some people need to pipe mails to scripts for
> immediately processing (some ticketsystems need this).
> Is there a way to make this possible with sieve?
> 
> Thanks,
> Hajo

perhaps includes help

http://tools.ietf.org/html/rfc6609




Best Regards
MfG Robert Schetterer

-- 
[*] sys4 AG

http://sys4.de, +49 (89) 30 90 46 64
Franziskanerstraße 15, 81669 München

Sitz der Gesellschaft: München, Amtsgericht München: HRB 199263
Vorstand: Patrick Ben Koetter, Marc Schiffbauer
Aufsichtsratsvorsitzender: Florian Kirstein


Re: concerning dovecot settings for high volume server

2015-09-13 Thread Robert Schetterer
Am 12.09.2015 um 20:53 schrieb Rajesh M:
> hi
> 
> centos 6 64 bit
> 
> hex core processor with hyperthreading ie display shows 12 cores
> 16 gb ram
> 600 gb 15000 rpm drive
> 
> we are having around 4000 users on a server
> 
> 
> i wish to allow 1500 pop3 and 1500 imap connections simultaneously.

for pop3 you will have no problems, perhaps you need a little tuning
imap is different cause many clients will stay idle perhaps you should
consider a setup with loadbalancers and more then one servers


Best Regards
MfG Robert Schetterer

-- 
[*] sys4 AG

http://sys4.de, +49 (89) 30 90 46 64
Franziskanerstraße 15, 81669 München

Sitz der Gesellschaft: München, Amtsgericht München: HRB 199263
Vorstand: Patrick Ben Koetter, Marc Schiffbauer
Aufsichtsratsvorsitzender: Florian Kirstein


Re: Dovecot CalDAV server

2015-09-11 Thread Robert Schetterer
Am 10.09.2015 um 23:43 schrieb Timo Sirainen:
> I've been once in a while over the years thinking about implementing CalDAV 
> (and CardDAV) to Dovecot. It might be time to start that soon. Does anyone 
> have any suggestions? So far my main goals would be:
> 
>  - scalable, of course
>  - configurable storage (object storage, regular fs, maybe some key-value 
> dbs, maybe storing as emails)
>  - efficient indexes (potentially using key-value dbs? or maybe just local 
> files. not sure yet what kind of indexing is needed)
>  - have it work with dsync (= replication & migration)
> 
> Some things I wonder about:
> 
>  - Maybe there is already some code out there that could be used to implement 
> it faster?
>  - Maybe even use something else besides C to implement it.. Then again that 
> makes integration to Dovecot more difficult.
>  - Is anybody interested in helping to develop this? :) I think I still have 
> too much other work that I won't spend a lot of time coding it..
> 
> One thing that makes this easier is that Open-Xchange has already implemented 
> a CalDAV server, so they can help to avoid the biggest design mistakes. 
> (There are a couple of reasons why they'd want to replace that.)
> 

Hi Timo, caldav / carddav in dovecot will be an ultimate nice feature.

I remember Kolab with imap file storage backend, storing vcard, ics in
imap folders. ( which should be hidden )

There was a thunderbird plugin for this, but i had no good performance.
Advantage of this solution might be the exist imap acl system can be
used for all kind of addressbook , kalendar sharing. Perhaps public
addressbooks and calendars are possible too this way ( and at last
anonymous read only ones ).

All other servers i know use some db backend. I  guess you will have
hard times with clients, cause there are all kind of known bugs.

Specially serial appointment with/and different timezones over
summertime and wintertime changes seems difficult to code. Best way all
in UTC and let the client convert it in its local timezone.

Also there are two ways of invitations notices via mail , let the client
send it, or the server has to do it ( or perhaps combinate ).

So resources calenders are needed too ,for auto booking calenders you
need some kind of scripting. For the first releases mark as higly beta ,
its very bad for user if they trust in calenders which might have bugs.

the new thunderbird carddav addressbook seems to stuck
since years

https://github.com/mikeconley/thunderbird-ensemble

Of course i am willing to test your code and report.

Best Regards
MfG Robert Schetterer

-- 
[*] sys4 AG

http://sys4.de, +49 (89) 30 90 46 64
Franziskanerstraße 15, 81669 München

Sitz der Gesellschaft: München, Amtsgericht München: HRB 199263
Vorstand: Patrick Ben Koetter, Marc Schiffbauer
Aufsichtsratsvorsitzender: Florian Kirstein


Re: Message moved to Spam folder mysteriously

2015-09-10 Thread Robert Schetterer
Am 10.09.2015 um 20:02 schrieb Alfredo Saldanha:
> Hi there,
> 
> How dovecot move the message to Spam without antispam plugin installed or 
> sieve rule to move to this folder?
> I have no configuration to do this.
> 
> My logs:
> Sep 10 12:12:44 mda02 dovecot: imap(my.u...@mydomain.com): Warning: Inotify 
> instance limit for user 5000 (UID vmail) exceeded, disabling. Increase 
> /proc/sys/fs/inotify/max_user_instances
> Sep 10 12:12:45 mda02 dovecot: imap(my.u...@mydomain.com): copy from INBOX: 
> box=Spam, uid=134, msgid=<466c888b2179f7e2c0fc74b186396...@mydomain.com>, 
> size=2838
> Sep 10 12:12:45 mda02 dovecot: imap(my.u...@mydomain.com): expunge: 
> box=INBOX, uid=826, msgid=<466c888b2179f7e2c0fc74b186396...@mydomain.com>, 
> size=2838
> 
> I don't have any client connected at the imap server in this time.

Double check this, usally i.e Thunderbird use its only antispam solution
to move mails into spam folder if they exist and configured


> 
> Some tip?
> 
> BR,
> 
> Alfredo
> 



Best Regards
MfG Robert Schetterer

-- 
[*] sys4 AG

http://sys4.de, +49 (89) 30 90 46 64
Franziskanerstraße 15, 81669 München

Sitz der Gesellschaft: München, Amtsgericht München: HRB 199263
Vorstand: Patrick Ben Koetter, Marc Schiffbauer
Aufsichtsratsvorsitzender: Florian Kirstein


Re: dovecot proxy/director and high availability design

2015-07-20 Thread Robert Schetterer
Am 20.07.2015 um 20:04 schrieb Laz C. Peterson:
 I’m trying to do this too.  But the goal would be simply for automatic 
 failover to the other datacenter.  Everything is working if the server’s 
 unique hostname is entered, but I want to do something like round robin DNS 
 that mail clients will automatically attempt to connect to the other IP if 
 they cannot get to the first address.  Unfortunately mail applications don’t 
 really do this like web browsers do …

think about using loadbalancers before directors/proxies with checks, i
dont think you will goal with round robin dns etc for real world setups

 
 ~ Laz Peterson
 Paravis, LLC
 
 On Jul 20, 2015, at 10:29 AM, Chad M Stewart c...@balius.com wrote:


 I'm trying to determine which dovecot components to use and how to order 
 them in the network path from client to mail store.


 If I have say 1,000 users, all stored in MySQL (or LDAP) and have 4 mail 
 stores, configured into 2, 2 node pods.


 MS1 and MS2 are pod1 and are configured with replication (dsync) and host 
 users 0-500.  MS3 and MS4 are pod2 and are configured with replication 
 between them and host users 501-1000.   Ideally the active connections in 
 pod1 would be split 50/50 between MS1 and MS2.  When maintenance is 
 performed obviously all active connections/users would be moved to the other 
 node in the pod and then rebalanced once maintenance is completed.  

 I'm not sure if I need to use both the proxy and director, or just one or 
 the other? If both then what is the proper path, from a network perspective? 
  I like the functionality director provides, being able to add/remove 
 servers on the fly and adjust connections, etc.. But from what I've read 
 director needs to know about all mail servers.  The problem is that not all 
 servers host all users.  User100 could be serviced by ms1 or ms2, but not by 
 ms3 or ms4.  

 I'm trying to design a system that should provide as close to 99.999% 
 service availability as possible.



 Thank you,
 Chad



Best Regards
MfG Robert Schetterer

-- 
[*] sys4 AG

http://sys4.de, +49 (89) 30 90 46 64
Franziskanerstraße 15, 81669 München

Sitz der Gesellschaft: München, Amtsgericht München: HRB 199263
Vorstand: Patrick Ben Koetter, Marc Schiffbauer
Aufsichtsratsvorsitzender: Florian Kirstein


Re: Outlook 2013 not fetching new mail/synchronization issues

2015-06-30 Thread Robert Schetterer
Am 30.06.2015 um 13:06 schrieb Dragos Pacher:
 There is also an antivirus running on client with antispam module. I will
 try to disable it and see
 if there is any change.
 
 Pacher Dragos

yeah most problems are depend to such software


Best Regards
MfG Robert Schetterer

-- 
[*] sys4 AG

http://sys4.de, +49 (89) 30 90 46 64
Franziskanerstraße 15, 81669 München

Sitz der Gesellschaft: München, Amtsgericht München: HRB 199263
Vorstand: Patrick Ben Koetter, Marc Schiffbauer
Aufsichtsratsvorsitzender: Florian Kirstein


  1   2   3   4   5   6   7   8   9   10   >