How do I make Sense of a Random Linux Application Server

  • There is a process pulling e-mail from rackspace

  • E-mail configured in an in-house application.

  • The client on our portal orders information through the portal and the portal is sending the e-mail with a specific format to this rackspace e-mail.

  • The process retrieves email and processesing each email, parsing and uploading it into the database.

As an added bonus they created service account e-mails that are contained within rackspace and are being moved over to O365. The domain is changing from domain-usa.com to domain.com. I need to find where these e-mail addresses are referenced in order to change the address.

Then when I find all of this I need to migrate it to a new host.

2 Likes

You can use Grep to see if the email address is in any file.

grep -r "email@domain-usa.com" /opt/directory

You can then use sed to do a find and replace.

1 Like

To search broad areas you can

grep -rnw '/usr/' -e 'email@domain-usa.com' >> /tmp/mysearch.txt

grep -rnw '/var/' -e 'email@domain-usa.com' >> /tmp/mysearch.txt

grep -rnw '/opt/' -e 'email@domain-usa.com' >> /tmp/mysearch.txt

1 Like

I always like to write results to file if I can :slight_smile:

1 Like

the beauty of this is fetchmail shoots the cpu up to 99% every minute or so

Doesnโ€™t seem to be contained within these directories. Searching /root

I just used this today to find a log file :slight_smile: