--- a/global.h
+++ b/global.h
@@ -32,7 +32,7 @@
 #define DEBUG_LEVEL LOG_DEBUG     /* only used when DEBUG is defined */
 
 /* Mail interface.  (All MTAs should supply this command) */
-#define SENDMAIL "/usr/sbin/sendmail"
+#define SENDMAIL "@TERMUX_PREFIX@/bin/sendmail"
 
 /* End of user-configurable section */
 
