Frustrated. FInding that smtpd.cfg is an important file, and cannot find any docs for it on the internet or in the knowledgebase. Bits and pieces in messages here, indicating that someone knows what should be done here...
First off, I have my domain and subdomains, and am hosting other domains. so consider:
foo.com
test.foo.com
bar.org
test.bar.org
bar.net
Now the default smtpd.cfg has some rules to prevent open relaying at the end of the file. But I read that smtpd.cfg is processed linearly and the 'open relay reject' rules should come first! So I move those above all my other lines:
Now I really don't want to assign multiple IP addresses to support stunnel and smtp. Will have to study tips on preventing that from being an open relay...
It seems the first two lines after my drop open relays are:
AUTH_SUCCESS header
AUTH_SUCCESS accept all
But I read in one message here that AUTH_SUCCESS accept all is 'redunant'. With what?
Then I want to accept my internal addresses:
RELAY accept 127.0.0.1
RELAY accept 1.2.3.4/26 # I do have 64 pub addresses
RELAY accept 192.168.
Now I want to allow remote users to send mail:
RELAY accept .foo.com
RELAY accept .bar.org
RELAY accept .bar.net
RELAY Log_Reject ALL
But I am already accepting when AUTH Successful? So If I require auth for smtp, do I need any of these accepts?
And if I do, I have seen that the above are for subdomains. What I would really need is:
RELAY accept .foo.com
RELAY accept foo.com
RELAY accept .bar.org
RELAY accept bar.org
RELAY accept bar.net
RELAY Log_Reject ALL
One should not be learning this by trying and watching scalix become an open relay becuase of bad rules or users not able to send mail....