Subject: The mailing list for listmasters using Sympa
List archive
[sympa-users] Postfix and regexp aliases with transport
- From: Jacques Leyrat <address@concealed>
- To: address@concealed
- Subject: [sympa-users] Postfix and regexp aliases with transport
- Date: Fri, 10 Dec 2004 18:09:20 +0100
Hello, I try to implement the solution proposed by Olivier Korn in the FAQ "Postfix and regexp aliases: how to do away with alias_manager.pl" with Postfix 2.1.4-2, and sympa 4.1.2, and a virtual robot named sympa.unicaen.fr on a server named clenche.unicaen.fr Outgoing messages are sent to a relayhost smtp2.unicaen.fr The configuration without transport provided by address@concealed works for me. I should like now do it directly with the transport table, but when I try to send a mail to address@concealed , it enters in a loop, and I get the following failure: Reporting-MTA: dns; clenche.unicaen.fr X-Postfix-Queue-ID: 5B22F434002 X-Postfix-Sender: rfc822; address@concealed Arrival-Date: Fri, 10 Dec 2004 16:38:42 +0100 (CET) Final-Recipient: rfc822; address@concealed Action: failed Status: 5.0.0 Diagnostic-Code: X-Postfix; host smtp2.unicaen.fr[10.14.32.63] said: 554 Error: too many hops (in reply to end of DATA command) I did what is suggested in the FAQ: In master.cf: sympa unix - n n - - pipe flags=R user=sympa argv=/home/sympa/bin/queue ${recipient} sympabounce unix - n n - - pipe flags=R user=sympa argv=/home/sympa/bin/bouncequeue ${user} In main.cf: mydestination = clenche.unicaen.fr, localhost mydomain = unicaen.fr myhostname = clenche.unicaen.fr mynetworks = 127.0.0.0/8, 10.14.32.10/32, 10.14.32.63/32, 10.14.32.62/32 mynetworks_style = subnet myorigin = $myhostname relay_domains = $mydestination, sympa.unicaen.fr.tld relayhost = smtp2.unicaen.fr transport_maps = regexp:/etc/postfix/transport_regexp sympa_destination_recipient_limit = 1 sympabounce_destination_recipient_limit = 1 alias_maps = hash:/etc/postfix/aliases alias_database = $alias_maps transport_regexp: /^.*+owner\@sympa\.unicaen\.fr\.tld$/ sympabounce: /^.*\@sympa\.unicaen\.fr\.tld$/ sympa: virtual_regexp: /^(.*)-owner\@sympa\.unicaen\.fr\.tld$/ $address@concealed According to the logs (option verbose), it seems to be a problem in transport and/or virtual regexp which result is that sympa.unicaen.fr is not recognized as local and passed to the relay host. Thank you for any idea to solve my problem. -- Jacques Leyrat CRISI - Département Réseaux et Systèmes Université de Caen tél.: 02 31 56 62 12 Fax: 02 31 44 58 54 |
-
[sympa-users] Postfix and regexp aliases with transport,
Jacques Leyrat, 12/10/2004
- Re: [sympa-users] Postfix and regexp aliases with transport, Cef, 12/14/2004
Archive powered by MHonArc 2.6.19+.