# kaspersky for linux mailservers
@!@
if configRegistry.is_true('klms/enabled', False):
	print '#klms-begin-afterqueue-filter'
	print 'klms_postfix-afterqueue unix    -       -       n        -      10      smtp'
        print '  -o smtp_send_xforward_command=yes'
	print '127.0.0.1:10126 inet    n       -       n       -       10      smtpd'
        print '  -o content_filter='
        print '  -o receive_override_options=no_unknown_recipient_checks,no_header_body_checks,no_address_mappings'
        print '  -o smtpd_helo_restrictions='
        print '  -o smtpd_client_restrictions='
        print '  -o smtpd_sender_restrictions='
        print '  -o smtpd_recipient_restrictions=permit_mynetworks,reject'
        print '  -o mynetworks=127.0.0.0/8,[::1]/128'
        print '  -o smtpd_authorized_xforward_hosts=127.0.0.0/8,[::1]/128'
	print '#klms-end-afterqueue-filter'
@!@
