| |||||||||||||||||||||||||||||||
|
> Reinaldo Carvalho wrote: > > On Jan 20, 2008 6:10 PM, Jeff Laine <wtf.jlaine> wrote: > > > >> Hi to all. > >> > >> Is there any way to forbid mail delivery from outside to several local > >> users (i.e. for "root" or "noreply" local accounts) and still be able > >> to recieve local mail for them? Can I create some kind of a lookup > >> table and put there users assigned only for a local delivery? > >> > >> TIA > >> > >> -- > >> --Jeff-- > >> > >> > > > > you can reject this recipients on restrictions, use check_recipient_access. > > > > > > make sure to put this at the right place. if the server receives cron > mail from other machines of yours, you should not reject it unless you > configure the client machines to send to other addresses. > > a safe setting is to put the check after reject_unauth_destination: > > smtpd_recipient_restrictions = > ... > reject_unauth_destination > check_recipient_access hash:/etc/postfix/local_only > ... > > == local_only: > root REJECT > toor REJECT > daemon REJECT > named REJECT > apache REJECT > www REJECT > ftpd REJECT > ... > On 21/01/2008, mouss <mouss> wrote: > Reinaldo Carvalho wrote: > > On Jan 20, 2008 6:10 PM, Jeff Laine <wtf.jlaine> wrote: > > > >> Hi to all. > >> > >> Is there any way to forbid mail delivery from outside to several local > >> users (i.e. for "root" or "noreply" local accounts) and still be able > >> to recieve local mail for them? Can I create some kind of a lookup > >> table and put there users assigned only for a local delivery? > >> > >> TIA > >> > >> -- > >> --Jeff-- > >> > >> > > > > you can reject this recipients on restrictions, use check_recipient_access. > > > > > > make sure to put this at the right place. if the server receives cron > mail from other machines of yours, you should not reject it unless you > configure the client machines to send to other addresses. > > a safe setting is to put the check after reject_unauth_destination: > > smtpd_recipient_restrictions = > ... > reject_unauth_destination > check_recipient_access hash:/etc/postfix/local_only > ... > > == local_only: > root REJECT > toor REJECT > daemon REJECT > named REJECT > apache REJECT > www REJECT > ftpd REJECT > ... > Thanks for your answers. Now I get it better. And what if I got several subdomains? Should I use "regexp" table instead of "hash"? -- --Jeff--
| ||||||||||||||||||||||||||||||
© 2004-2008 readlist.com