Self-hosted marketing software covers two jobs that rarely sit in the same box. Three of the applications here (Mautic, phpList and SendPortal) manage subscriber lists and send campaigns. The fourth, Revive Adserver, has nothing to do with email: it serves banner and video advertising on sites you own, and it was previously known as OpenX. What they have in common is that the contact list, the click data and the ad inventory sit in your own database rather than a vendor's.
The commercial versions of this are Mailchimp, Brevo, ActiveCampaign, Klaviyo, MailerLite and HubSpot on the email side, and Google Ad Manager on the advertising side. Their pricing splits two ways. Mailchimp, ActiveCampaign and Klaviyo charge by the number of contacts you store, so a subscriber you never email still costs you money every month. Brevo charges by messages sent instead, with a daily cap on its free tier. Either model starts to hurt at the point a mailing list stops being an experiment and becomes an asset, which is usually when people start reading about open source marketing automation.
Self-hosting is not free, though. You pay in configuration and attention rather than subscription, and the software is the easy half. The hard half is email deliverability, and no self-hosted application solves that for you. Read the next section before you install anything that sends in bulk.