Advertisement
Guest User

Untitled

a guest
May 15th, 2017
587
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.80 KB | None | 0 0
  1. terom@mail:/etc/postfix$ cat /etc/postfix/ldap-forward.cf
  2. version = 3
  3.  
  4. # lookup by username, and redeliver to external address if set
  5. search_base = ou=People,dc=paivola,dc=fi
  6. query_filter = (uid=%s)
  7. result_attribute = mailRoutingAddress
  8.  
  9. terom@shell ~ $ ldapmodify -x -D uid=terom,ou=People,dc=paivola,dc=fi -W
  10. # Enter LDAP Password:
  11. dn: uid=terom,ou=People,dc=paivola,dc=fi
  12. changetype: modify
  13. replace: mailRoutingAddress
  14. mailRoutingAddress: terom@fixme.fi
  15. # modifying entry "uid=terom,ou=People,dc=paivola,dc=fi"
  16.  
  17. terom@mail:/etc/postfix$ /usr/sbin/postmap -q terom ldap:/etc/postfix/ldap-forward.cf
  18. terom@fixme.fi
  19.  
  20. zapotek:/etc/exim4 :: mail terom@paivola.fi
  21. Subject: test 2
  22. test
  23. Cc:
  24.  
  25. terom@mail:/etc/postfix$ sudo tail -n500 /var/log/mail.log | grep terom
  26. Mar 25 21:34:15 mail postfix/cleanup[13614]: 7C94ECA3EC: hold: header Received: from zapotek.paivola.fi (zapotek.paivola.fi [194.197.235.230])??(using TLSv1 with cipher AES256-SHA (256/256 bits))??(No client certificate requested)??by mail.paivola.fi (Postfix) with ESMT from zapotek.paivola.fi[194.197.235.230]; from=<terom@zapotek.paivola.fi> to=<terom@paivola.fi> proto=ESMTP helo=<zapotek.paivola.fi>
  27. Mar 25 21:34:19 mail postfix/qmgr[13594]: 562E61804E: from=<terom@zapotek.paivola.fi>, size=661, nrcpt=1 (queue active)
  28. Mar 25 21:34:19 mail postfix/qmgr[13594]: ACB221804F: from=<terom@zapotek.paivola.fi>, size=1141, nrcpt=1 (queue active)
  29. Mar 25 21:34:19 mail postfix/local[13605]: 562E61804E: to=<terom@paivola.fi>, relay=local, delay=4.5, delays=4.1/0/0/0.35, dsn=2.0.0, status=sent (forwarded as ACB221804F)
  30. Mar 25 21:34:20 mail postfix/smtp[13628]: ACB221804F: to=<terom@fixme.fi>, orig_to=<terom@paivola.fi>, relay=zerg.fixme.fi[84.20.150.21]:25, delay=0.38, delays=0.26/0/0.07/0.05, dsn=2.0.0, status=sent (250 2.0.0 Ok: queued as F070894304)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement