A summary of the problem. ------------------------- Hello, I am new to the list but a long time Postfix user. I have am trying to accomplish the following, but am unsure of how to exactly go about doing it. I need to re-direct a few specific recipient addresses to a host other than the relay host I have Postfix send to (that relay host for our domain that Postfix delivers to being Exchange Server.)
My environment: For inbound mail: MX record points to Postfix server. That Postfix server relays mail for domain.com to Exchange Server 2003. For outbound mail: Exchange Server 2003 relays all mail destined for outside through Postfix. I need to map inbound mail destined to specific recipient(s) or sub-domain(s) to onto a different host and not onto Exchange. For example: Inbound mail for j...@domain.com => MX lookup => Postfix => Exchange OR Inbound mail for domain.com => MX lookup -> Postfix => Exchange IF Inbound mail for supp...@domain.com => MX Lookup => Postfix => Support Server running Postfix MTA to receive OR IF Inbound mail for support.domian.com => MX Lookup => Postfix => Support Server running Postfix MTA to receive I am thinking that if I was to use Postmap commands to alter the transport, something like: Support.example.com smtp:support.local That may allow me to redirect mail for subdomains to another host, however I am uncertain. I am uncertain how to redirect mail for specific intended recipients. Thank you very much in advance! My output from postconf -n is as follows: ----------------------------------------- alias_database = hash:/etc/aliases alias_maps = hash:/etc/aliases broken_sasl_auth_clients = yes command_directory = /usr/sbin config_directory = /etc/postfix daemon_directory = /usr/libexec/postfix debug_peer_level = 2 default_destination_recipient_limit = 1 delay_warning_time = 1 disable_vrfy_command = yes header_checks = regexp:/etc/postfix/header_checks html_directory = no local_recipient_maps = mailq_path = /usr/bin/mailq.postfix manpage_directory = /usr/share/man masquerade_domains = $mydomain message_size_limit = 24576000 myorigin = $mydomain newaliases_path = /usr/bin/newaliases.postfix readme_directory = /usr/share/doc/postfix-2.3.3/README_FILES relay_domains = hash:/etc/postfix/transport relay_recipient_maps = hash:/etc/postfix/recipient_access sample_directory = /usr/share/doc/postfix-2.3.3/samples sendmail_path = /usr/sbin/sendmail.postfix setgid_group = postdrop smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd smtp_sasl_type = cyrus smtp_tls_CAfile = /etc/postfix/ssl/smtpd.pem smtp_tls_note_starttls_offer = yes smtp_tls_session_cache_database = btree:/var/spool/postfix/smtp_tls_session_cache smtp_use_tls = yes smtpd_client_restrictions = reject_rbl_client sbl-xbl.spamhaus.org, reject_rbl_client list.dsbl.org smtpd_data_restrictions = reject_unauth_pipelining smtpd_delay_reject = yes smtpd_helo_required = yes smtpd_helo_restrictions = check_helo_access hash:/etc/postfix/helo_access, reject_invalid_hostname smtpd_recipient_restrictions = permit_sasl_authenticated, permit_mynetworks, reject_unauth_destination, reject_non_fqdn_recipient, reject_unknown_recipient_domain, check_recipient_access hash:/etc/postfix/recipient_access, check_policy_service inet:127.0.0.1:2501 smtpd_sasl_auth_enable = yes smtpd_sasl_local_domain = smtpd_sasl_path = smtpd smtpd_sasl_security_options = noanonymous smtpd_sender_restrictions = permit_sasl_authenticated, check_sender_access hash:/etc/postfix/sender_access, reject_non_fqdn_sender, reject_unknown_sender_domain smtpd_tls_CAfile = /etc/postfix/ssl/smtpd.pem smtpd_tls_cert_file = /etc/postfix/ssl/smtpd.pem smtpd_tls_key_file = /etc/postfix/ssl/smtpd.pem smtpd_tls_loglevel = 1 smtpd_tls_received_header = yes smtpd_tls_security_level = may smtpd_tls_session_cache_database = btree:/var/spool/postfix/smtpd_tls_session_cache smtpd_tls_session_cache_timeout = 3600s smtpd_use_tls = yes tls_random_source = dev:/dev/urandom transport_maps = hash:/etc/postfix/transport unknown_local_recipient_reject_code = 550 virtual_alias_maps = hash:/etc/postfix/virtual Output from "postconf -n". Please do not send your main.cf file, or 500+ lines of postconf output. This communication is for its intended recipient only, and may contain information that is privileged, confidential and exempt from disclosure under applicable law. If you are not the intended recipient or the employee or agent responsible for delivering this communication to the intended recipient, you are hereby notified that any unauthorized use, dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify us immediately, delete it from your system and destroy any hard copy you may have printed. Thank you.