Find file
Fetching contributors…
Cannot retrieve contributors at this time
51 lines (40 sloc) 1.31 KB
#%define configopt --enable-ssl --enable-md5auth
%define configopt --enable-ssl
Summary: Extremely simple MTA to get mail off the system to a Mailhub.
Name: ssmtp
Version: 2.60
Release: 8
License: GPL
Group: System/Servers
BuildRoot: %{_tmppath}/root-%{name}-%{version}
Patch: %{name}_%{version}.%{release}.patch
A secure, effective and simple way of getting mail off a system to your mail
hub. It contains no suid-binaries or other dangerous things - no mail spool
to poke around in, and no daemons running in the background. Mail is simply
forwarded to the configured mailhost. Extremely easy configuration.
WARNING: the above is all it does; it does not receive mail, expand aliases
or manage a queue. That belongs on a mail hub with a system administrator.
export PATCH_GET=0
%patch -p1
%configure %{configopt}
%{__rm} -rf %{buildroot}
%{__make} INSTALL_PREFIX="%{buildroot}" install
%{_sbindir}/ssmtp_generate_config %{_sysconfdir}/ssmtp/ssmtp.conf
%{__rm} -rf %{buildroot}
%config(noreplace) %{_sysconfdir}/ssmtp/*