Mailman still sending mails when `DEVMODE` is on?
Currently, I have been trying to run a working instance of Mailman up and running. I have edited the mailman.cfg
file enabling devmode.
The current output of mailman info
command is the following
GNU Mailman 3.2.3 (La Villa Strangiato) Python 3.7.1 (default, Dec 14 2018, 19:28:38) [GCC 7.3.0] config file: /home/aaryan/mailman/mailman-suite/mailman-suite_project/var/etc/mailman.cfg db url: sqlite:////home/aaryan/mailman/mailman-suite/mailman-suite_project/var/data/mailman.db devmode: ENABLED REST root url: http://localhost:8001/3.1/ REST credentials: restadmin:restpass
Still, after when I created the superuser
and tried to log in after as superuser after hosting up a local instance, it says
Verify your email address We have sent an e-mail to you for verification. Follow the link provided to finalize the signup process. Please contact us if you do not receive it within a few minutes.
This should not be the expected behaviour in devmode right? It should bypass this I believe. Am I missing something here?
New behaviour is observed
- I closed the runners, deactivated the env and exited the terminal.
- I opened a new console, to begin with.
- There when I started the env and wrote
mailman info
it showsdevmode: DISABLED
although the conf file has it enabled.
On 6/25/19 1:27 PM, Aaryan Bhagat wrote:
New behaviour is observed
- I closed the runners, deactivated the env and exited the terminal.
- I opened a new console, to begin with.
- There when I started the env and wrote
mailman info
it showsdevmode: DISABLED
although the conf file has it enabled.
Because you probably have multiple var/ directories with different var/etc/mailman.cfg files.
When the mailman config for layout is 'here' which is the default, the mailman command uses the var/ directory from the current working directory so if you run the command from a different working directory you will create a new var/ directory with default settings.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
On 6/25/19 1:08 PM, Aaryan Bhagat wrote:
Currently, I have been trying to run a working instance of Mailman up and running. I have edited the
mailman.cfg
file enabling devmode.
The current output ofmailman info
command is the followingGNU Mailman 3.2.3 (La Villa Strangiato) Python 3.7.1 (default, Dec 14 2018, 19:28:38) [GCC 7.3.0] config file: /home/aaryan/mailman/mailman-suite/mailman-suite_project/var/etc/mailman.cfg db url: sqlite:////home/aaryan/mailman/mailman-suite/mailman-suite_project/var/data/mailman.db devmode: ENABLED REST root url: http://localhost:8001/3.1/ REST credentials: restadmin:restpass
Still, after when I created the
superuser
and tried to log in after as superuser after hosting up a local instance, it saysVerify your email address We have sent an e-mail to you for verification. Follow the link provided to finalize the signup process. Please contact us if you do not receive it within a few minutes.
This should not be the expected behaviour in devmode right? It should bypass this I believe. Am I missing something here?
devmode in mailman.cfg affects only Mailman Core. That address confirmation email comes from Django. You also have to set DEBUG = True and maybe other things.
For example, mailman-suite/mailman-suite_project/settings.py contains
# When DEBUG is True, don't actually send emails to the SMTP server, just store # them in a directory. This way you won't accidentally spam your mailing-lists # while you're fiddling with the code. if DEBUG == True: EMAIL_BACKEND = 'django.core.mail.backends.filebased.EmailBackend' EMAIL_FILE_PATH = os.path.join(BASE_DIR, 'emails')
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
participants (2)
-
Aaryan Bhagat
-
Mark Sapiro