Hello,
Is anyone using the welcome plugin? I'm trying to utilize it to send a message when a user first logs in to the system, containing important information for them to know. The plugin loads, I don't have a configuration problem, but the message never gets sent.
What can I provide to more easily troubleshoot this?
Thanks. Dave.
On 2017-03-02 (16:54 MST), David Mehler dave.mehler@gmail.com wrote:
Is anyone using the welcome plugin? I'm trying to utilize it to send a message when a user first logs in to the system, containing important information for them to know. The plugin loads, I don't have a configuration problem, but the message never gets sent.
I would say you DO have a configuration problem if the mail doesn’t get sent.
What can I provide to more easily troubleshoot this?
I’d start with the settings for the welcome plugin and any logs.
-- Apple broke AppleScripting signatures in Mail.app, so no random signatures.
Hello,
Thank you. My configuration is below. It looks like a perm problem, i've set +r on the directory and it is readable.
One other thing I noticed when going through the log the testuser logs in, then logs out. Then logs in again, and then gets the error. Any ideas why the two logins? I see this all the time, a log in log out, then another log in log out then the email transaction.
Thanks. Dave.
# 2.2.28 (bed8434): /usr/local/etc/dovecot/dovecot.conf # Pigeonhole version 0.4.17 (e179378) # OS: FreeBSD 10.3-RELEASE-p11 amd64 ufs auth_default_realm = domain.tld auth_mechanisms = plain login cram-md5 dict { sqlquota = mysql:/usr/local/etc/dovecot/dovecot-dict-sql.conf.ext } first_valid_gid = 999 first_valid_uid = 999 hostname = mail.domain.tld imap_client_workarounds = delay-newmail tb-extra-mailbox-sep tb-lsub-flags last_valid_gid = 999 last_valid_uid = 999 lmtp_rcpt_check_quota = yes mail_gid = vmail mail_home = /home/vmail/%d/%n/home mail_location = maildir:/home/vmail/%d/%n:LAYOUT=fs mail_plugins = acl quota zlib welcome mail_server_admin = mailto:postmaster@domain.tld mail_uid = vmail mailbox_list_index = yes maildir_broken_filename_sizes = yes maildir_empty_new = yes maildir_stat_dirs = yes maildir_very_dirty_syncs = yes managesieve_notify_capability = mailto managesieve_sieve_capability = fileinto reject envelope encoded-character vacation subaddress tldparator-i;ascii-numeric relational regex imap4flags copy include variables body enotify environment mailbox date index ihave duplicate mime foreverypart extracttext imapflags notify imapsieve namespace { list = yes location = maildir:/home/vmail/public:LAYOUT=fs prefix = public/ separator = / subscriptions = yes type = public } namespace inbox { hidden = no inbox = yes list = yes location = mailbox Drafts { auto = no special_use = \Drafts } mailbox Sent { auto = subscribe special_use = \Sent } mailbox Spam { auto = subscribe special_use = \Junk } mailbox Trash { auto = no special_use = \Trash } prefix = separator = / subscriptions = yes type = private } passdb { args = /usr/local/etc/dovecot/dovecot-sql.conf.ext driver = sql } plugin { imapsieve_mailbox1_before = file:/usr/local/lib/dovecot/sieve/report-spam.sieve imapsieve_mailbox1_causes = COPY imapsieve_mailbox1_name = Spam imapsieve_mailbox2_before = file:/usr/local/lib/dovecot/sieve/report-ham.sieve imapsieve_mailbox2_causes = COPY imapsieve_mailbox2_from = Spam imapsieve_mailbox2_name = * last_login_dict = redis:host=127.0.0.1:port=6379 quota = dict:User quota::proxy::sqlquota quota_grace = 10%% quota_status_nouser = DUNNO quota_status_overquota = 552 5.2.2 Mailbox is full quota_status_success = DUNNO sieve = ~/.dovecot.sieve sieve_before = /usr/local/etc/dovecot/sieve/before.d sieve_extensions = +notify +imapflags sieve_global_extensions = +vnd.dovecot.pipe +vnd.dovecot.execute sieve_pipe_bin_dir = /usr/local/lib/dovecot/sieve sieve_plugins = sieve_imapsieve sieve_extprograms } postmaster_address = postmaster@domain.tld protocols = imap service auth-worker { user = vmail } service auth { unix_listener /var/spool/postfix/private/auth { mode = 0666 } unix_listener auth-userdb { mode = 0600 user = vmail } } service dict { unix_listener dict { mode = 0600 user = vmail } } service imap-login { inet_listener imap { port = 143 } inet_listener imaps { port = 993 ssl = yes } } service lmtp { unix_listener dovecot-lmtp { group = postfix mode = 0660 user = postfix } } service quota-status { client_limit = 1 executable = quota-status -p postfix inet_listener { address = 127.0.0.1 port = 12345 } } ssl_ca = /etc/ssl/certs/cacert.crt ssl_cert =
/var/log/maillog: Feb 28 14:52:06 hostname dovecot: imap-login: Login: user=testuser@domain.tld, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=5840, secured, session=<5EXYh5xJesx/AAAB> Feb 28 14:52:06 hostname dovecot: imap(testuser@domain.tld): Logged out in=102 out=1373 Feb 28 14:52:06 hostname dovecot: imap-login: Login: user=testuser@domain.tld, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=7724, secured, session=<0nPch5xJMeR/AAAB> Feb 28 14:52:06 hostname dovecot: lda(testuser@domain.tld): Error: userdb lookup: connect(/var/run/dovecot/auth-userdb) failed: Permission denied (euid=143(dovecot) egid=143(dovecot) missing +r perm: /var/run/dovecot/auth-userdb, dir owned by 0:0 mode=0755) Feb 28 14:52:06 hostname dovecot: lda: Fatal: Internal error occurred. Refer to server log for more information. Feb 28 14:52:06 hostname dovecot: welcome: Fatal: master: service(welcome): child 8781 returned error 75 Feb 28 14:52:06 hostname dovecot: imap(testuser@domain.tld): Logged out in=234 out=1549
On 3/2/17, @lbutlr kremels@kreme.com wrote:
On 2017-03-02 (16:54 MST), David Mehler dave.mehler@gmail.com wrote:
Is anyone using the welcome plugin? I'm trying to utilize it to send a message when a user first logs in to the system, containing important information for them to know. The plugin loads, I don't have a configuration problem, but the message never gets sent.
I would say you DO have a configuration problem if the mail doesn’t get sent.
What can I provide to more easily troubleshoot this?
I’d start with the settings for the welcome plugin and any logs.
-- Apple broke AppleScripting signatures in Mail.app, so no random signatures.
On 2017-03-02 (17:51 MST), David Mehler dave.mehler@gmail.com wrote:
Feb 28 14:52:06 hostname dovecot: lda(testuser@domain.tld): Error: userdb lookup: connect(/var/run/dovecot/auth-userdb) failed: Permission denied (euid=143(dovecot) egid=143(dovecot) missing +r perm: /var/run/dovecot/auth-userdb, dir owned by 0:0 mode=0755)
This seems pretty clear. What are the permissions on that folder, and why is auth-userdb owned by root?
On my system auth-userdb is owned by dovecot.
-- Apple broke AppleScripting signatures in Mail.app, so no random signatures.
Hello,
Perms are 775 on that folder.
If you've got a working configuration can you do a doveconf -n and let me see it? I'd like to compare yours to mine.
And if you've got a working welcome script i'd like to see that as well.
Thanks. Dave.
On 3/3/17, @lbutlr kremels@kreme.com wrote:
On 2017-03-02 (17:51 MST), David Mehler dave.mehler@gmail.com wrote:
Feb 28 14:52:06 hostname dovecot: lda(testuser@domain.tld): Error: userdb lookup: connect(/var/run/dovecot/auth-userdb) failed: Permission denied (euid=143(dovecot) egid=143(dovecot) missing +r perm: /var/run/dovecot/auth-userdb, dir owned by 0:0 mode=0755)
This seems pretty clear. What are the permissions on that folder, and why is auth-userdb owned by root?
On my system auth-userdb is owned by dovecot.
-- Apple broke AppleScripting signatures in Mail.app, so no random signatures.
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On Fri, 3 Mar 2017, David Mehler wrote:
Perms are 775 on that folder.
On 3/3/17, @lbutlr kremels@kreme.com wrote:
On 2017-03-02 (17:51 MST), David Mehler dave.mehler@gmail.com wrote:
Feb 28 14:52:06 hostname dovecot: lda(testuser@domain.tld): Error: userdb lookup: connect(/var/run/dovecot/auth-userdb) failed: Permission denied (euid=143(dovecot) egid=143(dovecot) missing +r perm: /var/run/dovecot/auth-userdb, dir owned by 0:0 mode=0755)
did you mean 0775 on /var/run/dovecot/auth-userdb or /var/run/dovecot?
Both variants do not comply to the error message.
Did somebody asked already: Do you run with SELinux, AppArmor or the like enabled? http://wiki2.dovecot.org/WhyDoesItNotWork?highlight=%28selinux%29
Steffen Kaiser -----BEGIN PGP SIGNATURE----- Version: GnuPG v1
iQEVAwUBWL0Ti3z1H7kL/d9rAQLQiAf+Jmi3VBCr6anf2qnGmzHON6OssRWzcpNd CM8CPpKHK4jIHaZnX6v19eOLY253nCVw8es7rY7PpbFM2kU4LBQaMUaWul+umJXc m3/eWVyFAzrLe8B05rnq4xF5lbsR9A5iZhKp8BnLh6EemphO1Vxv4Se5ERStDQy4 /Oyj3tdD2j67WXHX6U0wvhJldYty8Y443wxqEcF31WLmKY3+IiNZDbAyKaDzUI8Y n1/nlNg0c5Irpvh7ANWvz5j7BCy1Ehy58R6Pd8KVwFCQ+M/qsf9fYdWCpjx2cfri 8qJA9LtHHe+k+ubKWfjWkFbtvpP5aFtAxrk6w6mt9dxVK3mviDIq2Q== =aN73 -----END PGP SIGNATURE-----
participants (3)
-
@lbutlr
-
David Mehler
-
Steffen Kaiser