added init.d scripts for mailer and api_receive