|DirectAdmin 1.60.0 and up will have a GUI for this:|
so you wouldn't need to add/remove things from ssh.
With SpamBlocker 4.2.3 and above, a feature was added which lets you blacklist a User.
If you don't want DA User from sending any messages, including smtp-auth and script based sends (Eg: php mail()), then you'd type:
echo "fred:`date +%s`" >> /etc/virtual/blacklist_usernameswhere the 'date +%s' bit will set the unix timestamp for when this account was added. It's not yet used for anything, so don't worry about it too much, 0 would be fine too.
Similarly, SpamBlocker 4.4.6 and above supports similar files:
Eg, the /etc/virtual/blacklist_script_usernames is useful if you want to allow smtp deliveries, but not allow any script based deliveries.
If you add a User to blacklist_usernames, it will block both, so no need for the other 2 files if you do that.
Note you should ensure that your firewall blocks direct user port-25 outbound connections, eg:
|Block outbound port 25 to prevent direct-out spammers|
© 2018 JBMC Software, Suite 173 3-11 Bellerose Drive, St Albert, AB T8N 1P7 Canada. Mon-Fri 9AM-5PM MST