• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Finding all AOL redirects

nvoth

New Pleskian
Hello,

I need to find all the mail accounts that have redirects to any AOL.com address. The Plesk support guys offered this:

mysql -uadmin -p`cat /etc/psa/.psa.shadow` -Dpsa -e "select domains.name, Parameters.value from domains,Parameters where domains.params_id=Parameters.id and Parameters.parameter='catch_addr' and Parameters.value like '%aol.com%';"

BUT it doesn't really work. Any idea how to easily find all the redirects to AOL?

Thanks,

-Nick Voth
 
connect to mysql using an authorized user...

mysql -u admin -p

then run the following SQL statement

select * from psa.mail_redir where address like '%yahoo%';
 
Thanks very much. That worked well.

I also just figured out a grep string that would work too:

grep aol.com /var/qmail/mailnames/*/*/.qmail

Thanks for your help.

-Nick Voth
 
Back
Top