May 29 17:30:04 MxSvr postfix/smtp[5908]: E9B291580038: to=<rajsahi@xxxxxxx>, relay=127.0.0.1[127.0.0.1]:10024, delay=524, delays=520/3.8/0/0.1, dsn=4.5.0, status=deferred (host 127.0.0.1[127.0.0.1] said: 451 4.5.0 Error in processing, id=05923-02, sql-enter FAILED: sql exec: err=1033, S1000, DBD::mysql::st execute failed: Incorrect information in file: './amavisd/maddr.frm' at (eval 87) line 166, <GEN18> line 40. (in reply to end of DATA command))
I'm afraid that Amavisd database file was damaged.
Here's temporary solution to make your mail server working:
*) Comment out parameter "content_filter =" in Postfix main.cf, then reload or restart Postfix service. So that all new incoming emails won't be passed to Amavisd for spam/virus scanning. You can also run "postqueue -f" to flush all emails in Postfix queue, Postfix will try to deliver them immediately.
*) Try to fix Amavisd database (name "amavisd") files with MySQL command line tools, or phpMyAdmin.
*) After you fixed Amavisd database, uncomment "content_filter =" in Postfix main.cf and reload/restart Postfix service.
NOTE: It's OK to delete all records in Amavisd database, it just stores basic info of in/out emails, deleting all records won't impact mail messages stored on file system at all. But you will lose statistics in iRedAdmin-Pro which depends on records stored in Amavisd database.