1 Summary: SMTP "plugin" for MUAs
2 Summary(pl.UTF-8): "Wtyczka" SMTP dla klientów pocztowych (MUA)
7 Group: Networking/Utilities
8 #Source0Download: https://marlam.de/msmtp/download/
9 Source0: https://marlam.de/msmtp/releases/%{name}-%{version}.tar.xz
10 # Source0-md5: 8d4ab680f16e9736e24c749015ae858b
11 Patch0: %{name}-home_etc.patch
12 Patch1: %{name}-info.patch
14 URL: https://marlam.de/msmtp/
15 BuildRequires: autoconf >= 2.50
16 BuildRequires: automake >= 1:1.11.1
17 BuildRequires: gettext-tools
18 # with AI_IDN support (or libidn2-devel)
19 BuildRequires: glibc-devel >= 6:2.4
20 BuildRequires: gnutls-devel >= 3.4
21 BuildRequires: gsasl-devel
22 BuildRequires: libsecret-devel
23 BuildRequires: pkgconfig
24 BuildRequires: tar >= 1:1.22
25 BuildRequires: texinfo
27 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
30 msmtp is a simple program that works as an "SMTP plugin" for Mutt and
31 probably other MUAs (mail user agents). It forwards mails to an SMTP
32 server (for example at a free mail provider) which does the delivery.
34 - PLAIN, LOGIN, CRAM-MD5, GSSAPI, DIGEST-MD5 and NTLM authentications
35 - TLS encrypted connections
36 - Internationalized Domain Names (IDN) support
39 - detailed error messages if something goes wrong (including the full
40 answer of the SMTP server)
41 - sendmail compatible exit codes (which most MUAs understand).
43 Simply tell your MUA to call msmtp instead of /usr/sbin/sendmail (with
44 Mutt that's just one additional line in the config file).
46 %description -l pl.UTF-8
47 msmtp to prosty program działający jako "wtyczka SMTP" dla Mutta i
48 innych klientów pocztowych (MUA - mail user agents). Przekierowuje
49 wiadomości do serwera SMTP (na przykład providera darmowych kont
50 e-mail), który je dostarcza. Możliwości obejmują:
51 - uwierzytelnianie PLAIN, LOGIN, CRAM-MD5, GSSAPI, DIGEST-MD5 i NTLM
52 - obsługę Internationalized Domain Names (IDN)
53 - szyfrowane połączenia TLS
55 - szczegółowe komunikaty błędów w przypadku niepowodzenia (włącznie z
56 pełną odpowiedzią serwera SMTP)
57 - kody wyjścia kompatybilne z sendmailem (które rozumie większość
60 Wystarczy przekazać klientowi pocztowemu, aby wywoływał msmtp zamiast
61 /usr/sbin/sendmail (w Mutcie to po prostu dodatkowa linia w pliku
65 Summary: msmtp sendmail compatible wrapper
66 Summary(pl.UTF-8): msmtp - dowiązania symboliczne do sendmaila
67 Group: Networking/Daemons
68 Requires: %{name} = %{version}-%{release}
71 msmtp sendmail compatible wrapper.
73 %description sendmail -l pl.UTF-8
74 Dowiązania symboliczne msmtp do sendmaila.
88 --disable-silent-rules \
96 rm -rf $RPM_BUILD_ROOT
97 install -d $RPM_BUILD_ROOT{%{_sbindir},/usr/lib,%{_sysconfdir}}
100 DESTDIR=$RPM_BUILD_ROOT
102 install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/msmtprc
103 ln -s %{_bindir}/%{name} $RPM_BUILD_ROOT/usr/lib/sendmail
104 ln -s %{_bindir}/%{name} $RPM_BUILD_ROOT%{_sbindir}/sendmail
108 rm -f $RPM_BUILD_ROOT%{_infodir}/dir
109 rm -f scripts/Makefile*
112 rm -rf $RPM_BUILD_ROOT
114 %post -p /sbin/postshell
115 -/usr/sbin/fix-info-dir -c %{_infodir}
117 %postun -p /sbin/postshell
118 -/usr/sbin/fix-info-dir -c %{_infodir}
120 %files -f %{name}.lang
121 %defattr(644,root,root,755)
122 %doc AUTHORS ChangeLog NEWS README THANKS doc/msmtprc-{system,user}.example scripts
123 %attr(755,root,root) %{_bindir}/msmtp
124 %attr(755,root,root) %{_bindir}/msmtpd
125 %{_mandir}/man1/msmtp.1*
126 %{_mandir}/man1/msmtpd.1*
127 %{_infodir}/msmtp.info*
130 %defattr(644,root,root,755)
131 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/msmtprc
132 %attr(755,root,root) %{_sbindir}/sendmail