Re: Thunderbird Subscription missing

2020-01-07 Thread Paul Tansom
Still not quite got my head around what you are expecting to see.
Presumably folders for other dates in September. Depending on how and
why those folders were created they may not exist.

I do note that you used an ls to show the folders, and I'm assuming from
the config below you are using Maildir, so try an ls -a to show the
hidden folders too (those starting with a .). This should show you
directories:

.16Sep19
.25Sep19
.26Sep19

each with a cur, new and tmp directory in, along with some other Dovecot
/ IMAP files such as:

dovecot.index.cache
dovecot.index.log
dovecot-uidlist
maildirfolder

If there are no directories for other dates then Dovecot is showing you
what is there. If there are checking the permissions are correct is a
good starting point.

** Phillip Bruce  [2020-01-07 16:59]:
> I notice to use this command but does tell me a lot either.
> 
> #  doveconf -n
> # 2.2.22 (fe789d2): /etc/dovecot/dovecot.conf
> # Pigeonhole version 0.4.13 (7b14904)
> # OS: Linux 4.4.0-130-generic x86_64 Ubuntu 16.04.6 LTS
> disable_plaintext_auth = no
> mail_location = maildir:~/Maildir
> 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 =
> }
> passdb {
>   driver = pam
> }
> protocols = " imap"
> ssl = no
> userdb {
>   driver = passwd
> }
> #
> 
> Phillip
> 
> From: Phillip Bruce
> Sent: Tuesday, January 7, 2020 8:26 AM
> To: dovecot@dovecot.org
> Subject: Thunderbird Subscription missing
> 
> Hello,
> 
> I have an usual isshere we are using thunderbird for client.
> The version of dovecot is as followed:
> 
> # dovecot --version
> 2.2.22 (fe789d2)
> 
> The dovecot service is runnon on VERSION="16.04.6 LTS (Xenial Xerus)"
> 
> Thunderbird version 68.3.1 (32 bit) version.
> 
> What happening when managing subscription there seems to be folders that are 
> missing.
> They were not purged nor did anything happen like an outage.
> 
> If you look at this below Sep19 (for September 2019), It list only the 
> following folders:
> 16Sep19,
> 25Sep19
> 26Sep19
> 
> [cid:image002.png@01D5C536.5A7C7770]
> 
> To me this looks like some indexing gone south.
> I've tried this
> 
> # doveadm mailbox status -u arhive
> doveadm mailbox status [-u |-A] [-S ]   
> [...]
> 
> # doveadm mailbox status -u archive Maildir
> # doveadm mailbox status [-u |-A] [-S ]   
> [...]
> r# doveadm mailbox status -u archive INBOX
> @doveadm mailbox status [-u |-A] [-S ]   
> [...]
> 
> The user is archive
> 
> The user home folder is this:
> # pwd
> /home/mail/archive/Maildir
> 
> This what in it.
> # ls
> cur   dovecot.index.logdovecot.mailbox.log.2 
> dovecot-uidvalidity.50ca19bb  tmp
> dovecot.index dovecot.index.log.2  dovecot-uidlist   
> dovecot-uidvalidity.50ca19bc
> dovecot.index.cache   dovecot-keywords dovecot-uidvalidity   
> dovecot-uidvalidity.50ca1b2d
> dovecot.index.cache.gzdovecot-keywords.gz  dovecot-uidvalidity.50ca1990  
> new
> dovecot.index.cache.gz.2  dovecot.mailbox.log  dovecot-uidvalidity.50ca19ab  
> subscriptions
> 
> # doveadm log errors
> #
> 
> I don't see in errors. I tried to reload dovecot.
> # doveadm instance list
> path  namelast used   
> running
> /var/run/dovecot  dovecot 2020-01-06 22:41:46 
> yes
> root@dc3-ops-prod-vserv-archive01:~#
> 
> There nothing in the logs that I can see.
> 
> # doveadm user -u archive
> userdb: archive
>   user  : archive
>   system_groups_user: archive
>   uid   : 1011
>   gid   : 1011
>   home  : /home/archive
> root@dc3-ops-prod-vserv-archive01:~#
> 
> Any suggestions would be helpful.
> 
> Thanks,
> 
> Phillip Bruce
> Sr. System Engineer
> 415-590-8491 office
> "The answer to your Traveling Solution"
> [Deem Demo]
> 
> This message and any files or text attached to it are intended only for the 
> recipients named above, and contain information that may be confidential or 
> privileged. If you are not an intended recipient, or you have reason to 
> believe that you received this message in error, you must not read, copy, use 
> or disclose this communication. Please also notify the sender by replying to 
> this message, and then delete all copies of it from your system. Thank you.



** end quote [Phillip Bruce]

-- 
 Paul Tansom  |  Aptanet Ltd.  |  https://www.aptanet.com/  |  023 9238 0001
=
Registered in England | Company No: 4905028 | Registered Office: Ralls House,
Parklands Business Park, Forrest Road, Denmead, Waterlooville, Hants, PO7 6XP


Public folder subscriptions with Outlook

2015-09-08 Thread Paul Tansom
This is more an Outlook issue than Dovecot, but given that it is connected to
Dovecot I figured there would be a good pool of knowledge here that increases
the likelihood that somebody knows the answer :)

I have a Dovecot server setup with a public folder and keep getting complaints
that Outlook users don't see new folders created by other people. In
Thunderbird it is simply a case of unchecking the box to only show subscribed
folders, but I can't find a way to do this in Outlook. The only thing I can
think of is putting a script on the server to check for new folders and update
each users subcriptions file, but I'm not completely happy with that solution!

Any suggestions welcome.

-- 
 Paul Tansom  |  Aptanet Ltd.  |  https://www.aptanet.com/  |  023 9238 0001
 Vice Chair, FSB Portsmouth & SE Hampshire Branch  |  http://www.fsb.org.uk/
=
Registered in England | Company No: 4905028 | Registered Office: Ralls House,
Parklands Business Park, Forrest Road, Denmead, Waterlooville, Hants, PO7 6XP


Re: Public folder subscriptions with Outlook

2015-09-08 Thread Paul Tansom
** Jerry <je...@seibercom.net> [2015-09-08 11:30]:
> On Tue, 8 Sep 2015 11:16:52 +0100, Paul Tansom stated:
> >This is more an Outlook issue than Dovecot, but given that it is connected to
> >Dovecot I figured there would be a good pool of knowledge here that increases
> >the likelihood that somebody knows the answer :)
> >
> >I have a Dovecot server setup with a public folder and keep getting
> >complaints that Outlook users don't see new folders created by other people.
> >In Thunderbird it is simply a case of unchecking the box to only show
> >subscribed folders, but I can't find a way to do this in Outlook. The only
> >thing I can think of is putting a script on the server to check for new
> >folders and update each users subcriptions file, but I'm not completely
> >happy with that solution!
> >
> >Any suggestions welcome.
> 
> What version of Outlook?
** end quote [Jerry]

Mainly 2010, but I think there may be a 2003 too. At the moment I'm looking
into using 'subscriptions = yes' in the namespace to use a shared subscriptions
file for the public folder - posting to this list has started me thinking of
things I can do on the server rather than the client.

-- 
 Paul Tansom  |  Aptanet Ltd.  |  https://www.aptanet.com/  |  023 9238 0001
 Vice Chair, FSB Portsmouth & SE Hampshire Branch  |  http://www.fsb.org.uk/
=
Registered in England | Company No: 4905028 | Registered Office: Ralls House,
Parklands Business Park, Forrest Road, Denmead, Waterlooville, Hants, PO7 6XP


Re: [Dovecot] Struggling with antispam

2014-03-07 Thread Paul Tansom
** Alan Chandler a...@chandlerfamily.org.uk [2014-03-06 08:01]:
 On 06/03/14 07:48, Alan Chandler wrote:
 However, when I try to make this work with anitspam, I keep
 getting failure, and I can't work out what is causing it.  Maybe
 its again because I am running with uid 10001 when calling
 sendmail but I don't know.
 
 antispam config is
 
 plugin {
 ...
 
antispam_pipe_program=/usr/bin/sendmail
 
 Arrg:
 
 I have been struggling with this all yesterday evening.  Two minutes
 after posting this I realise it is /usr/sbin/sendmail, not
 /usr/bin/sendmail
 
 Sorry for the noise  (Although I would prefer to use the dspam
 backend if I could).
 
 It is not working yet - postfix has rejected the mail because it
 came from an unknown sender (ds...@chandlerfamily.org.uk) I could
 use %u on the sender address - but then my sieve script to save
 outgoing mail would have to change to ignore mail aimed at the spam
 addresses.
** end quote [Alan Chandler]

I wouldn't worry about it. I've done this plenty of times in the past, usually
when I lack somebody (often completely non-technical) to try and explain things
to. Sometimes it can be worth blogging or documenting - sorry to use that word
;) - things instead of boring somebody with at technical explanation - or
posting something to a mailing list :)

Anyway, as an aside to this, I've been amazed how effective greylisting has
been - so much so a that on my server I've not got round to putting the full
anti-spam configuration back in. I should imagine that on a raspberry pi the
reduced load either of not running the anti-spam or much less mail being
checked would be welcome.

Without going into technical detail, all I am doing is greylisting anything
that comes in and is on a RBL. Non RBL stuff gets straight through, so if a
proper mail server is spamming and not yet on a RBL it doesn't help. If a
legitimate server has ended up on a RBL by mistake it will try again (although
so will a compromised one) and just be slowed down. The vast majority of spam,
for me at least it seems, just doesn't bother to retry so there is no need to
use processing power to scan it. Of course at some point the spammers will
improve their processes no doubt, but for now they just seem to want to churn
it out to anyone that will accept it without question and bother the rest. My
volume of mail is pretty low (only a few thousand a day I think), so the hassle
of setting up scanning hasn't been worth effort - yet - for the small volume of
spam that gets through (although being a long term Mutt user for my mail I find
I fly through managing mail compared to using a mouse).

-- 
 Paul Tansom  |  Aptanet Ltd.  |  http://www.aptanet.com/  |  023 9238 0001
=
Registered in England | Company No: 4905028 | Registered Office: Ralls House,
Parklands Business Park, Forrest Road, Denmead, Waterlooville, Hants, PO7 6XP


Re: [Dovecot] Struggling with antispam

2014-03-07 Thread Paul Tansom
** Noel noeld...@gmail.com [2014-03-07 17:23]:
 On 3/7/2014 10:21 AM, Alan Chandler wrote:
 
  One question I would be very interested in - and can't find much
  about it is how long do you greylist these people for?
 
  Basically I only greylist people who fail the spf checks at the
  moment (that is specifically those who explicitly fail the spf
  check and those that have an spf record with a +all at the end)
 
  I greylist a softfail for 4 hours and a hard fail or open for 12,
  but I plucked these figures out of the air.
 
  Alan
 
 A delay of 5..15 minutes is sufficient, a delay of hours
 unnecessarily delays legit mail without increasing the
 effectiveness.  The vast majority of bots either don't retry, or
 retry once immediately. 
 
 It seems to me that greylisting based on spf would not be very
 effective since it appears many bot herders intentionally use
 domains without spf records.
 
 Remember the purpose of greylisting is to reject bots, not delay
 real mail servers -- even if you don't want their mail.
** end quote [Noel]

That sounds about right. I'm blocking unknown hosts for 10 minutes before
whitelisting them for 8 hours. If they don't retry with that time they are
dropped from the whitelist, but if they do that whitelist is extended to 60
days. At least that's the way I'm reading the config. It's a pretty standard
greylistd config combined with exim and dovecot. It's running on an Atom 330
based server, although that is protected to some extent via a similar setup on
a lightweight VPS that routes mail in via the hubbed hosts config. I'm actually
thinking of clustering the two boxes instead which may work better if my
internet connection goes down (which it did for about a week thanks to BT line
problems last year). Next is to improve my backup process which is untidy.

-- 
 Paul Tansom  |  Aptanet Ltd.  |  http://www.aptanet.com/  |  023 9238 0001
=
Registered in England | Company No: 4905028 | Registered Office: Ralls House,
Parklands Business Park, Forrest Road, Denmead, Waterlooville, Hants, PO7 6XP


Re: [Dovecot] Dove LDA vs Exim LDA

2013-12-02 Thread Paul Tansom
** Kumar Shantanu shant...@techblue.co.uk [2013-12-02 15:58]:
 I have built up my email server with exim + dovecot +
 clamv/spamassasin. I am using exim as LDA(local delivery agent). I
 was reading about using dovecot as LDA but I couldn't find why
 should I use it?
 
 Now, I am looking expert advice on Why should I use dovecot LDA ?
 Is there any benefit in terms of functionality or performance ?
 
 Any advice/suggestion/feedbacks welcome.
** end quote [Kumar Shantanu]

The main reason I switched was so that I could move from procmail to seive,
which is much nicer to configure. As an aside it also fixed an annoyance I had
where, with my virtual domain/user setup, a directory was created for each
email address that had mail sent to it (which resulted in a collection of
directories for random junk spam addresses). At the time I hadn't investigated
a fix, and the upgrade to Dovecot 2, with Dovecot as the LDA managing the
virtual users fixed this as a side issue :)

-- 
 Paul Tansom  |  Aptanet Ltd.  |  http://www.aptanet.com/  |  023 9238 0001
=
Registered in England | Company No: 4905028 | Registered Office: Ralls House,
Parklands Business Park, Forrest Road, Denmead, Waterlooville, Hants, PO7 6XP


Re: [Dovecot] Dove LDA vs Exim LDA

2013-12-02 Thread Paul Tansom
** WJCarpenter bill-dove...@carpenter.org [2013-12-02 18:04]:
 The main reason I switched was so that I could move from procmail
 to seive,
 
 I am curious if you investigated Exim's sieve script support. Was
 there some problem you saw with it, or you just didn't look into it?
** end quote [WJCarpenter]

Good question, and it is a while ago so I can't completely remember. I think it
may well have come down to documentation, there seems to be more easy to use
stuff out there for the Dovecot implementation (even with Exim). There's tons
of in detail stuff on Exim (I know I host a mirror), but it can be a little too
in depth sometimes!

-- 
 Paul Tansom  |  Aptanet Ltd.  |  http://www.aptanet.com/  |  023 9238 0001
=
Registered in England | Company No: 4905028 | Registered Office: Ralls House,
Parklands Business Park, Forrest Road, Denmead, Waterlooville, Hants, PO7 6XP


Re: [Dovecot] mutt freezes

2010-12-09 Thread Paul Tansom
** Manoel Prazeres praze...@impa.br [2010-12-09 15:47]:
 Hi
 
 Sometimes mutt freezes saying Closing connection to imap.impa.br
 
 Any clue?
** end quote [Manoel Prazeres]

I get that sometimes and in my case it is always due to a network problem, one
of:

1. I've just rebooted the server without disconnecting my client [1]
2. My netbook has just come out of hibernation and the wifi hasn't connected
yet

It takes a good while to recover after this, which I assume is a Mutt issue,
but since it is always self inflicted I've not investigated further.

Could be worth checking your network connectivity at the time of the problem
starting (it could have recovered quite quickly and no longer be an issue
though). I've not checked, but there may be something in the Mutt configuration
to improve its handling of a lost connection perhaps.

-- 
Paul Tansom | Aptanet Ltd. | http://www.aptanet.com/ | 023 9238 0001
==
Registered in England  |  Company No: 4905028  |  Registered Office:
Crawford House, Hambledon Road, Denmead, Waterlooville, Hants, PO7 6NU