Server Support Forum
Postfix Mailrelay

Zurück   Server Support Forum > >


Antwort
 
Themen-Optionen Thema bewerten
  #1  
Alt 19.08.2014, 12:40
Benutzerbild von andi_k
andi_k andi_k ist offline
Registered User
 
Registriert seit: 02.2008
Ort: Wien
Beiträge: 13
Postfix Mailrelay

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
icinga@lab.local	icinga@mydomain.com
target@lab.local	target@mydomain.com
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 icinga@lab.local target@lab.local
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: icinga@lab.local
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 = icinga@lab.local
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: target@lab.local
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 = target@lab.local
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: icinga@lab.local
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 = icinga@lab.local
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: target@lab.local
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 = target@lab.local
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: icinga@lab.local
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: target@lab.local
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?

Geändert von andi_k (19.08.2014 um 16:12 Uhr) Grund: Code Tags gesetzt.
Mit Zitat antworten

  #2  
Alt 19.08.2014, 13:51
Benutzerbild von Thorashh
Thorashh Thorashh ist offline
Registered User
 
Registriert seit: 07.2006
Ort: Hamburg / Germany
Beiträge: 238
Moin

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

Thorashh

P.S.: Bitte verwende CODE-Tags für deine Listings
Mit Zitat antworten
  #3  
Alt 19.08.2014, 14:17
ManDal ManDal ist offline
Registered User
 
Registriert seit: 08.2011
Beiträge: 64
Falls es nur um ein Server geht würde ich dir ssmtp empfehlen (https://wiki.archlinux.org/index.php/SSMTP) viel einfacher zu konfigurieren...
__________________
Web: https://www.w2k.ch
Blog: https://blog.w2k.ch
Dev: https://dev.w2k.ch
Mit Zitat antworten
  #4  
Alt 19.08.2014, 16:02
Benutzerbild von andi_k
andi_k andi_k ist offline
Registered User
 
Registriert seit: 02.2008
Ort: Wien
Beiträge: 13
Danke für das Readme

Zitat:
Zitat von Thorashh Beitrag anzeigen
Moin

http://www.postfix.org/ADDRESS_REWRI...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?
Mit Zitat antworten
Antwort

Stichworte
mailrelay, postfix, rewrite



Themen-Optionen
Thema bewerten
Thema bewerten:

Forumregeln
Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist aus.
HTML-Code ist aus.

Gehe zu

Ähnliche Themen
Thema Autor Forum Antworten Letzter Beitrag
Mailrelay -> Exchange xsenon Mail 4 03.12.2012 15:09
Postfix und 1und1 als Mailrelay xassan Mail 1 14.07.2011 10:40
Ubuntu 7.10; Konflikt bei Postfix installation mit exim4; Wie Postfix installieren? monateng Mail 3 05.11.2008 17:51
1blu neuer vServer => offener Mailrelay => Abmahnung!!! bender-rulez Virtuelle Server 4 20.11.2007 15:18
Postfix Problem - offenes Mailrelay durch neue main.cf hw0012 Mail 1 07.01.2007 14:32


Postfix Mailrelay
Postfix Mailrelay
Postfix Mailrelay Postfix Mailrelay
Powered by vBulletin® Version 3.8.11 (Deutsch)
Copyright ©2000 - 2019, vBulletin Solutions, Inc.
Search Engine Optimisation provided by DragonByte SEO (Pro) - vBulletin Mods & Addons Copyright © 2019 DragonByte Technologies Ltd.