write mailgun envs to files