On 5/4/2011 2:24 PM, punit jain wrote:



     > Wouldn't it be better to leave permit_mynetworks in
    place and restrict
     > $mynetworks to 127.0.0.0/8 <http://127.0.0.0/8> instead?

    maybe, but the OP imho want to smtp auth ALL emails


All *outgoing emails only, from *all users irrespective of
whether they sending to local or non local domains.

Is there a way to achieve ?

This isn't possible without separating local mail submission from general internet incoming mail.

Probably the easiest way to do that is to require your users to submit mail on the submission port 587 or smtps port 465, and use your firewall to block or redirect port 25 from your local network. Then put whatever restrictions you want on the submission port.




  -- Noel Jones

Reply via email to