Skip to content
This repository was archived by the owner on Feb 8, 2026. It is now read-only.

FAQ: SMTP Server

Derek Battams edited this page Jan 21, 2016 · 5 revisions

Corporate policy says only SMTP over SSL servers are allowed. Does psmtp support this?

Yes! Starting with v0.2.0, psmtp supports the use of SMTPS connections to the mail server.

How about SMTP AUTH, you must support that?

Yes! Starting with v0.2.0, psmtp supports the use of the STARTTLS command.

Attachments, you must handle attachments?

Nope, sorry... just kidding! Yes, attachments are handled via MIME message format. The psmtp smtp server gladly handles the MIME message format, including attachments. All attachments are stored and saved with every message.

What's the limit for attachment size?

There isn't one per se. You'll know what it is for your deployment when you start seeing OutOfMemory exceptions. Attachments on the order of 10s of MBs should not cause any problems. With that said, I wouldn't push the boundaries. This tool is meant to validate an app's sending of email, that's it. This SMTP server is not optimized for speed, concurrency or performance. You'll especially notice this if you are constantly hammering the SMTP server with multiple messages per second. The smtp library can probably handle it, the psmtp database code probably will not. My use case for psmtp is on the order of 30-40 messages per minute (at the most/worst case scenario). FVT tests do bursts of 5 messages per second, which seems to not bother it, but I wouldn't test that theory over a longer period of time. This tool is meant to unit and functional testing of apps that send email, it is not designed for load.

Can you restrict the IPs that can connect to the SMTP server?

Technically it's possible, but it's not something I've implemented. Again, my use case is that psmtp is deployed in a QA environment where it's just a free for all. I currently have no need for such a feature so it's not implemented. Create a pull request or a ticket.

Can I change the port the SMTP server runs on?

Yes. Go to the config.groovy page on the web app and change the port there. Once you save the settings change, the SMTP server will be restarted on the new port.

Clone this wiki locally