Differences between current version and predecessor to the previous major change of EximNotes.
Other diffs: Previous Revision, Previous Author, or view the Annotated Edit History
Newer page: | version 69 | Last edited on Wednesday, June 24, 2009 10:18:55 am | by AlastairPorter | |
Older page: | version 68 | Last edited on Wednesday, July 18, 2007 10:18:48 am | by MattBrown | Revert |
@@ -459,8 +459,23 @@
endpass
message = SMTP AUTH required for port 587
authenticated = *
</pre>
+
+!!! Redirecting all mail to a single mailbox
+
+I wanted to set up an SMTP server for testing that would accept all mail and send it to a single mailbox so that we didn't accidentally send mail to anyone.
+
+This example uses Debian's split config.<br>
+Add a new router in <tt>/etc/exim4/conf.d/router</tt>. Because these files are processed in alphabetical order, add it at the top. <tt>09_exim4-config-redirect_all</tt> is a good choice.
+<pre>
+redirect_all:
+ debug_print = "R: redirecting all mail"
+ driver = redirect
+ data = "user_to_send_to"
+</pre>
+
+Test using the method listed below.
!!! Testing a new config file before putting it live.
JohnMcPherson pointed out the following useful tips: