lookup sendmail command only once