0

How can I have all outgoing mails with exim4 get signed by my dk-filter daemon running at localhost port 4445?

ensnare
  • 2,332
  • 9
  • 29
  • 42

2 Answers2

2

Native domain keys support is available in Exim since version 4.70. See my notes on Implementing DKIM with Exim

If you want to use a filter you may want to review the Exim Documentation for filters. It includes instructions on how to test your filters.

BillThor
  • 28,293
  • 3
  • 39
  • 70
1

Add a new transport to your transport section. Connect your default outgoing mail router to use the new transport. Use the transport to pipe the mail through your daemon, then send it off to the original transport, whatever that was named (mine is remote_smtp).

dkfilter:
   driver = pipe
   command = "/usr/bin/nc localhost 4445"
   transport = remote_smtp

Edit, better solution:

I just looked in the manual and it looks like you can add a transport_filter = "/usr/bin/nc localhost 4445" directive to an existing transport block to have messages filtered right before being sent by that transport.

Caleb
  • 12,121
  • 4
  • 39
  • 49