Tag Archives: grep

How to find an e-mail in Ubuntu, that appears in logs

I had a problem on Ubuntu server. Some guy has added his e-mail somewhere and the server tried to send him e-mails. So Google responded, that it was spam and blocked them. I have searched using grep in logs this way:

And got this kind of entries in mail.log and others:

For a while I couldn’t find a problem place and didn’t know, where to fix. I tried to list cron jobs:

But without a success.

Finally, I did search using grep recursively and found some files, where this e-mail appeared:

Because it was in *.db files, I couldn’t fix it by just editing config files in PostFix.

And because PostFix is not used in the server, I just removed it: