Advertisement
Guest User

Untitled

a guest
Sep 28th, 2016
137
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.69 KB | None | 0 0
  1. #smtp inet n - y - - smtpd
  2. 10.10.133.104:smtp inet n - y - - smtpd
  3. -o smtpd_client_restrictions=permit_mynetworks,reject
  4. -o cleanup_service_name=no-headerchecks
  5. -o content_filter=
  6. 127.0.0.1:smtp inet n - y - - smtpd
  7. -o smtpd_client_restrictions=permit_mynetworks,reject
  8. -o cleanup_service_name=no-headerchecks
  9. -o content_filter=
  10. 10.10.132.104:smtp inet n - y - - smtpd
  11.  
  12. 127.0.0.1:10025 inet n - y - - smtpd
  13. -o content_filter=
  14. -o smtpd_delay_reject=no
  15. -o smtpd_client_restrictions=permit_mynetworks,reject
  16. -o smtpd_helo_restrictions=
  17. -o smtpd_sender_restrictions=
  18. -o smtpd_recipient_restrictions=permit_mynetworks,reject
  19. -o smtpd_data_restrictions=reject_unauth_pipelining
  20. -o smtpd_end_of_data_restrictions=
  21. -o smtpd_restriction_classes=
  22. -o mynetworks=127.0.0.0/8,10.0.0.0/8
  23. -o smtpd_error_sleep_time=0
  24. -o smtpd_soft_error_limit=1001
  25. -o smtpd_hard_error_limit=1000
  26. -o smtpd_client_connection_count_limit=0
  27. -o smtpd_client_connection_rate_limit=0
  28. -o receive_override_options=no_header_body_checks,no_unknown_recipient_checks,no_milters,no_address_mappings
  29. -o local_header_rewrite_clients=
  30. -o smtpd_milters=
  31. -o local_recipient_maps=
  32. -o relay_recipient_maps=
  33. ….
  34. ….
  35. amavisfeed unix - - n - 2 lmtp
  36. -o lmtp_data_done_timeout=1200
  37. -o lmtp_send_xforward_command=yes
  38. -o disable_dns_lookups=yes
  39. -o max_use=20
  40.  
  41. ...
  42. content_filter=amavisfeed:[127.0.0.1]:10024
  43. ...
  44.  
  45. qr'^.(zip|rar)$'i, # block zip and rar type
  46.  
  47. read_hash(%whitelist_sender, '/etc/amavisd/whitelist');
  48. @whitelist_sender_maps = (%whitelist_sender);
  49.  
  50. $interface_policy{'10024'} = 'EXTERNAL';
  51.  
  52. # regular incoming mail, originating from anywhere (usually from outside)
  53. $policy_bank{'EXTERNAL'} = {
  54. # # just use global settings, no special overrides
  55. log_level => 4,
  56. auth_required_release => 0, # do not require secret_id for amavisd-release
  57. bypass_banned_checks_maps => [[qw( recip1@example.com user@libero.it user@test.mydomain.com )]],
  58. };
  59.  
  60. ….
  61. Mar 16 14:58:57 test-mailgw amavis[10230]: (10230-01) dkim: public key s=s2014 d=libero.it k=rsa, 2048-bit key
  62. Mar 16 14:58:57 test-mailgw amavis[10230]: (10230-01) dkim: VALID Author+Sender+MailFrom signature by d=libero.it, From:
  63. <user@libero.it>, a=rsa-sha256, c=relaxed/relaxed, s=s2014, i=@libero.it
  64. Mar 16 14:58:57 test-mailgw amavis[10230]: (10230-01) Original mail size: 5472196; quota set to: 524288000 bytes (fmin=5,
  65. fmax=500, qmin=102400, qmax=524288000)
  66. Mar 16 14:58:57 test-mailgw amavis[10230]: (10230-01) Checking: xeO-t6yJ68dS EXTERNAL [212.48.25.196] <user@libero.it>-> <user@test.mydomain.com>
  67. Mar 16 14:58:57 test-mailgw amavis[10230]: (10230-01) 2822.From: <user@libero.it>
  68. Mar 16 14:58:57 test-mailgw amavis[10230]: (10230-01) lookup_acl(user@test.mydomain.com) matches key ".test.mydomain.com", result=1
  69. Mar 16 14:58:57 test-mailgw amavis[10230]: (10230-01) lookup [local_domains] => true, "user@test.mydomain.com" matches, result="1", matching_key=".test.mydomain.com"
  70. Mar 16 14:58:57 test-mailgw amavis[10230]: (10230-01) lookup [bypass_virus_checks] => undef, "user@test.mydomain.com" does not match
  71. Mar 16 14:58:57 test-mailgw amavis[10230]: (10230-01) lookup_acl(user@test.mydomain.com) matches key "user@test.mydomain.com", result=1
  72. Mar 16 14:58:57 test-mailgw amavis[10230]: (10230-01) lookup => true, "user@test.mydomain.com" matches, result="1", matching_key="user@test.mydomain.com"
  73. Mar 16 14:58:57 test-mailgw amavis[10230]: (10230-01) lookup [bypass_spam_checks] => undef, "user@test.mydomain.com" does not match
  74. Mar 16 14:58:57 test-mailgw amavis[10230]: (10230-01) Extracting mime components from a file
  75.  
  76. bypass_banned_checks_maps => [[qw( recip1@example.com user@libero.it )]],
  77.  
  78. …...
  79. Mar 16 15:14:57 test-mailgw amavis[10611]: (10611-01) Checking: lCsEqup1nnwy EXTERNAL [212.48.25.196] <user@libero.it>
  80. -> <user@test.mydomain.com>
  81. Mar 16 15:14:57 test-mailgw amavis[10611]: (10611-01) 2822.From: <user@libero.it>
  82. Mar 16 15:14:57 test-mailgw amavis[10611]: (10611-01) lookup_acl(user@test.mydomain.com) matches key ".test.mydomain.com", result=1
  83. Mar 16 15:14:57 test-mailgw amavis[10611]: (10611-01) lookup [local_domains] => true, "user@test.mydomain.com" matches, result="1", matching_key=".test.mydomain.com"
  84. Mar 16 15:14:57 test-mailgw amavis[10611]: (10611-01) lookup [bypass_virus_checks] => undef, "user@test.mydomain.com" does not match
  85. Mar 16 15:14:57 test-mailgw amavis[10611]: (10611-01) lookup_acl(user@test.mydomain.com), no match
  86. Mar 16 15:14:57 test-mailgw amavis[10611]: (10611-01) lookup => undef, "user@test.mydomain.com" does not match
  87. Mar 16 15:14:57 test-mailgw amavis[10611]: (10611-01) lookup [bypass_spam_checks] => undef, "user@test.mydomain.com" does not match
  88. …...
  89. Mar 16 15:14:58 test-mailgw postfix/lmtp[10620]: 64B778287E: to=<user@test.mydomain.com>, relay=127.0.0.1[127.0.0.1]:10024, delay=2.1, delays=0.63/0.01/0.01/1.4, dsn=2.5.0, status=sent (250 2.5.0 Ok <user@test.mydomain.com>, DSN was sent (554 5.7.0 Bounce, id=10611-01 - BANNED: .pdf,joomla_15_quickstart.pdf))
  90. Mar 16 15:14:58 test-mailgw postfix/qmgr[631]: 64B778287E: removed
  91. …….
  92.  
  93. …...
  94. Mar 16 15:36:32 test-mailgw amavis[11088]: (11088-01) Checking: S6fD-MRTCySL EXTERNAL [212.48.25.196] <user@libero.it> -> <user@test.mydomain.com>
  95. Mar 16 15:36:32 test-mailgw amavis[11088]: (11088-01) 2822.From: <user@libero.it>
  96. Mar 16 15:36:32 test-mailgw amavis[11088]: (11088-01) lookup_acl(user@test.mydomain.com) matches key ".test.mydomain.com", result=1
  97. Mar 16 15:36:32 test-mailgw amavis[11088]: (11088-01) lookup [local_domains] => true, "user@test.mydomain.com" matches, result="1",matching_key=".test.mydomain.com"
  98. Mar 16 15:36:32 test-mailgw amavis[11088]: (11088-01) lookup [bypass_virus_checks] => undef, "user@test.mydomain.com" does not match
  99. Mar 16 15:36:32 test-mailgw amavis[11088]: (11088-01) lookup: (scalar) matches, result="@whitelist_sender_maps"
  100. Mar 16 15:36:32 test-mailgw amavis[11088]: (11088-01) lookup => true, "user@test.mydomain.com" matches, result="@whitelist_sender_maps", matching_key="(constant:@whitelist_sender_maps)"
  101. Mar 16 15:36:32 test-mailgw amavis[11088]: (11088-01) lookup [bypass_spam_checks] => undef, "user@test.mydomain.com" does not match
  102. …..
  103.  
  104. $interface_policy{'10026'} = 'NOBANNED';
  105.  
  106. $policy_bank{'NOBANNED'} = {
  107. # # just use global settings, no special overrides
  108. log_level => 4,
  109. auth_required_release => 0,
  110. bypass_banned_checks_maps => [1],
  111. };
  112.  
  113. whitelisted@sender.com FILTER smtp:[127.0.0.1]:10026
  114.  
  115. postmap hash:/etc/postfix/whitelist_filter
  116.  
  117. check_client_access hash:/etc/postfix/whitelist_filter
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement