Koozali.org: home of the SME Server
Contribs.org Forums => Koozali SME Server 10.x => Topic started by: dixiemetalsadmin on September 23, 2021, 07:45:56 PM
-
I'm trying to gather emails/conversations from a specific domain and said domain has conversed with several users in our company. Would like to know the best way to locate/procure these emails as my company will need these emails for legal reasons. Any help is appreciated. Thank you
-
Hmmmm. Good one.
I think you might need to do this programatically.
Have a look for some libraries/classes. You might be able to specify from/to correctly.
https://github.com/barbushin/php-imap
https://github.com/robmueller/mail-imaptalk/
-
something like this will allow to check what email contain the domain.
grep domainname -lr /home/e-smith/files/users/*/Maildir/
to copy them all
grep domainname -lr /home/e-smith/files/users/*/Maildir/ | xargs cp -t /root/dest/
or with find, but might also catch non mail
find /home/e-smith/files/users/ -type f -exec grep -q 'domainname' {} \; -exec cp -t /home/user/DestinationFolder {} +
you can also refine the expression you earch using regex
-
Thank you for both of your responses. Exactly what I was looking for. This will help us out tremendously.
-
So I've copied what I can to an external HDD (ext 4) and would like to know the best way to transfer to a Windows PC and make the files readable by say Thunderbird/Outlook.
-
So I've copied what I can to an external HDD (ext 4) and would like to know the best way to transfer to a Windows PC
Not sure Windows reads Ext 4 - you might need a plugin or program for that.
[qoute]
and make the files readable by say Thunderbird/Outlook.
[/quote]
They are in Maildir format
https://addons.thunderbird.net/en-US/thunderbird/addon/importexporttools/
It always helps to have a good read around online fist - this info is easily available.
-
Every file is an email so add them .eml extension then drag and drop files to specific folders in TB (not too many at a time).
-
I don't know if this would work on SME10, but on SME9 I would create a new user, copy the emails into the mail folder for that user, then configure Thuderbird to cache local copies of the emails from the new account.
If the emails are accessible via IMAP you could also import them into a gmail account, which might simplify searching for specific email content.
-
I don't know if this would work on SME10, but on SME9 I would create a new user, copy the emails into the mail folder for that user, then configure Thuderbird to cache local copies of the emails from the new account.
and chown newuser:newuser ./*
-
....my company will need these emails for legal reasons......
And lastly, as a business, don't forget to make a donation. It's an expense..... !
None of the developers who built this earn $$$$ building Koozali SME, or helping you, and rely on donations to fund the infrastructure that enables you to do all this, run your business, and make a profit.
https://forums.contribs.org/index.php?action=profile;area=subscriptions
Thanks.
-
you can also put it in a new folder or the admin Maildir and just go throught them as they were regular email of the admin.
need chown admin:admin though
-
Once again, I appreciate everyone's replies/help. Going to try a few things this weekend and get back to y'all. Will tell our CFO, we need to make a donation immediately.
-
Once again, I appreciate everyone's replies/help. Going to try a few things this weekend and get back to y'all.
Let us know if you get stuck.
Will tell our CFO, we need to make a donation immediately.
If you need a receipt then let us know.
You'll get a shiny forum badge, appreciation from those of us who hack, and a glowy feeling that you have done a bit for open source ;-)