Loading ...
Sorry, an error occurred while loading the content.
 

Re: main.cf: How to remove "mynetworks"?

Expand Messages
  • /dev/rob0
    ... Unsetting mynetworks should be quite safe, acting just as if any address checked is not within $mynetworks. The good thing about mynetworks is that all
    Message 1 of 4 , Oct 28, 2012
      On Sun, Oct 28, 2012 at 02:40:27PM -0400, btb@... wrote:
      > On Oct 28, 2012, at 12.47, thorsopia@... wrote:
      > > I don't want to send emails directly from my server. (I'm going
      > > to connect from a client.)
      > >
      > > I have the following settings in "main.cf":
      > >
      > > mynetworks = 127.0.0.0/8
      > > smtpd_recipient_restrictions =
      > > permit_sasl_authenticated,permit_mynetworks,reject_unauth_destination
      > >
      > > I guess that I should remove "permit_mynetworks", but what about
      > > "mynetworks"? Should I remove that line or it will be enough to
      > > use the following?
      > >
      > > mynetworks =
      >
      > i'm a fan of not using mynetworks as well, and prefer to use
      > check_client_access for what mynetworks was traditionally used
      > to accomplish. to be thorough, you'd do both. do keep in mind
      > though that there are a number of other parameters whose defaults
      > reference mynetworks or permit_mynetworks. this doesn't mean it
      > can't be done, and it works fine for me, but you just need to be
      > aware that other adjustments may be necessary as well, depending
      > on the particulars of your setup.

      Unsetting mynetworks should be quite safe, acting just as if any
      address checked is not within $mynetworks.

      The good thing about mynetworks is that all other things that use
      $mynetworks are consistent. These are supposed to be the hosts under
      your direct control.
      --
      http://rob0.nodns4.us/ -- system administration and consulting
      Offlist GMX mail is seen only if "/dev/rob0" is in the Subject:
    Your message has been successfully submitted and would be delivered to recipients shortly.