Daniel L'Hommedieu:
> > If all you want is treat anything.example.com as example.com, use: 
> > 
> > /etc/postfix/main.cf:
> >  mydestination = localhost example.com pcre:/etc/postfix/mydestination.pcre
> > 
> > /etc/postfix/mydestination.pcre:
> >  /\.example\.com$/ whatever
> > 
> > Where "whatever" may be any non-empty value.
> > 
> > By design, Postfix *internals* do not depend on DNS, so that Postfix 
> > keeps working when the network is down.
> 
> Wietse,
> 
> I think this is the piece I was missing.  My hosts are named as
> hostname.department.example.com.  I am building a mail catcher
> for my department, so I want my Postfix to accept mail for
> *...@*.department.example.com, and this PCRE is exactly what I was
> missing.  As I mentioned, I figured it had to be something simple.
> 
> More specifically, what I want is something that will catch
> r...@*.department.example.com, so that the guy who runs the
> corporate mail server doesn't get frustrated with the double-bounces
> that my department's applications generate.  If I can stay off of
> his radar, I am doing good, and this mail catcher will help me do
> that.

To fix the problem at its root, configure the machines so they
send mail as u...@example.com not u...@host.example.com.

        Wietse

Reply via email to