OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
Re: Alias with check_recipient_access: /etc/ppostfix/virtual sensible solution?

From: Wietse Venema (wietseporcupine.org)
Date: Wed Nov 14 2007 - 18:33:21 CST


Raimund Eimann:
> Hi,
>
> actually the domains are part of mydestination. Before I started playing
> with /etc/postfix/virtual, I've put the aliases into /etc/aliases, but mail
> to the aliases was still rejected.
>

DON'T include the domain in /etc/aliases

        Wietse

>
> Cheers,
> Raimund
>
>
> On Thursday 15 November 2007, Wietse Venema wrote:
> > Raimund Eimann:
> > > Hi,
> > >
> > > I'm rejecting mail to users such as root, hostmaster, administrator and
> > > so on on my mail server. Apart from that, mail to unknown users is
> > > rejected.
> > >
> > > For one user (username: "mike"), I need an alias "michael". As "michael"
> > > does not exist in /etc/passwd mail to michaelmy.doma.in gets rejected.
> > >
> > > I added some entries to /etc/postfix/virtual:
> > >
> > > michaelmy.doma.in mike
> > > michaelmy.second.doma.in mike
> > > michaelmy.third.doma.in mike
> > >
> > > It seems to work, but is this the correct way of doing this? Or is this
> > > rather done in /etc/aliases or /etc/postfix/canonical?
> > >
> > > Confused. What's the relevant section in the docs to distiguish the
> > > purpose of these three files?
> >
> > If the above domains are listed in (virtual_alias_domains,
> > virtual_mailbox_domains, or relay_domains) instead of mydestination,
> > then your virtual alias maps solution is the proper solution.
> >
> > /etc/aliases is for mydestination domains only.
> >
> > Wietse
>
>