Paul G. Allen wrote: > It's working now more or less. > > There were a couple configuration problems with config files in the > wrong place and a couple minor changes I needed to make in one of the > config files. > > Now I have a problem where outgoing mail is being rejected by the qmail > server. Postfix relays all mail through the qmail server (after scanning > it). the qmail server is rejecting any mail to a recipient not hosted on > the server. I need to either figure out how to configure Postfix to send > such an email off to the Internet (not relay through qmail), or figure > out how to configure qmail to allow Postfix to relay mail through it. > > I'm not sure how to do either at the moment.
Here's how I do it. Add the following line to /etc/postfix/main.cf transport_maps = pcre:/etc/postfix/transport.pcre Create a file /etc/postfix/transport.pcre that looks like the following. You can break it down by email address if you want to. # Route domainA's mail to ms1.domainA.com Include subdomains /[EMAIL PROTECTED]/ smtp:[ms1.domainA.com] /[EMAIL PROTECTED]/ smtp:[ms1.domainA.com] # Send mail for domainB.com to mh1.domainB.com. Include subdomains /[EMAIL PROTECTED]/ smtp:[mh1.domainB.com] /[EMAIL PROTECTED]/ smtp:[mh1.domainB.com] # Send all other mail to hosts on the Internet in the normal way. # CAUTION: there is a colon below (don't loose it!). /.*/ : Karl Cunningham -- [email protected] http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-list
