Light-weight outward bound SMTP web server

What do you make use of as a light-weight SMTP for outward bound emails just?

I am running an application that sends out emails using SMTP when occasions take place occasionally, and also I do not require a totally included e-mail web server.

MODIFY: I am greater than satisfied to make use of something like postfix (and also do), if that's the most effective selection. I was assuming there might be something much less complex, that goes out package.

2019-05-04 05:20:42
Source Share
Answers: 6

IMHO, the most convenient means to do this is with postfix. You can configure it as a light outward bound relay with these commands:

postconf -e
postconf -e

As long as the SMTP web server defined in relayhost does not call for verification, permits you to relay or is a legitimate location for the recipient address this will certainly function.

The myorigin parameter will certainly be the default domain. So if you send mail to foo it will certainly most likely to foo Mail sent out by customer bar will certainly be from bar

If you do require to confirm and also intend to sustain TLS, additionally run the adhering to commands:

postconf -e smtp_tls_security_level=may
postconf -e smtp_sasl_auth_enable=yes
postconf -e smtp_sasl_password_maps=pcre:/etc/postfix/sasl_password_maps

Then in /etc/postfix/sasl_password_maps have this web content:

/./ username:password

All mail will certainly be sent out to your relayhost with the defined username and also password.

2019-05-18 02:28:49

You practically do not require an e-mail web server on your host, what you require (and also possibly currently have ) is an smtp-client (or MUA ) that can connect to your company SMTP Server (which can be anywhere you can connect to. )

Relying on the App (and also the shows language it was created in ) there are several means for your application to connect to the 'the' SMTP Server on your network.

Generally, with PHP or Python, there's an arrangement documents with the application to define the "SMTP" Server (which can be on your host or in other places on your network. ) If you currently have a mail web server on the network, after that simply aim the arrangement to that web server.

If nothing else alternatives exist, the application can create the e-mail message to typical result that you can process with something like :

listoftargets=" me stab". resemble "Test Content"|mail -s "Test Subject" $listoftargets

On some systems, there is currently a marginal mailserver for sending out just.

Sam T.

2019-05-08 00:31:19

ESMTP is a relay just mail transfer web server that might benefit your application.

2019-05-08 00:21:22

Assuming you require a program you can range from the covering like sendmail (8 ), probably MSMTP will fit your demands? It can connect to a remote SMTP web server and also send mail it obtains as stdin, similar to sendmail.

2019-05-08 00:15:37

There are numerous selections of marginal, relay-only mail transfer representatives (MTAs, or "mail web servers" ), several of which have actually been stated in various other solutions :

For either of those to function, you require a complete fledged MTA someplace that will certainly better communicate your messages (called "mail center" ) and also it is highly advised that you regulate this mail center. Negative Things ™ can take place or else.

2019-05-07 20:36:06

You might locate sSMTP ideal for your demands. Read this article on it and also its constraints.

Truthfully however, I would not be also worried concerning mounting postfix or exim, also if it is just for sending out e-mails.

2019-05-07 20:29:46