1# 2# Initialize 3# 4smtpd_delay_reject 0 5# 6# Test check_domain_access() 7# 8helo_restrictions fail:1_helo_access 9# Expect: REJECT (temporary lookup failure) 10helo foobar 11# 12# Test check_namadr_access() 13# 14client_restrictions fail:1_client_access 15# Expect: REJECT (temporary lookup failure) 16client foo.dunno.com 131.155.210.17 17# 18# Test check_mail_access() 19# 20sender_restrictions fail:1_sender_access 21# Expect: REJECT (temporary lookup failure) 22mail reject@dunno.domain 23# 24# Test check_rcpt_access() 25# 26recipient_restrictions fail:1_rcpt_access 27# Expect: REJECT (temporary lookup failure) 28rcpt reject@dunno.domain 29# Expect: OK 30rcpt postmaster 31# 32# Test mynetworks in generic_checks(). 33# 34mynetworks fail:1_mynetworks 35# 36# Expect REJECT (temporary lookup failure) 37# 38recipient_restrictions permit_mynetworks 39rcpt reject@dunno.domain 40# 41# Test mynetworks. 42# 43mynetworks 168.100.3.1/27 44# 45# Expect REJECT (server configuration error) 46# 47rcpt reject@dunno.domain 48# 49# check_sender_access specific 50# 51smtpd_null_access_lookup_key <> 52mail <> 53# 54# Test permit_tls_client_certs in generic_restrictions 55# 56relay_clientcerts fail:1_certs 57fingerprint abcdef 58recipient_restrictions permit_tls_clientcerts 59rcpt reject@dunno.domain 60# 61# Test smtpd_check_rewrite(). 62# 63local_header_rewrite_clients fail:1_rewrite 64# 65# Expect: REJECT (temporary lookup failure) 66# 67rewrite 68# 69# Test resolve_local() 70# 71mydestination example.com 72recipient_restrictions reject_unauth_destination 73rcpt user@example.com 74mydestination fail:1_mydestination 75rcpt user@example.com 76# 77# Test virtual alias lookup. 78# 79mydestination example.com 80virtual_alias_maps fail:1_virtual 81rcpt user@example.com 82