OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
Re: Accept from anyone, send from authenticated

From: Magnus Bäck (magnusdsek.lth.se)
Date: Thu Dec 06 2007 - 03:09:04 CST


On Thu, December 6, 2007 9:22 am, Ivan Sagalaev said:

> Here's `postconf -n` output as it is now. It's a configuration when I
> can connect to my host, authenticate and send mail to anyone. Now I just
> can't figure out how to accept connections from unauthenticated clients
> but deliver only locally in this case.

[...]

> smtpd_client_restrictions = permit_sasl_authenticated, reject

This means: Permit all authenticated clients, reject the rest.

> smtpd_recipient_restrictions = permit, reject_unauth_destination

This means: Permit all clients.

Replace both these with:

   smtpd_recipient_restrictions =
        permit_sasl_authenticated,
        reject_unauth_destination

This means: Permit all authenticated clients, reject the rest UNLESS they
are addressed to permitted destinations (i.e. your own domains).

[...]

--
Magnus Bäck
magnusdsek.lth.se