I need a command that will search through the body text of all emails (sent/received/junk) for all email accounts on a VPS server for a particular URL (which may be embedded in text). Possibly a grep command?
Apologies if this is obvious!
You can use a very simple and basic grep command:
grep -ri 'particular url' /home/*/mail/*
-i (ignore case so no case sensitive search) -r recursive; searches through all the files/folders
Give it a try!
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.