On Fri, Nov 16, 2012 at 11:29:35PM +0100, Gerald Vogt wrote:
> On Friday, November 16, 2012, Noel Jones wrote:
> > On 11/16/2012 2:30 PM, Gerald Vogt wrote:
> >
> > > 1. deliver mails to account locally.
> > > 2. forward all local mails for any other account to relayhost
> >
> > # main.cf
> > mydestination = localhost

Probably should also have "localhost.$mydomain" there:

http://www.postfix.org/postconf.5.html#append_dot_mydomain

> > virtual_alias_maps = hash:/etc/postfix/virtual
> >
> > # virtual
> > acco...@example.com <javascript:;>   account@localhost

What is this "<javascript:;>" garbage? Is that in the actual 
virtual(5) file, or just inserted by a silly MUA?

> This doesn't work. Mails for account are still forwarded to
> the mail relay. Even if I add another line for 
> acco...@hostname.example.com, account and 
> acco...@localhost.example.com it won't be delivered locally.

It's probably time for you to show logs and postconf -n:

http://www.postfix.org/DEBUG_README.html#mail
-- 
  http://rob0.nodns4.us/ -- system administration and consulting
  Offlist GMX mail is seen only if "/dev/rob0" is in the Subject:

Reply via email to