Table of Contents
Amavis::check_mail function is the main MTA-independent mail checking function, which performs all the work of running content scanners and deciding message destinies. It also handles quarantining, recipient/admin notification messages, and forwarding the message or sending a DSN in cases where that is amavisd-new's responsibility.
For each message, before calling
check_mail you must call
Amavis::check_mail_begin_task which clears the values of several variables.
Amavis::In::SMTP calls this upon receiving the MAIL FROM command. Other packages call it immediately before calling
A reference to the
check_mail function is passed as an argument to the MTA request function. It takes three arguments, described below.