On 10/31/2013 12:19 PM, John Allen wrote: > Which is "better", to put the various restrictions with the > appropriate smtpd_????_restriction stanzas, or to put them all into > the smtpd_recipient_restrictions stanza. I am assuming that > smtpd_delay_reject is yes.
There is no "better". Putting everything in smtpd_recipient_restrictions makes whitelisting easier, and some folks find it easier to follow the order this way. Almost all "simple" examples shown on this list use this method; being easier to type is probably a contributing factor. Separating restrictions allows more complex expressions, and some folks find this ordering easier to follow. This does make whitelisting harder, but also more flexible. Use whatever works best for you and your needs. > > I have always assumed that putting them in one place had the > advantage of allowing me to order the various restrictions as I wanted. > You control the order regardless. -- Noel Jones