Postfix Mailrelay

andi_k

New Member
Hallo,
ich möchte in einer lokalen Domain einen Mailrelay einrichten.
Mails aus dieser Domain sollen an einen Mailserver weitergeleitet werden.

Folgende Konfigurationsänderungen habe ich vorgenommen:
Code:
main.cf
myhostname = icinga.lab.local
mydomain = lab.local
mynetwork = 192.168.11.0/24
inet_interfaces = eth0
smtp_generic_maps = hash:/etc/postfix/generic

generic
[email]icinga@lab.local[/email]	[email]icinga@mydomain.com[/email]
[email]target@lab.local[/email]	[email]target@mydomain.com[/email]
Fürs Debugging habe ich geändert:
Code:
master.cf
smtp      inet  n       -       n       -       -       smtpd -v
rewrite   unix  -       -       n       -       -       trivial-rewrite -v
Danach habe ich mittels postmap generic.db erzeugt und eine Mail generiert:
Code:
echo "Testmail" | mail -s Testmail -r [email]icinga@lab.local[/email] [email]target@lab.local[/email]
Das war das Resultat im maillog:
Code:
Aug 19 12:01:43 icinga postfix/pickup[10851]: DFA94FF89B: uid=0 from=<icinga@lab.local>
Aug 19 12:01:43 icinga postfix/trivial-rewrite[16483]: dict_eval: const  mail
Aug 19 12:01:43 icinga postfix/trivial-rewrite[16483]: dict_eval: const  all
Aug 19 12:01:43 icinga postfix/trivial-rewrite[16483]: dict_eval: const  
Aug 19 12:01:43 icinga postfix/trivial-rewrite[16483]: dict_eval: const  
Aug 19 12:01:43 icinga postfix/trivial-rewrite[16483]: dict_eval: const  
Aug 19 12:01:43 icinga postfix/trivial-rewrite[16483]: name_mask: all
Aug 19 12:01:43 icinga postfix/trivial-rewrite[16483]: dict_eval: const  icinga.lab.local
Aug 19 12:01:43 icinga postfix/trivial-rewrite[16483]: dict_eval: const  lab.local
Aug 19 12:01:43 icinga postfix/trivial-rewrite[16483]: dict_eval: const  Postfix
Aug 19 12:01:43 icinga postfix/trivial-rewrite[16483]: dict_eval: expand ${multi_instance_name:postfix}${multi_instance_name?$multi_instance_name} -> postfix
Aug 19 12:01:43 icinga postfix/trivial-rewrite[16483]: dict_eval: const  postfix
Aug 19 12:01:43 icinga postfix/trivial-rewrite[16483]: dict_eval: const  postdrop
Aug 19 12:01:43 icinga postfix/trivial-rewrite[16483]: dict_eval: expand $myhostname, localhost.$mydomain, localhost -> icinga.lab.local, localhost.lab.local, localhost
Aug 19 12:01:43 icinga postfix/trivial-rewrite[16483]: dict_eval: expand $mydomain -> lab.local
Aug 19 12:01:43 icinga postfix/trivial-rewrite[16483]: dict_eval: const  
Aug 19 12:01:43 icinga postfix/trivial-rewrite[16483]: dict_eval: const  /usr/libexec/postfix
Aug 19 12:01:43 icinga postfix/trivial-rewrite[16483]: dict_eval: const  /var/lib/postfix
Aug 19 12:01:43 icinga postfix/trivial-rewrite[16483]: dict_eval: const  /usr/sbin
Aug 19 12:01:43 icinga postfix/trivial-rewrite[16483]: dict_eval: const  /var/spool/postfix
Aug 19 12:01:43 icinga postfix/trivial-rewrite[16483]: dict_eval: const  pid
Aug 19 12:01:43 icinga postfix/trivial-rewrite[16483]: dict_eval: const  all
Aug 19 12:01:43 icinga postfix/trivial-rewrite[16483]: dict_eval: const  
Aug 19 12:01:43 icinga postfix/trivial-rewrite[16483]: dict_eval: const  double-bounce
Aug 19 12:01:43 icinga postfix/trivial-rewrite[16483]: dict_eval: const  nobody
Aug 19 12:01:43 icinga postfix/trivial-rewrite[16483]: dict_eval: const  hash:/etc/aliases
Aug 19 12:01:43 icinga postfix/trivial-rewrite[16483]: dict_eval: const  20100319
Aug 19 12:01:43 icinga postfix/trivial-rewrite[16483]: dict_eval: const  2.6.6
Aug 19 12:01:43 icinga postfix/trivial-rewrite[16483]: dict_eval: const  hash
Aug 19 12:01:43 icinga postfix/trivial-rewrite[16483]: dict_eval: const  deferred, defer
Aug 19 12:01:43 icinga postfix/trivial-rewrite[16483]: dict_eval: const  
Aug 19 12:01:43 icinga postfix/trivial-rewrite[16483]: dict_eval: expand $mydestination -> icinga.lab.local, localhost.lab.local, localhost
Aug 19 12:01:43 icinga postfix/trivial-rewrite[16483]: dict_eval: expand $relay_domains -> icinga.lab.local, localhost.lab.local, localhost
Aug 19 12:01:43 icinga postfix/trivial-rewrite[16483]: dict_eval: const  TZ MAIL_CONFIG LANG
Aug 19 12:01:43 icinga postfix/trivial-rewrite[16483]: dict_eval: const  MAIL_CONFIG MAIL_DEBUG MAIL_LOGTAG TZ XAUTHORITY DISPLAY LANG=C
Aug 19 12:01:43 icinga postfix/trivial-rewrite[16483]: dict_eval: const  subnet
Aug 19 12:01:43 icinga postfix/trivial-rewrite[16483]: dict_eval: const  
Aug 19 12:01:43 icinga postfix/trivial-rewrite[16483]: dict_eval: const  +=
Aug 19 12:01:43 icinga postfix/trivial-rewrite[16483]: dict_eval: const  -=+
Aug 19 12:01:43 icinga postfix/trivial-rewrite[16483]: dict_eval: const  debug_peer_list,fast_flush_domains,mynetworks,permit_mx_backup_networks,qmqpd_authorized_clients,relay_domains,smtpd_access_maps
Aug 19 12:01:43 icinga postfix/trivial-rewrite[16483]: dict_eval: const  
Aug 19 12:01:43 icinga postfix/trivial-rewrite[16483]: dict_eval: const  bounce
Aug 19 12:01:43 icinga postfix/trivial-rewrite[16483]: dict_eval: const  cleanup
Aug 19 12:01:43 icinga postfix/trivial-rewrite[16483]: dict_eval: const  defer
Aug 19 12:01:43 icinga postfix/trivial-rewrite[16483]: dict_eval: const  pickup
Aug 19 12:01:43 icinga postfix/trivial-rewrite[16483]: dict_eval: const  qmgr
Aug 19 12:01:43 icinga postfix/trivial-rewrite[16483]: dict_eval: const  rewrite
Aug 19 12:01:43 icinga postfix/trivial-rewrite[16483]: dict_eval: const  showq
Aug 19 12:01:43 icinga postfix/trivial-rewrite[16483]: dict_eval: const  error
Aug 19 12:01:43 icinga postfix/trivial-rewrite[16483]: dict_eval: const  flush
Aug 19 12:01:43 icinga postfix/trivial-rewrite[16483]: dict_eval: const  verify
Aug 19 12:01:43 icinga postfix/trivial-rewrite[16483]: dict_eval: const  trace
Aug 19 12:01:43 icinga postfix/trivial-rewrite[16483]: dict_eval: const  proxymap
Aug 19 12:01:43 icinga postfix/trivial-rewrite[16483]: dict_eval: const  proxywrite
Aug 19 12:01:43 icinga postfix/trivial-rewrite[16483]: dict_eval: const  
Aug 19 12:01:43 icinga postfix/trivial-rewrite[16483]: dict_eval: const  
Aug 19 12:01:43 icinga postfix/trivial-rewrite[16483]: dict_eval: const  2
Aug 19 12:01:43 icinga postfix/trivial-rewrite[16483]: dict_eval: const  100s
Aug 19 12:01:43 icinga postfix/trivial-rewrite[16483]: dict_eval: const  100s
Aug 19 12:01:43 icinga postfix/trivial-rewrite[16483]: dict_eval: const  100s
Aug 19 12:01:43 icinga postfix/trivial-rewrite[16483]: dict_eval: const  100s
Aug 19 12:01:43 icinga postfix/trivial-rewrite[16483]: dict_eval: const  3600s
Aug 19 12:01:43 icinga postfix/trivial-rewrite[16483]: dict_eval: const  3600s
Aug 19 12:01:43 icinga postfix/trivial-rewrite[16483]: dict_eval: const  5s
Aug 19 12:01:43 icinga postfix/trivial-rewrite[16483]: dict_eval: const  5s
Aug 19 12:01:43 icinga postfix/trivial-rewrite[16483]: dict_eval: const  1000s
Aug 19 12:01:43 icinga postfix/trivial-rewrite[16483]: dict_eval: const  1000s
Aug 19 12:01:43 icinga postfix/trivial-rewrite[16483]: dict_eval: const  10s
Aug 19 12:01:43 icinga postfix/trivial-rewrite[16483]: dict_eval: const  10s
Aug 19 12:01:43 icinga postfix/trivial-rewrite[16483]: dict_eval: const  1s
Aug 19 12:01:43 icinga postfix/trivial-rewrite[16483]: dict_eval: const  1s
Aug 19 12:01:43 icinga postfix/trivial-rewrite[16483]: dict_eval: const  1s
Aug 19 12:01:43 icinga postfix/trivial-rewrite[16483]: dict_eval: const  1s
Aug 19 12:01:43 icinga postfix/trivial-rewrite[16483]: dict_eval: const  500s
Aug 19 12:01:43 icinga postfix/trivial-rewrite[16483]: dict_eval: const  500s
Aug 19 12:01:43 icinga postfix/trivial-rewrite[16483]: dict_eval: const  18000s
Aug 19 12:01:43 icinga postfix/trivial-rewrite[16483]: dict_eval: const  18000s
Aug 19 12:01:43 icinga postfix/trivial-rewrite[16483]: dict_eval: const  1s
Aug 19 12:01:43 icinga postfix/trivial-rewrite[16483]: dict_eval: const  1s
Aug 19 12:01:43 icinga postfix/trivial-rewrite[16483]: dict_eval: const  148.198.63.0/24
Aug 19 12:01:43 icinga postfix/trivial-rewrite[16483]: inet_addr_local: configured 2 IPv4 addresses
Aug 19 12:01:43 icinga postfix/trivial-rewrite[16483]: inet_addr_local: configured 2 IPv6 addresses
Aug 19 12:01:43 icinga postfix/trivial-rewrite[16483]: dict_eval: const  
Aug 19 12:01:43 icinga postfix/trivial-rewrite[16483]: dict_eval: expand local:$myhostname -> local:icinga.lab.local
Aug 19 12:01:43 icinga postfix/trivial-rewrite[16483]: dict_eval: const  virtual
Aug 19 12:01:43 icinga postfix/trivial-rewrite[16483]: dict_eval: const  relay
Aug 19 12:01:43 icinga postfix/trivial-rewrite[16483]: dict_eval: const  smtp
Aug 19 12:01:43 icinga postfix/trivial-rewrite[16483]: dict_eval: expand $virtual_maps -> 
Aug 19 12:01:43 icinga postfix/trivial-rewrite[16483]: dict_eval: expand $virtual_alias_maps -> 
Aug 19 12:01:43 icinga postfix/trivial-rewrite[16483]: dict_eval: const  
Aug 19 12:01:43 icinga postfix/trivial-rewrite[16483]: dict_eval: expand $virtual_mailbox_maps -> 
Aug 19 12:01:43 icinga postfix/trivial-rewrite[16483]: dict_eval: const  
Aug 19 12:01:43 icinga postfix/trivial-rewrite[16483]: dict_eval: const  MAILER-DAEMON
Aug 19 12:01:43 icinga postfix/trivial-rewrite[16483]: dict_eval: expand $transport_maps -> 
Aug 19 12:01:43 icinga postfix/trivial-rewrite[16483]: dict_eval: expand $local_transport -> local:icinga.lab.local
Aug 19 12:01:43 icinga postfix/trivial-rewrite[16483]: dict_eval: expand $virtual_transport -> virtual
Aug 19 12:01:43 icinga postfix/trivial-rewrite[16483]: dict_eval: expand $relay_transport -> relay
Aug 19 12:01:43 icinga postfix/trivial-rewrite[16483]: dict_eval: expand $default_transport -> smtp
Aug 19 12:01:43 icinga postfix/trivial-rewrite[16483]: dict_eval: expand $relayhost -> 
Aug 19 12:01:43 icinga postfix/trivial-rewrite[16483]: dict_eval: const  
Aug 19 12:01:43 icinga postfix/trivial-rewrite[16483]: dict_eval: const  
Aug 19 12:01:43 icinga postfix/trivial-rewrite[16483]: dict_eval: const  <>
Aug 19 12:01:43 icinga postfix/trivial-rewrite[16483]: dict_eval: expand $sender_dependent_relayhost_maps -> 
Aug 19 12:01:43 icinga postfix/trivial-rewrite[16483]: process generation: 721 (721)
Aug 19 12:01:43 icinga postfix/trivial-rewrite[16483]: match_string: relay_domains ~? debug_peer_list
Aug 19 12:01:43 icinga postfix/trivial-rewrite[16483]: match_string: relay_domains ~? fast_flush_domains
Aug 19 12:01:43 icinga postfix/trivial-rewrite[16483]: match_string: relay_domains ~? mynetworks
Aug 19 12:01:43 icinga postfix/trivial-rewrite[16483]: match_string: relay_domains ~? permit_mx_backup_networks
Aug 19 12:01:43 icinga postfix/trivial-rewrite[16483]: match_string: relay_domains ~? qmqpd_authorized_clients
Aug 19 12:01:43 icinga postfix/trivial-rewrite[16483]: match_string: relay_domains ~? relay_domains
Aug 19 12:01:43 icinga postfix/trivial-rewrite[16483]: connection established fd 128
Aug 19 12:01:43 icinga postfix/trivial-rewrite[16483]: master_notify: status 0
Aug 19 12:01:43 icinga postfix/trivial-rewrite[16483]: rewrite socket: wanted attribute: request
Aug 19 12:01:43 icinga postfix/trivial-rewrite[16483]: input attribute name: request
Aug 19 12:01:43 icinga postfix/trivial-rewrite[16483]: input attribute value: rewrite
Aug 19 12:01:43 icinga postfix/trivial-rewrite[16483]: rewrite socket: wanted attribute: rule
Aug 19 12:01:43 icinga postfix/trivial-rewrite[16483]: input attribute name: rule
Aug 19 12:01:43 icinga postfix/trivial-rewrite[16483]: input attribute value: local
Aug 19 12:01:43 icinga postfix/trivial-rewrite[16483]: rewrite socket: wanted attribute: address
Aug 19 12:01:43 icinga postfix/trivial-rewrite[16483]: input attribute name: address
Aug 19 12:01:43 icinga postfix/trivial-rewrite[16483]: input attribute value: [email]icinga@lab.local[/email]
Aug 19 12:01:43 icinga postfix/trivial-rewrite[16483]: rewrite socket: wanted attribute: (list terminator)
Aug 19 12:01:43 icinga postfix/trivial-rewrite[16483]: input attribute name: (end)
Aug 19 12:01:43 icinga postfix/trivial-rewrite[16483]: `local' `icinga@lab.local' -> `icinga@lab.local'
Aug 19 12:01:43 icinga postfix/trivial-rewrite[16483]: send attr flags = 0
Aug 19 12:01:43 icinga postfix/trivial-rewrite[16483]: send attr address = [email]icinga@lab.local[/email]
Aug 19 12:01:43 icinga postfix/trivial-rewrite[16483]: master_notify: status 1
Aug 19 12:01:43 icinga postfix/trivial-rewrite[16483]: master_notify: status 0
Aug 19 12:01:43 icinga postfix/trivial-rewrite[16483]: rewrite socket: wanted attribute: request
Aug 19 12:01:43 icinga postfix/trivial-rewrite[16483]: input attribute name: request
Aug 19 12:01:43 icinga postfix/trivial-rewrite[16483]: input attribute value: rewrite
Aug 19 12:01:43 icinga postfix/trivial-rewrite[16483]: rewrite socket: wanted attribute: rule
Aug 19 12:01:43 icinga postfix/trivial-rewrite[16483]: input attribute name: rule
Aug 19 12:01:43 icinga postfix/trivial-rewrite[16483]: input attribute value: local
Aug 19 12:01:43 icinga postfix/trivial-rewrite[16483]: rewrite socket: wanted attribute: address
Aug 19 12:01:43 icinga postfix/trivial-rewrite[16483]: input attribute name: address
Aug 19 12:01:43 icinga postfix/trivial-rewrite[16483]: input attribute value: [email]target@lab.local[/email]
Aug 19 12:01:43 icinga postfix/trivial-rewrite[16483]: rewrite socket: wanted attribute: (list terminator)
Aug 19 12:01:43 icinga postfix/trivial-rewrite[16483]: input attribute name: (end)
Aug 19 12:01:43 icinga postfix/trivial-rewrite[16483]: `local' `target@lab.local' -> `target@lab.local'
Aug 19 12:01:43 icinga postfix/trivial-rewrite[16483]: send attr flags = 0
Aug 19 12:01:43 icinga postfix/trivial-rewrite[16483]: send attr address = [email]target@lab.local[/email]
Aug 19 12:01:43 icinga postfix/trivial-rewrite[16483]: master_notify: status 1
Aug 19 12:01:43 icinga postfix/trivial-rewrite[16483]: master_notify: status 0
Aug 19 12:01:43 icinga postfix/trivial-rewrite[16483]: rewrite socket: wanted attribute: request
Aug 19 12:01:43 icinga postfix/trivial-rewrite[16483]: input attribute name: request
Aug 19 12:01:43 icinga postfix/trivial-rewrite[16483]: input attribute value: rewrite
Aug 19 12:01:43 icinga postfix/trivial-rewrite[16483]: rewrite socket: wanted attribute: rule
Aug 19 12:01:43 icinga postfix/trivial-rewrite[16483]: input attribute name: rule
Aug 19 12:01:43 icinga postfix/trivial-rewrite[16483]: input attribute value: local
Aug 19 12:01:43 icinga postfix/trivial-rewrite[16483]: rewrite socket: wanted attribute: address
Aug 19 12:01:43 icinga postfix/trivial-rewrite[16483]: input attribute name: address
Aug 19 12:01:43 icinga postfix/trivial-rewrite[16483]: input attribute value: [email]icinga@lab.local[/email]
Aug 19 12:01:43 icinga postfix/trivial-rewrite[16483]: rewrite socket: wanted attribute: (list terminator)
Aug 19 12:01:43 icinga postfix/trivial-rewrite[16483]: input attribute name: (end)
Aug 19 12:01:43 icinga postfix/trivial-rewrite[16483]: `local' `icinga@lab.local' -> `icinga@lab.local'
Aug 19 12:01:43 icinga postfix/trivial-rewrite[16483]: send attr flags = 0
Aug 19 12:01:43 icinga postfix/trivial-rewrite[16483]: send attr address = [email]icinga@lab.local[/email]
Aug 19 12:01:43 icinga postfix/trivial-rewrite[16483]: master_notify: status 1
Aug 19 12:01:43 icinga postfix/trivial-rewrite[16483]: master_notify: status 0
Aug 19 12:01:43 icinga postfix/trivial-rewrite[16483]: rewrite socket: wanted attribute: request
Aug 19 12:01:43 icinga postfix/trivial-rewrite[16483]: input attribute name: request
Aug 19 12:01:43 icinga postfix/trivial-rewrite[16483]: input attribute value: rewrite
Aug 19 12:01:43 icinga postfix/trivial-rewrite[16483]: rewrite socket: wanted attribute: rule
Aug 19 12:01:43 icinga postfix/trivial-rewrite[16483]: input attribute name: rule
Aug 19 12:01:43 icinga postfix/trivial-rewrite[16483]: input attribute value: local
Aug 19 12:01:43 icinga postfix/trivial-rewrite[16483]: rewrite socket: wanted attribute: address
Aug 19 12:01:43 icinga postfix/trivial-rewrite[16483]: input attribute name: address
Aug 19 12:01:43 icinga postfix/trivial-rewrite[16483]: input attribute value: [email]target@lab.local[/email]
Aug 19 12:01:43 icinga postfix/trivial-rewrite[16483]: rewrite socket: wanted attribute: (list terminator)
Aug 19 12:01:43 icinga postfix/trivial-rewrite[16483]: input attribute name: (end)
Aug 19 12:01:43 icinga postfix/trivial-rewrite[16483]: `local' `target@lab.local' -> `target@lab.local'
Aug 19 12:01:43 icinga postfix/trivial-rewrite[16483]: send attr flags = 0
Aug 19 12:01:43 icinga postfix/trivial-rewrite[16483]: send attr address = [email]target@lab.local[/email]
Aug 19 12:01:43 icinga postfix/cleanup[16481]: DFA94FF89B: message-id=<53f32087.Kkp+QZ+zScFOk6nb%icinga@lab.local>
Aug 19 12:01:43 icinga postfix/trivial-rewrite[16483]: master_notify: status 1
Aug 19 12:01:44 icinga postfix/qmgr[10850]: DFA94FF89B: from=<icinga@lab.local>, size=458, nrcpt=1 (queue active)
Aug 19 12:01:44 icinga postfix/trivial-rewrite[16483]: connection established fd 129
Aug 19 12:01:44 icinga postfix/trivial-rewrite[16483]: master_notify: status 0
Aug 19 12:01:44 icinga postfix/trivial-rewrite[16483]: rewrite socket: wanted attribute: request
Aug 19 12:01:44 icinga postfix/trivial-rewrite[16483]: input attribute name: request
Aug 19 12:01:44 icinga postfix/trivial-rewrite[16483]: input attribute value: resolve
Aug 19 12:01:44 icinga postfix/trivial-rewrite[16483]: rewrite socket: wanted attribute: sender
Aug 19 12:01:44 icinga postfix/trivial-rewrite[16483]: input attribute name: sender
Aug 19 12:01:44 icinga postfix/trivial-rewrite[16483]: input attribute value: [email]icinga@lab.local[/email]
Aug 19 12:01:44 icinga postfix/trivial-rewrite[16483]: rewrite socket: wanted attribute: address
Aug 19 12:01:44 icinga postfix/trivial-rewrite[16483]: input attribute name: address
Aug 19 12:01:44 icinga postfix/trivial-rewrite[16483]: input attribute value: [email]target@lab.local[/email]
Aug 19 12:01:44 icinga postfix/trivial-rewrite[16483]: rewrite socket: wanted attribute: (list terminator)
Aug 19 12:01:44 icinga postfix/trivial-rewrite[16483]: input attribute name: (end)
Aug 19 12:01:44 icinga postfix/trivial-rewrite[16483]: match_string: lab.local ~? icinga.lab.local
Aug 19 12:01:44 icinga postfix/trivial-rewrite[16483]: match_string: lab.local ~? localhost.lab.local
Aug 19 12:01:44 icinga postfix/trivial-rewrite[16483]: match_string: lab.local ~? localhost
Aug 19 12:01:44 icinga postfix/trivial-rewrite[16483]: match_list_match: lab.local: no match
Aug 19 12:01:44 icinga postfix/trivial-rewrite[16483]: match_hostname: lab.local ~? icinga.lab.local
Aug 19 12:01:44 icinga postfix/trivial-rewrite[16483]: match_hostname: lab.local ~? localhost.lab.local
Aug 19 12:01:44 icinga postfix/trivial-rewrite[16483]: match_hostname: lab.local ~? localhost
Aug 19 12:01:44 icinga postfix/trivial-rewrite[16483]: match_list_match: lab.local: no match
Aug 19 12:01:44 icinga postfix/trivial-rewrite[16483]: `icinga@lab.local' -> `target@lab.local' -> (`smtp' `lab.local' `target@lab.local' `4096')
Aug 19 12:01:44 icinga postfix/trivial-rewrite[16483]: send attr flags = 0
Aug 19 12:01:44 icinga postfix/trivial-rewrite[16483]: send attr transport = smtp
Aug 19 12:01:44 icinga postfix/trivial-rewrite[16483]: send attr nexthop = lab.local
Aug 19 12:01:44 icinga postfix/smtp[16489]: DFA94FF89B: to=<target@lab.local>, relay=none, delay=0.16, delays=0.13/0.02/0.01/0, dsn=5.4.6, status=bounced (mail for lab.local loops back to myself)
Aug 19 12:01:44 icinga postfix/cleanup[16481]: 14B26FF89D: message-id=<20140819100144.14B26FF89D@icinga.lab.local>
Aug 19 12:01:44 icinga postfix/qmgr[10850]: 14B26FF89D: from=<>, size=2333, nrcpt=1 (queue active)
Aug 19 12:01:44 icinga postfix/bounce[16490]: DFA94FF89B: sender non-delivery notification: 14B26FF89D
Aug 19 12:01:44 icinga postfix/qmgr[10850]: DFA94FF89B: removed
Aug 19 12:01:44 icinga postfix/smtp[16489]: 14B26FF89D: to=<icinga@lab.local>, relay=none, delay=0, delays=0/0/0/0, dsn=5.4.6, status=bounced (mail for lab.local loops back to myself)
Aug 19 12:01:44 icinga postfix/qmgr[10850]: 14B26FF89D: removed
Aug 19 12:01:49 icinga postfix/trivial-rewrite[16483]: connection closed fd 128
Aug 19 12:01:49 icinga postfix/trivial-rewrite[16483]: connection closed fd 129
Aug 19 12:01:50 icinga postfix/trivial-rewrite[16483]: idle timeout -- exiting
Fragen:
warum wird die Adresse icinga@lab.local nicht in die Adresse icinga@mydomain.com geändert?
Dieselbe Frage gilt für die Adresse target@lab.local

Dass die Mail nicht an icinga@mydomain.com weitergeleitet wird, ist dank des nicht stattfindenden Rewrites klar.
Die Bounce Meldung "mail loops back to myself" ebenfalls.

Hat jemand einen Fingerzeig in die richtige Richtung?
 
Last edited by a moderator:
Danke für das Readme

Moin

http://www.postfix.org/ADDRESS_REWRITING_README.html#transport

Thorashh

P.S.: Bitte verwende CODE-Tags für deine Listings

Allerdings hilft der nicht wirklich weiter.
Wie ich die Sache verstehe sollte zuerst das Rewriting stattfinden bevor entschieden wird, wohin die Mail gesendet werden soll.
transport(5) trifft hier meines Erachtens nicht, weil das Routing durch die 'neue' Addresse vorgegeben sein sollte. transport(5) definiert ja nur alternative Routen für den Mailtransport und hat nichts mit dem Rewriting der Header-Information zu tun.

Oder liege ich hier falsch?
 
Back
Top