diff options
author | Andrey V.Kosteltsev <AKosteltsev@IBS.RU> | 2022-07-18 14:08:11 +0300 |
---|---|---|
committer | Andrey V.Kosteltsev <AKosteltsev@IBS.RU> | 2022-08-04 14:48:13 +0300 |
commit | dd45892f6d7925672171c17d135363b3812c08d7 (patch) | |
tree | 5c30e57c6de0c859bf5b0d3f0c88c15eb8883ca4 | |
parent | d4229d5bdee9327bdcacb2663c7c90babf396359 (diff) | |
download | openbmc-dd45892f6d7925672171c17d135363b3812c08d7.tar.xz |
msmtp: use openssl instead gnutls; Auth method LOGIN
-rw-r--r-- | meta-ibs/meta-cp2-5422/recipes-support/msmtp/msmtp/msmtprc | 17 | ||||
-rw-r--r-- | meta-ibs/meta-cp2-5422/recipes-support/msmtp/msmtp_1.8.20.bb | 40 |
2 files changed, 57 insertions, 0 deletions
diff --git a/meta-ibs/meta-cp2-5422/recipes-support/msmtp/msmtp/msmtprc b/meta-ibs/meta-cp2-5422/recipes-support/msmtp/msmtp/msmtprc new file mode 100644 index 0000000000..8c77509642 --- /dev/null +++ b/meta-ibs/meta-cp2-5422/recipes-support/msmtp/msmtp/msmtprc @@ -0,0 +1,17 @@ + +defaults +allow_from_override on +auth login +tls on +tls_trust_file /etc/ssl/certs/ca-certificates.crt +logfile /var/log/msmtp.log + +# Some Mail account: +account bmc +host smtp.sila.ru +port 587 +from bmc@cp2-5422.sila.ru +user bmc +password <BMC Passwd> + +account default : bmc diff --git a/meta-ibs/meta-cp2-5422/recipes-support/msmtp/msmtp_1.8.20.bb b/meta-ibs/meta-cp2-5422/recipes-support/msmtp/msmtp_1.8.20.bb new file mode 100644 index 0000000000..2009ecaba0 --- /dev/null +++ b/meta-ibs/meta-cp2-5422/recipes-support/msmtp/msmtp_1.8.20.bb @@ -0,0 +1,40 @@ +FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:" + +# +# Example: +# ------- +# echo -e "Subject:BMC cp2-5422\n\nMessage from BMC." | /usr/sbin/sendmail -a default support@example.com +# + +SUMMARY = "A mini smtp client" +HOMEPAGE = "https://marlam.de/msmtp" +LICENSE = "GPL-3.0-only" +LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504" + +SRC_URI = "https://marlam.de/msmtp/releases/msmtp-1.8.20.tar.xz \ + file://msmtprc \ + " + +SRC_URI[md5sum] = "6fc0ce864d74992f6c6124c3611d15da" +SRC_URI[sha256sum] = "d93ae2aafc0f48af7dc9d0b394df1bb800588b8b4e8d096d8b3cf225344eb111" + +inherit autotools pkgconfig gettext update-alternatives + +EXTRA_OECONF += "--prefix=/usr --sysconfdir=/etc --bindir=/usr/sbin --with-tls=openssl --mandir=${mandir}" + +DEPENDS += " openssl" + +do_install:append () { + install -d ${D}${sysconfdir} + install -m 0600 ${WORKDIR}/msmtprc ${D}${sysconfdir}/msmtprc + ln -s msmtp ${D}${sbindir}/sendmail + ln -s msmtp ${D}${sbindir}/newaliases + ln -s msmtp ${D}${sbindir}/mailq +} + +ALTERNATIVE_PRIORITY:${PN} = "100" + +ALTERNATIVE:${PN} = "mailq newaliases sendmail" +ALTERNATIVE_LINK_NAME[sendmail] = "${sbindir}/sendmail" +ALTERNATIVE_LINK_NAME[newaliases] = "${sbindir}/newaliases" +ALTERNATIVE_LINK_NAME[mailq] = "${sbindir}/mailq" |