D'Arcy Cain: > On 2017-05-24 09:53 AM, Wietse Venema wrote: > > D'Arcy Cain: > >> On 2017-05-24 09:30 AM, Benny Pedersen wrote: > >>> D'Arcy Cain skrev den 2017-05-24 15:25: > >>>> The following is in my logs. > >>> > >>> provide postconf -n to get more help > >> > >> I knew I forgot something. > > > > Postfix before 3.0 by default accepts for relay all domains listed in > > mydestination (including vex.net) and subdomains (nan.vex.net). > > > > Suggestion: set relay_domains in main.cf, empty or with domains that you > > want to relay. > > I use mynetworks to specify who can send email through us so I set > relay_domains to empty. Thanks. > > I still don't understand why I accepted the email anyway. The user > didn't exist.
Because relay recipients are blocked only when relay_recipient_maps lists the 'valid' recipients; this is not a required setting. We could make such a table required, along with local_recipient_maps and a number of other changes, and make the new defaults conditional on compatibility_level>=3. Wietse