i don't have a ip block, only a single static.
I run DNS via CloudFlare so can create multiple records there that then forward/direct to my internal services.
Although I'm not "rushing" to set up an entire email server, main use case is maybe a server on the internal network that will accept emails via port 25 and then send out to target... or relay to smtp.gmail.com, although it looks like getting pregnant as a male might be easier than getting that working... ;)
G
I have multiple internal systems, that need to send email out, i'm happy that they all send as the same from address.
I have a single public static ip <as provided by my ISP> and then run a 172.16.0.0 inside.
G
so thinking i can spin up a mail server that can simply act as a sender, does not need to receive email, aka no pop or imap services.
G
pkg install postfix
is way simpler.It's not difficult to setup a local postfix accepting mail on port 25 unauthenticated and relaying to an ISP mail server on port 587 with authentication. So dumb devices can send and you don't need to teach every single one authentication. Neither do you need a static IP address or any inbound open port.
You'll find your ISP blocking port 25, forcing you to use SMTP "submission" on port 587, where you will need to solve the authentication problem. If port 25 isn't blocked by your ISP, Gmail is going to simply assume you're a UCE / Spam operation and drop your submissions.
I'm not using gmail but this looks like PLAIN is still supported:Gmail has turned off simple auth in favor of OAuth2.
$ openssl s_client -host smtp.gmail.com -port 465 [...] 220 smtp.gmail.com ESMTP qk10-20020a170906d9ca00b006fed93bf71fsm5476449ejb.18 - gsmtp EHLO localhost 250-smtp.gmail.com at your service, [2003:a:d59:3800:b51a:2b87:38ba:c84d] 250-SIZE 35882577 250-8BITMIME 250-AUTH LOGIN PLAIN XOAUTH2 PLAIN-CLIENTTOKEN OAUTHBEARER XOAUTH 250-ENHANCEDSTATUSCODES 250-PIPELINING 250-CHUNKING 250 SMTPUTF8
What's your problem with your three jails? Jails are the most robust virtualisation/container technology I know. I never had one "crash" ever. So what are the symptoms of the crashes you mention? I can help you through the postfix setup process.
Edit: mailhog as a relay might suit you even better. It's also available as a FreeBSD package. But we do need a working jail for any of those.
dmesg | tail
and tail /var/log/messages
on the NAS host just after a jail "died". And of course iocage list
.I'm not using gmail but this looks like PLAIN is still supported:
Code:$ openssl s_client -host smtp.gmail.com -port 465 [...] 220 smtp.gmail.com ESMTP qk10-20020a170906d9ca00b006fed93bf71fsm5476449ejb.18 - gsmtp EHLO localhost 250-smtp.gmail.com at your service, [2003:a:d59:3800:b51a:2b87:38ba:c84d] 250-SIZE 35882577 250-8BITMIME 250-AUTH LOGIN PLAIN XOAUTH2 PLAIN-CLIENTTOKEN OAUTHBEARER XOAUTH 250-ENHANCEDSTATUSCODES 250-PIPELINING 250-CHUNKING 250 SMTPUTF8