OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
Fwd: Postfix, virtual domains and OS X Server

From: Bill Whitacre (bwhis.com)
Date: Thu Apr 01 2004 - 15:19:26 CST


I am using a single XServe to DNS and how a few domains. I
figured DNS our [finally] and Apache virtual hosting. Now I'm
trying to get Postfix virtual domains to work.

I'm using a couple of Mac-specific tutorials:

<http://www.afp548.com/Articles/Panther/postfixvirtual.html>

<http://www.zonnebloemeuropa.be/FAQ/multidomainpostfix.html>

and a document titled "Postfix Virtual Domain Hosting"

<http://www.porcupine.org/postfix-mirror/newdoc/VIRTUAL_README.html>

I've set up my /etc/postfix/virtual file like this:

        postmasteribbrms.com bwhis.com
        jacobibbrms.com ibbrmsjacobibbrms.com
        postmastershortwaveradio.org bwhis.com
        jacobshortwaveradio.org
shortwavejacobshortwaveradio.org

... where ibbrms.com and shortwaveradio.org are virtual domains.

I've added the following into my /etc/postfix/main.cf file:

        virtual_alias_domains = ibbrms.com,shortwaveradio.org
        virtual_alias_maps = hash:/etc/postfix/virtual

My 'mydestination' line looks like this:

        mydestination =
$myhostname,localhost.$mydomain,ibbmonitor.com,shortwaveradio.org,ibbrms
.com

In the Postfix documentation, there is a warning:

        NEVER list a virtual alias domain name as a mydestination domain!

And indeed, I get this warning in Postfix's log when email is passed:

        warning: do not list domain shortwaveradio.org in BOTH
        mydestination and virtual_alias_domains

OK, easy enough -- I'll just take shortwaveradio.org and ibbrms.com OUT
of the mydestination line.

When I do that I get bounces with "user unknown in virtual alias table"
in the Postfix mail log.

Ptui!

Can anybody see what I'm doing wrong or not doing right and point me in
the the right direction?

Thanks!

bw

P.S. Once I get this figured out, I'm going to try using Mailman
maillists on the virtual domains!

---
Bill Whitacre
bwhis.com