[Postfixbuch-users] Subdomains und relay_recipient_maps

Joachim Schoenberg joe at pdi-berlin.de
Di Mär 28 13:06:57 CEST 2006


Hallo Liste,

ich betreue ein Mailrelay fuer mehrere Institute.
Es kam der Wunsch auf, daß Mails an Empfänger in
Subdomains umgeschrieben und damit zustellbar werden.
Ich hatte das über

canonical_maps = regexp:/etc/postfix/canonical_regexp

geloest mit Eintraegen wie

/@.*\.pdi-berlin\.de/  @pdi-berlin.de 

"Meine" Domains stehen in relay_domains, also z. B.

pdi-berlin.de	dummy

Ich stelle jetzt fest, daß zwar korrekt umgeschrieben wird, aber die 
Abfrage der relay_recipient_maps erfolgt nicht bzw. vorher (vermutlich,
weil die canonical maps erst durch "cleanup" bearbeitet werden).
Wie kann ich das Abscheiden der Subdomains _vor_ der Abfrage gueltigen Nutzer
vornehmen - oder brauche ich einen grundsaetzlich anderen Ansatz?

postconf -n:


alias_maps = hash:/etc/aliases
biff = no
canonical_maps = regexp:/etc/postfix/canonical_regexp
command_directory = /usr/sbin
config_directory = /etc/postfix
content_filter = smtp:[127.0.0.1]:10024
daemon_directory = /usr/lib/postfix
debug_peer_level = 2
defer_transports =
disable_dns_lookups = no
html_directory = /usr/share/doc/packages/postfix/html
inet_interfaces = all
mail_owner = postfix
mail_spool_directory = /var/mail
mailbox_command =
mailbox_size_limit = 0
mailbox_transport =
mailq_path = /usr/bin/mailq
manpage_directory = /usr/share/man
masquerade_classes = envelope_sender, header_sender, header_recipient
masquerade_domains =
masquerade_exceptions = root
message_size_limit = 102400000
mydestination = $myhostname, localhost.$mydomain
myhostname = agent-j.bb.fv-berlin.de
mynetworks = hash:/etc/postfix/network_table
newaliases_path = /usr/bin/newaliases
queue_directory = /var/spool/postfix
readme_directory = /usr/share/doc/packages/postfix/README_FILES
relay_domains = $mydestination, hash:/etc/postfix/relay-domains
relay_recipient_maps = hash:/etc/postfix/maps/valid_users_pdi # usw.
relayhost =
relocated_maps = hash:/etc/postfix/relocated
sample_directory = /usr/share/doc/packages/postfix/samples
sender_canonical_maps = hash:/etc/postfix/sender_canonical
sendmail_path = /usr/sbin/sendmail
setgid_group = maildrop
smtp_sasl_auth_enable = no
smtp_use_tls = no
smtpd_client_restrictions =
smtpd_helo_required = no
smtpd_helo_restrictions =
smtpd_recipient_restrictions =  reject_unlisted_recipient
                                permit_mynetworks
                                reject_unauth_destination
                                check_policy_service inet:127.0.0.1:11111
                                check_recipient_access  hash:/etc/postfix/maps/valid_users_pdi
smtpd_sasl_auth_enable = no
smtpd_sender_restrictions = hash:/etc/postfix/access
smtpd_use_tls = no
soft_bounce = no
strict_rfc821_envelopes = no
transport_maps = hash:/etc/postfix/transport
unknown_local_recipient_reject_code = 550

             
Gruss

Joe

-- 
----------------------------------------------------------------
 Joachim Schoenberg                  PHONE:    +49 30 20377 374  
 Paul-Drude-Institut fuer            FAX:      +49 30 20377 201  
 Festkoerperelektronik Berlin
----------------------------------------------------------------



Mehr Informationen über die Mailingliste Postfixbuch-users