add backward compatibility woth nodemailer 0.7 config