Ignore:
Timestamp:
09/25/17 17:36:44 (8 years ago)
Author:
Edwin Eefting <edwin@datux.nl>
Branches:
gcc484, master, perl-5.22
Children:
c6da4cb
Parents:
072d3d5
Message:

no longer bounce mails that are send to invalid adresses (too much bounchspammers)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • npl/mailserver/netqmail/syn3-dagent

    r072d3d5 r402b138  
    1515}
    1616
    17 #check if user exists or fail permanent
    18 #(id will generate a nice error message)
    19 id "$USER" >/dev/null || end 100
     17# some kind of ldap problem, try again later
     18id "Administrator" >/dev/null || end 111
     19
     20#does the user exists?
     21if ! id "$USER" >/dev/null; then
     22        #we're sure theres no ldap problem?
     23        id "Administrator" >/dev/null || end 111
     24        #probably a bounce spammer, drop mail silently
     25        echo "User does not exist, dropping mail."
     26        end 0
     27fi
    2028
    2129#store mail temporary
     
    6169#no backend mailstorage up, so fail temporary
    6270echo "All mailbackends are down, retry again later..."
    63 end 1
     71end 111
Note: See TracChangeset for help on using the changeset viewer.