Exclude some users from delivery
\ Jeff Laine (20 Jan 2008)
. \ Reinaldo Carvalho (20 Jan 2008)
. . \ mouss (20 Jan 2008)
. . . \ Jeff Laine (20 Jan 2008)
. \ mouss (20 Jan 2008)

18 msgISP Question
3 msgmaildrop
2 msgTR: relay_transport
8 msgBook recommendation for Postfix
1 msg(NO SUBJECT)
2 msgBefore Content Filter (semantics)
5 msgGuide
2 msgsasl auth. with virtual domains
2 msgbody_checks problem
17 msgQuestion about a simple filter
2 msgCouriertls error: SSL routines:SSL3_GET_RECORD
6 msgHuge Performance Issue on Quad-Core Opteron
2 msgOdd behavior with opportunistic TLS
7 msgtransport virtual failure
4 msgStatic route to a private mail server with user...
2 msgPostfix postconf quick reference, lookup, annot...
3 msgAltermime does not attach HTML disclaimer (litt...
2 msgBroken logging after syslog restart
3 msgVirtual domains question
Subject:Re: Exclude some users from delivery
Group:Postfix-users
From:Jeff Laine
Date:20 Jan 2008


 
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
> ...
>
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