Re: How to deliver some addresses locally

2011-10-12 Thread Stefan Bertels
On Mon, 10 Oct 2011, Stefan Bertels wrote: On Mon, 10 Oct 2011, Wietse Venema wrote: To deliver some users locally, see http://www.postfix.org/STANDARD_CONFIGURATION_README.html#some_local Does not work. :-/ /etc/postfix/main.cf ... virtual_alias_map = hash:/etc/postfix/virtu

Re: How to deliver some addresses locally

2011-10-11 Thread Viktor Dukhovni
On Tue, Oct 11, 2011 at 01:35:36PM +0200, Stefan Bertels wrote: > On Mon, 10 Oct 2011, Viktor Dukhovni wrote: > >0. ALWAYS read your logs > > I always do. Original delivery address shows up there every time I test > (p...@stefan-bertels.de). I tested using sendmail -bv, too. Same result. > > >

Re: How to deliver some addresses locally

2011-10-11 Thread Jeroen Geilman
On 2011-10-11 19:22, Stefan Bertels wrote: 3. How to set myorigin if my /etc/postfix/virtual file contains: anybo...@gmail.com user1@localhost anybo...@yahoo.com user1@localhost anybo...@gmx.netuser2@localhost anot...@mail.comuser2@localhost IF the present /etc/postfix/virt

Re: How to deliver some addresses locally

2011-10-11 Thread Stefan Bertels
On Tue, 11 Oct 2011, Wietse Venema wrote: It does not get much simpler than this. To deliver (almost) all mail to the smarthost: /etc/postfix/main.cf: myorigin = example.com mydestination = localhost localhost.example.com relayhost = mail.example.net To deliver SOME

Re: How to deliver some addresses locally

2011-10-11 Thread Wietse Venema
Stefan Bertels: > On Tue, 11 Oct 2011, Wietse Venema wrote: > > Stefan Bertels: > >> I tried adding domain part to the right side, too: > >> > >> /etc/postfix/virtual > >>p...@stefan-bertels.de stefan@localhost > > > > To deliver some address locally, you need to (surprise) specify a > > destin

Re: How to deliver some addresses locally

2011-10-11 Thread Stefan Bertels
On Tue, 11 Oct 2011, Wietse Venema wrote: Stefan Bertels: I tried adding domain part to the right side, too: /etc/postfix/virtual p...@stefan-bertels.de stefan@localhost To deliver some address locally, you need to (surprise) specify a destination domain name that delivers locally.

Re: How to deliver some addresses locally

2011-10-11 Thread Wietse Venema
Stefan Bertels: > I tried adding domain part to the right side, too: > > /etc/postfix/virtual > p...@stefan-bertels.de stefan@localhost To deliver some address locally, you need to (surprise) specify a destination domain name that delivers locally. That is, 1) A destination domain name tha

Re: How to deliver some addresses locally

2011-10-11 Thread Stefan Bertels
On Mon, 10 Oct 2011, Wietse Venema wrote: On Mon, 10 Oct 2011, Wietse Venema wrote: To deliver some users locally, see http://www.postfix.org/STANDARD_CONFIGURATION_README.html#some_local You did not follow the instructions. Why do you think so? The instructions in the linked section above

Re: How to deliver some addresses locally

2011-10-10 Thread Wietse Venema
Stefan Bertels: > On Mon, 10 Oct 2011, Wietse Venema wrote: > > To deliver some users locally, see > > http://www.postfix.org/STANDARD_CONFIGURATION_README.html#some_local > > Does not work. :-/ It works only if you follow the instructions. > /etc/postfix/virtual > p...@stefan-bertels.de

Re: How to deliver some addresses locally

2011-10-10 Thread Stefan Bertels
On Mon, 10 Oct 2011, Wietse Venema wrote: To deliver some users locally, see http://www.postfix.org/STANDARD_CONFIGURATION_README.html#some_local Does not work. :-/ /etc/postfix/main.cf ... virtual_alias_map = hash:/etc/postfix/virtual /etc/postfix/virtual p...@stefa

Re: How to deliver some addresses locally

2011-10-10 Thread Wietse Venema
To deliver some users locally, see http://www.postfix.org/STANDARD_CONFIGURATION_README.html#some_local Wietse

How to deliver some addresses locally

2011-10-10 Thread Stefan Bertels
Hi there, I have read some docs about virtual mailboxes and address rewrite but I could not find a solution for my problem: I want to have a file /etc/postfix/virtual containing something like p...@stefan-bertels.destefan anotheraddr...@yahoo.de anotheruser thirdaddr...@gmail.