The Mailmunge email filtering framework
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

39 lines
1.2 KiB

FROM rockylinux/rockylinux:8
LABEL maintainer="Dianne Skoll <>"
COPY docker-testfiles/ /root/docker-testfiles/
COPY docker-testfiles/ /usr/bin
RUN dnf -y group install --setopt group_package_types=mandatory "Development Tools"
RUN dnf -y install epel-release dnf-plugins-core
RUN dnf config-manager --set-enabled powertools
RUN dnf -y install perl-MIME-tools perl-Sys-Syslog sendmail-milter postfix perl-ExtUtils-MakeMaker sendmail-milter-devel perl-Test perl-Test-Simple perl-Test-Deep perl-HTML-Parser perl-Net-DNS perl-File-Find-Rule spamassassin perl-JSON-Any perl-DBD-SQLite perl-Test-Pod perl-Test-Pod-Coverage clamav clamav-data clamd perl-App-cpanminus syslog-ng iproute clamav-update
RUN curl > /etc/yum.repos.d/rspamd.repo
RUN rpm --import
RUN dnf -y update
RUN dnf -y install rspamd
RUN cpanm -n File::VirusScan
RUN adduser --system --home /var/spool/mailmunge mailmunge
RUN mkdir /var/run/rspamd
RUN chown _rspamd._rspamd /var/run/rspamd
RUN mkdir /var/spool/mailmunge
RUN chown mailmunge.mailmunge /var/spool/mailmunge
RUN freshclam -v
CMD /usr/bin/