deliver an email to a large number of local users directly via doveadm

Steffen Kaiser skdovecot at smail.inf.fh-brs.de
Tue Nov 11 09:30:24 UTC 2014


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

On Mon, 10 Nov 2014, Mahdi Mahdi wrote:

> Hello,We have a mail service that uses postfix and dovecot. We would 
> like to send an email to a large number of users(about 100K). However, 
> it takes too long to send the email through smtp. Is there any solution 
> to deliver the email locally to all user mailboxes directly.dovecot uses 
> lmtp for transfering local emails. the worst solutoin is that copy the 
> email to all mailboxes via linux file system. But we would prefer to use 
> some tools provided by dovecot like doveadm. is there any way to do this 
> job?

if your mail storage is Maildir and you use virtual users with the same 
uid/gid for all users, the filesystem level is easy going and circumvent 
Sieve:

1) sent the message to yourself,
2) move the message file somewhere, no user can access,
3) remove delivery headers,
4) rename the file, in order to not contain the ":2,"... stuff,
5) for u in *; do ln message_file /home/"$u"/Maildir/new; done

The for loop has to be altered to match your local requirements (path, 
users, ...) though.

=====

Alternativly check out if Dovecot LDA works as expected and use it.

- -- 
Steffen Kaiser
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)

iQEVAwUBVGHXMHz1H7kL/d9rAQKW8gf/Zslvd7JLfiWVtTQYqjoo4gWIY5KVYy3P
cxZCRswcFYoCtS0wmzi6kFqfYYZlvOz+Mak9FNM7SqbRNeGDhW9xHaWKc4SxTRE9
Rq8BGCltBNSgW/O4KPImF4S6jvlhVp433oOL70Q9zK7Pk5KOpA47YsHdosSwaZ+6
+buRPIoKOB/ktU4pnsCSrnGNuFw7EgME+pAJy98qjjJ2XKejZ0/fKxma4eaxxj5J
rfI71Gs4o3VIpJMdcYH3uBGkkn4/qCI4AqaHiZwnjoE7PwB8oipFbnQUdoHjFoMZ
eqsg/92eby97/w2+PwiR0mnQbU5H4Zt5Fx9cp7okeSWMBGRNb2dDUA==
=CFTS
-----END PGP SIGNATURE-----


More information about the dovecot mailing list