Sorry, I put the quotes in the wrong place. It should be mda "/usr/sbin/sendmail -oem $USER" Sebastian Canagaratna