[IM] allow override broken mail defaults#760
Conversation
|
Hey @listerr - to merge this, I'd ask for two things please:
i.e. make it: We don't support anything but smtp and will direct anyone with non-smtp mail requirements to Laravel support forums. In that situation, having something other than the default will add to confusion. The changes still get you exactly what you need out of it. Hope that makes sense. Also, for dev purposes, this https://usehelo.com/ is absolutely fantasic and works with smtp settings. Strongly recommend. |
|
The reason I changed it is that i.e. Exim is the default MTA for Debian (and I think Ubuntu): -bs What IXP Manager/Laravel actually does is pipe an RFC-2822 formatted message on STDIN and expect the sendmail emulation to just deal with it. (I.e, no SMTP protocol back-and-forth). Therefore -t The options are the same for sendmail compatibility. |
If that's the case, the better approach would be to address it with Laravel directly: https://github.com/laravel/laravel/blob/8.x/config/mail.php When we do Laravel upgrades, part of what we do is also upgrade changes to the stock config files so it will flow through. I've learnt (the hard way) that the more we move off the framework's path, the more pain it will bring downstream 😢 |
|
Note also that the next version of Laravel will switch from SwiftMailer so this may all change Rob. Perhaps you're just ahead of the curve 😉 |
|
Thanks. Submitted this to laravel as a proposed PR. After we've upgraded things I think the issue preventing this from working might go away (TLS stopped working I think due to some cert issue?), though we try to use msmtp/msmtpd everywhere (unless the application needs incoming mail) and it's deployed automatically for all our VMs and they all point to one mailhost, rather than having every application with its own mail config. |
|
This has now been fixed in Laravel for next release: |
|
Congrats @listerr 🚀 |
Longer description
This is useful for dev, or where you just need it to do the right thing, for example msmtp/msmtpd replaces the envelope sender
for non-existent users with something inappropriate.