Hi,

I'm sending all emails to a relayhost with a TLS connection , but I
want to send mail to specific domain  using another hosts. I mean:

*  -->  [smtp.tls.host]:587 (TLS)

and

 *...@domain1 smtp:[host1]
 *...@domain2 smtp:[host2]

This is postconf -n output:

alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
append_dot_mydomain = no
biff = no
config_directory = /etc/postfix
header_size_limit = 4096000
inet_interfaces = localhost
inet_protocols = ipv4
mailbox_size_limit = 0
mydestination = server.domain, localhost.domain, , localhost,
xx.xx.xx.xx/24        reject
myhostname = server.domain
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
myorigin = /etc/mailname
readme_directory = no
recipient_delimiter = +
relayhost = [smtp.tls.host]:587
smtp_host_lookup = native,dns
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = static:login:userpasswd
smtp_sasl_security_options = noanonymous
smtp_tls_security_level = may
smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
transport_maps = hash:/etc/postfix/transport


transport_maps file
 *...@domain1 smtp:[host1]
 *...@domain2 smtp:[host2]

But all mail is sent through [smtp.tls.host] and transport_maps is not
working. I want to sent all mail to  *...@domain1 and  *...@domain2 to their
servers as transport_maps says, but teh rest through the relayhost.

What am I missing?

thanks in advance.

-- 
Regards;
Israel Garcia

Reply via email to