It seems like postfix doesn't like two transports (regexp and hash) in the transport_maps...
¿could anyone help me? 2009/6/29 Ignacio Vazquez <ivai...@gmail.com> > Hi there, > > We have a mail relay in the DMZ (SRV1) which receives all mail sent to > example dot com, but we also have an additional server on the internal > network (SRV2) wich receives some mails from the same domain. To do > this in SRV1, the transport has: > us...@example.com smtp:ip_SRV2 > us...@example.com smtp:ip_SRV2 > ... > > In SRV2: > mydestination = example.com > In /etc/postfix/transport of SRV2: > us...@example.com local: > us...@example.com local: > ... > In /etc/aliases (SRV2): > user1 "| command" > > The problem comes when I want to send emails from SRV2 to example.com > domain users who are in the /etc/postfix/transport of SRV2. > Sending to other users in the domain example.com is correct. > > I use fallback_transport for it, the SRV2 configuration is: > > postconf -n: > alias_database = hash:/etc/aliases, hash:/etc/mail/sympa_aliases, > hash:/etc/mail/mailman > alias_maps = hash:/etc/aliases, hash:/etc/mail/sympa_aliases, hash:/ > etc/mail/mailman > append_dot_mydomain = no > biff = no > config_directory = /etc/postfix > fallback_transport = [SRV1]:587 > inet_interfaces = all > local_recipient_maps = $alias_maps, $alias_database, $transport_maps > mailbox_command = maildrop > mailbox_size_limit = 0 > message_size_limit = 25640000 > mydestination = $myhostname localhost, localhost.localdomain, > $mydomain > mydomain = example.com > myhostname = SRV2.example.com <http://srv2.example.com/> > mynetworks = 127.0.0.0/8 > myorigin = example.com > recipient_delimiter = + > relayhost = [SRV1]:587 # We use SRV1 to sign mails with domainkeys > smtp_host_lookup = native > smtp_sasl_auth_enable = yes > smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd > smtp_sasl_security_options = noanonymous > smtp_use_tls = yes > smtpd_banner = $myhostname ESMTP > smtpd_recipient_restrictions = permit_mynetworks, > reject_unauth_destination > smtpd_sender_restrictions = permit_mynetworks > transport_maps = regexp:/etc/postfix/transport_mailman, hash:/etc/ > postfix/transport > unknown_local_recipient_reject_code = 550 > > > The contents of /etc/postfix/transport (SRV2) is: > us...@example.com local > example.com smtp: ip_SRV1 > However, when SRV2 try to send a mail to us...@example.com, it sends > to the relayhost (SRV1), instead of knowing that is local. > > For further confusion, sending users to match regexp:/etc/postfix/ > transport_mailman is successful. > > Thank you very much for your help, > > Greetings >