Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 1. env desc
- my email server is protected behind FW, and is running in internal IP, with hostname: mail.in.my_domian.com
- and its internet ip/name is mail.my_domain.com
- it is rdr to internal IP by pf.
- for dns system, mx is set correct.
- 2. problem desc:
- Now I can send email from my_domain.com to other_domain (! my_domain), and also can get email from other_domian.
- but I can't send email from my_domain to my_domain;
- following is the rule I used, any help?
- 3. main configuration of smtpd.conf
- =======
- listen on egress tls auth-optional <passwd> # MTA
- listen on egress smtps auth <passwd> # MSA (auth required)
- listen on egress port submission tls-require auth <passwd> # MSA (auth required)
- listen on lo0
- listen on lo0 port 10026 tag SPAM_IN
- listen on lo0 port 10028 tag DKIM_OUT
- action vusers_lmtp_deliver lmtp "/var/dovecot/lmtp" rcpt-to virtual <users>
- action local_lmtp_deliver lmtp "/var/dovecot/lmtp" rcpt-to alias <aliases>
- action relay_spampd relay host smtp://127.0.0.1:10025 # send to spampd
- action relay_dkimproxy_out relay host smtp://127.0.0.1:10027 # send to dkimproxy_out
- action "relay" relay
- match \
- from local \
- for local \
- action local_lmtp_deliver
- match \
- tag SPAM_IN \
- for domain <domains> \
- action vusers_lmtp_deliver
- match \
- tag SPAM_IN \
- for local \
- action local_lmtp_deliver
- match \
- tag DKIM_OUT \
- for domain <domains> \
- action relay_spampd
- match \
- tag DKIM_OUT \
- for any \
- action "relay"
- match \
- from local \
- for any \
- action relay_dkimproxy_out
- match \
- auth \
- from any \
- for any \
- action relay_dkimproxy_out
- match \
- from any \
- for domain <domains> \
- action relay_spampd
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement