Guest User

Untitled

a guest
Mar 8th, 2019
148
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.55 KB | None | 0 0
  1. headers_add = "X-TESTVAR: ${env{TESTVAR}{$value}{The TESTVAR environment variable was not found}}"
  2.  
  3. [email protected] [~]# cat /etc/redhat-release
  4. CentOS release 6.10 (Final)
  5.  
  6. [email protected] [~]# exim --version
  7. Exim version 4.91 #1 built 11-May-2018 09:49:25
  8. Copyright (c) University of Cambridge, 1995 - 2018
  9. (c) The Exim Maintainers and contributors in ACKNOWLEDGMENTS file, 2007 - 2018
  10. Berkeley DB: Berkeley DB 4.7.25: (September 12, 2013)
  11. Support for: crypteq iconv() IPv6 PAM Perl OpenSSL Content_Scanning DKIM DNSSEC Event I18N OCSP PRDR SPF Experimental_SRS
  12. Lookups (built-in): lsearch wildlsearch nwildlsearch iplsearch dbm dbmjz dbmnz dnsdb passwd sqlite
  13. Authenticators: cram_md5 dovecot plaintext spa
  14. Routers: accept dnslookup ipliteral manualroute queryprogram redirect
  15. Transports: appendfile/maildir autoreply lmtp pipe smtp
  16. Malware: f-protd f-prot6d drweb fsecure sophie clamd avast sock cmdline
  17. Configure owner: 0:0
  18. Size of off_t: 8
  19. 2019-03-08 19:04:22 cwd=/home/account 2 args: exim --version
  20. Configuration file is /etc/exim.conf
  21.  
  22. dovecot_virtual_delivery:
  23. driver = lmtp
  24. socket = /var/run/dovecot/lmtp
  25. batch_max = 200
  26. rcpt_include_affixes
  27. delivery_date_add
  28. envelope_to_add
  29. return_path_add
  30. headers_add = "X-TESTVAR: ${env{TESTVAR}{$value}{The TESTVAR environment variable was not found}}"
  31.  
  32. [email protected] [~]# export TESTVAR=hello
  33. [email protected] [~]# echo $TESTVAR
  34. hello
  35. [email protected] [~]# exim -t
  36. Hi there, this email should have a header named "X-TESTVAR" and it should have a value of "hello".
  37.  
  38. Return-Path: <[email protected]>
  39. Delivered-To: [email protected]
  40. Received: from host.example.com
  41. by host.example.com with LMTP id IH+3MCUQg1waLwAAx771+g
  42. for <[email protected]>; Fri, 08 Mar 2019 19:00:21 -0600
  43. Return-path: <[email protected]>
  44. Envelope-to: [email protected]
  45. Delivery-date: Fri, 08 Mar 2019 19:00:21 -0600
  46. Received: from account by host.example.com with local (Exim 4.91)
  47. (envelope-from <[email protected]>)
  48. id 1h2QLV-0004Mo-Ee
  49. for [email protected]; Fri, 08 Mar 2019 19:00:21 -0600
  50. Message-Id: <[email protected]>
  51. Date: Fri, 08 Mar 2019 19:00:20 -0600
  52. X-TESTVAR: The TESTVAR environment variable was not found
  53.  
  54. Hi there, this email should have a header named "X-TESTVAR" and it should have a value of "hello".
  55.  
  56. keep_environment = X-SOURCE : X-SOURCE-ARGS : X-SOURCE-DIR
  57.  
  58. keep_environment = X-SOURCE : X-SOURCE-ARGS : X-SOURCE-DIR : TESTVAR
Advertisement
Add Comment
Please, Sign In to add comment