Re: [CentOS] restrict postfix to only certain users getting incoming mail

2012-03-06 Thread John Doe
From: Bob Hoffman > Postfix, by default, accepts all incoming mail to any user listed in the > shadow/passwd and alias files. > I cannot find a way to stop that without manually blocking each non > wanted user (like nobody, apache) without killing local delivery. What about using /etc/postfix/

Re: [CentOS] restrict postfix to only certain users getting incoming mail [solved?]

2012-03-05 Thread Bob Hoffman
Micolas Kowalski wrote /Tue Mar 6 01:39:49 EST 2012 / On Mon, Mar 05, 2012 at 11:50:21PM -0500, Bob Hoffman wrote: >/ What I would like is to just tell postfix to only allow incoming mail />/ for user1 and user2 and reject all...but only from external source

Re: [CentOS] restrict postfix to only certain users getting incoming mail

2012-03-05 Thread Nicolas KOWALSKI
On Mon, Mar 05, 2012 at 11:50:21PM -0500, Bob Hoffman wrote: > What I would like is to just tell postfix to only allow incoming mail > for user1 and user2 and reject all...but only from external sources, not > locally sent mail. You may use local_recipient_maps. On my home server, I have this in

Re: [CentOS] restrict postfix to only certain users getting incoming mail

2012-03-05 Thread Nataraj
On 03/05/2012 08:50 PM, Bob Hoffman wrote: > Perhaps I am trying to do the impossible. > centos6, spamassassin, procmail, dovecot, postfix. > > Postfix, by default, accepts all incoming mail to any user listed in the > shadow/passwd and alias files. > > I cannot find a way to stop that without man

Re: [CentOS] restrict postfix to only certain users getting incoming mail

2012-03-05 Thread Bob Hoffman
John Pierce wrote: >>>On 03/05/12 8:50 PM, Bob Hoffman wrote: >/>>> I have 2 books on postfix here and spent many days online but I do not // see the solution short of /dev/null or reject of all mail, local or />/>>> external, of root. / >shouldn't be hard to cook up a procmail recipe for t

Re: [CentOS] restrict postfix to only certain users getting incoming mail

2012-03-05 Thread Les Mikesell
On Mon, Mar 5, 2012 at 10:50 PM, Bob Hoffman wrote: > Perhaps I am trying to do the impossible. > centos6, spamassassin, procmail, dovecot, postfix. > > Postfix, by default, accepts all incoming mail to any user listed in the > shadow/passwd and alias files. > > I cannot find a way to stop that wi

Re: [CentOS] restrict postfix to only certain users getting incoming mail

2012-03-05 Thread John R Pierce
On 03/05/12 8:50 PM, Bob Hoffman wrote: > I have 2 books on postfix here and spent many days online but I do not > see the solution short of /dev/null or reject of all mail, local or > external, of root. shouldn't be hard to cook up a procmail recipe for that. -- john r pierce

[CentOS] restrict postfix to only certain users getting incoming mail

2012-03-05 Thread Bob Hoffman
Perhaps I am trying to do the impossible. centos6, spamassassin, procmail, dovecot, postfix. Postfix, by default, accepts all incoming mail to any user listed in the shadow/passwd and alias files. I cannot find a way to stop that without manually blocking each non wanted user (like nobody, apac