Skip to main content

Thread: Force Postfix to exclude one virtual domain


10.04.3 server

maybe strange question, i'm using ehcp control panel simple hosting on server. in setup of sets postfix @ domains listed in domains table of ehcp database local.

1 of domains has of mail managed google apps. right mx records not problem except when try use contact forms. postfix looks @ it's list of domains, sees domain listed virtual domain, , tries send mail locally. never looks dns info because looking @ mysql-virtual-domains.cf file looks active domain list control panel.

there way force postfix not @ 1 domain local? appreciated.

isaac

here's did make postfix use mx records instead of local specific domain...

edit following file

code:
nano /etc/postfix/main.cf
update transport maps if it's not set.
added hash:/etc/postfix/transport

transport_maps = hash:/etc/postfix/transport, proxy:mysql:/etc/postfix/mysql-virtual_transports.cf

made mx changes domain google apps

make following addition in /etc/postfix/transport file.

code:
nano /etc/postfix/transport
mydomain.com smtp:

it'll force postfix @ mx records rather trying deliver mail internally.

run following command hash transport file.
code:
postmap /etc/postfix/transport
reload postfix configuration

code:
postfix reload


Forum The Ubuntu Forum Community Ubuntu Specialised Support Ubuntu Servers, Cloud and Juju Server Platforms [ubuntu] Force Postfix to exclude one virtual domain


Ubuntu

Comments

Popular posts from this blog

how to devide a circle into equal parts

"Could not fill because there are not enough opaque source pixels" - not solved by any other thread

Why can't I change the billing info for my account?