Hello Sebby. Yes, that is basically what I have been trying to do. I have inquired about this in a variety of places on the web. Aside from this forum, there are only two people who have responded to my inquiry. The first person on ASC wasn’t able to help. The second person offered a solution which you will find at the URL below:
If you visit there, you will see that he and I have been having an exchange, but he has not yet responded to my latest group of questions, which are based on the instructions he provided on his blog.
As you will see, he suggests a rather long, complicated process for getting postfix to work, some of which is a bit over my head. Thus far, I have only installed stunnel as he suggested. The rest I have not done yet, because I am waiting for some answers to the specific questions that I asked him, which he has not posted yet.
In your comment above, you mention using a relay. If you visit his page, you will see that this is what he seems to be doing as well.
I have googled this issue quite a bit over the past few days, and the various pages I have visited all seem to give different advice, including what terminal commands to do. What I have discovered is that a lot of the advice is outdated, and is based on past macOS versions. In fact, when I tried some of the commands they suggest on my iMac running macOS Ventura, it doesn’t even recognize the commands.
Anyway, years ago – like 15 years ago or longer – when I first set up my messageboard, all I had to do was to enter the path usr/sbin/sendmail in the mail preferences in the script. That was it. No configuration anywhere. It just worked.
Then one day, years ago, email notifications just stopped working. So I assumed that it was either due to the cgi script being outdated, or due to so many changes being made – particularly security changes – in more recent versions of macOS. I in fact recall reading somewhere that Ventura – or maybe Sonoma? – broke sendmail, or maybe postfix, or both.
Anyway, I am not sure if that other fellow is even going to continue to respond to me or not. I kind of got the sense that perhaps he lost patience with helping me. But, if you look at his page, and think that what he is doing is what you are also suggesting, then perhaps you can answer my specific questions, so that I can continue to try to set this up according to what he posted … unless, of course, you have an easier solution.
Regarding your questions. in my messageboard, I uses two email addresses. One is my messageboard admin email address, and the other is what I use in my actual user account on the board.
The email address I will be using as my “From:” address for all messages which will be sent out from my board to board users will in fact be one and the same. It is a gmail address which I have used for a very long time.
Regarding your second question, yes, I never use sendmail or postfix on either of my two machines. So sendmail or postfix will only be used to send email notifications from my messageboard.
In your comment you stated “You said that you can change the binary used by the script.”
What I meant by that is that in the mail setup in the messageboard’s configuration, there is a link, which if I click it, it will scan my system and then report the path to both sendmail and postfix. That is why I said I can use either one. In fact, I quickly examined the actual cgi script earlier today, and one string of code under the “default settings” section says " $mailprog = ‘/usr/sbin/sendmail’;". So that is the default setting for the script. I believe that is always how I have had the setting set in the messageboard mail preferences. But I assume that I could just as easily put “usr/sbin/postfix” in the preferences, and it would work.
Therein lies the problem. It is NOT working, which is why I have been scouring the Internet trying to find a way to fix it. For all I know, maybe I just need to make some changes in the postfix config file, but I am not sure, and I would need help doing it, probably.
Lastly, you wrote “Don’t use the included Postfix because it’s hard to configure and keep running, instead using an alternative, simpler program to do the job.”
Honestly, I don’t know if that is an option or not. I mean this cgi script is so old, I don’t know if it would even recognize anything other than sendmail or postfix.
Before closing, I wanted to ask you to please address what I wrote in my previous comment. That is this:
-
When I enter “sudo postfix stop” in the macOS terminal on my iMac, I get “stopping the Postfix mail system.”
-
When I enter “sudo postfix reload”, I get refreshing the Postfix mail system."
-
When I enter “sudo postfix status”, I get “the Postfix mail system is running: PID: 27656.”
So, don’t those responses mean that Postfix is in fact working properly already? Or could those responses mean that while it is running, it is still not working properly?
Thank you for your time and patience in helping me with this. I appreciate anyone who can help me to figure this out, because I don’t have the expertise to do it alone.