Cannot update email settings

I assume this is a theme issue.

If I log into an email account (usermin) and try to change the settings (very small, hard-to-find gear wheel in authentic theme), the save button simply does not work. I cannot change from "read email: always plain text" to "Text if possible; HTML otherwise"

Status: 
Active

Comments

Howdy -- there's a few possible causes for that... are you able to test if it works for you using the Virtualmin Framed theme?

Also, when trying to save, are any errors being generated in /var/webmin/miniserv.error?

I tried changing the theme - but that still did not work.

One thing I notice in the HTML source code is two submit items (one hidden) - which looks a bit odd to me (but may well be OK?). I would post the code here, but I can't see how to change the format in this post to allow quoted HTML!

In miniserv.error I can't see anything relevant I don't think. Though I do have this:

[01/Aug/2016:22:14:58 +0100] Perl module Authen::PAM needed for PAM is not installed : Can't locate Authen/PAM.pm in @INC (@INC contains: /usr/libexec/webmin /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at (eval 17) line 1. BEGIN failed--compilation aborted at (eval 17) line 1.

Failed to get ratings : HTTP/1.1 500 Internal Server Error Error: Invalid PID file Error: Failed to query Postfix config command to get the current value of parameter DOMAIN:

Error

Failed to query Postfix config command to get the current value of parameter DOMAIN:

Failed to get ratings : HTTP/1.1 500 Internal Server Error Error: Invalid PID file Failed to get ratings : HTTP/1.1 500 Internal Server Error

Ilia's picture
Submitted by Ilia on Fri, 08/05/2016 - 10:28

I have double checked and this option works and not theme related.

What it could be is your Postfix misconfiguration. Take a look at the logs. Check what is the output of service postfix status.

Ilia's picture
Submitted by Ilia on Fri, 08/05/2016 - 10:28

Project: Authentic Theme » Virtualmin Virtual Servers
Category: Bug report » Support request

I am in fact seeing the problem on both my VM servers - one is CentOS 6, the other CentOS 7, and both are "pro". My browser is Chrome on Ubuntu Xenial (latest).

Here is the output of "service postfix status":

Redirecting to /bin/systemctl status postfix.service ● postfix.service - Postfix Mail Transport Agent Loaded: loaded (/usr/lib/systemd/system/postfix.service; enabled; vendor preset: disabled) Active: active (running) since Sun 2016-06-26 09:19:07 BST; 1 months 9 days ago Main PID: 2162 (master) CGroup: /system.slice/postfix.service ├─ 2162 /usr/libexec/postfix/master -w ├─ 2190 qmgr -l -t fifo -u ├─ 2243 tlsmgr -l -t unix -u ├─ 9478 pickup -l -t fifo -u ├─20539 smtpd -n 5.152.181.120:smtp -t inet -u -o stress= -o smtpd... ├─20540 proxymap -t unix -u ├─20541 trivial-rewrite -n rewrite -t unix -u ├─20542 cleanup -z -t unix -u ├─20543 smtp -t unix -u ├─20544 smtp -t unix -u ├─20545 smtp -t unix -u ├─20546 smtp -t unix -u ├─20547 bounce -z -t unix -u └─20551 local -t unix

Aug 05 17:59:27 xxxxxxxxxxxxxxxxxxx.net postfix/smtp[20544]: 2D9039BDB:... Aug 05 17:59:27 xxxxxxxxxxxxxxxxxxx.net postfix/smtp[20545]: 4A7B2A086:... Aug 05 17:59:27 xxxxxxxxxxxxxxxxxxx.net postfix/qmgr[2190]: 4A7B2A086: ... Aug 05 17:59:27 xxxxxxxxxxxxxxxxxxx.net postfix/qmgr[2190]: 2D9039BDB: ... Aug 05 18:00:04 xxxxxxxxxxxxxxxxxxx.net postfix/pickup[9478]: 5D8F99BDB... Aug 05 18:00:04 xxxxxxxxxxxxxxxxxxx.net postfix/cleanup[20542]: 5D8F99B... Aug 05 18:00:04 xxxxxxxxxxxxxxxxxxx.net postfix/qmgr[2190]: 5D8F99BDB: ... Aug 05 18:00:04 xxxxxxxxxxxxxxxxxxx.net postfix/smtp[20546]: connect to... Aug 05 18:00:04 xxxxxxxxxxxxxxxxxxx.net postfix/smtp[20546]: 5D8F99BDB:... Aug 05 18:00:04 xxxxxxxxxxxxxxxxxxx.net postfix/qmgr[2190]: 5D8F99BDB: ... Hint: Some lines were ellipsized, use -l to show in full.

Also, what output do you get from grep -i domain /etc/postfix/main.cf

I get: mydestination = $myhostname, localhost.$mydomain, localhost, xxxxxxxxxxxxx.net

mailbox_command = /usr/bin/procmail-wrapper -o -a $DOMAIN -d $LOGNAME

Try editing the mailbox_command command line and removing -a $DOMAIN , then restarting Postfix.

Thanks - that does seem to fix the "Failed to query Postfix config command to get the current value of parameter DOMAIN" issue.

However I am still left with the original issue of being unable to change the "Show message body as" option in Usermin (which defaults to "text only", thereby making some emails unreadable). I notice two things that me be clues?

1) At the top of the page I see "Missing header section".

2) Chrome developer tools reports "parent.min.js:6 Uncaught ReferenceError: NProgress is not defined".

(I have tried in Firefox too, but I have the same problem)

Just to say - I have found a workaround. If I set my options, then put the cursor in the text field for "Mail messages to display per page" and hit "enter", then the options get saved.

I'm glad you got that working!

I'm not quite sure what the issue there is -- though we'll be pushing out a new theme version soon, hopefully that will help!