Advertisement
Guest User

Untitled

a guest
Sep 17th, 2019
1,602
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.81 KB | None | 0 0
  1. 1. env desc
  2. my email server is protected behind FW, and is running in internal IP, with hostname: mail.in.my_domian.com
  3. and its internet ip/name is mail.my_domain.com
  4.  
  5. it is rdr to internal IP by pf.
  6.  
  7. for dns system, mx is set correct.
  8.  
  9. 2. problem desc:
  10. Now I can send email from my_domain.com to other_domain (! my_domain), and also can get email from other_domian.
  11.  
  12. but I can't send email from my_domain to my_domain;
  13.  
  14.  
  15. following is the rule I used, any help?
  16.  
  17.  
  18. 3. main configuration of smtpd.conf
  19. =======
  20. listen on egress tls auth-optional <passwd> # MTA
  21. listen on egress smtps auth <passwd> # MSA (auth required)
  22. listen on egress port submission tls-require auth <passwd> # MSA (auth required)
  23.  
  24. listen on lo0
  25. listen on lo0 port 10026 tag SPAM_IN
  26. listen on lo0 port 10028 tag DKIM_OUT
  27.  
  28.  
  29. action vusers_lmtp_deliver lmtp "/var/dovecot/lmtp" rcpt-to virtual <users>
  30. action local_lmtp_deliver lmtp "/var/dovecot/lmtp" rcpt-to alias <aliases>
  31. action relay_spampd relay host smtp://127.0.0.1:10025 # send to spampd
  32. action relay_dkimproxy_out relay host smtp://127.0.0.1:10027 # send to dkimproxy_out
  33. action "relay" relay
  34.  
  35. match \
  36. from local \
  37. for local \
  38. action local_lmtp_deliver
  39.  
  40. match \
  41. tag SPAM_IN \
  42. for domain <domains> \
  43. action vusers_lmtp_deliver
  44.  
  45. match \
  46. tag SPAM_IN \
  47. for local \
  48. action local_lmtp_deliver
  49.  
  50. match \
  51. tag DKIM_OUT \
  52. for domain <domains> \
  53. action relay_spampd
  54.  
  55. match \
  56. tag DKIM_OUT \
  57. for any \
  58. action "relay"
  59.  
  60. match \
  61. from local \
  62. for any \
  63. action relay_dkimproxy_out
  64.  
  65. match \
  66. auth \
  67. from any \
  68. for any \
  69. action relay_dkimproxy_out
  70.  
  71. match \
  72. from any \
  73. for domain <domains> \
  74. action relay_spampd
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement