Hi all,

Here's a patch for msmtp, an advanced but still lightweight sendmail
replacement that forwards email upstream to an SMTP server. This
software is actively developed, unlike ssmtp which is out of date and
only seems to be linked on the Debian repository. I was able to easily
forward email upstream using GMail/Google Apps with this package, but
ran in to bugs using ssmtp. Rather than try to fix that, I packaged
msmtp.

Thanks,
Dave

Signed-off-by: David Cooper <d...@kupesoft.com>

---

Index: package/msmtp/Makefile
===================================================================
--- package/msmtp/Makefile      (revision 0)
+++ package/msmtp/Makefile      (revision 0)
@@ -0,0 +1,57 @@
+#
+# Copyright (C) 2009 David Cooper <d...@kupesoft.com>
+# Copyright (C) 2009 OpenWrt.org
+#
+# This is free software, licensed under the GNU General Public License v2.
+# See /LICENSE for more information.
+#
+
+include $(TOPDIR)/rules.mk
+
+PKG_NAME:=msmtp
+PKG_VERSION:=1.4.17
+PKG_RELEASE:=1
+
+PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
+PKG_SOURCE_URL:=...@sf/msmtp
+
+PKG_MD5SUM:=b0b74f1144812b60688f590c62a0d3dd
+
+include $(INCLUDE_DIR)/package.mk
+
+define Package/msmtp
+  SECTION:=mail
+  CATEGORY:=Mail
+  DEPENDS:=+libopenssl
+  TITLE:=Simple sendmail SMTP forwarding
+  URL:=http://msmtp.sourceforge.net/
+endef
+
+define Package/msmtp/description
+ msmtp is an SMTP client. In the default mode, it transmits a mail to
+ an SMTP server (for example at a free mail provider) which does the
+ delivery. To use this program with your mail user agent (MUA), create
+ a configuration file with your mail account(s) and tell your MUA to
+ call msmtp instead of /usr/sbin/sendmail.
+endef
+
+CONFIGURE_ARGS += \
+       --with-ssl=openssl \
+       --without-libssl32 \
+       --with-libssl-prefix=$(STAGING_DIR)/usr/include \
+       --without-libintl \
+       --without-libgsasl \
+       --without-libidn
+
+define Package/msmtp/install
+       $(INSTALL_DIR) $(1)/etc
+       $(INSTALL_DATA) $(PKG_BUILD_DIR)/doc/msmtprc-system.example \
+               $(1)/etc/msmtprc
+       $(INSTALL_DIR) $(1)/usr/bin
+       $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/msmtp $(1)/usr/bin/
+       $(INSTALL_DIR) $(1)/usr/sbin
+       ln -sf /usr/bin/msmtp $(1)/usr/sbin/sendmail
+endef
+
+$(eval $(call BuildPackage,msmtp))
+
_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
http://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel

Reply via email to