email client config location

What file contains the defaults for the email folder names for the usermin interface? I have to configure usermin to coexist with squirrelmail due to migration from a legacy system. I need to change ‘drafts’ to ‘Drafts’, etc.

Alright, I haven’t tried this before, but in poking through the Usermin source, I think this might do the trick :slight_smile:

It’s looking for the options “drafts_name”, “trash_name”, and “sent_name”.

By default, it uses "drafts", "trash", and "sent", respectively.

So in theory, you should be able to override those choices in the config :slight_smile:

If you edit /etc/webmin/usermin/config, I believe that is where you can set those options.

You’d just add each of the above as individual lines in that file, like:

drafts_name=Drafts

Let us know if that works :slight_smile:
-Eric

I just found it and I am testing it now. Go to the virtualmin page after login, and go to:
webmin>webmin>usermin configuration>usermin module configuration>Read Mail>

Go to the Default user preferences tab, near the bottom of the page.

Now I am sending mail to test accounts to make sure that squirrelmail and usermin are at least in the same ballpark if our clients attempt to use both interchangably. I doubt that many will, but my job is to plan for all contingencies.

Thanks for your assistance.

Glad you found it! After poking around in the UI for a few minutes, I figured it’d be easier to find it in the code rather than in the interface :slight_smile:

Hey, on another note – since you’re looking at both Usermin and Squirrelmail, would you care to offer some thoughts comparing the two?

Joe’s been trying to figure out what people do or don’t like about Usermin (especially in how it compares to Squirrelmail).

Do you feel one looks better than the other? Is one more functional than the other?

If you have a few moments, feel free to toss out some honest thoughts, as Joe is immensely curious about this topic :slight_smile: (and you won’t offend him or anyone else here)

Have a good one,
-Eric

Now i have a bigger problem. Earlier today I had to change a setting in /etc/dovecot/dovecot.conf because both mail clients were giving me permissions errors. The directories for the users were being created in /var/lib/dovecot/index with the wrong owner. Please note, I am using both the GUI and the /usr/share/webmin/virtual-server/create-user.pl program. I use the back-end programs to load all the stuff I am migrating from an old red-hat server to the new ubuntu-virtualmin server.

I changed:

mail_location = maildir:~/Maildir:INDEX=/var/lib/dovecot/index/%u:CONTROL=/var/lib/dovecot/control/%u

to

mail_location = maildir:~/Maildir

The permissions errors in both usermin and squirrelmail stopped, but now mail is not being delivered! A much bigger problem! It looks like it is being held in ~user/Maildir/dovecot.index.cache, but the file is in binary format so it is hard to be sure.

I initially did change the permissions on the /var/lib/dovecot(etc) folders that were indicated on the repair posts for the error message that was generated (a Jamie fix), but that did not fix the problem:

I did:

chmod 777 /var/lib/dovecot /var/lib/dovecot/index /var/lib/dovecot/control

I need help!!!

Well, my mail_location setting is set to “mail_location = maildir:~/Maildir” as well, so that’s a legitimate option.

What sort of errors are you seeing in both:

  1. /var/log/mail.log

  2. /var/log/procmail.log

Those might offer some more clues into what’s going wrong.
-Eric

Wow that was interesting. I sent an email from my yahoo account to a fake client I created on the new box. I recieved the following instantly:

May 19 15:22:31 rjrwebserver1 postfix/smtpd[6166]: connect from web31402.mail.mud.yahoo.com[68.142.198.114]
May 19 15:22:31 rjrwebserver1 postfix/smtpd[6166]: B07841E66C: client=web31402.mail.mud.yahoo.com[68.142.198.114]
May 19 15:22:32 rjrwebserver1 postfix/cleanup[9861]: B07841E66C: message-id=<521975.71796.qm@web31402.mail.mud.yahoo.com>
May 19 15:22:32 rjrwebserver1 postfix/qmgr[5069]: B07841E66C: from=<musicmaker08876@yahoo.com>, size=2168, nrcpt=1 (queue active)
May 19 15:22:32 rjrwebserver1 postfix/smtpd[6166]: disconnect from web31402.mail.mud.yahoo.com[68.142.198.114]
May 19 15:22:32 rjrwebserver1 postfix/smtp[9862]: B07841E66C: to=<rvlwm@rjrwebserver1>, orig_to=<rvlwm@rvl46.net>, relay=none, delay=0.78, delays=0.77/0.02/0/0, dsn=5.4.4, status=bounced (Host or domain name not found. Name service error for name=rjrwebserver1 type=A: Host not found)
May 19 15:22:32 rjrwebserver1 postfix/cleanup[9861]: 54FD01E66D: message-id=<20090519192232.54FD01E66D@rjrwebserver1.rjrsolutions.net>
May 19 15:22:32 rjrwebserver1 postfix/qmgr[5069]: 54FD01E66D: from=<>, size=4225, nrcpt=1 (queue active)
May 19 15:22:32 rjrwebserver1 postfix/bounce[9863]: B07841E66C: sender non-delivery notification: 54FD01E66D
May 19 15:22:32 rjrwebserver1 postfix/qmgr[5069]: B07841E66C: removed
May 19 15:22:32 rjrwebserver1 postfix/smtp[9862]: 54FD01E66D: host a.mx.mail.yahoo.com[67.195.168.31] refused to talk to me: 421 Message from (207.99.109.110) temporarily deferred - 4.16.50. Please refer to http://help.yahoo.com/help/us/mail/defer/defer-06.html
May 19 15:22:33 rjrwebserver1 postfix/smtp[9862]: 54FD01E66D: to=<musicmaker08876@yahoo.com>, relay=c.mx.mail.yahoo.com[216.39.53.3]:25, delay=0.78, delays=0.02/0/0.37/0.38, dsn=2.0.0, status=sent (250 ok dirdel)
May 19 15:22:33 rjrwebserver1 postfix/qmgr[5069]: 54FD01E66D: removed

It is saying host not found? It is saying it from the found host! I checked the registrar we use and rjrwebserver1.rjrsolutions.net is correctly set and hostname command on the box yields the same!

now i am confused…

Hmm, I suspect something may be awry with some combination of:

  1. Your server’s hostname

  2. The hostnames defined in your /etc/postfix/main.cf (especially if it’s setting myorigin)

  3. The /etc/hosts file

Make sure all the above refer to sane values :slight_smile:
-Eric

This may be the problem. I changed to a secure cert from comodo. I looked in the file /etc/postfix/main.cf and it has the following values:

smtpd_tls_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem
smtpd_tls_key_file=/etc/ssl/private/ssl-cert-snakeoil.key

That is the self-signed cert that was made during install. Do I change this? how?

actually, i checked and the certs its referring to are still there. the /etc/hosts file and /etc/hostname file are correct. the hostname settings in main.cf:
myhostname = rjrwebserver1.rjrsolutions.net
myorigin = /etc/mailname
I go to /etc/mailname, the only line in the file is:
rjrwebserver1

does this have to be the FQDN?

I changed /etc/mailname to the FQDN and email started delivery again. Thanks for all the help. I will pen up a brief comparison of squirrelmail and usermin for Joe and Jamie tomorrow. You guys rock!

Glad to hear you got it!

One option is to make myorigin the FQDN as you did. Another option is to comment it out altogether, as it defaults to using "myhostname", which is set elsewhere in the config file – generally to the FQDN.
-Eric