When is needed to use a production copy of the DB locally, it is recommended to deactivate the mail servers and the cron jobs to avoid their further execution.
Below are listed the commands to use in psql.
delete from ir_mail_server;
delete from fetchmail_server;
update ir_cron set active='f';