justingit / dada-mail

Self-Hosted, Full Featured, Email Mailing List Manager. Announcement + Discussion Lists, Web-based Installer, Installs with minimal dependencies, sendmail/SMTP/Amazon SES supported
https://dadamailproject.com
GNU General Public License v2.0
172 stars 40 forks source link

Dadamail behind Web backend #1188

Open MaxPerl opened 1 month ago

MaxPerl commented 1 month ago

Hello Justin,

I have the following problem. I must run dadamail from www.example.com/newsletter. Unfortunately I get the following error message:

"Unknown flavor

We apologize, but the resource you're looking for does not exist."

In the error.txt I get the following:

Unknown option: port

unknown param called: "newsletter" REMOTE HOST: REMOTE_ADDR

I think, it is necessary to strip newsletter from path_info?

Best wishes, Max

MaxPerl commented 1 month ago

PS:: in .dada_config I have the following options: $PROGRAM_URL = 'https://example.com/newsletter/'; $S_PROGRAM_URL = 'https://example.com/newsletter/';

justingit commented 1 month ago

I wonder if the $PROGRAM_URL has to have the, 'mail.cgi" in it?

MaxPerl commented 1 month ago

Thanks for your answer. I am running Dadamail with PSGI/Plack, so I think mail.cgi should not bei in $PROGRAM_URL.

I solved it by using a subdomain (newsletter.example.com). The hint came from the documentation of my web server. Nevertheless a solution for using Dadamail from a specific path would be great :-)