CFSMTP
Turn OpenBD into a full incoming SMTP agent, accepting emails and process them using a standard CFC object. Full logs are created in the OpenBD working directory. Any errors are also logged here.
Usage
<cfsmtp>
Attributes
Attribute | default | required | summary |
---|---|---|---|
ACTION=START | Starts up the SMTP server | ||
ACTION=STOP | Shuts down the current SMTP server. All subsequent emails will be denied | ||
ACTION=STATUS | Writes the status of the current SMTP server into the variable named in RESULTVAR. Returns a structure of: running [true or false], totalmails, totalconnections | ||
PORT | 25 | The port number to which to listen for incoming SMTP requests from | |
IPADDRESS | [all] | The IP address to listen for incoming requests | |
APPLICATION | The name of the CFAPPLICATION that is to be present when executing a CFC inside a mail request | ||
CFCMAIL | The name of the CFC that will be created for each email that comes in. The method onMailAccept( mail ) must be present. A new instance is created for each email | ||
CFCFILTER | The name of the CFC that will be created to handle the filtering of the email. You can opt to receive an email or not very early on, saving lots of bandwidth by implementing the method onMailTo(email,ip) and onMailFrom(email,ip) returning back true or false depending on if you wish to receive this email | ||
RESULTVAR | cfsmtp | Used for ACTION=STATUS to receive the status update |