Dovecot Bulletin

Steffen Kaiser skdovecot at smail.inf.fh-brs.de
Tue Feb 23 07:30:03 UTC 2016


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Mon, 22 Feb 2016, micah wrote:

> Using doveadm copy is an interesting solution because of the
> hardlinking. I wonder how fast it is, because almost every time I use
> the -A flag, the iterations over 100k users takes a long time.
>
> We email the 'bulletin' to all of our users, everyone gets a copy, that
> way an admin doesn't need to do it, but it does mean that we duplicate
> the data quite a lot.

hmm, I do have some sort of Bulletin (approx. one message per year) that I 
deliver per script to Maildir:

1. I sent the message to myself
2. discover it in my mail spool
3. cd /mailspool ; ls -U | while read u; do
  if test -d "$u/Maildir/new"; then
   ln /mailspool/myself/Maildir/new/message "$u/Maildir/new"
  fi
done

Steps 1 and 2 can be simulated easily or combined with a mailbox, that 
fires a script for new arrivals. Of course, this script depends on your
local situation.

>
> Kevin Kershner <cstkersh at outlook.com> writes:
>
>> It also got the bulletin out to new users without admin intervention.
>>
>> Sent from Mobile
>> ________________________________
>> From: Doug Hardie<mailto:bc979 at lafn.org>
>> Sent: ‎2/‎22/‎2016 4:02
>> To: Dovecot Mailing List<mailto:dovecot at dovecot.org>; Timo Sirainen<mailto:tss at iki.fi>
>> Cc: Kevin Kershner<mailto:cstkersh at outlook.com>
>> Subject: Re: Dovecot Bulletin
>>
>>
>>> On 20 February 2016, at 18:14, Timo Sirainen <tss at iki.fi> wrote:
>>>
>>> On 21 Feb 2016, at 02:50, Kevin Kershner <cstkersh at outlook.com> wrote:
>>>>
>>>> I'd like to revisit and old post if I may, will/does Dovecot support the old
>>>> qpopper "Bulletin" ability?
>>>>
>>>> Basically I need a simple way of posting bulletins to all domain users.
>>>> Qpopper maintained a bulletin db for each user and sent them the next
>>>> bulletin in sequence.
>>>
>>> I guess there could be a plugin that does this check on each login. But would it actually be useful? Why would it be better than simply sending the mail to all the users? For example:
>>>
>>> doveadm save -A < bulletin.txt
>>
>> The reasons for bulletins as I see it are:
>>
>> 1.  The doveadm save command is undocumented.  It does show a cryptic line in the output of the command "doveadm".  However, it doesn't give any clue what it does or how to provide the message.  Your note above provides considerably more information on that command.   I tested it and it works as you have indicated though.
>>
>> 2.  The doveadm save command causes the email to be saved in each user's mailbox.  If you have a lot of users, thats a lot of wasted disk space.  Qpopper's bulletins only kept one copy and every user downloaded from that copy.  All that was retained per user was a counter of the last bulletin's sequence number that was downloaded.
>>
>> — Doug
>
>

- -- 
Steffen Kaiser
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQEVAwUBVswKe3z1H7kL/d9rAQKSGQf/WZb8rrLU8Ly6Bv/8cf660VLpAKmQEU6M
Dv6kz/v8Xr+KgUmx4FcB6anfSqZfh9QnEHfH69XQEs5EVqQQhOXVlpnDKbeSCKN4
YexkPvVNKvdE5tQ1TqwOtqEgHs1N1pJLDuTne7jImeXUzGxzwwudFPQNIu9eRdTr
ryzze8Wh2eoInNcd1Jkr5I27HpsPAq15EYgpHlzro5ecFgmxANEhgcnJMWgqcU9U
8KaFewDaqAtbJouLlfJKJ0rcL637vr/ZL1F23pQyHb+wmWhYIGAmRE0/kwzOjZ3j
JU2ySYdMLaPDqXpxpX3ecayrp0Jp2t0Cb49yRZ6H7+8L5EdRFYyT9g==
=LCbn
-----END PGP SIGNATURE-----


More information about the dovecot mailing list