OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
Re: Local/Virtual Delivery Agent Config Question

From: Magnus Bäck (magnusdsek.lth.se)
Date: Sat Jul 01 2006 - 17:29:24 CDT


On Sunday, July 02, 2006 at 00:10 CEST,
     Kevin Wilcox <6brshootergmail.com> wrote:

> On 7/1/06, Magnus Bäck <magnusdsek.lth.se> wrote:
>
> > Unless the users have real accounts (i.e. accounts accessible via
> > getpwnam(3) and friends) you must make the domain a virtual mailbox
> > domain. That doesn't necessarily mean that you'll be using
> > virtual(8), though.
>
> Since this is going to be a virtual mailbox domain rather than a
> virtual alias, I think then I don't need to create an entry in
> virtual(5) correct?

Correct. You'll need to use the virtual table for aliases, though.

> One point I forgot to mention in my original e-mail is that even
> though the recipients don't have mail boxes on the system, their
> domain name matches the domain name of the SMTP server.

With "don't have mail boxes on the system", I assume you're talking
about local mailboxes connected to local (non-virtual) accounts.

Just make sure you don't list the domain in question in two address
classes. In this case you'd want to make sure you don't your domain
in both mydestination and virtual_mailbox_domains. And yes, it's
perfectly allright to have the server's own domain (mydomain) as a
virtual mailbox domain. Postfix doesn't care.

> > Define a service for the delivery agent in master.cf and set
> > virtual_transport to point to that service. The default master.cf
> > should already contain example services for maildrop and Cyrus.
>
> I understand how do add a virtual tranports in main.cf, how do I match
> that transport to the domain name? Based on what I've read, I think I
> do it in the transport(5) file. Is this correct?

That's one way of doing it, but instead just set virtual_transport to
the service you've created. Then all messages to virtual mailbox domains
will be sent to your service.

> Also, I'll still need to configure main.cf to know about this domain.
> Is this correct?

Yes. List all virtual mailbox domains in virtual_mailbox_domains
and all valid recipients in those domains in virtual_mailbox_maps.

--
Magnus Bäck
magnusdsek.lth.se