> -----Original Message-----
> From: Wietse Venema [mailto:wie...@porcupine.org]
> Sent: Tuesday, June 09, 2009 4:00 PM
> To: Michael Glenney
> Cc: postfix-us...@cloud9.net
> Subject: Re: Need to create a mail dead-end or "super" catch-all
> 
> Michael Glenney:
> >
> > I have a request from one of our developers and I want to see if I
> can
> > fulfill it with Postfix.
> >
> > We have a services platform that has the ability to send out mail to
> > users.  We have a QA version of that platform that has an old copy
of
> > user data for testing.  For now the SMTP relay option of the QA
> server
> > is set to a non-existent host so that mail will not get sent to
> users.
> > They would like the ability to test the mail without worrying that a
> > mail will get sent to one of the users.
> >
> > I would like to setup a IMAP/SMTP server on the local host and
enable
> > the application to send to it.  I need all mail, no matter who it is
> > addressed to, to be delivered to one account on the server that will
> be
> > accessed via IMAP.  The server can never relay out.  Any message
that
> > comes in on port 25 gets put in this mailbox.
> >
> > Is this something that can be done with Postfix?  I don't need any
> hand
> > holding but a punt in the right direction would certainly be
helpful.
> 
> /etc/postfix/main.cf:
>     virtual_alias_maps = static:u...@example.com
> 
>       Wietse

Ok. I lied.  I need some hand-holding :)  I guess I'm just a little
confused about how virtual aliases and domains work.

I added what you said above:

[r...@server postfix]# postconf virtual_alias_maps
virtual_alias_maps = static:michael.glen...@mycompaniesmaildomain.com

The postfix on this server is the default setup and is generally just
used by our SA's to send mail from the command line when needed.  It's
setup with a relay host other than that the conf file seems right "out
of the box".  My thought now is that I'll just have everything go to a
DL that our devs are on and they can filter locally but I'm testing with
my e-mail address.

I tried to send an email from the command line to my gmail account:

[r...@server postfix]# mail -s asdfasdf <mygmailaccount>
asdf
.
Cc:

And it looks like the address was rewritten properly but it's not
getting delivered and I have this error in /var/log/maillog:

Jun 10 11:33:37 server postfix/error[1587]: 8FEF724264:
to=<michael.glen...@mycompaniesmaildomain.com>, orig_to=<r...@server>,
relay=none, delay=0, status=bounced (User unknown in virtual alias
table)

I appreciate any help you can give me.

Thanks,

Mike G.

This message is private and confidential. If you have received it in error, 
please notify the sender and remove it from your system.

Reply via email to