OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
Re: Relay when user is unknown

From: Brian Evans - Postfix List (grknightscent-team.com)
Date: Wed Sep 24 2008 - 09:01:40 CDT


Blaise Hurtlin wrote:
> Hi,
>
> I'm trying to configure my new Postfix system. I have all my users in
> a LDAP and use virtual mailbox.
>
> I need the following behaviour:
> - Existing users in LDAP => delivered locally (this part works fine)
> - Non-existing users => relay to another SMTP
>
> Any idea how to do that ? thanks..
>
> Blaise

Don't blindly accept mail that can be rejected in a relay. This causes
Backscatter and is frowned upon.

You need to know at the Gateway which addresses are valid.
Techniques to do this include relay_recipient_maps and
'check_recipient_access hash:/path/to/rcpt_map'
The first is used if you KNOW who is valid. The second is used if you
don't with the following contents: 'subdomain.example.com
reject_unverified_sender'

All of this is speculation without 'postconf -n'.

Brian