Skip to main content
We are aware of an issue after updating to cPanel versions 11.110.0.65, 11.126.0.21, or 11.128.0.11, some cPanel plugins or features are no longer functioning properly including WP Toolkit. Please see the following article for more information and updates:
Update to latest cPanel 110, 126, or 128 versions removes "addonfeatures" directory.

Extract senders and receivers email addresses from my server

Comments

6 comments

  • AntonioL
    This will be a must tool! up !
    0
  • psytanium
    This will be a must tool! up !

    There must be a command to query and extract addresses from logs
    0
  • cPanelLauren
    Hi, Is it possible to extract any email address used in my VPS server, senders and recipients ? This way maybe I can create a list of emails to use for my marketing campaigns created with Mailchimp. Thanks :)

    You would most likely want to query the exim logs for this data I used the following successfully: grep -i -o '[A-Z0-9._%+-]\+@[A-Z0-9.-]\+\.[A-Z]\{2,4\}' /var/log/exim_mainlog
    0
  • psytanium
    Thank you for the query. But I think the command extracted only the outgoing emails, because almost all emails belong to users on my server. is there a way extract global addresses ? incoming is more important. Thanks :)
    0
  • cPanelLauren
    Hello @psytanium This is definitely pulling incoming and outgoing mail I confirmed this on my own server by pulling a few of the addresses I didn't recognize out and searching through the exim logs for them.
    0
  • Benito

    Hello! How would the line look to see all the recipients from a specific sender?

    Thanks!

    0

Please sign in to leave a comment.