GitHub repository: mskala/mini_sendmail
Description: Fork of mini_sendmail (http://acme.com/software/mini_sendmail/) adding real username determination solution. Workaround for "can't determine username" error while running inside chroot jail. Removes getlogin(), getpwuid() dependencies by trying to get username from command line arguments. Get real username, does not use a fixed value causing nonsense logs. mini_sendmail reads its standard input up to an end-of-file and sends a copy of the message found there to all of the addresses listed. The message is sent by connecting to a local SMTP server. This means mini_sendmail can be used to send email from inside a chroot(2) area. Project homepage: