SpamBlocker3 exim.conf file now ready for Beta testing

Status
Not open for further replies.
How can we set up DA so that it automatically creates those forwarder addresses for each new account? At the moment I send them to :blackhole: if I am concious of a problem for an account but perhaps it should always be set that way for everyone's account.
 
Create domain_create_post.sh in the /usr/local/directadmin/scripts/custom/ directory...

The domain_create_post.sh filed should be owned by diradmin and have 755 permissions:

chown diradmin:diradmin /usr/local/directadmin/scripts/custom/domain_create_post.sh
chmod 755 /usr/local/directadmin/scripts/custom/domain_create_post.sh

In the /usr/local/directadmin/scripts/custom/domain_create_post.sh file, add this:

#!/bin/sh
FILE=/etc/virtual/$domain/aliases
grep -v '*' $FILE > $FILE.tmp
echo "abuse: :blackhole:" >> $FILE.tmp
echo "postmaster: :blackhole:" >> $FILE.tmp
echo "hostmaster: :blackhole:" >> $FILE.tmp
echo "*: :fail:" >> $FILE.tmp
mv -f $FILE.tmp $FILE
chmod 600 $FILE
chown mail:mail $FILE
exit 0;

Now that will automatically create the forwarders for abuse, postmaster and hostmaster for newly-created domains. The forwarders are pointing to :blackhole: which will essentially accept and discard the incoming messages.
 
Status
Not open for further replies.
Back
Top