Magnus Therning <[EMAIL PROTECTED]> wrote: > On Sat, Sep 30, 2006 at 20:36:34 +0300, Andrei Popescu wrote: > [..] > >You can do this with rewriting. I just set this up today so its fresh > >:) > > > >/etc/postfix/main.cf: > > > > smtp_generic_maps = hash:/etc/postfix/generic > > > >then create /etc/postfix/generic with something like this: > > > > [EMAIL PROTECTED] [EMAIL PROTECTED] > > > >and run 'postmap /etc/postfix/generic > > > >Now if the mail is for [EMAIL PROTECTED] it will be delivered > >according to your aliases file. Mail for [EMAIL PROTECTED] will > >be sent to respective address with rewriten From: > > I can't seem to make it do what I want it to, which would be the exact > opposite of what you're doing. My problem was that > > % /usr/lib/sendmail root << EOF > Subject: test > > Test > EOF > > Would result in a mail being sent to [EMAIL PROTECTED] What I wanted > was a locally delivered email (according to the /etc/aliases file). > > After some research I added the following to my /etc/postfix/main.cf: > > mydestination = $myhostname, localhost > > That resulted in local delivery for mail sent to [EMAIL PROTECTED] and > [EMAIL PROTECTED] (and /etc/aliases is used for that :-).
I don't understand how is that different than your original config, but if it works ... :) Regards, Andrei -- If you can't explain it simply, you don't understand it well enough. (Albert Einstein) -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]