routing mail for a subdomain to different server?

From: Paul Hutchings (no email)
Date: Wed Jan 07 2004 - 08:30:04 EST


I have a postfix box that acts as an smtp relay for our inbound/outbound
mail.

In relay_domains I have:

mira.co.uk OK
cad.mira.co.uk OK

in transport_maps i have:

mira.co.uk smtp:webcache.mira.co.uk
cad.mira.co.uk smtp:webcache.mira.co.uk

and an appropriate transport map for each.

I have a subdomain called whatever.mira.co.uk that is not handled by this
server, so mail coming in from the internet goes direct to the relevant
server.

I'm finding that if I try to send mail to whatever.mira.co.uk from our LAN
that when it is passed to the postfix box it is bounced as "User unknown in
relay recipient table" (we use relay_recipient_maps to prevent dictionary
spam).

I guess the problem is that because it's a subdomain postfix thinks it's
responsible for the mail rather than just doing a DNS lookup for the correct
server so it's trying to route it as per the entry for mira.co.uk in
transport_maps - how can I get it to not do this?

I believe it's to do with parent_domain_matches_subdomains, but being a
production box I'd rather not just play around.

postconf -n is

alias_database = hash:/etc/postfix/aliases
alias_maps = hash:/etc/postfix/aliases
config_directory = /etc/postfix
delay_warning_time = 4h
disable_vrfy_command = yes
mailbox_size_limit = 102400000
mailq_path = /usr/bin/mailq.postfix
manpage_directory = /usr/share/man
maximal_queue_lifetime = 3d
message_size_limit = 102400000
mynetworks = 127.0.0.1/32, 195.200.146.25/32, 195.200.146.253/32
newaliases_path = /usr/bin/newaliases.postfix
readme_directory = /etc/postfix/README_FILES
relay_domains = hash:/etc/postfix/relay_domains
relay_recipient_maps = hash:/etc/postfix/exchange_users
sample_directory = /etc/postfix/samples
sendmail_path = /usr/sbin/sendmail.postfix
show_user_unknown_table_name = no
smtpd_helo_required = yes
smtpd_recipient_restrictions =
 permit_mynetworks,
 reject_unauth_destination,
 check_sender_access hash:/etc/postfix/sender_whitelist,
 check_sender_access hash:/etc/postfix/sender_blacklist,
 reject_non_fqdn_sender,
 reject_non_fqdn_recipient,
 reject_unknown_sender_domain,
 check_recipient_access hash:/etc/postfix/rbl_users,
 check_recipient_access hash:/etc/postfix/filtered_domains,
 permit
smtpd_restriction_classes = rbl_user
strict_rfc821_envelopes = yes
transport_maps = hash:/etc/postfix/transport
virtual_alias_maps = hash:/etc/postfix/virtual

regards,
Paul

--
Paul Hutchings
Network Administrator, MIRA Ltd.
Tel: 44 (0)24 7635 5378, Fax: 44 (0)24 7635 8378
mailto: 







Hosted Email Solutions

Invaluement Anti-Spam DNSBLs



Powered By FreeBSD   Powered By FreeBSD