This project has moved. For the latest updates, please go here.

How are rules used?

Sep 17, 2014 at 5:26 PM
I want to run Papercut as service and was hoping that all I have to do is create a rule to forward the emails from my application to Outlook instead of opening Papercut (the application).

Am I doing something wrong or missing something?

My settings are:

Papercut.Service.json
{
"IP": "Any",
"MessagePath": "%BaseDirectory%\incoming",
"Port": "26"
}

Rules.json
[
{
"$type": "Papercut.Core.Rules.Implementations.ForwardRule, Papercut.Core",
"SMTPPassword": "myPassword",
"SMTPUsername": "myNTusername",
"SMTPPort": companyServerPortNumber not my local watch port,
"SmtpUseSSL": true,
"Type": "Forward",
"FromEmail": "appEmailAddress@domain.com",
"SMTPServer": "companyServerIpAddress" not my local port,
"ToEmail": "myEmailAdress@domain.com",
"Id": "6a1f7ef8-052e-4d90-902a-b8862b14344a",
"IsEnabled": true,
"Description": "concat above"
}
]
Coordinator
Sep 19, 2014 at 12:58 AM
That should work. Take a look at the logs -- do they complain about anything specific? Might be the SSL -- which is not well tested.