HEX
Server: Apache/2
System: Linux ind.multivistaglobal.com 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64
User: multivis (1002)
PHP: 8.1.32
Disabled: exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname
Upload Files
File: //etc/exim.blockcracking/auth.conf
#Idea is that spammers always have a large number of bad emails.
#count the bad emails, and if they have too many, it's probably a spammer.
#use the exim.pl to take action.

  warn
        set acl_m_bc_skip = 0

  warn  authenticated = *
        condition = ${if exists{BC_SKIP_AUTHENTICATED_USERS}}
        condition = ${lookup{$authenticated_id}nwildlsearch{BC_SKIP_AUTHENTICATED_USERS}{1}{0}}
        set acl_m_bc_skip = 1
        logwrite = auth=$authenticated_id skipped via bc_skip_authenticated_users

  warn  authenticated = *
        condition = ${if inlist{$authenticated_id}{BC_UNLIMITED_USERNAMES}}
        set acl_m_bc_skip = 1
        logwrite = auth=$authenticated_id skipped via bc_unlimited_usernames variable
        
  warn  authenticated = *
        hosts = +bc_skip_sending_hosts
        set acl_m_bc_skip = 1
        logwrite = auth=$authenticated_id ip=$sender_host_address skipped via bc_skip_sending_hosts

  drop  authenticated = *
        condition = ${if !eq{$acl_m_bc_skip}{1}}
        set acl_m_user = ${sg{$authenticated_id}{\N[^\w.=@-]\N}{}}
        condition = ${if exists{$spool_directory/blocked_authenticated_users}}
        condition = ${lookup{$acl_m_user}lsearch{$spool_directory/blocked_authenticated_users}{1}{0}}
        message = Account $acl_m_user currently blocked for sending to too many invalid recipients

  drop  authenticated = *
        condition = ${if !eq{$acl_m_bc_skip}{1}}
		!verify = recipient/defer_ok/BC_VERIFY_CALLOUT
        ratelimit = BC_LIM / BC_PERIOD / per_rcpt / user-$acl_m_user
        continue = ${perl{append_record}{$spool_directory/blocked_authenticated_users}{$acl_m_user}}
		continue = ${perl{block_cracking_notify}{smtp}}
        message = Account $acl_m_user has been blocked for sending to too many invalid recipients
        logwrite = $acl_m_user has been added to $spool_directory/blocked_authenticated_users, and DA notified