Manually blacklisting and whitelisting incoming mail from specific sources


#1

Dear Bytemark,
The current setup for manually blacklisting and whitelisting incoming mail from specific sources is cumbersome and requires root access. Is it possible to designate admin ownership of the files below without breaking something?

/etc/exim4/blacklist/by_hostname for eg .bad-domain.com

/etc/exim4/blacklist/by_ip for 192.168.0.1

/etc/exim4/blacklist/by_sender for bad_sender@example.com

A nice addition to SymStretch would be easy access to the files above through a web admin panel similar to Squirrel Mail.

Any advice on the above would be welcome?

Kind regards Pete


#2

Bytemark have provided the following solution to the query above:

The files we are wanting to add to are:

/etc/exim4/blacklist/by_hostname
/etc/exim4/blacklist/by_ip
/etc/exim4/blacklist/by_sender

We are looking to create a link to these files in

/srv/hamble.bigvcloud.proberts2.uk0.bigv.io/config/mailblacklist

first we need to ensure the admin user can write to these files:

sudo chown root:admin /etc/exim4/blacklist/*
sudo chmod 664 /etc/exim4/blacklist/*

Then we create the folder structure:

mkdir /srv/hamble.bigvcloud.proberts2.uk0.bigv.io/config/mailblacklist

Then create the links:

cd /srv/hamble.bigvcloud.proberts2.uk0.bigv.io/config/mailblacklist
ln -s /etc/exim4/blacklist/* .

This will create the links for you and you will be able to write to them as the
admin user.

I tend to edit the exim blacklist files regulary and I prefer to do so as the admin user so I’ve found this solution v handy.

Regards Pete