Advertisement
Guest User

Untitled

a guest
Mar 8th, 2019
137
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. account@example.com [~]# cat /etc/redhat-release
  4. CentOS release 6.10 (Final)
  5.  
  6. account@example.com [~]# 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. account@example.com [~]# export TESTVAR=hello
  33. account@example.com [~]# echo $TESTVAR
  34. hello
  35. account@example.com [~]# exim -t
  36. to:me@example.com
  37. Hi there, this email should have a header named "X-TESTVAR" and it should have a value of "hello".
  38. account@example.com [~]#
  39.  
  40. Return-Path: <account@host.example.com>
  41. Delivered-To: me@example.com
  42. Received: from host.example.com
  43. by host.example.com with LMTP id IH+3MCUQg1waLwAAx771+g
  44. for <me@example.com>; Fri, 08 Mar 2019 19:00:21 -0600
  45. Return-path: <account@host.example.com>
  46. Envelope-to: me@example.com
  47. Delivery-date: Fri, 08 Mar 2019 19:00:21 -0600
  48. Received: from account by host.example.com with local (Exim 4.91)
  49. (envelope-from <account@host.example.com>)
  50. id 1h2QLV-0004Mo-Ee
  51. for me@example.com; Fri, 08 Mar 2019 19:00:21 -0600
  52. to:me@example.com
  53. Message-Id: <E1h2QLV-0004Mo-Ee@host.example.com>
  54. From: account@host.example.com
  55. Date: Fri, 08 Mar 2019 19:00:20 -0600
  56. X-TESTVAR: The TESTVAR environment variable was not found
  57.  
  58. Hi there, this email should have a header named "X-TESTVAR" and it should have a value of "hello".
  59.  
  60. keep_environment = X-SOURCE : X-SOURCE-ARGS : X-SOURCE-DIR
  61.  
  62. keep_environment = X-SOURCE : X-SOURCE-ARGS : X-SOURCE-DIR : TESTVAR
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement