If the comment in the
PortRedirect HowTo is correct, your incoming email will be getting handled as though from a local computer using the
/var/service/qpsmtpd/config/peers/local config file instead of the file normally used for incoming external emails (
/var/service/qpsmtpd/config/peers/0)Running
diff -u ... on the two qpsmtpd config files shows the differences:
+# 10check_earlytalker disabled for local connections
+# 12count_unrecognized_commands disabled for local connections
...
+# 16require_resolvable_fromhost disabled for local connections
+# check_basicheaders disabled by custom template fragment
+# 20rhsbl disabled for local connections
+# 22dnsbl disabled for local connections
You can find out if these plugins are getting used on your incoming email by examining
/var/log/qpsmtpd/current, but to get output from each plugin you must first set the qpsmtpd LogLevel to 8:
config setprop qpsmtpd LogLevel 8
signal-event email-update
Now send yourself a test message (or just wait a bit if your mail server is always busy), so there will be some new log data generated, then run
grep "check_basicheaders\|rhsbl\|dnsbl\|resolveable_fromhost" current | grep -v logterse | less
If you see any output the note on the wiki page is inaccurate, and SME is smart enough to know that the email coming from your ISP relay service *does* come from the external network.
Note: Be sure to set your LogLevel back to 6 when you're done checking:
config setprop qpsmtpd LogLevel 6
signal-event email-update
You may want to setup one or more of the methods for tracking your email server statistics outlined in
Email_Statistics so you can keep track of your server going forward.
If you find that the howto is correct and that these plugins are not being invoked, you may need to create some custom templates for the 'local' config file; here is an example of how to copy one plugin config from the '0' config file to the 'local' config file:
http://wiki.contribs.org/Email#How_do_I_enable_smtp_authentication_for_users_on_the_internal_network. You can use a similar method to copy the appropriate template fragments for the plugins you want to be active, but you may get odd behavior when attempting to relay email from your LAN clients through your SME server when you're done.
Hope this helps!