TheFox / smtpd

SMTP server (library) for receiving emails, written in pure PHP.
https://fox21.at
MIT License
121 stars 30 forks source link

Add capability to reject RCPT addresses via an event handler #11

Closed minrwhite closed 6 years ago

minrwhite commented 6 years ago

My use case for SMTPD is to be able to specify some addresses to reject with a 550 message in order to test an application that has some behaviour resulting from a bounced address.

This pull request allows an event handler to be registered with the server that can be used to filter the addresses that are accepted.

TheFox commented 6 years ago

Looks good. Thank you for your contribution! :)