On 2/28/2012 12:25 PM, Brian Evans - Postfix List wrote:
On 2/28/2012 11:48 AM, Steve Campbell wrote:
I'm new to postfix so I've got a lot of learning to do.
Welcome to Postfix.

One of the basic questions I have is this:

I'm wanting to use bl.spamcop.net. From what I can discern, I've got
to put this in my main.cf in a section named
smtpd_recipient_restrictions. I don't see that in mine, but I'm
guessing I need to create this section (either manually or with
postconf(?)). I've found a few examples but they have tons of other
things in that section as well.

Is the above correct to some degree?
What you must understand is that Postfix comes with sensible defaults
for most people.
When not explicitly overridden, it uses those defaults.

I've read that. Still, no RBLs exist that I can tell and I need to use them.

To see the current values of an option, you can use the postconf tool.
Ex: "postconf smtpd_recipient_restrictions"

That particular option has requirements to be met to keep you from being
an open relay.
You should add features by keeping the default and appending what you want.
If I add that section manually, and just add the lines that I need, can I assume that the other defaults are still being used for that section?

To see your modifications to the default, use 'postconf -n'.  We usually
require this to help with issues.
To see all of the default options, use 'postconf -d'.  For reference
only as we mostly know the defaults.
I'm still unclear how I should be using postconf to add sections/changes to defaults. The man page is still a little unclear. Or do I use it to just see what options are valid?

At this point in time, the server is a test server and not in production. I have used sendmail for decades, and of course, it makes sense to me, but the need to use postfix is getting to be more and more important. Hopefully, it won't take decades to learn it. For now, I'll see what adding that section manually provides, but getting clarity always helps.

Thanks

steve
Brian



Reply via email to