was denied by DevNullSmtp is not configured to accept emails for that domain.
There are several benefits of running DevNullSmtp in a console mode, without any GUI. For example, you want to run it in console mode when:
-console as a command line argument in order to run DevNullSmtp in non-gui mode. For example:
java -jar DevNullSmtp.jar -console
Additionally, following command-line arguments are supported when running in console mode
|TCP/IP Port. If missing, 25 is assumed.
|Comma separated value for acceptable domains. If missing, the server will run as an open-relay.
|Path on disk where emails are saved. If missing, emails will not be saved.
|Sender's email address to terminate DevNullSmtp. An incoming email where sender's email address equals this value will cause DevNullSmtp to terminate.
Example 1 - Start listening on port 587 and save incoming emails to
java -jar DevNullSmtp.jar -console -p 587 -s /testEmails
Example 2 - Start listening on port 25 as an open relay. Terminate application if the sender of an incoming email
java -jar DevNullSmtp.jar -console -tr firstname.lastname@example.org
DevNullSmtp supports STARTTLS by default, and uses a self-signed certificate.
Use the following command line argument to disable STARTTLS:
java -Ddevnull.disable.starttls=true -jar DevNullSmtp.jar
Use the following command line arguments to specify a custom SSL certificate:
java -Ddevnull.cert.pwd=secret -Ddevnull.cert.type=PKCS12 -Ddevnull.cert.file=path/to/certificate.pfx -jar DevNullSmtp.jarYour certificate must be in binary format, such as *.pfx and must include the primary key. If you're certificate is in ASCII, you must convert it to a binary format using instructions on this page