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 mail -> virtual mailbox?

From: Adam Tomjack (adamzuerchertech.com)
Date: Sat May 13 2006 - 19:00:10 CDT


mouss wrote:
> Adam Tomjack wrote:
>
>> I'm trying to set up a mail server to handle multiple domains, and I'm
>> having trouble getting my local mail to be delivered to my virtual
>> mailboxes.
>>
>> The server's hostname is mail.acmehosting.com. It also serves mail
>> for example.com. I need bobacmehosting.com and bobexample.com to
>> have different mailboxes, so I'm using virtual mailboxes. But, I want
>> local mail to bob to be delivered to bobacmehosting.com. I tried to set
>> local_transport = virtual:acmehosting.com
>
> It's almost always a bad idea to override *_transport.
>
> if all acmehosting.com mail should go local, then put acmehosting in
> mydestination. if only bob this domain should be local, then either use
> vritual alises or transports.
>
> if the domain is to stay virtual, then use virtual aliases to redirect
> bobthere.example to boblocalhost.

I think you misunderstood me, but you still helped me figure it out. I
don't want anything to go to a local mailbox. I rarely ssh to the
server, so I would never get any local mail. Hence, I need local mail
to 'bob' to be redirected to 'bobacmehosting.com', where I'll
eventually see it with my imap client. I just had to add the line
   boblocalhost.localhost bobacmehosting.com
to /etc/postfix/virtual_mailbox_aliases

Thanks for the help.

Adam