Mailscanner repository for centos 4.x

Dhawal Doshy dhawal at netmagicsolutions.com
Tue Feb 13 19:26:40 CET 2007


Marcello Anderlini wrote:
> Hello,is there any rpm repository for mailscanner on centos ? It would be
> great just install or update all with a simple yum update.

it shouldn't be too difficult to create one.. just 'rpmbuild' all the 
src.rpms from MailScanner-version.rpm.tar.gz and move it to a RPMS 
folder on any webserver. Also copy any other non-source rpms that are a 
part of MailScanner-version.rpm.tar.gz to the same location.

Next run 'createrepo' in the parent folder (../RPMS) and you now have a 
yum repository ready for use.

Now create a local Centos-MailScanner.repo in /etc/yum.repos.d/
##########
[mailscanner]
name=CentOS-\$releasever - MailScanner Updates
baseurl=http://your.web.server/path/to/mailscanner/RPMS
gpgcheck=0
# the next line is important
enabled=0
##########

Finally make sure that you do not enable this repo by default.. but 
enable it only when required.
/usr/bin/yum --enablerepo=mailscanner update

You can't/shouldn't automate this since languages.conf and 
MailScanner.conf need to be updated with most stable releases.

- dhawal


More information about the MailScanner mailing list