Guest User

Untitled

a guest
Oct 16th, 2018
246
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.78 KB | None | 0 0
  1. Oct 17 09:21:40 debian postfix/smtpd[1643]: NOQUEUE: reject: RCPT from
  2. unknown[x.x.x.x]: 553 5.7.1 <sender@example.com>: Sender address rejected:
  3. not owned by user sender@example.com; from=<sender@example.com>
  4. to=<receiver@gmail.com> proto=ESMTP helo=<[192.168.1.5]>
  5.  
  6. relay_domains = *
  7.  
  8. smtpd_sender_restrictions =
  9. permit_mynetworks,
  10. permit_sasl_authenticated
  11.  
  12. smtpd_relay_restrictions =
  13. permit_mynetworks,
  14. permit_sasl_authenticated,
  15. reject_unauth_destination
  16.  
  17. smtpd_recipient_restrictions =
  18. permit_mynetworks,
  19. permit_sasl_authenticated,
  20. reject_unauth_destination,
  21. reject_rbl_client zen.spamhaus.org,
  22. reject_rhsbl_reverse_client dbl.spamhaus.org,
  23. reject_rhsbl_helo dbl.spamhaus.org,
  24. reject_rhsbl_sender dbl.spamhaus.org,
  25.  
  26. smtpd_data_restrictions = reject_unauth_pipelining
  27.  
  28. submission inet n - - - - smtpd
  29. -o smtpd_tls_security_level=encrypt
  30. -o smtpd_sasl_security_options=noanonymous
  31. -o smtpd_client_restrictions=permit_sasl_authenticated
  32. -o smtpd_sender_restrictions=reject_sender_login_mismatch
  33.  
  34. virtual_mailbox_maps = mysql:/etc/postfix/mysql-virtual-mailbox-maps.cf
  35. smtpd_sender_login_maps = mysql:/etc/postfix/mysql-virtual-mailbox-maps.cf
  36.  
  37. # good
  38. query = SELECT email FROM postfix_mailbox_maps where email = '%s';
  39.  
  40. # bad
  41. query = SELECT 1 FROM postfix_mailbox_maps where email = '%s';
  42.  
  43. virtual_alias_maps = hash:/etc/postfix/virtual
  44. virtual_mailbox_domains = hash:/etc/postfix/virtual-mailbox-domains
  45. virtual_mailbox_maps = hash:/etc/postfix/virtual-mailbox-users
  46.  
  47. sender@exemple.com sender@exemple.com
  48. other@exemple.com other@exemple.com
  49. alias@exemple.com sender@exemple.com
  50.  
  51. exemple.com OK
  52.  
  53. sender@exemple.com sender@exemple.com
  54. other@exemple.com other@exemple.com
Add Comment
Please, Sign In to add comment