Advertisement
Guest User

Untitled

a guest
Aug 29th, 2016
2,324
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.22 KB | None | 0 0
  1. Amavis konfig:
  2.  
  3.  
  4. $forward_method = 'smtp:[127.0.0.1]:10025'; # where to forward checked mail
  5. $notify_method = $forward_method; # where to submit notifications
  6.  
  7. $inet_socket_port = [10024, 10026];
  8. $interface_policy{'10026'} = 'OUTGOING';
  9. # -
  10. # outgoing policy
  11. $policy_bank{'OUTGOING'} = { # Server mail submitted to port 10026
  12. originating => 1, # mail submitted by server
  13. bypass_spam_checks_maps => [1], # no spam check
  14. bypass_banned_checks_maps => [1], # no banned check
  15. bypass_header_checks_maps => [1], # no header checks
  16. };
  17.  
  18.  
  19.  
  20.  
  21.  
  22.  
  23.  
  24.  
  25.  
  26.  
  27.  
  28.  
  29.  
  30. Postfix master.conf:
  31.  
  32. smtp inet n - - - 10 smtpd
  33. -o content_filter=smtp-amavis:[127.0.0.1]:10024
  34.  
  35.  
  36. pickup unix n - - 60 1 pickup
  37. -o content_filter=
  38. -o receive_override_options=no_header_body_checks
  39. -o content_filter=smtp-amavis:[127.0.0.1]:10026
  40.  
  41.  
  42.  
  43. smtp-amavis unix - - - - 10 smtp
  44. -o smtp_data_done_timeout=1200
  45. -o smtp_send_xforward_command=yes
  46. -o disable_dns_lookups=yes
  47. -o max_use=20
  48.  
  49.  
  50. 127.0.0.1:10025 inet n - - - 10 smtpd
  51. -o content_filter=
  52. -o local_recipient_maps=
  53. -o relay_recipient_maps=
  54. -o smtpd_restriction_classes=
  55. -o smtpd_delay_reject=no
  56. -o smtpd_client_restrictions=permit_mynetworks,reject
  57. -o smtpd_helo_restrictions=
  58. -o smtpd_sender_restrictions=...
  59. -o smtpd_recipient_restrictions=permit_mynetworks,reject
  60. -o smtpd_data_restrictions=reject_unauth_pipelining
  61. -o smtpd_end_of_data_restrictions=
  62. -o mynetworks=127.0.0.0/8
  63. -o smtpd_error_sleep_time=0
  64. -o smtpd_soft_error_limit=1001
  65. -o smtpd_hard_error_limit=1000..
  66. -o smtpd_client_connection_count_limit=0
  67. -o smtpd_client_connection_rate_limit=0
  68. -o receive_override_options=no_header_body_checks,no_unknown_recipient_checks,no_address
  69.  
  70.  
  71. submission inet n - - - - smtpd
  72. -o smtpd_client_restrictions=permit_sasl_authenticated,reject
  73. -o content_filter=amavis:[127.0.0.1]:10026
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement