- ... I think I found where is the problem... In SRV2 (the internal server) i have: cat /etc/postfix/transport_mailman /^email@example.com$/ local:Message 1 of 5 , Jul 1, 2009View SourceRalf Hildebrandt escribió:
> * Ignacio Vazquez <ivaicio@...>:I think I found where is the problem...
>> It seems like postfix doesn't like two transports (regexp and hash) in the
> No, that works like a charm
In SRV2 (the internal server) i have:
user1: "| /home/sympa/bin/queue"
If i send a mail to bol_test@... postfix knows that it's local
and looks aliases (/etc/mail/mailman) and the command is executed.
However, if i send a mail to user1@..., it is relayed to SRV1
although in /etc/postfix/transport i say user1 is local.
Well, i think the problem is in the line of etc/postfix/transport_mailman:
I added this line to specify "all directions other than
/^bol_.*@...$/, send it to srv1"
Does this line is needed?
What is the best way to do what I explained?
- ... A little help please. If more data are needed, I ll be happy to send it.Message 2 of 5 , Jul 2, 2009View Source2009/6/29, Ignacio Vazquez <ivaicio@...>:
> Hi there,A little help please.
> 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:
> user1@... smtp:ip_SRV2
> user1@... smtp:ip_SRV2
> In SRV2:
> mydestination = example.com
> In /etc/postfix/transport of SRV2:
> user1@... local:
> user2@... 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,
> alias_maps = hash:/etc/aliases, hash:/etc/mail/sympa_aliases, hash:/
> 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 = 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,
> smtpd_sender_restrictions = permit_mynetworks
> transport_maps = regexp:/etc/postfix/transport_mailman, hash:/etc/
> unknown_local_recipient_reject_code = 550
> The contents of /etc/postfix/transport (SRV2) is:
> user1@... local
> example.com smtp: ip_SRV1
> However, when SRV2 try to send a mail to user1@..., 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,
If more data are needed, I'll be happy to send it.