Re: v2.3.17 quota-dict related sql errors
On 05/02/2022 20.20, Aki Tuomi wrote: > >> On 05/02/2022 21:01 Pascal Volk >> wrote: >> >> Hi there, >> >> I've upgraded Dovecot to v2.3.18 (9dd8408c18). The problem still exists: >> >> ERROR: invalid input syntax for type bigint: >> "u...@localhost.localdomain.org" >> >> An excerpt from the journal is attached. >> > > Can you provide your quota-dict config file (dovecot-dict-sql.conf.ext), > please? > > Aki Hi Aki, the content of the `dovecot-dict-sql.conf.ext` file: connect = host=host dbname=mailsys user=dovecot password=TRUE map { pattern = priv/quota/storage table = userquota username_field = uid value_field = bytes } map { pattern = priv/quota/messages table = userquota username_field = uid value_field = messages } Regards, Pascal -- The trapper recommends today: cafefeed.2203...@localdomain.org
Re: v2.3.17 quota-dict related sql errors
On 18/12/2021 20.56, Pascal Volk wrote: > On 2021-12-04 22.18, I wrote: >> Hi there, >> >> I've updated Dovecot from v2.3.14 (cee3cbc0d) to v2.3.17 (e2aa53df5b). >> Right after the update, dovecot begun flooding the mail.log and >> PostgreSQL's log. >> ... Hi there, I've upgraded Dovecot to v2.3.18 (9dd8408c18). The problem still exists: ERROR: invalid input syntax for type bigint: "u...@localhost.localdomain.org" An excerpt from the journal is attached. Regards, Pascal -- The trapper recommends today: beeffeed.2203...@localdomain.orghost conf.d # journalctl -f -u dovecot.service Feb 05 19:38:48 host systemd[1]: Started Dovecot IMAP/POP3 email server. Feb 05 19:38:54 host dovecot[635]: master: Dovecot v2.3.18 (9dd8408c18) starting up for lmtp, pop3, imap, sieve Feb 05 19:42:00 host systemd[1]: Reloading Dovecot IMAP/POP3 email server... Feb 05 19:42:00 host dovecot[635]: master: Warning: SIGHUP received - reloading configuration Feb 05 19:42:00 host systemd[1]: Reloaded Dovecot IMAP/POP3 email server. Feb 05 19:42:28 host dovecot[1137]: imap-login: Login: user=, method=PLAIN, rip=2001:db8:815:1337:1234:5678:9abc, lip=2001:db8::143, mpid=1150, TLS, session= Feb 05 19:42:28 host dovecot[1137]: imap(u...@localhost.localdomain.org)<1150>: ID sent: name=Thunderbird, version=91.5.1 Feb 05 19:42:29 host dovecot[1137]: dict(1152): Warning: quota: dict(pgsql): sqlpool(pgsql): Query failed, retrying: ERROR: invalid input syntax for type bigint: "u...@localhost.localdomain.org" Feb 05 19:42:29 host dovecot[1137]: dict: Error: LINE 1: SELECT bytes FROM userquota WHERE uid = 'u...@localhost.loca... Feb 05 19:42:29 host dovecot[1137]: dict: Error: ^ Feb 05 19:42:29 host dovecot[1137]: dict(1152): Error: quota: dict(pgsql): sqlpool(pgsql): Query failed, aborting: SELECT bytes FROM userquota WHERE uid = 'u...@localhost.localdomain.org' Feb 05 19:42:29 host dovecot[1137]: dict(1152): Error: quota: Lookup failed: ERROR: invalid input syntax for type bigint: "u...@localhost.localdomain.org" Feb 05 19:42:29 host dovecot[1137]: dict: Error: LINE 1: SELECT bytes FROM userquota WHERE uid = 'u...@localhost.loca... Feb 05 19:42:29 host dovecot[1137]: dict: Error: ^ Feb 05 19:42:29 host dovecot[1137]: imap(u...@localhost.localdomain.org)<1150>: Error: Failed to get quota resource STORAGE: quota-dict: dict_lookup(priv/quota/storage) failed: dict-server returned failure: ERROR: invalid input syntax for type bigint: "u...@localhost.localdomain.org" Feb 05 19:42:29 host dovecot[1137]: imap: Error: LINE 1: SELECT bytes FROM userquota WHERE uid = 'u...@localhost.loca... Feb 05 19:42:29 host dovecot[1137]: imap: Error: ^ (reply took 0.099 secs (0.100 in dict wait, 0.000 in other ioloops, 0.000 in locks, async-id reply 0.010 secs ago, started on dict-server 0.029 secs ago, took 0.029 secs))
Re: v2.3.17 quota-dict related sql errors
On 2021-12-04 22.18, I wrote: > Hi there, > > I've updated Dovecot from v2.3.14 (cee3cbc0d) to v2.3.17 (e2aa53df5b). > Right after the update, dovecot begun flooding the mail.log and > PostgreSQL's log. > ... just in case someone has missed `doveconf -n` output and SQL related configuration files, they are attached now. Let me know if you have any questions. Regards, Pascal -- The trapper recommends today: face1e55.2135...@localdomain.org# 2.3.17 (e2aa53df5b): /usr/local/etc/dovecot/dovecot.conf # Pigeonhole version 0.5.17 (054dddfa) # OS: Linux 5.15.0-2-amd64 x86_64 Debian bookworm/sid # Hostname: host.example.org auth_mechanisms = plain login cram-md5 auth_verbose = yes auth_verbose_passwords = plain base_dir = /var/run/dovecot debug_log_path = /var/log/dovecot_dbg.log dict { quota = pgsql:/usr/local/etc/dovecot/dovecot-dict-sql.conf.ext } first_valid_gid = 7 first_valid_uid = 7 hostname = mail.example.org import_environment = TZ CORE_OUTOFMEM=yeah CORE_ERROR=1 listen = 203.0.113.143, 127.0.0.1, ::1, 2001:db8::143 lmtp_save_to_detail_mailbox = yes login_access_sockets = tcpwrap mail_access_groups = dovemail mail_location = mdbox:~/mdbox mail_plugins = quota old_stats zlib managesieve_notify_capability = mailto managesieve_sieve_capability = fileinto reject envelope encoded-character vacation subaddress comparator-i;ascii-numeric relational regex imap4flags copy include variables body enotify environment mailbox date index ihave duplicate mime foreverypart extracttext namespace inbox { inbox = yes location = mailbox Drafts { special_use = \Drafts } mailbox Junk { special_use = \Junk } mailbox Sent { special_use = \Sent } mailbox Trash { special_use = \Trash } mailbox name { special_use = \Drafts \Junk \Sent \Trash } prefix = separator = / } passdb { args = /usr/local/etc/dovecot/dovecot-sql.conf.ext driver = sql } plugin { old_stats_refresh = 1min quota = dict:user:%{uid}:noenforcing:proxy::quota quota_rule = *:storage=2G:messages=0 quota_rule2 = Trash:storage=+100M recipient_delimiter = + sieve = ~/.dovecot.sieve sieve_dir = ~/sieve zlib_save = bz2 zlib_save_level = 6 } postmaster_address = postmas...@example.org protocols = lmtp pop3 imap sieve service auth-worker { unix_listener auth-worker { group = $default_internal_user mode = 0660 user = doveauth } user = doveauth } service auth { client_limit = 1425 unix_listener /var/spool/postfix/private/dovecot-auth { group = postfix mode = 0600 user = postfix } user = doveauth } service dict { idle_kill = 150 secs unix_listener dict { group = dovemail mode = 0660 } } service imap-login { process_limit = 256 } service imap { process_limit = 256 } service lmtp { executable = lmtp -D inet_listener lmtp { address = ::1 127.0.0.1 port = 24 } unix_listener /var/spool/postfix/private/dovecot-lmtp { group = postfix mode = 0600 user = postfix } } service old-stats { executable = old-stats fifo_listener old-stats-mail { mode = 0666 } fifo_listener old-stats-user { mode = 0666 } unix_listener old-stats { mode = 0666 } } service tcpwrap { unix_listener login/tcpwrap { group = $default_login_user mode = 0600 user = $default_login_user } } ssl = required ssl_cert = dovecot-dict-sql.conf.ext Description: application/vnd.novadigm.ext dovecot-sql.conf.ext Description: application/vnd.novadigm.ext
v2.3.17 quota-dict related sql errors
Hi there, I've updated Dovecot from v2.3.14 (cee3cbc0d) to v2.3.17 (e2aa53df5b). Right after the update, dovecot begun flooding the mail.log and PostgreSQL's log. My dict sql configuration: ,--[ .../dovecot/dovecot-dict-sql.conf.ext ]-- | map { | pattern = priv/quota/storage | table = userquota | username_field = uid | value_field = bytes | } | map { | pattern = priv/quota/messages | table = userquota | username_field = uid | value_field = messages | } `-- This worked for decades. Since the update dovecot is passing the user's email address, instead the user's UID to the query. And therefor I have lots of errors in the log files: see attached `mail.log' and `postgresql-14-main.log' excerpts. The `userquota' table looks like this: Table "public.userquota" Column | Type | Collation | Nullable | Default --+-+---+--+- uid | bigint | | not null | bytes| bigint | | not null | 0 messages | integer | | not null | 0 ... Foreign-key constraints: "fkey_userquota_uid_users" FOREIGN KEY (uid) REFERENCES users(uid) ON DELETE CASCADE (full database structure: https://bitbucket.org/pvo/vmm/src/vmm-0.7.0/pgsql/create_tables.pgsql) Regards, Pascal -- Ubuntu is an ancient African word meaning “I can’t install Debian.” -- unknownDec 2 00:44:22 host dovecot: lmtp(u...@localhost.localdomain.org)<289601>: Error: lmtp-server: conn [2001:db8::143]:38119 [1]: rcpt user+dove...@localhost.localdomain.org: quota-dict: Quota update failed: dict-server returned failure: sql dict: commit failed: ERROR: invalid input syntax for type bigint: "u...@localhost.localdomain.org" Dec 2 00:44:22 host dovecot: lmtp: Error: LINE 1: ...bytes=bytes+12758,messages=messages+1 WHERE uid = 'user@loca... Dec 2 00:44:22 host dovecot: lmtp: Error: ^ (reply took 0.074 secs (0.074 in dict wait, 0.000 in other ioloops, 0.000 in locks, async-id reply 0.018 secs ago, started on dict-server 0.051 secs ago, took 0.051 secs)) - Quota is now desynced 2021-12-01 23:44:22 GMT ERROR: invalid input syntax for type bigint: "u...@localhost.localdomain.org" at character 72 2021-12-01 23:44:22 GMT STATEMENT: UPDATE userquota SET bytes=bytes+12758,messages=messages+1 WHERE uid = 'u...@localhost.localdomain.org'
Re: Howto get information about quota used
On 2015-12-29 02:06, Макаров Денис wrote: > Hello guys! > > I have Dovecot server (version: 2.2.9) with quota and imap_quota plugins. > > I wanna know how to get information about quota used of current email. > > I can do this with IMAP client like Thunderbird, but how I can do it on > server? > ... doveadm-quota(1) will be your friend in this situation: ,--[ doveadm quota get -u u...@localhost.localdomain.org ]-- | Quota name Type Value Limit% | user STORAGE 959908 -0 | user MESSAGE 166680 -0 `-- Regards, Pascal -- The trapper recommends today: deadbeef.1536...@localdomain.org
Re: v2.2.19 release candidate 2 released
On 2015-09-29 20:22, Jacques Distler wrote: > Darwin doesn't have an EDEADLOCK error code, so compilation fails on MacOSX: > > file-lock.c:214:16: error: use of undeclared identifier 'EDEADLOCK' > if (errno == EDEADLOCK) > ^ > file-lock.c:262:16: error: use of undeclared identifier 'EDEADLOCK' > if (errno == EDEADLOCK) > ^ Does http://hg.dovecot.org/dovecot-2.2/rev/7633bca91551 fix the problem for you? Regards, Pascal -- The trapper recommends today: deadbeef.1527...@localdomain.org
Re: Delivering email to Maildir PreINBOX
On 08/19/2015 10:45 PM, Paulo Matos wrote: Hi all, I have a running dovecot with: $ dovecot -n # 2.2.18: /etc/dovecot/dovecot.conf [...] I started to filter my email with imapfilter running on the same host as dovecot. I would therefore like to deliver email to a folder called PreINBOX so that imapfilter then sorts the email and ends up delivering only the useful email to INBOX. How can I change the name of the inbox dovecot delivers to? Best, You can't change the name of the INBOX - the INBOX is always the INBOX. But you can choose the name of the target mailbox. I don't know imapfilter. I'd use http://wiki2.dovecot.org/Pigeonhole/Sieve for mail filtering. Regards, Pascal
Re: Dovecot - Config file details
On 07/06/2015 02:37 PM, Sachin Kulkarni1 wrote: Hello All, We want to install / configure and test Dovecot. We are doing it for the first time. After installation we are now looking for configuration file and need to know significance of below params and what values we should provide ? protocols = listen = base_dir = login_greeting = Please help. Did you read the comments in http://hg.dovecot.org/dovecot-2.2/file/tip/doc/example-config/dovecot.conf Any question left? Disclaimer: This message and the information contained herein is proprietary and confidential and subject to the Tech Mahindra policy statement, you may review the policy at http://www.techmahindra.com/Disclaimer.html externally http://tim.techmahindra.com/tim/disclaimer.html internally within TechMahindra. O rly? Regards, Pascal -- The trapper recommends today: f007ba11.1518...@localdomain.org
Re: dovecot-lmtp
On 07/01/2015 02:28 PM, Steven Hopps wrote: Hi, I'm trying to use dovecot-lmtp so that I can filter messages with sieve, however it doesn't appear to be working. I followed the instructions on wiki2.dovecot.org. I'm running Debian Wheezy. I've got runit configured to execute postfix and dovecot, which may be the source of the problem (runit executes /usr/sbin/dovecot -F). I've got mail_debug turned on and there is nothing in the mail log about lmtp. Any help would be appreciated. `postconf virtual_transport mailbox_transport`? `doveconf -n`? Regards, Pascal -- The trapper recommends today: c01dcafe.1518...@localdomain.org
Re: Migration from courier-imap to dovecot
On 06/23/2015 02:57 PM, alex wrote: hello, I search a solution to migrate a courier-impa mail accounts in maildir format to a dovecot mail accounts in sandbox format. The first server is an ubuntu 10.4 with courier-imap in maildir format, the accounts are managed by postfix 2.7.0 with MySQL The second server is an debian 7.8 (wheezy) with dovecot 2.2.13 in sdbox format, the accounts are managed by postfix 2.9.6 with MySQL My request is, how to import and convert the mail accounts ?? Did you read http://wiki2.dovecot.org/Migration/Courier? Regards, Pascal -- The trapper recommends today: c01dcofe.1517...@localdomain.org
Re: OT: Central sieve management
On 05/28/2015 08:24 PM, l...@airstreamcomm.net wrote: A bit off topic, but I was wondering if anyone here has a solution for centrally managing sieve for multiple users from a custom web application? We would like to implement pigeonhole sieve on our dovecot cluster, however we need to be able to access user’s sieve configurations from a central location for troubleshooting and support purposes. You may store the scripts on a LDAP server or in a sql database using dict. See http://hg.rename-it.nl/dovecot-2.2-pigeonhole/file/0.4.8/doc/locations Regards, Pascal -- The trapper recommends today: c01dcafe.1514...@localdomain.org
Re: Typo in systemd commit HG 8dc79a437858
On 05/25/2015 06:14 AM, Thomas Leuxner wrote: The apostrophes need to be removed from the LimitCORE example, otherwise the parameter will not be recognized: $ cat /etc/systemd/system/dovecot.service.d/service.conf [Service] #Environment='OPTIONS=-p' #LimitCORE=8192 LimitCORE=infinity Oops, my bad. On my system i have (w/o drop-in files): ,--[ systemctl show --property=LimitCORE dovecot ]-- | LimitCORE=18446744073709551615 `-- But your message showed me just another typo. The setting name, for configuring the file descriptor limit, is LimitNOFILE - instead of LimitCORE. Stephan's next auto-build should contain the corrected version. Regards, Pascal -- The trapper recommends today: defaced.1514...@localdomain.org
Re: Typo in systemd commit HG 8dc79a437858
On 05/25/2015 03:44 PM, Steve Litt wrote: Hey guys, please tell me that Dovecot does not depend on systemd! Nope, Dovecot doesn't depend on systemd. Why should it depend on systemd? But: Dovecot supports systemd. If you want to enable systemd, use: ./configure --with-systemdsystemunitdir Regards, Pascal -- The trapper recommends today: beeffeed.1514...@localdomain.org
Re: Xi broken
On 05/10/2015 04:01 PM, Thomas Leuxner wrote: ... Not sure how it is supposed to interact with the file /etc/default/dovecot and its ALLOW_COREDUMPS=1 variable, but one needs to explicitly add LimitCORE=infinity in the 'Service' section (until someone with more systemd foo fixes it): The attached patch could solve the problem. Regards, Pascal -- The trapper recommends today: cafebabe.1513...@localdomain.org diff -urN dovecot-core.org/etc/default/dovecot dovecot-core/etc/default/dovecot --- dovecot-core.org/etc/default/dovecot 2015-04-10 22:23:00.0 + +++ dovecot-core/etc/default/dovecot 2015-05-10 17:17:57.980476636 + @@ -3,5 +3,11 @@ # Set to '0' to explicitly disable starting Dovecot #ENABLED=0 +# SysV configuration # Set to '1' to allow Dovecot daemons to produce core dumps #ALLOW_COREDUMPS=1 + +# systemd configuration +# Set to 'infinity' to allow Dovecot daemons to produce core dumps. +# See also setrlimit(2) +LimitCORE= diff -urN dovecot-core.org/lib/systemd/system/dovecot.service dovecot-core/lib/systemd/system/dovecot.service --- dovecot-core.org/lib/systemd/system/dovecot.service 2015-05-10 14:36:00.0 + +++ dovecot-core/lib/systemd/system/dovecot.service 2015-05-10 17:23:28.985272494 + @@ -3,6 +3,8 @@ After=local-fs.target network.target [Service] +EnvironmentFile=-/etc/default/dovecot +LimitCORE=$LimitCORE Type=simple ExecStart=/usr/sbin/dovecot -F NonBlocking=yes
Re: Prebuilt Binaries xi.rename-it.nl down ?
On 05/07/2015 07:04 PM, Nathan Schultheiss wrote: Hello, Since several days the repo (xi.rename-it.nl (217.119.238.14)) is no longer accessible. I'd found here for Debian/Ubuntu = http://wiki2.dovecot.org/PrebuiltBinaries Is it off, or temporarily down ? Xi is broken at the moment. http://dovecot.org/list/dovecot/2015-April/100682.html Regards, Pascal -- The trapper recommends today: face1e55.1512...@localdomain.org
Re: FYI: dovecot (008632bdfd2c) compilation woes, and minor glitch regarding update-version.sh
On 04/24/2015 07:00 PM, Michael Grimm wrote: ... 2) I don't have a python binary installed, only a python2 link to the python27 binary (FBSD, and python27 from ports). Thus, update-version.sh will fail to evaluate hg's changeset. As a quick fix I needed to create a link: python - python2 This is a less or more 'common' system configuration error. ;-) See https://forums.freebsd.org/threads/solved-python-command-not-found.46449/ Regards, Pascal -- The trapper recommends today: cafefeed.1512...@localdomain.org
Re: Auth-worker, Unknown User
On 04/24/2015 03:55 PM, Stephen R Guglielmo wrote: Hi list, I'm running Debian Jessie (8). I have Postfix and Dovecot working successfully. I attempted to setup LMTP in order to enable sieve support, but it seems I was not successful. Dovecot version 2.2.13. Postfix accepts an incoming test mail I sent, then tries to deliver it to Dovecot via LMTP: dovecot: lmtp(13493): Connect from local dovecot: auth-worker(13495): pam(s...@example.com): unknown user dovecot: lmtp(13493): Disconnect from local: Successful quit Postfix then bounces my mail with a 550 User doesn't exist. It seems that Dovecot is trying to lookup my whole address (s...@example.com) in PAM instead of just the username (srg), which does exist. What can I do to avoid this? I have searched the internet about this and found a few references to args = %s and args = username_format=%n for passdb and/or userdb, but I have tried both (restarting Dovecot) to no avail. Thank you! `doveconf -n` below: # 2.2.13: /etc/dovecot/dovecot.conf # OS: Linux 2.6.32-042stab103.6 x86_64 Debian 8.0 auth_verbose = yes ... passdb { driver = pam } ... userdb { driver = passwd } ... Since you only have local (system) users, you should be able to solve the problem by setting: auth_username_format = %Ln in your /etc/dovecot/conf.d/10-auth.conf Regards, Pascal -- The trapper recommends today: c01dcofe.1511...@localdomain.org
Quota configuration issue [was: doveadm problem]
On 04/23/2015 10:16 PM, T.Tributh wrote: Hi, since several versions i have the following problem: Actually i am using: dovecot --version 2.2.16 (de2023e630cb) When i try to use doveadm i see the following error: doveadm pw -t {SSHA512}cywDi7p60qc1K0mK4zAC2NrnK86hntGgbQcAh3H9U3WEpZMFk1hj/MYQ81hJouP1FOsF/Jasc1BjzdaPeUU5fYLitEzV -p 1234 Fatal: Couldn't load required plugin /usr/lib/dovecot/modules/lib11_imap_quota_plugin.so: dlopen() failed: /usr/lib/dovecot/modules/lib11_imap_quota_plugin.so: undefined symbol: command_unregister I recognized that these lines in my main dovecot.conf are responsible: mail_plugins = quota imap_quota That's wrong for the global mail_plugins setting When i change it to mail_plugins = quota ... but than my thunderbird-client is not longer able to recognize to mailbox-size. See http://wiki2.dovecot.org/Quota#Enabling_quota_plugins Regards, Pascal -- The trapper recommends today: decade.1511...@localdomain.org
Re: core not dumped
On 03/19/2015 02:53 PM, James wrote: ... service imap-login { chroot = drop_priv_before_exec = yes user = dovecot } How can I make imap-login to produce a core file? ... I can create core dumps but not from imap-login, so it's not a general system restriction. Adding abort() to the master gives a core - but but not a relevant one. Adding an arbitrary abort() to imap-login gives a core not dumped message. Try this configuration: service imap-login { executable = imap-login -D } Your configuration (doveconf -n output) may be also helpfull Regards, Pascal -- The trapper recommends today: defaced.1507...@localdomain.org
Re: doveconf -a Segmentation Fault
On 03/12/2015 02:07 PM, Dan LaSota wrote: Getting Segmentation Fault When I run doveconf -a Have a look at http://dovecot.org/bugreport.html and try again. Regards, Pascal -- The trapper recommends today: f007ba11.1507...@localdomain.org
Re: multiple ldap userdb and passdb
On 02/17/2015 04:03 PM, lejeczek wrote: hi everybody. I wonder if such a scenario is possible. if yes would I configure multiple passdb using ldap driver or within one clause set up multiple args? How would this work? Did you read http://wiki2.dovecot.org/Authentication/MultipleDatabases? Regards, Pascal -- The trapper recommends today: face1e55.1504...@localdomain.org
Re: [SERVERBUG] failed to send mail with SA and antispam plugin
On 01/14/2015 03:05 PM, ML mail wrote: Hello, I am using the antispam plugin of Dovecot with SpamAssassin and in some cases when users move back mails from the Spam folder to their INBOX (false positive) they get the following error message: [SERVERBUG] failed to send mail Does anyone have an idea what could be the issue here? It is quite annoying as the mail then stays in the Spam folder and can not been re-learnt has ham. Someone has stolen my crystal ball. :-( Please provide `doveconf -n` output. Regards, Pascal -- The trapper recommends today: beeffeed.1501...@localdomain.org
Re: Disabling compressed storage for one public namespace - is it possible?
On 01/02/2015 08:09 AM, Marc Stürmer wrote: Greetings, I've got Dovecot 2.2.X running with gzip compressed storage enabled by default. My question though is: is it possible to disable this compressed storage for one specific, public namespace only? I haven't found quite much information about it on the wiki. Hi Marc, in one setup we use 'plugin {zlib_save = bz2}' for the mdbox storage. The public namespace uses the Maildir++ format. All messages in the public namespace are stored w/o compression (no zlib related configuration). Regards, Pascal -- The trapper recommends today: deadbeef.1500...@localdomain.org
Re: doveadm -A operations failing due to broken mdbox
On 12/09/2014 11:23 AM, Ralf Hildebrandt wrote: I'm using /usr/bin/doveadm purge -A to purge the mdboxes of my users. Unfortunately this command terminates prematurely once it reaches a defective mdbox! Is there a workaround for this? Like using doveadm to get a list of valid users and then run doveadm purge -u on each of those? Are you looking for a workaround like this? for user in `doveadm user \*`; do doveadm purge -u $user; done Regards, Pascal -- The trapper recommends today: defaced.1434...@localdomain.org
Re: Sieve permissions issue following update
On 12/09/2014 05:35 PM, David Gessel wrote: I recently updated dovecot and my sieve filters stopped working. Checking the logs I see: Dec 9 00:09:59 mailhost dovecot: lda(ges...@domain.com): Error: sieve: binary save: failed to create temporary file: open(/usr/local/etc/dovecot/sieve/10-move-spam.svbin.mailhost.domain.com.114.) failed: Permission denied (euid=5000(vmail) egid=5000(vmail) missing +w perm: /usr/local/etc/dovecot/sieve, we're not in group 6(mail), dir owned by 143:6 mode=0775) Dec 9 00:09:59 mailhost dovecot: lda(ges...@domain.com): Error: sieve: The LDA Sieve plugin does not have permission to save global Sieve script binaries; global Sieve scripts like `/usr/local/etc/dovecot/sieve/10-move-spam.sieve' need to be pre-compiled using the sievec tool As mentioned in the error message from your logs and in the wiki http://wiki2.dovecot.org/Pigeonhole/Sieve/Usage#Manually_Compiling_Sieve_Scripts: To mitigate this problem, the administrator must manually pre-compile global scripts using the sievec command line tool. Regards, Pascal -- The trapper recommends today: defaced.1434...@localdomain.org
Re: Required SSL with exceptions
On 12/09/2014 06:02 PM, dove...@outputservices.com wrote: What is the syntax for login_trusted_networks? The docs and WIKI do not show it. grep -rn login_trusted_networks . ./example-config/dovecot.conf:48:#login_trusted_networks = … # Space separated list of trusted network ranges. Connections from these # IPs are allowed to override their IP addresses and ports (for logging and # for authentication checks). disable_plaintext_auth is also ignored for # these networks. Typically you'd specify your IMAP proxy servers here. #login_trusted_networks = Regards, Pascal -- The trapper recommends today: c01dcofe.1434...@localdomain.org
Re: Sieve permissions issue following update
On 12/09/2014 07:50 PM, David Gessel wrote: It has been running flawlessly for quite some time until the update. Global scripts were compiled: /usr/local/etc/dovecot/sieve # ls 10-move-spam.sieve 10-move-spam.svbin However, I ran sievec again and tried saving a modified script and got the same: shiofuki dovecot: lda(ges...@blackrosetech.com): Error: sieve: binary save: failed to create temporary file: open(/usr/local/etc/dovecot/sieve/10-move-spam.svbin.shiofuki.blackrosetech.com.96421.) failed: Permission denied (euid=5000(vmail) egid=5000(vmail) missing +w perm: /usr/local/etc/dovecot/sieve, we're not in group 6(mail), dir owned by 143:6 mode=0775) Dec 9 11:30:39 shiofuki dovecot: lda(ges...@blackrosetech.com): Error: sieve: The LDA Sieve plugin does not have permission to save global Sieve script binaries; global Sieve scripts like `/usr/local/etc/dovecot/sieve/10-move-spam.sieve' need to be pre-compiled using the sievec tool I use Thomas Schmid's Sieve 0.2.3d add on to Thunderbird, if that might have any significance. Compiling with sievec shouldn't change the permission error, which I still don't understand. [TOFU snipped} /usr/local/etc/dovecot/sieve is not the user's sieve_dir; see http://wiki2.dovecot.org/Pigeonhole/Sieve/Configuration. The GLOBAL sieve scripts (see your error message above) is manged by the system administrator. Adnmins are using their favorite $EDITOR, the chmod(1) and chown(1) commands. They don't need a ManageSieve client. Regards, Pascal -- The trapper recommends today: fabaceae.1434...@localdomain.org
Re: Unknown scheme SSHA256.HEX.b64
On 11/29/2014 04:04 AM, grundy wrote: I'm getting a very strange error and I'm completely mystified by it. Thank you so much for taking a look! I recently migrated some users from another dovecot server to my own, and the previous admin had the passwords in their database using the SSHA256 scheme in HEX format. All the password hashes are in my database (MySQL) with a {SSHA256.HEX} prefix, and I thought at first that they were working fine, but then I checked my logs and am seeing this: localhost dovecot: auth: Error: password(***@***.***): Unknown scheme SSHA256.HEX.b64 (I have replaced the email address with asterisks) I am completely flabbergasted, as I can't imagine how SSHA256.HEX.b64 is even coming in to existence as a string. I have triple checked the database and that combination appears nowhere in it. Does anybody have any idea how that is happening? Thanks again. You forgot to show `doveconf -n` output. Check the contents of the file mentioned in: `doveconf passdb | grep args` Regards, Pascal -- The trapper recommends today: beeffeed.1433...@localdomain.org
Re: Help with last_login plugin
On 11/11/2014 08:55 PM, Jorge Bastos wrote: Hi, I want to have a datetime column in my users table, to have the value updated every time my users login via POP3/IMAP. Last_login is new but I don't see any query example, or field names or so. Does anyone can give an help on this? This topic was discussed a few days ago. See http://dovecot.org/list/dovecot/2014-October/098300.html Regards, Pascal -- The trapper recommends today: cafefeed.1431...@localdomain.org
Re: Postlogin script in v1
On 11/03/2014 08:06 PM, List wrote: Does dovecot-1.0.7-7.el5 support postlogin scripting? Hi List, there is the Post-login documentation for your outdated/unsupported installation: http://wiki1.dovecot.org/PostLoginScripting Regards, Pascal -- The trapper recommends today: fabaceae.1430...@localdomain.org
Re: Released Pigeonhole v0.4.5 for Dovecot v2.2.15.
On 10/30/2014 10:42 PM, Stephan Bosch wrote: … The release is available as follows: http://pigeonhole.dovecot.org/releases/2.2/dovecot-2.2-pigeonhole-0.4.5.tar.gz http://pigeonhole.dovecot.org/releases/2.2/dovecot-2.2-pigeonhole-0.4.5.tar.gz.sig Refer to http://pigeonhole.dovecot.org and the Dovecot v2.x wiki for more information. Have fun testing this new release and don't hesitate to notify me when there are any problems. Hi Stephan, I guess there is a problem: In file included from ../../../../src/lib-sieve/sieve-common.h:9:0, from sieve-file-script-sequence.c:9: ../../../../src/lib-sieve/sieve-config.h:8:32: fatal error: pigeonhole-version.h: No such file or directory #include pigeonhole-version.h ^ compilation terminated. In file included from ../../../../src/lib-sieve/sieve-common.h:9:0, from ../../../../src/lib-sieve/sieve-binary.h:9, from sieve-file-script.c:10: ../../../../src/lib-sieve/sieve-config.h:8:32: fatal error: pigeonhole-version.h: No such file or directory #include pigeonhole-version.h ^ compilation terminated. In file included from ../../../../src/lib-sieve/sieve.h:10:0, from sieve-file-storage.h:10, from sieve-file-storage-save.c:14: ../../../../src/lib-sieve/sieve-config.h:8:32: fatal error: pigeonhole-version.h: No such file or directory #include pigeonhole-version.h ^ compilation terminated. In file included from ../../../../src/lib-sieve/sieve.h:10:0, from sieve-file-storage.h:10, from sieve-file-storage-active.c:10: ../../../../src/lib-sieve/sieve-config.h:8:32: fatal error: pigeonhole-version.h: No such file or directory #include pigeonhole-version.h ^ compilation terminated. make[5]: *** [sieve-file-script-sequence.lo] Error 1 make[5]: *** Waiting for unfinished jobs make[5]: *** [sieve-file-script.lo] Error 1 make[5]: *** [sieve-file-storage-save.lo] Error 1 make[5]: *** [sieve-file-storage-active.lo] Error 1 make[4]: *** [all-recursive] Error 1 make[3]: *** [all-recursive] Error 1 make[2]: *** [all-recursive] Error 1 make[1]: *** [all-recursive] Error 1 make: *** [all] Error 2 ,--[ config.log ]-- | $ ./configure --prefix=/usr/local --build=x86_64-linux-gnu --host=x86_64-linux-gnu --with-dovecot=../dovecot-2.2 --with-managesieve --without-docs | … | hostname = el-tio | uname -m = x86_64 | uname -r = 3.16-2-amd64 | uname -s = Linux | uname -v = #1 SMP Debian 3.16.3-2 (2014-09-20) `-- ,--[ Makefile ]-- | CC = x86_64-linux-gnu-gcc-4.8 | CCDEPMODE = depmode=gcc3 | CFLAGS = -std=gnu99 -O0 -g3 -ggdb3 -pipe -Wextra -Wunused -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wpointer-arith -Wchar-subscripts -Wformat=2 -Wbad-function-cast -fno-builtin-strftime -Wstrict-aliasing=2 -I$(top_srcdir) | CPP = x86_64-linux-gnu-cpp-4.8 `-- Regards, Pascal -- The trapper recommends today: c01dcofe.1430...@localdomain.org
Re: smtp lastlogin
On 10/29/2014 05:54 PM, Eduardo Ramos wrote: Hey guys! I've been googling without success. Do anyone know if there is a way to track last login of a smtp authentication? I've tried without success using: service auth { executable = auth lastlogin unix_listener auth-userdb { } unix_listener /var/spool/postfix/private/auth { mode = 0660 group = postfix } } service lastlogin { executable = script-login -d /usr/local/bin/lastlogin.sh unix_listener lastlogin { user = $default_internal_user mode = 0666 } } A few months ago I asked Timo via IRC #doveot. His answer was: no, it is done as mail plugin. smtp would require auth plugin. Regards, Pascal -- The trapper recommends today: c01dcofe.1430...@localdomain.org
Re: doveadm-move(1)
On 10/16/2014 09:01 AM, Joseph Tam wrote: It's Solaris10 nroff, and GNU groff 1.19.1. Ancient stuff so I wouldn't spend too much time looking at it. It's weird that two independent software implementations would do the same thing. Maybe ancient, but supported until January 2021. I've reworked the example commands in the manual pages. http://hg.dovecot.org/dovecot-2.2/rev/dcfb0baba621 Thanks for your input. Regards, Pascal -- The trapper recommends today: face1e55.1429...@localdomain.org
doveadm-move(1) [was: Re: delete/archive old mail]
On 10/15/2014 12:09 AM, Joseph Tam wrote: ... EXAMPLE Move janes messages - received in September 2011 - from her INBOX into her archive. doveadm move -u jane Archive/2011/09 mailbox 2011-10-01 SINCE 01-Sep-2011 [Is this a typo: 2011-10-01 should be INBOX?] … Where did you find this example? ,--[ doveadm-move(1) 2013-11-23 ]-- | EXAMPLE |Move jane's messages - received in September 2011 - from her INBOX into |her archive. | |doveadm move -u jane Archive/2011/09 mailbox INBOX BEFORE \ |2011-10-01 SINCE 01-Sep-2011 `-- Also http://wiki2.dovecot.org/Tools/Doveadm/Move#section_example shows the correct example. Regards, Pascal -- The trapper recommends today: cafefeed.1428...@localdomain.org
Re: doveadm-move(1)
On 10/15/2014 11:16 PM, Joseph Tam wrote: Pascal Volk writes: Where did you find this example? Cutpasted off the terminal man page output. Looking into man1/doveadm-move.1, I see .B doveadm move \-u jane Archive/2011/09 mailbox INBOX BEFORE \(rs .B 2011-10-01 SINCE 01-Sep-2011 so it's a problem with my nroff, not dovecot's man pages. (Hmm, it happens with groff too -- it appears to be some sort of line length bug.) Well, there was a problem with non-escaped dashes. But that was fixed 10 months ago: http://hg.dovecot.org/dovecot-2.2/diff/8a3d0426f514/doc/man/doveadm-move.1.in I'm not sure, if that is the reason for the problem. Which OS, *roff are you using? Maybe I'm able to reproduce the problem. :-) Regards, Pascal -- The trapper recommends today: c01dcafe.1428...@localdomain.org
Re: Compile dovecot with sieve/managesieve support
On 10/13/2014 07:10 PM, Jorge Bastos wrote: Hi guys, I'd like to have dovecot with sieve support, but can't find any information on how to enable the sieve/managesieve support. Does anyone can light me up on this? http://wiki2.dovecot.org/Pigeonhole should provide all the information you need. Regards, Pascal -- The trapper recommends today: defaced.1428...@localdomain.org
Re: doveadm backup/sync are badly documented (SOLVED AND BUG REPORT!)
On 09/29/2014 12:15 AM, Jesus Cea wrote: … $ doveadm backup -h backup: invalid option -- 'h' doveadm backup [-u user|-A] [-S socket_path] [-dfR] [-l secs] [-r rawlog path] [-m mailbox] [-n namespace | -N] [-x exclude] [-s state] dest I can't find any explanation at all about the different parameters of doveadm backup. Please, document. … That's my task. I hope I'll find the time to write the fine manual until this weekend. Regards, Pascal -- The trapper recommends today: beeffeed.1427...@localdomain.org
Re: Tarballs for dovecot 1.2.17 and pigenhole where to find it?
On 08/30/2014 09:28 PM, Benny Pedersen wrote: Just like to have in case i need to rebuild from source on gentoo, since i change mysql from 5.1 to 5.5 slot i think dovecot need rebuilding You will find them on the project's download sites: Download v1.2.17 http://dovecot.org/download.html Download v0.1.19 sources http://pigeonhole.dovecot.org/download.html Note: Dovecot v1.x is obsolete - no longer supported. Regards, Pascal -- The trapper recommends today: c01dcofe.1424...@localdomain.org
Re: centos 6.x/7.x repos ?
On 08/25/2014 12:00 PM, Spyros Tsiolis wrote: Hello all, I believe someone has rpms for centos v6.x/7.x ? I remember a link to a site somewhere ? Are packages available for both i386 and 64-bit os's ?? As mentioned at http://wiki2.dovecot.org/PrebuiltBinaries ATrpms exits and can be used. They are providing http://packages.atrpms.net/name/dovecot/ x86_64 RPMs and SRCRPMs (so you can build your own i686 RPMs). Regards, Pascal -- The trapper recommends today: cafebabe.1423...@localdomain.org
Re: postfix-dovecot Auth USER lookup failed
On 08/09/2014 11:30 AM, Timothy Murphy wrote: I'm running postfix + dovecot on my CentOS-7 home server. When I send myself a message I get this error message in /var/log/maillog: Aug 9 12:59:57 alfred postfix/lmtp[31336]: B0D02220748: to=t...@localhost.gayleard.eu, orig_to=tim@localhost, relay=alfred.gayleard.eu[private/dovecot-lmtp], delay=475, delays=474/0.03/0.02/0.09, dsn=4.3.0, status=deferred (host alfred.gayleard.eu[private/dovecot-lmtp] said: 451 4.3.0 t...@localhost.gayleard.eu Internal error occurred. Refer to server log for more information. (in reply to RCPT TO command)) and in /var/log/dovecot I read Aug 09 13:13:03 auth-worker(31472): Error: passwd(t...@localhost.gayleard.eu): getpwnam() failed: Address family not supported by protocol Aug 09 13:13:03 lmtp(31470): Error: user t...@localhost.gayleard.eu: Auth USER lookup failed It seems that USER is set to t...@localhost.gayleard.eu rather than tim . I am including the line mailbox_transport = lmtp:unix:private/dovecot-lmtp in /etc/postfix/main.cf . your (missing) `doveconf -n` doesn't contain auth_username_format = %Ln. So, edit your conf.d/10-auth.conf and set auth_username_format to %Ln. Regards, Pascal -- The trapper recommends today: cafefeed.1422...@localdomain.org
Re: identify MUA connecting?
On 07/28/2014 05:58 PM, Juan Pablo wrote: Hello I am using dovecot 1.2.15 on ubuntu. UPGRADE! Dovecot 2.x is no longer supported. Is it possible to somehow log the MUA information that is connecting to Dovecot? In the Dovecot v2.0 tree there was the following commit: changeset: 9123:edcafb3efbbf branch: HEAD user:Timo Sirainen t...@iki.fi date:Thu Apr 16 19:14:23 2009 -0400 summary: Added imap_idle_notify_interval setting. Some time later in the v2.1 tree there was fix: changeset: 14197:32ffa616f249 user:Timo Sirainen t...@iki.fi date:Sat Feb 25 07:29:15 2012 +0200 summary: imap-login: imap_id_* settings were ignored pre-login. So, if you would use Dovecot v2.1.x you would be able to log some information about the connected client. BUT not all mail clients are supporting RFC2971 [http://tools.ietf.org/html/rfc2971]. The settings for this feature are configured in conf.d/20-imap.conf: * imap_id_log * imap_id_send The reason I am wanting to do this is I would like to know if people are getting their email on personal devices instead of work secured / standardized phones. That depends on the used software, see above Regards, Pascal -- The trapper recommends today: beeffeed.1420...@localdomain.org
Re: identify MUA connecting?
On 07/28/2014 06:38 PM, Pascal Volk wrote: In the Dovecot v2.0 tree there was the following commit: changeset: 9123:edcafb3efbbf branch: HEAD user:Timo Sirainen t...@iki.fi date:Thu Apr 16 19:14:23 2009 -0400 summary: Added imap_idle_notify_interval setting. … Oops, that was the wrong one. :-) Bad grep-voodoo, sorry. So you will need Dovecot v2.1.1 at least. Regards, Pascal -- The trapper recommends today: beeffeed.1420...@localdomain.org
Re: Dovecot pigeonhole help sought
On 07/27/2014 05:08 PM, Timothy Murphy wrote: I'm running postfix + dovecot + dovecot-pigeonhole on my CentOS-7 home server. I would like spam to finish up in ~/Maildir/.Spam/ . Spam is being marked, but is not separated - it ends up with all the other email in ~/Maildir/cur/ . Evidently there is some step I have omitted to take. I give the output of sudo doveconf -n below. The file ~/.dovecot.sieve reads: -- # Sieve Filter require [fileinto,regex,envelope,vacation]; if header :contains X-Spam-Flag YES { fileinto /home/tim/Maildir/.Spam/; ^^^ } -- Check the example in Dovecot wiki again: http://wiki2.dovecot.org/Pigeonhole/Sieve/Examples#Direct_filtering_using_message_header It uses: fileinto Spam; When I run sudo systemctl restart dovecot I see the line Jul 27 18:54:23 alfred dovecot: master: Dovecot v2.2.10 starting up for imap, pop3, lmtp, sieve (core dumps disabled) in /var/log/maillog You can enable 'mail_debug=yes and Dovecot will log some interesting information, for example about your fileinto /full/path/to/.maildir. Regards, Pascal -- The trapper recommends today: f007ba11.1420...@localdomain.org
Re: ATrpms repo
On 07/15/2014 03:42 AM Will Yardley wrote: Tried mailing the maintainer, but didn't get a response -- anyone know what's happened to the ATrpms repo? dunno :) Not only is http://atrpms.net/name/dovecot/ empty, but: http://packages.atrpms.net/dist/el6/ seems to return a 404. Some of the mirrors still have the packages, but does anyone know if they're going to continue to build 2.2.x packages? There are some mirrors: http://atrpms.net/documentation/mirrors/ Regards, Pascal -- The trapper recommends today: f007ba11.1419...@localdomain.org
Re: [Dovecot] imap-login killed with signal 11 in Dovecot 2.2.13 (feea8645c4d7)
On 06/07/2014 10:15 AM Thomas Leuxner wrote: Latest 2.2.13 HG feea8645c4d7 seems to unexpectedly kill imap-login sessions: Jun 7 11:56:10 nihlus dovecot: imap(t...@leuxner.net): Disconnected: Logged out in=2203 out=851225 Jun 7 11:56:10 nihlus dovecot: imap(t...@leuxner.net): Disconnected: Logged out in=316 out=2417 Jun 7 11:56:10 nihlus dovecot: imap-login: Fatal: master: service(imap-login): child 60505 killed with signal 11 (core not dumped - add -D parameter to service imap-login { executable } Jun 7 11:56:10 nihlus dovecot: imap-login: Fatal: master: service(imap-login): child 60595 killed with signal 11 (core not dumped - add -D parameter to service imap-login { executable } Adding the -D parameter does not generate a core dump however... Hi Thomas, either add ulimit -c unlimited to your init script http://hg.dovecot.org/dovecot-2.2/file/tip/doc/dovecot-initd.sh#l19 or start Dovecot directly from your shell: ulimit -c unlimited dovecot [-c /path/2/dovecot.conf] That should make Dovecot dumping core files. Regards, Pascal -- The trapper recommends today: c01dcafe.1415...@localdomain.org
Re: [Dovecot] dovecot: lda(foo): Error: User foo doesn't have home dir set, disabling duplicate database
On 05/31/2014 03:04 PM Christian Hoffmann wrote: Hello everyone, I have a small problem with dovecot installed on ubuntu-13.10. I use dovcot as LDA with a LDAP-passdb and a pam-passdb. The userdb is static. A mail to LDAP-user 'foo' is delivered with the error-message dovecot: lda(foo): Error: User foo doesn't have home dir set, disabling duplicate database Your LDAP based userdb doesn't return the home directory for user foo. The LDAP lookup should return the home directory. See http://wiki2.dovecot.org/UserDatabase And even for virtual users you should have a home directory for each virtual user. See http://wiki2.dovecot.org/VirtualUsers/Home A mail to the pam-user 'bar' will deliverd without this error. But both users should work with the static-userdb. Where is my mistake? Because the userdb returns the home directory of the system user bar. Regards, Pascal -- The trapper recommends today: c01dcofe.1415...@localdomain.org
Re: [Dovecot] dovecot: lda(foo): Error: User foo doesn't have home dir set, disabling duplicate database
On 05/31/2014 05:35 PM Christian Hoffmann wrote: Hello Pascal, but I didn't configure a userdb with driver=ldap. There is only one userdb with driver=static and I assumed, that every user gets the same uid, gid and a valid home directory. Are there some circumstances, that different passdb-drivers treated in special relation to userdb-drivers? Like, one have to configure a userdb-driver=ldap if one uses a passdb-driver=ldap. But the passdb-driver=pam looks into userdb-driver=static. That is the part, I do not understand. [*ToFu*] What is the output of commands `doveadm user -f home foo` and `doveadm user -f home bar`? Regards, Pascal -- The trapper recommends today: c01dcofe.1415...@localdomain.org
Re: [Dovecot] Pigeonhole Sieve Extprograms dovecot path?
On 03/10/2014 09:49 AM voy...@sbt.net.au wrote: … # ./configure --with-dovecot=/usr/local/lib/dovecot ... checking whether to build static libraries... yes checking for dovecot-config in /usr/local/lib/dovecot... not found configure: configure: Use --with-dovecot=DIR to provide the path to the dovecot-config file. configure: error: dovecot-config not found … # dovecot --version 2.1.17 # uname -a Linux 2.6.32-431.5.1.el6.x86_64 #1 SMP Wed Feb 12 00:41:43 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux Did you compile Dovecot from source? Then the dovecot-config file will be located in the top source directory of Dovecot. Otherwise install the matching dovecot-devel RPM. Then you'll find dovecot-config in /usr/lib/dovecot. Regards, Pascal -- The trapper recommends today: f007ba11.1406...@localdomain.org
Re: [Dovecot] v2.2.11 released
On 02/12/2014 02:27 PM Avinash Sultanpur wrote: On Wed, Feb 12, 2014 at 08:41:19AM +0900, Timo Sirainen wrote: … mailbox patterns. See http://wiki2.dovecot.org/ACL for details. The page is empty. Wow, that looks like the result of a horrible sync error. But you can also use the master: http://master.wiki2.dovecot.org/ACL Regards, Pascal -- The trapper recommends today: cafefeed.1404...@localdomain.org
Re: [Dovecot] passphrases
On 01/24/2014 05:02 PM Benjamin Connelly wrote: Is there any way to configure the dovecot-sql.conf.ext connect = line to use a password= string that contains spaces? (I've tried single quotes, double quotes, escaping the space with backslash. . .) The wiki http://wiki2.dovecot.org/AuthDatabase/SQL#MySQL mentions passwords containing '#'. Maybe that works also for passwords that contains spaces. (I didn't test it.) Regards, Pascal -- The trapper recommends today: face1e55.1402...@localdomain.org
Re: [Dovecot] SSL/TLS handshake stays forever without timeout
On 01/14/2014 04:42 PM morrison wrote: Hi, I am a system admin and I am evaluating using dovecot as our email server. In my test, I found that if I telneted to 993 port and did not do anything or I telneted to 143 port, sent starttls command and then did not do anything, the connection stayed forever without timeout. This will make our mail server vulnerable to DOS attack. I dig into dovecot Wiki and did not find any solution. This seems to me that dovecot does not handle SSL/TLS handshake timeout. I am wondering if this is a known issue and will be fixed in near future. Thanks, Please define 'forever' I just did `time openssl s_client -connect mail.example.com:143 -starttls imap` (and nothing else): CONNECTED(0003) depth=0 CN = mail.… … . OK Pre-login capabilities listed, post-login capabilities have more. * BYE Disconnected for inactivity. closed real3m0.377s user0m0.016s sys 0m0.000s As you can see, Dovecot closed the connection after three minutes. Regards, Pascal -- The trapper recommends today: fabaceae.1401...@localdomain.org
Re: [Dovecot] Couldn't drop privileges
On 01/13/2014 11:22 AM CM Reddy wrote: … 2. Failed to Login command with an error. … Lenovo-G500s:~$ doveconf -n # 2.2.10: /usr/local/etc/dovecot/dovecot.conf # OS: Linux 3.8.0-29-generic x86_64 Ubuntu 12.04.3 LTS … passdb { args = scheme=CRYPT username_format=%u /etc/dovecot/users driver = passwd-file } ssl_cert = /etc/ssl/certs/dovecot.pem ssl_key = /etc/ssl/private/dovecot.pem userdb { args = username_format=%u /etc/dovecot/users driver = passwd-file } … Jan 13 16:42:44 cmreddy-Lenovo-G500s dovecot: imap(armor5): Error: user armor5: Couldn't drop privileges: User is missing GID (see mail_gid setting) - ^^^ - You userdb seems to be incomplete. ,--[ http://wiki2.dovecot.org/UserDatabase ]-- | … | The user database lookup returns these fields: | | * uid … | * gid … | * home … | * mail … | … `-- See the last example in http://wiki2.dovecot.org/AuthDatabase/PasswdFile. The password line for user armor5 would be: armor5:{plain}abc123:1001:1001::/home/armor5 `mail' can be left blank, since you've configured mail_location. Regards, Pascal -- The trapper recommends today: face1e55.1401...@localdomain.org
Re: [Dovecot] disable_plaintext_auth = yes not showing in doveconf -n output?
On 01/03/2014 08:58 PM Charles Marcus wrote: On 2014-01-03 3:54 PM, Larry Rosenman larry...@gmail.com wrote: IIRC doveconf -n shows NON-DEFAULT settings :) This I know, but doveconf -n was inspired by postfix's postconf -n feature, and with postfix, if I explicitly set something that is set the same way by default, it still shows up in -n output. It makes it easy to 'clean up' your configs (ie, unset settings that don't need to be explicitly set because they are defaults)... I think this may be an oversight in Timo's implementation... ? It works as documented: ,--[ doveconf(1) ]-- |-n Show only settings with non-default values. | |-N Show settings with non-default values and explicitly set default | values. `-- Regards, Pascal -- The trapper recommends today: defaced.1400...@localdomain.org
Re: [Dovecot] Ubuntu packages and broken link in docs
On 12/04/2013 02:35 PM Alan McGinlay - SICS wrote: Hi, Two things: 1. Does anyone know of a good PPA with updated packages of Dovecot for Ubuntu? For the latest Dovecot for latest Ubuntu LTS see Xiaoka APT Repository. (Outdated. Could someone provide a ppa for latest stable Dovecot, please?) I don't know how 'stable' PPAs are. There is a list of Dovecot PPAs: https://launchpad.net/ubuntu/+ppas?name_filter=dovecot You may also try Stephan's auto builds: http://wiki2.dovecot.org/PrebuiltBinaries#Automatically_Built_Packages 2. On the http://wiki2.dovecot.org/PrebuiltBinaries#Ubuntu page there is a link to a supposedly outdated PPA, the ppa page now redirects to an ad for the guys services so should probably be removed. Thanks for the info. I've removed the outdated link. Regards, Pascal -- The trapper recommends today: 5e1f1e55.1333...@localdomain.org
Re: [Dovecot] Gettings mails recently moved to a folder
On 12/03/2013 10:40 AM Florian Lindner wrote: Actually there isn't a protocol imap {} section. Or am I missing something? Thanks, Florian # doveconf -n # 2.1.7: /etc/dovecot/dovecot.conf # OS: Linux 3.2.0-4-amd64 x86_64 Debian 7.2 auth_mechanisms = plain login digest-md5 cram-md5 ntlm namespace inbox { inbox = yes location = mailbox Drafts { auto = create special_use = \Drafts } mailbox Junk { auto = create special_use = \Junk } mailbox Sent { auto = create special_use = \Sent } mailbox Sent Messages { special_use = \Sent } mailbox Spam { special_use = \Junk } mailbox Trash { auto = create special_use = \Trash } prefix = } passdb { args = /etc/dovecot/dovecot-sql.conf.ext driver = sql } protocols = imap pop3 service auth { unix_listener /var/spool/postfix/private/auth { group = postfix mode = 0660 user = postfix } } ssl_cert = /etc/ssl/astarte.centershock.net.cert ssl_key = /etc/ssl/astarte.centershock.net.key userdb { driver = prefetch } userdb { args = /etc/dovecot/dovecot-sql.conf.ext driver = sql } Let me repeat myself: Set a mail_location http://dovecot.org/list/dovecot/2013-November/093607.html Regards, Pascal -- The trapper recommends today: f007ba11.1333...@localdomain.org
Re: [Dovecot] Calling dovecot-lda from maildrop/shell
On 11/18/2013 05:14 PM Florian Lindner wrote: # doveconf -n # 2.1.7: /etc/dovecot/dovecot.conf # OS: Linux 3.2.0-4-amd64 x86_64 Debian 7.2 auth_mechanisms = plain login digest-md5 cram-md5 ntlm … passdb { args = /etc/dovecot/dovecot-sql.conf.ext driver = sql } protocols = imap pop3 … userdb { driver = prefetch } userdb { args = /etc/dovecot/dovecot-sql.conf.ext driver = sql } # doveadm user flindner userdb lookup: user flindner doesn't exist flindner is my linux system user. There are virtual user, e.g In your log excerpt I've seen '/home/flindner/…', so I thought there could be the user flindner. # doveadm user s...@xgm.de userdb: s...@xgm.de home : /home/flindner/Mail/spam uid : 1001 gid : 1001 /home/flindner/Mail/spam is the home and maildir of virtual user. That could cause several problems. For example that problem you've reported. The simplest solution would be setting mail_location=~maildir:~/Maildir in /etc/dovecot/conf.d/10-mail.conf. With this configuration Dovecot will use /home/flindner/Mail/spam/Maildir as mail location for user s...@xgm.de. My mail system is built like that: postfix delivers all mail of a domain to maildrop using a system user which have this domain assigned. maildrop does the final delivery. There is no 1:1 mapping of mail adresses to maildirs. postfix @xgm.de - maildrop flindner - maildrop - maildir - dovecot IMAP this should become: postfix @xgm.de - maildrop flindner - maildrop - dovecot-lda - maildir - dovecot IMAP so that I can also use sieve for filtering. When using Sieve it's also strongly recommended to have $home != $mail. With the settings from above you could use 'default' settings for Sieve, e.g.: # 15-lda.conf protocol lda { mail_plugins = $mail_plugins sieve } # 20-lmtp.conf protocol lmtp { mail_plugins = $mail_plugins sieve } # 90-sieve.conf plugin { recipient_delimiter = + sieve = ~/.dovecot.sieve sieve_dir = ~/sieve } Then the file /home/flindner/Mail/spam/.dovecot.sieve would contain the Sieve rules for user s...@xgm.de. See also: http://wiki2.dovecot.org/VirtualUsers/Home Regards, Pascal -- The trapper recommends today: beeffeed.1332...@localdomain.org
Re: [Dovecot] Calling dovecot-lda from maildrop/shell
On 11/18/2013 11:08 AM Florian Lindner wrote: … First try was to call dovecot-lda from command line: /usr/lib/dovecot/dovecot-lda -d s...@xgm.de testmail which gave return code 75 (EX_TEMPFAIL) and logged: dovecot: auth-worker(3533): mysql(localhost): Connected to database system dovecot: lda(s...@xgm.de): Error: user s...@xgm.de: Initialization failed: Namespace '': Mail storage autodetection failed with home=/home/flindner/Mail/spam dovecot: lda(s...@xgm.de): Fatal: Invalid user settings. Refer to server log for more information. My userdb/password is like that home == maildir == /home/flindner/Mail/spam (without prefixed maildir:). It works fine for dovecot-imap, it detects that spam is a maildir. I've also tried prefixing home and or maildir with maildir: or calling: HOME=maildir:~/Mail/spam /usr/lib/dovecot/dovecot-lda testmail which gave: dovecot: lda: Error: user flindner: Relative home directory paths not supported: maildir:/home/flindner/Mail/spam dovecot: lda: Fatal: Invalid user settings. Refer to server log for more information. What is the problem with the LDA here? Please provide the output from `doveconf -n` and `doveadm user flindner`. Regards, Pascal -- The trapper recommends today: decade.1332...@localdomain.org
Re: [Dovecot] Dovecot login slow
On 11/13/2013 11:01 PM Muzaffer Tolga Ozses wrote: ssl_ca = /usr/share/ssl/certs/rapidssl.crt ssl_cert = /usr/share/ssl/certs/imapd.pem ssl_key = /usr/share/ssl/certs/imapd.pem These lines look weird to me. Why do they have a ? Because Marc uses Dovecot = v2.0.0 Regards, Pascal -- The trapper recommends today: c01dcofe.1331...@localdomain.org
Re: [Dovecot] Dovecot login slow
On 11/13/2013 11:17 PM Marc Perkel wrote: More information When i telnet to localhost on 143 it takes 10-15 seconds to log in. but When I telnet to the host name of the server it logs in instantly. Why would it be slow on localhost by fast on the server's IP address? Sounds like a DNS lookup problem. Did you list all related ip addresses in /etc/hosts? Regards, Pascal -- The trapper recommends today: c01dcofe.1331...@localdomain.org
Re: [Dovecot] how to display dovecot.index.cache
On 11/06/2013 07:23 AM ldaamandy wrote: hello dovecot@dovecot.org: I want to see the contents of dovecot.index.cache . Is there any command can make it become visible character displayed ? strings(1); for example: strings mdbox/mailboxes/INBOX/dbox-Mails/dovecot.index.cache For details see: http://wiki2.dovecot.org/IndexFiles#Cache_file the command idxview can displayed doveoct.index and logview can dispalyed dovecot.index.log but it seems no command to displays dovecot.index.cache for us. Using idxview and logview indicates the you are using Dovecot v1.x. You should consider to update to a more recent AND better supported version. Regards, Pascal -- The trapper recommends today: c01dcofe.1331...@localdomain.org
Re: [Dovecot] init script as provided http://wiki2.dovecot.org/DovecotInit
On 10/31/2013 11:19 AM Jess Portnoy wrote: Hello list, I would add: # dovecotStartup script for the dovecot server # # chkconfig: - # processname: dovecot # config: /path/to/config # pidfile: /path/to/pid So that it supports the chkconfig used by RHEL and clones too. Also, maybe it should be installed by the Makefile's install target? it could then also set: DAEMON=/path/to/dovecot/daemon instead of: DAEMON=/usr/local/sbin/dovecot Cause naturally, it will know the prefix chosen. May the source be with you, Jess Portnoy The comments between ### BEGIN INIT INFO and ### END INIT INFO are comments as defined in Comment Conventions for Init Scripts¹. Therefore each LSB compliant Linux distributions should know how to handle those comments. The keywords you've mentioned are not defined in the specification. I think it would be the distribution's job to add local extensions (see specification). Also the comments are ignored by other operation systems, e.g. *BSD or Solaris. Reason, why the Makefile shouldn't install the init script: - there could be a /etc/init.d/dovecot from a package - the init script (copied from doc/dovecot-initd.sh) could contain local modifications Regards, Pascal -- 1 = http://refspecs.linuxfoundation.org/LSB_4.0.0/LSB-Core-generic/LSB-Core-generic/initscrcomconv.html -- The trapper recommends today: fabaceae.1330...@localdomain.org
Re: [Dovecot] Configuring SPECIAL-USE Dovecot 2.0.9
On 10/30/2013 06:35 PM Keith Mountifield wrote: Hi All, I'm trying to configure Dovecot 2.0.9 to support Outlook 2013. As I understand it, I need to configure XLIST. I have added imap_capability = +XLIST to 20-imap.conf When I try to query the IMAP folders I get an error An IMAP command Failed. Looking at the logs I get XLIST Command not found. I can only assume that I'm missing something in the configuration. Any help would be greatly appreciated Simple solution: Update to a newer version. XLIST was added in Dovecot v2.1.x on Mar 21 2012: http://hg.dovecot.org/dovecot-2.1/rev/03499202690f Dovecot v2.1.4 has been released on 2012-04-09. Regards, Pascal -- The trapper recommends today: c01dcafe.1330...@localdomain.org
Re: [Dovecot] Building the Antispam plugin fails
On 10/29/2013 03:48 PM Michael Neurohr wrote: … I'm running Dovecot 2.2.5 on a CentOS 6.4 server from the ATRPMs repository. … … configure: Use --with-dovecot=DIR to provide the path to the dovecot-config file. configure: error: dovecot-config not found ^^ So I downloaded the dovecot-devel package and run the configure command again with the following command: ./configure --with-dovecot=/usr/include/dovecot but with the same result. I made sure the the directory /usr/include/dovecot does contain the Dovecot header files. Yeah, dovecot-devel-2.2.5-….rpm installs some headers into /usr/include/dovecot. BUT: The error message says: error: dovecot-config not found The file dovecot-config is installed under /usr/lib/dovecot. So use: ./configure --with-dovecot=/usr/lib/dovecot HTH Pascal -- The trapper recommends today: defaced.1330...@localdomain.org
Re: [Dovecot] Where's Dovecot's ports?
On 09/12/2013 03:19 AM Mohsen Pahlevanzadeh wrote: Dear all, I installed dovecot dovecoot-mysql postfix and postfix-mysql from debian repository 7. I start them with /etc/init.d/postfix start and /etc/init.d/dovecot start but When i use nmap localhost I see the following output: root@sito:/etc/dovecot# nmap localhost Starting Nmap 6.00 ( http://nmap.org ) at 2013-09-12 07:35 IRDT Nmap scan report for localhost (127.0.0.1) Host is up (0.030s latency). Other addresses for localhost (not scanned): 127.0.0.1 Not shown: 993 closed ports PORT STATE SERVICE 21/tcp open ftp 22/tcp open ssh 25/tcp open smtp 80/tcp open http 111/tcp open rpcbind 3128/tcp open squid-http 3306/tcp open mysql My Question is , Where's dovecot ? i don't see its' ports If you want to use/serve … imap/imaps: install dovecot-imapd pop3/pop3s: install dovecot-pop3d lmtp: install dovecot-lmtpd sieve: install dovecot-managesieved Regards, Pascal -- The trapper recommends today: defaced.1325...@localdomain.org
Re: [Dovecot] Default mail folders.
On 09/09/2013 11:56 PM Bruce Markey wrote: Just want to make sure before I set this up. I read that the autocreate plugin is deprecated and to use Mailbox settings as listed here http://wiki2.dovecot.org/MailboxSettings. If that is correct then do I just add those mailbox blocks in /etc/dovecot/conf.d/10-mail.conf? Lastly, will sent items auto populate with sent items or is there something else that needs to be done. … As mentioned by Steffen, you could create your own/additionally .conf files. You may also have a look at http://hg.dovecot.org/dovecot-2.2/file/tip/doc/example-config/conf.d/15-mailboxes.conf It shows also an example for the 'sent' mailbox. Regards, Pascal -- The trapper recommends today: decade.1325...@localdomain.org
Re: [Dovecot] Dovecot LDA
On 08/24/2013 02:12 AM LuKreme wrote: OK, I did read http://wiki2.dovecot.org/LDA but it doesn't answer the question I have since it doesn't tell me what I can do with -o, exactly. -o is used to override settings, as documented in dovecot-lda(1)/http://wiki2.dovecot.org/Tools/DovecotLDA What I would like to do is be able to call dovecot-lda and pass along '\\Seen', is that possible? That requires Sieve, see http://wiki2.dovecot.org/Pigeonhole/Sieve/Examples#line-59 for an example. Regards, Pascal -- The trapper recommends today: cafebabe.1323...@localdomain.org
Re: [Dovecot] Please HELP: how to delete all messages older than X days from the server?
On 08/06/2013 06:31 PM Răzvan Sandu wrote: … Implementing filesystem quotas is not an option because a. presently, all virtual users share same UID/GID on the server and b. administrative reasons (the full quota situation may occur unexpectedly and this is not tolerable in corporate policy). Use Dovecot's quota plugin - which supports different backends. Each user may have a different quota limit. * http://wiki2.dovecot.org/Quota So I need EITHER: 1. a method of downloading locally *all* messages from the server (incoming, sent, trash, drafts, etc.) to the workstation, when the user consults his/her mailbox from a POP3 desktop client, thus completely *emptying* the user's mailbox on the server Usually only the INBOX is visible via POP3 … OR 2. an automatic, elegant but forceful method of deleting all messages older than X days (incoming, sent, trash, drafts, etc.) There is the expire plugin for Dovecot. * http://wiki2.dovecot.org/Plugins/Expire I've tried to use a line such as: doveadm expunge -u john@example.com before 4w run as root, from a script in crontab, but for expunge doveadm won't let me skip the -u parameter (to perform the expunge for *all* users). Could you please help? Any sugestion is welcomed. There is also the -A option, see http://wiki2.dovecot.org/Tools/Doveadm/Expunge#section_options Regards, Pascal -- The trapper recommends today: cafebabe.1321...@localdomain.org
Re: [Dovecot] lmtp: Disable Delivered-To header
On 07/02/2013 04:14 PM Micha Krause wrote: Hi, using LMTP, is it possible to disable the addition of the Delivered-To header to messages? Maybe by reverting parts of this changeset: http://hg.dovecot.org/dovecot-2.2/rev/61c3124bba93 There is no configuration setting to accomplish that. Regards, Pascal -- The trapper recommends today: c01dcofe.1318...@localdomain.org
Re: [Dovecot] Pound Sign # in password
On 06/19/2013 04:11 AM Jackie Lowery wrote: Is there any way to use a pound sign # in my postfix user password in the dovecot sql configuration file. ,--[ http://wiki2.dovecot.org/AuthDatabase/SQL#MySQL ]-- | Use host= ... pass=foo#bar if your password has '#' character `-- Regards, Pascal -- The trapper recommends today: deadbeef.1317...@localdomain.org
Re: [Dovecot] dovecot not logging after upgrade to 2.1.7 on debian
On 05/09/2013 02:02 PM Steinar Bang wrote: After upgrading my IMAP server to the new debian stable, and upgrading dovecot from 1.x to 2.1.7 in the process, dovecot no longer logs anything to /var/log/mail.*. The last entries there are from before the upgrade, and no starts or error messages or failed login attempts, since then, have been logged. Did you read /usr/share/doc/dovecot-core/{NEWS,README}.Debian.gz? Does anyone know what might cause this? doveconf -n doesn't mention any of the log settings. Maybe the log settings aren't picked up? What could be done to make sure they are picked up? ,--[ doveconf(1) ]-- | OPTIONS | -n Show only settings with non-default values. `-- Here's the content of the /etc/dovecot/conf.d/10-logging.conf file: … Please don't copy and paste stuff from files in Dovecot's configuration directory. Always provide the output generated by `doveconf -n`. ,--[ doveadm-log(1) ]-- | COMMANDS |log find |doveadm log find [directory] | |The log find command is used to show the location of the log files, to which dovecot(1) sends its log messages. If dovecot(1) logs its messages through syslogd(8) and doveadm(1) could not find any |log files, you can specify the directory where your syslogd writes its log files. `-- Regards, Pascal -- The trapper recommends today: c01dcofe.1312...@localdomain.org
[Dovecot] imap Panic: file istream-seekable.c: line 253 (i_stream_seekable_read): assertion failed: (stream-istream.v_offset + stream-pos = sstream-write_peak)
Hi Timo, just another crash - using 2.2.1 (c95cea6e1389). Regards, Pascal Reading symbols from /usr/local/libexec/dovecot/imap...done. [New LWP 15198] warning: Can't read pathname for load map: Input/output error. [Thread debugging using libthread_db enabled] Using host libthread_db library /lib/x86_64-linux-gnu/libthread_db.so.1. Core was generated by `dovecot/imap'. Program terminated with signal 6, Aborted. #0 0x7fea0d3a0475 in *__GI_raise (sig=optimized out) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64 64 ../nptl/sysdeps/unix/sysv/linux/raise.c: No such file or directory. Already logging to gdb.txt. #0 0x7fea0d3a0475 in *__GI_raise (sig=optimized out) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64 pid = optimized out selftid = optimized out #1 0x7fea0d3a36f0 in *__GI_abort () at abort.c:92 act = {__sigaction_handler = {sa_handler = 0x7fff5fba6bd0, sa_sigaction = 0x7fff5fba6bd0}, sa_mask = {__val = {140643224991072, 140643224986893, 140734799440880, 140643225264237, 140643227545232, 140643220802464, 140643233288192, 140643228326759, 4294967295, 206158430224, 1, 3048496, 0, 0, 0, 140643224485888}}, sa_flags = 232077810, sa_restorer = 0x5d6139330001} sigs = {__val = {32, 0 repeats 15 times}} #2 0x7fea0d772231 in default_fatal_finish (type=LOG_TYPE_PANIC, status=0) at failures.c:191 backtrace = 0xca4020 /usr/local/lib/dovecot/libdovecot.so.0(+0x7a20a) [0x7fea0d77220a] - /usr/local/lib/dovecot/libdovecot.so.0(+0x7b535) [0x7fea0d773535] - /usr/local/lib/dovecot/libdovecot.so.0(i_fatal+0) [0x7fea0d772... #3 0x7fea0d773535 in i_internal_fatal_handler (ctx=0x7fff5fba6d70, format=0x7fea0d7b83a0 file %s: line %d (%s): assertion failed: (%s), args=0x7fff5fba6d58) at failures.c:652 status = 0 #4 0x7fea0d77250d in i_panic (format=0x7fea0d7b83a0 file %s: line %d (%s): assertion failed: (%s)) at failures.c:263 ctx = {type = LOG_TYPE_PANIC, exit_status = 0, timestamp = 0x0} args = {{gp_offset = 40, fp_offset = 48, overflow_arg_area = 0x7fff5fba6e40, reg_save_area = 0x7fff5fba6d80}} #5 0x7fea0d786bb8 in i_stream_seekable_read (stream=0xd658a0) at istream-seekable.c:253 sstream = 0xd658a0 data = 0x7fff5fba6ea0 \320n\272_\377\177 size = 14047392 pos = 27457 ret = 139638205298784 __FUNCTION__ = i_stream_seekable_read #6 0x7fea0d77e866 in i_stream_read (stream=0xd65900) at istream.c:149 _stream = 0xd658a0 old_size = 0 ret = 140643225038704 __FUNCTION__ = i_stream_read #7 0x7fea0d784c6f in i_stream_limit_read (stream=0xd39d00) at istream-limit.c:50 lstream = 0xd39d00 left = 140643225038704 ret = 14047488 pos = 0 __FUNCTION__ = i_stream_limit_read #8 0x7fea0d77e866 in i_stream_read (stream=0xd39d60) at istream.c:149 _stream = 0xd39d00 old_size = 0 ret = 13868288 __FUNCTION__ = i_stream_read #9 0x7fea0d77ebf9 in i_stream_read_copy_from_parent (istream=0xd39f00) at istream.c:193 stream = 0xd39ea0 pos = 0 ret = 13868288 __FUNCTION__ = i_stream_read_copy_from_parent #10 0x7fea0daa1b67 in i_stream_mail_read (stream=0xd39ea0) at istream-mail.c:67 mstream = 0xd39ea0 size = 13868384 ret = 13254133 #11 0x7fea0d77e866 in i_stream_read (stream=0xd39f00) at istream.c:149 _stream = 0xd39ea0 old_size = 0 ret = 140643221218978 __FUNCTION__ = i_stream_read #12 0x7fea0d782fc9 in i_stream_crlf_read_common (cstream=0xd5e440) at istream-crlf.c:22 stream = 0xd5e440 size = 0 avail = 13254247 ret = 0 __FUNCTION__ = i_stream_crlf_read_common #13 0x7fea0d7830d1 in i_stream_crlf_read_crlf (stream=0xd5e440) at istream-crlf.c:46 cstream = 0xd5e440 data = 0xd39ea0 \002 ptr = 0xd39ea0 \002 src = 0x7fff Address 0x7fff out of bounds src_end = 0xd39f00 Ak dest = 0xd39f00 Ak dest_end = 0x0 size = 0 copy_len = 27457 ret = 140734799442160 __FUNCTION__ = i_stream_crlf_read_crlf #14 0x7fea0d77e866 in i_stream_read (stream=0xd5e4a0) at istream.c:149 _stream = 0xd5e440 old_size = 0 ret = 140643225038704 __FUNCTION__ = i_stream_read #15 0x7fea0d784c6f in i_stream_limit_read (stream=0xd5e5e0) at istream-limit.c:50 lstream = 0xd5e5e0 left = 140643225038704 ret = 14017696 pos = 0 __FUNCTION__ = i_stream_limit_read #16 0x7fea0d77e866 in i_stream_read (stream=0xd5e640) at istream.c:149 _stream = 0xd5e5e0 old_size = 0 ret = -6697839139754035552 __FUNCTION__ = i_stream_read #17 0x7fea0d77f75b in i_stream_read_data (stream=0xd5e640, data_r=0x7fff5fba7258, size_r=0x7fff5fba7268, threshold=8191) at
Re: [Dovecot] imap Fatal: bzlib.read(~/mdbox/storage/m.317): Out of memory
On 04/17/2013 11:58 AM Pascal Volk wrote: Apr 17 10:41:44 imap(u...@example.com): Fatal: bzlib.read(/srv/mail/x/70004/70038/mdbox/storage/m.317): Out of memory Yeah, http://hg.dovecot.org/dovecot-2.2/rev/994488139eca fixed it. Regards, Pascal -- The trapper recommends today: defaced.1311...@localdomain.org
[Dovecot] imap Fatal: bzlib.read(~/mdbox/storage/m.317): Out of memory
Hi Timo, today I found a raw backtrace after the bzlib.read() out of memory message. Regards, Pascal Apr 17 10:41:44 imap(u...@example.com): Fatal: bzlib.read(/srv/mail/x/70004/70038/mdbox/storage/m.317): Out of memory Apr 17 10:41:44 imap(u...@example.com): Error: Raw backtrace: /usr/local/lib/dovecot/libdovecot.so.0(+0x7a1b6) [0x7ff6837791b6] - /usr/local/lib/dovecot/libdovecot.so.0(+0x7b4e1) [0x7ff68377a4e1] - /usr/local/lib/dovecot/libdovecot.so.0(i_error+0) [0x7ff683779662] - /usr/local/lib/dovecot/lib20_zlib_plugin.so(+0x4ef4) [0x7ff682731ef4] - /usr/local/lib/dovecot/libdovecot.so.0(i_stream_read+0xc9) [0x7ff683785812] - /usr/local/lib/dovecot/libdovecot.so.0(i_stream_read_copy_from_parent+0xa4) [0x7ff683785ba5] - /usr/local/lib/dovecot/libdovecot-storage.so.0(+0xbba73) [0x7ff683aa8a73] - /usr/local/lib/dovecot/libdovecot.so.0(i_stream_read+0xc9) [0x7ff683785812] - /usr/local/lib/dovecot/libdovecot.so.0(i_stream_read_data+0x61) [0x7ff683786707] - /usr/local/lib/dovecot/libdovecot.so.0(message_parse_header_next+0x109) [0x7ff683766b44] - /usr/local/lib/dovecot/libdovecot.so.0(message_parse_header+0x5e) [0x7ff6837678de] - /usr/local/lib/dovecot/libdovecot-storage.so.0(+0xc838f) [0x7ff683ab538f] - /usr/local/lib/dovecot/libdovecot-storage.so.0(+0xc9a2a) [0x7ff683ab6a2a] - /usr/local/lib/dovecot/libdovecot-storage.so.0(+0xc9c6a) [0x7ff683ab6c6a] - /usr/local/lib/dovecot/libdovecot-storage.so.0(+0xca206) [0x7ff683ab7206] - /usr/local/lib/dovecot/libdovecot-storage.so.0(+0xca4c2) [0x7ff683ab74c2] - /usr/local/lib/dovecot/libdovecot-storage.so.0(+0xca7f7) [0x7ff683ab77f7] - /usr/local/lib/dovecot/libdovecot-storage.so.0(index_storage_search_next_nonblock+0x43) [0x7ff683ab784e] - /usr/local/lib/dovecot/lib90_stats_plugin.so(+0x3753) [0x7ff681efc753] - /usr/local/lib/dovecot/libdovecot-storage.so.0(mailbox_search_next_nonblock+0x49) [0x7ff683a857e2] - dovecot/imap [u...@example.com 192.0.96.113 UID SEARCH]() [0x421883] - dovecot/imap [u...@example.com 192.0.96.113 UID SEARCH]() [0x421bdf] - /usr/local/lib/dovecot/libdovecot.so.0(+0x914ba) [0x7ff6837904ba] - /usr/local/lib/dovecot/libdovecot.so.0(io_loop_handle_timeouts+0x20) [0x7ff683790541] - /usr/local/lib/dovecot/libdovecot.so.0(io_loop_handler_run+0xeb) [0x7ff68379210d] - /usr/local/lib/dovecot/libdovecot.so.0(io_loop_run+0x5e) [0x7ff683790644] - /usr/local/lib/dovecot/libdovecot.so.0(master_service_run+0x2e) [0x7ff68372809e] - dovecot/imap [u...@example.com 192.0.96.113 UID SEARCH](main+0x2af) [0x4264a0]
Re: [Dovecot] imap Panic: file index-attachment.c: line 231 (index_attachment_save_finish): assertion failed: (attach-input-eof)
On 04/15/2013 11:33 PM Pascal Volk wrote: OK, applied that patch. Lets see what will happen. Looks good. No crash in the last 20 hours. Regards, Pascal -- The trapper recommends today: cafefeed.1310...@localdomain.org
[Dovecot] imap Panic: file index-attachment.c: line 231 (index_attachment_save_finish): assertion failed: (attach-input-eof)
Hi Timo, some imap processes seems to have some problems. Regards, Pascal Core was generated by `dovecot/imap'. Program terminated with signal 6, Aborted. #0 0x7fbf87b25475 in raise () from /lib/x86_64-linux-gnu/libc.so.6 (gdb) bt full #0 0x7fbf87b25475 in raise () from /lib/x86_64-linux-gnu/libc.so.6 No symbol table info available. #1 0x7fbf87b286f0 in abort () from /lib/x86_64-linux-gnu/libc.so.6 No symbol table info available. #2 0x7fbf87ef71c9 in default_fatal_finish (type=LOG_TYPE_PANIC, status=0) at failures.c:191 backtrace = 0x194bf58 /usr/local/lib/dovecot/libdovecot.so.0(+0x7a1a2) [0x7fbf87ef71a2] - /usr/local/lib/dovecot/libdovecot.so.0(+0x7b4cd) [0x7fbf87ef84cd] - /usr/local/lib/dovecot/libdovecot.so.0(i_fatal+0) [0x7fbf87ef7... #3 0x7fbf87ef84cd in i_internal_fatal_handler (ctx=0x7fffb895a7b0, format=0x7fbf8828f4c0 file %s: line %d (%s): assertion failed: (%s), args=0x7fffb895a798) at failures.c:652 status = 0 #4 0x7fbf87ef74a5 in i_panic (format=0x7fbf8828f4c0 file %s: line %d (%s): assertion failed: (%s)) at failures.c:263 ctx = {type = LOG_TYPE_PANIC, exit_status = 0, timestamp = 0x0} args = {{gp_offset = 40, fp_offset = 48, overflow_arg_area = 0x7fffb895a880, reg_save_area = 0x7fffb895a7c0}} #5 0x7fbf8822776e in index_attachment_save_finish (ctx=0x19ed140) at index-attachment.c:231 attach = 0x1a0d870 __FUNCTION__ = index_attachment_save_finish #6 0x7fbf881b3ab0 in dbox_save_end (ctx=0x19ed140) at dbox-save.c:106 mdata = 0x19ed150 dbox_output = 0x1a07008 __FUNCTION__ = dbox_save_end #7 0x7fbf881aadf7 in mdbox_save_finish_write (_ctx=0x19ed140) at mdbox-save.c:198 ctx = 0x19ed140 mail = 0x636c08 #8 0x7fbf881aaf5d in mdbox_save_finish (ctx=0x19ed140) at mdbox-save.c:228 ret = 0 #9 0x7fbf872c505b in quota_save_finish (ctx=0x19ed140) at quota-storage.c:281 qbox = 0x19e0a50 #10 0x7fbf882041f7 in mailbox_save_finish (_ctx=0x1971498) at mail-storage.c:2022 ctx = 0x19ed140 t = 0x19ebdc0 keywords = 0x0 pvt_flags = 0 copying_via_save = false ret = 0 __FUNCTION__ = mailbox_save_finish #11 0x0040d165 in cmd_append_continue_message (cmd=0x1971340) at cmd-append.c:802 all_written = true client = 0x1970760 ctx = 0x1971438 ret = 0 #12 0x0041a04e in command_exec (cmd=0x1971340) at imap-commands.c:156 hook = 0x1954da0 ret = false #13 0x0040b9be in client_input_append (cmd=0x1971340) at cmd-append.c:112 ctx = 0x1971438 client = 0x1970760 reason = 0x7fbf87ef5033 H\213\005.3' finished = false __FUNCTION__ = client_input_append #14 0x7fbf87f0e58d in io_loop_call_io (io=0x19de2a0) at ioloop.c:387 ioloop = 0x1953720 t_id = 2 #15 0x7fbf87f101ed in io_loop_handler_run (ioloop=0x1953720) at ioloop-epoll.c:215 ctx = 0x1953aa0 events = 0x1953b10 event = 0x1953b10 list = 0x1971290 io = 0x19de2a0 tv = {tv_sec = 59, tv_usec = 999033} events_count = 6 msecs = 6 ret = 1 i = 0 j = 0 call = true __FUNCTION__ = io_loop_handler_run #16 0x7fbf87f0e630 in io_loop_run (ioloop=0x1953720) at ioloop.c:406 No locals. #17 0x7fbf87ea609e in master_service_run (service=0x19535b0, callback=0x426143 client_connected) at master-service.c:560 No locals. #18 0x0042645c in main (argc=1, argv=0x1953390) at main.c:400 set_roots = {0x42f500, 0x0} login_set = {auth_socket_path = 0x194b050 incomplete sequence \335, postlogin_socket_path = 0x0, postlogin_timeout_secs = 60, callback = 0x425f07 login_client_connected, failure_callback = 0x4260cf login_client_failed, request_auth_token = 1} service_flags = MASTER_SERVICE_FLAG_KEEP_CONFIG_OPEN storage_service_flags = MAIL_STORAGE_SERVICE_FLAG_DISALLOW_ROOT username = 0x0 c = -1 # 2.2.0: /usr/local/etc/dovecot/dovecot.conf # OS: Linux 3.2.0-4-amd64 x86_64 Debian 7.0 auth_mechanisms = plain login debug_log_path = /var/log/dovecot_dbg.log dict { quota = pgsql:/usr/local/etc/dovecot/dovecot-dict-sql.conf.ext } first_valid_gid = 7 first_valid_uid = 7 lmtp_save_to_detail_mailbox = yes login_access_sockets = tcpwrap mail_access_groups = dovemail mail_attachment_dir = /srv/mail/.SiS/%X{gid} mail_attachment_fs = sis posix:mode=0660 mail_attachment_hash = %{sha256} mail_location = mdbox:~/mdbox mail_plugins = quota stats zlib managesieve_notify_capability = mailto managesieve_sieve_capability = fileinto reject envelope encoded-character vacation subaddress comparator-i;ascii-numeric relational regex imap4flags copy include variables body enotify environment mailbox date ihave namespace Public { location =
Re: [Dovecot] imap Panic: file index-attachment.c: line 231 (index_attachment_save_finish): assertion failed: (attach-input-eof)
On 04/15/2013 04:51 PM, Timo Sirainen wrote: Can you reproduce it? What client was that with? I wonder if it was using CATENATE extension. Three users where able to crash their imap service. All three users are using Thunderbird 17.0.5@Windows. I'm not sure what they've done exactly. Nobody complained about it - so far. Regards, Pascal
Re: [Dovecot] imap Panic: file index-attachment.c: line 231 (index_attachment_save_finish): assertion failed: (attach-input-eof)
On 04/15/2013 06:55 PM Timo Sirainen wrote: On Mon, 2013-04-15 at 19:53 +0300, Timo Sirainen wrote: Uh, wrong directory. This patch. :) Once more, with some error checks :) OK, applied that patch. Lets see what will happen. Regards, Pascal -- The trapper recommends today: defaced.1310...@localdomain.org
Re: [Dovecot] Implementing Single instance attachment storage (SIS) with sdbox
On 03/27/2013 12:30 PM mego...@inboxalias.com wrote: Hi there, as I want to implement data dedupliction on my dovecot system (eg. a users sends the same attchment to 5 different users on my system so I only have to store the attachment one time and set pointers to the file) , I found out it could be possible with Single instance attachment storage (SIS), so I read several pages about SIS as it was quoted here (http://wiki2.dovecot.org/MailboxFormat/dbox): dbox storage is extensible. Single instance attachment storage was already implemented as such extension. But I did not found any further intructions in Dovecot Wiki how to implement it - however, on Dovecots blog there was an older article from Timo which gave some indication how to get it work (http://blog.dovecot.org/2010/07/single-instance-attachment-storage.html): mail_location = dbox:~/dbox:ATTACHMENTS=/attachments/$/$ But when I change my configuration according to this (I use sdbox as mail format), I just get a Unknown setting: ATTACHMENTS in my mail.err log. Can anybody give me a clue how to get this working? Hm, that blog post seems to be a little bit old. There is no need to modify the mail_location setting. All single instance storage related settings could be found at the end of conf.d/10-mail.conf http://hg.dovecot.org/dovecot-2.1/file/tip/doc/example-config/conf.d/10-mail.conf. Regards, Pascal -- The trapper recommends today: fabaceae.1308...@localdomain.org
Re: [Dovecot] doveadm password check
On 03/11/2013 08:20 PM Thomas Pries wrote: Hi, I want to write some php code that users can change there dovecot password via a roundcube plugin. I'm using php function crypt(...) to generate the hashes and everything works well so far. I'm using doveadm pw to generate testhashes e.g.: srv:~ # doveadm pw -r 5 -s BLF-CRYPT -p abc {BLF-CRYPT}$2a$05$W82/Vw4ZEcHBC00M8cNwe.g8fOHuAeV7L5Q/q4W6VWl9V5kjoiz8y I expected an ok when using -t the hash when entering abc as a password, but I got: srv:~ # doveadm pw -r 5 -s BLF-CRYPT -t \{BLF-CRYPT}$2a$05$W82/Vw4ZEcHBC00M8cNwe.g8fOHuAeV7L5Q/q4W6VWl9V5kjoiz8y Enter password to verify: doveadm(root): Fatal: reverse password verification check failed: Password mismatch What went wrong? Usage would be: doveadm pw -t '{BLF-CRYPT}$2a$05$W82/Vw4ZEcHBC00M8cNwe.g8fOHuAeV7L5Q/q4W6VWl9V5kjoiz8y' Your shell expands $2a and $05$W8… to empty strings. Therefore you should single quotes around strings that contains the dollar sign. Regards, Pascal -- The trapper recommends today: cafebabe.1307...@localdomain.org
[Dovecot] tcpwrap: Fatal: master: service(tcpwrap): child $PID killed with signal 11
Hi Timo, today I've started Dovecot v2.2.rc2 (976bf9e69367) for the first time. /var/log/mail.log: Mar 3 14:28:33 mail dovecot: master: Dovecot v2.2.rc2 (976bf9e69367) starting up Mar 3 14:28:38 mail dovecot: master: Error: service(tcpwrap): command startup failed, throttling for 2 secs Mar 3 14:28:38 mail dovecot: tcpwrap: Fatal: master: service(tcpwrap): child $PID killed with signal 11 (core dumped) Mar 3 14:28:38 mail dovecot: imap-login: Error: read(tcpwrap) failed: Connection reset by peer Mar 3 14:28:38 mail dovecot: imap-login: access(tcpwrap): Client refused (rip=$RIP) Mar 3 14:28:38 mail dovecot: auth: pgsql(/var/run/postgresql): Connected to database mailsys Regards, Pascal -- The trapper recommends today: f007ba11.1306...@localdomain.org el-tio ~ # gdb /usr/local/libexec/dovecot/tcpwrap /var/run/dovecot2/core GNU gdb (GDB) 7.4.1-debian Copyright (C) 2012 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type show copying and show warranty for details. This GDB was configured as x86_64-linux-gnu. For bug reporting instructions, please see: http://www.gnu.org/software/gdb/bugs/... Reading symbols from /usr/local/libexec/dovecot/tcpwrap...done. [New LWP 29930] warning: Can't read pathname for load map: Input/output error. [Thread debugging using libthread_db enabled] Using host libthread_db library /lib/x86_64-linux-gnu/libthread_db.so.1. Core was generated by `dovecot/tcpwrap'. Program terminated with signal 11, Segmentation fault. #0 0x7fd7c345caf4 in master_service_init (name=0x4016b7 tcpwrap, flags=0, argc=0x7fffc2c0920c, argv=0x7fffc2c09200, getopt_str=0x0) at master-service.c:153 153 service-getopt_str = *getopt_str == '\0' ? (gdb) bt full #0 0x7fd7c345caf4 in master_service_init (name=0x4016b7 tcpwrap, flags=0, argc=0x7fffc2c0920c, argv=0x7fffc2c09200, getopt_str=0x0) at master-service.c:153 service = 0x9875b0 value = 0x7fd7c372e310 UH\211\345AWAVAUATE1\344S1\333H\203\354HH\307E\260 count = 0 __FUNCTION__ = master_service_init #1 0x004014d0 in main (argc=1, argv=0x987390) at tcpwrap.c:115 No locals. (gdb) # 2.2.rc2 (976bf9e69367): /usr/local/etc/dovecot/dovecot.conf # OS: Linux 3.2.0-4-amd64 x86_64 Debian 7.0 auth_mechanisms = plain login cram-md5 base_dir = /var/run/dovecot2 debug_log_path = /var/log/dovecot_dbg.log dict { quota = pgsql:/usr/local/etc/dovecot/dovecot-dict-sql.conf.ext } first_valid_gid = 7 first_valid_uid = 7 hostname = mail.example.com listen = 192.0.2.1, 127.0.0.1, ::1, 2001:db8:4:f1::4 lmtp_save_to_detail_mailbox = yes login_access_sockets = tcpwrap mail_access_groups = dovemail mail_location = mdbox:~/mdbox mail_plugins = quota stats zlib managesieve_notify_capability = mailto managesieve_sieve_capability = fileinto reject envelope encoded-character vacation subaddress comparator-i;ascii-numeric relational regex imap4flags copy include variables body enotify environment mailbox date ihave namespace inbox { inbox = yes location = mailbox Drafts { special_use = \Drafts } mailbox Junk { special_use = \Junk } mailbox Sent { special_use = \Sent } mailbox Trash { special_use = \Trash } prefix = separator = / } passdb { args = /usr/local/etc/dovecot/dovecot-sql.conf.ext driver = sql } plugin { quota = dict:user:%{uid}:noenforcing:proxy::quota quota_rule = *:storage=2G:messages=0 quota_rule2 = Trash:storage=+100M recipient_delimiter = + sieve = ~/.dovecot.sieve sieve_dir = ~/sieve stats_refresh = 1min zlib_save = bz2 zlib_save_level = 6 } postmaster_address = postmas...@example.com protocols = lmtp pop3 imap sieve service auth-worker { unix_listener auth-worker { group = $default_internal_user mode = 0660 user = doveauth } user = doveauth } service auth { client_limit = 1425 unix_listener /var/spool/postfix/private/dovecot-auth { group = postfix mode = 0600 user = postfix } user = doveauth } service dict { idle_kill = 150 secs unix_listener dict { group = dovemail mode = 0660 } } service imap-login { process_limit = 256 } service imap { process_limit = 256 } service lmtp { executable = lmtp -D inet_listener lmtp { address = ::1 127.0.0.1 port = 24 } unix_listener /var/spool/postfix/private/dovecot-lmtp { group = postfix mode = 0600 user = postfix } } service stats { fifo_listener stats-mail { mode = 0666 } } service tcpwrap { unix_listener login/tcpwrap { group = $default_login_user mode = 0600 user = $default_login_user } } ssl = required ssl_cert = /etc/ssl/certs/mail_example.com.crt ssl_key = /etc/ssl/private/mail_example.com.key userdb { args = /usr/local/etc/dovecot/dovecot-sql.conf.ext driver = sql } verbose_proctitle =
Re: [Dovecot] dsync: Invalid server handshake
On 02/05/2013 07:36 PM Dusan Zivadinovic wrote: … and I get this error: dsync-local(dz): Error: Invalid server handshake: dsync-server 2 dsync-remote(dz): Error: Invalid client handshake: dsync-client 1 # lokal machine: dovecot 2.0.19apple1 running on Mac OS X 10.8.2 Server using standard Apple-Dovecot-Configuration # remote machine: 2.1.12 running on Mac OS X 10.4 using PAM authentication I cant seem to find any documentation to this error, nor do I find any dsync entries in the logs of both machines. Does anyone have a hint? You are using different minor-versions of Dovecot; v2.0 v/s v2.1. Dovecot v2.0 uses dsync 'version 1', and v2.1 uses dsync 'version 2'. If there aren't to much big mailboxes, I would stop imap/pop3 on the old server, move the mailboxes to the new server and start iamp/pop3 on the new server. Or you have to update Dovecot to version 2.1 on the older server. Then you should be able to dsync between both servers. Regards, Pascal -- The trapper recommends today: c01dcafe.1303...@localdomain.org
Re: [Dovecot] password schemes in dovecot
On 01/26/2013 01:04 AM Public wrote: Hey there, I'm using the latest dovecot 2.1.13 In the wiki http://wiki2.dovecot.org/Authentication/PasswordSchemes BLF-CRYPT is listed, but i can't use it. doveadm pw -l doesn't show it. And i'm unsure about how I am supposed to use the different SHA schemes, since they always output different hashes for the same password. MD5 is working fine, but I'd rather not use it. Is the wiki outdated or how do i get BLF-CRYPT working? Your system's libc doesn't support Blowfish crypt, as mentioned in doveadm-pw(1) http://wiki2.dovecot.org/Tools/Doveadm/Pw#section_options. The crypt-hashes are salted hashes. `doveadm pw` generates a random salt, each time it is invoked. Therefore you will see different hashes, even when you enter the same password multiple times. Regards, Pascal -- The trapper recommends today: defaced.1302...@localdomain.org
Re: [Dovecot] password schemes in dovecot
On 01/27/2013 11:21 PM Daniel Parthey wrote: Does the doveadm pw tool provide a way to check a plaintext password against a user's hash from the passdb? … Check `doveadm pw -h` output. If it prints [-t hash], you can do something like: doveadm pw -t '{SHA256-CRYPT}$5$rounds=1000$0123456789abcdef$K/DksR0DT01hGc8g/kt9McEgrbFMKi9qrb1jehe7hn4' Enter password to verify: 08/15!test~4711 {SHA256-CRYPT}$5$rounds=1000$0123456789abcdef$K/DksR0DT01hGc8g/kt9McEgrbFMKi9qrb1jehe7hn4 (verified) Regards, Pascal -- The trapper recommends today: f007ba11.1302...@localdomain.org
Re: [Dovecot] BLF-CRYPT
On 01/07/2013 05:00 PM Kristof Bajnok wrote: Hi, I get Unknown scheme: BLF-CRYPT messages if I try to use Blowfish-encrypted passwords, even though it is supposed to be supported. It's supported on *BSD. AFAIK SUSE is the only Linux distribution with blowfish support in their libc. Use `doveadm pw -l` to see if BLF-CRYPT is available for you. I'm on 2.1.7, Debian Squeeze backports. Do you have any information whether Blowfish is supported with Debian Squeeze crypt(), or is there any other knobs I can turn on to make this algorithm available? The only way would be to to compile your own libc. ;) Regards, Pascal -- The trapper recommends today: c01dcofe.1300...@localdomain.org
Re: [Dovecot] doveadm-lda - segfault
On 12/11/2012 11:18 AM Kamil Jońca wrote: When I try to dovecot-lda message.txt (for sieve refiltering) I got segmentation fault. Does it is bug in lda, or message does not keep standards? KJ I've saved your example message and delivered it twice (Dovecot 2.1.11 and 2.0.21). I'm unable to reproduce the crash. Please read http://dovecot.org/bugreport.html and provide the necessary details. Regards, Pascal -- The trapper recommends today: 5e1f1e55.1234...@localdomain.org
Re: [Dovecot] Message Flag definitions
On 12/06/2012 11:27 PM Chris Dutton wrote: Hello, I am in charge of migrating our mail system from dovecot to another server, and I am having to write a script to do this as tools like imapsync are too slow. What I am trying to find is the definitions of the flags that dovecot adds to the Maildir file name it uses for the IMAP messages. For example what the a and b mean in the following: 1176236036.P7260Q1438.sucia:2,RSab I am looking for all definitions not just a and b. Thanks Chris ch...@rosepointnav.com The wiki page http://wiki2.dovecot.org/MailboxFormat/Maildir provides some information and related links. Regards Pascal -- The trapper recommends today: beeffeed.1234...@localdomain.org
Re: [Dovecot] Redelivery of mdbox messages to pass through sieve
On 11/30/2012 11:34 PM Hugh Davenport wrote: Hey, I've been slack and haven't updated my sieve script for yonks, and finally got round to it. What I was wondering is whether there was a way to basically take all the messages from a folder and pass it through sieve again. I've found earlier messages in this list, but they were for Maildir format, not mdbox which I use now. Does anyone know of a way to do this? See sieve-filter(1) || http://pigeonhole.dovecot.org/doc/man1/sieve-filter.1.html Regards, Pascal -- The trapper recommends today: cafefeed.1233...@localdomain.org
Re: [Dovecot] sieve + dkim
On 11/26/2012 07:58 PM Николай Клименко wrote: message sent from the sieve-vacation does not contain dkim signature how to configure sieve to send messages via smtp transport with signing? Configure a submission host: http://hg.dovecot.org/dovecot-2.1/file/e95479f439aa/doc/example-config/conf.d/15-lda.conf#l20 Regards, Pascal -- The trapper recommends today: face1e55.1233...@localdomain.org
Re: [Dovecot] Need help for configure sieve
On 11/20/2012 08:10 PM Mathieu R. wrote: … Now i'm trying to configure dovecot to get sieve working, and i probably missing something, cause i can not get it to fall in work... Thanks in advance, if you can help me a bit... here is my dovecot (2.1.10) conf : 20:07 root@curzio /home/mathieu # dovecot -n # 2.1.10: /etc/dovecot/dovecot.conf # OS: Linux 3.2.30-xenU-7157-x86_64 x86_64 Arch Linux … protocol lda { mail_plugins = sieve } here is my postfix conf : 20:07 root@curzio /home/mathieu # postconf -n … transport_maps = hash:/etc/postfix/transport … … virtual_transport = virtual … i use the roundcube plugin managesieve, wich seems to work correctly. What is the content of your /etc/postfix/transport? virtual_transport = virtual let Postfix deliver your mails to the mail store. You have to use Dovecot's LMTP http://master.wiki2.dovecot.org/HowTo/PostfixDovecotLMTP or Dovecot's LDA http://master.wiki2.dovecot.org/LDA/Postfix in order to apply Sieve rules on mail delivery. Regards, Pascal -- The trapper recommends today: cafebabe.1232...@localdomain.org
Re: [Dovecot] Need help for configure sieve
On 11/20/2012 09:01 PM Mathieu R. wrote: i added dovecot unix - n n - - pipe flags=DRhu user=vmail:vmail argv=/usr/local/libexec/dovecot/dovecot-lda -f ${sender} -d ${recipient} in master.cf in order to use LDA, is that enough ? don't forget: postconf -e virtual_transport=dovecot: postfix reload Regards, Pascal -- The trapper recommends today: 5e1f1e55.1232...@localdomain.org
Re: [Dovecot] Need help for configure sieve
On 11/20/2012 11:08 PM Mathieu R. wrote: Le 20/11/2012 21:10, Pascal Volk a écrit : On 11/20/2012 09:01 PM Mathieu R. wrote: i added dovecot unix - n n - - pipe flags=DRhu user=vmail:vmail argv=/usr/local/libexec/dovecot/dovecot-lda -f ${sender} -d ${recipient} in master.cf in order to use LDA, is that enough ? don't forget: postconf -e virtual_transport=dovecot: postfix reload just did what you tell me, broke my config (gave me : virtual_transport = dovecot: and then got that error : 2012-11-20T22:03:23.108392+00:00 localhost pipe[28359] fatal: pipe_command: execvp /usr/local/libexec/dovecot/dovecot-lda: No such file or directory switched back to previous config... Are you sure your dovecot-lda binary is located in /usr/local/libexec/dovecot/? You have to use an existing path - not just copy and paste something. Regards, Pascal -- The trapper recommends today: face1e55.1232...@localdomain.org
Re: [Dovecot] Need help for configure sieve
On 11/20/2012 11:53 PM Mathieu R. wrote: and got this error now : … lda: Error: user math...@400iso.net: Error reading configuration: Invalid settings: postmaster_address setting not given … You have to configure a valid postmaster_address in conf.d/15-lda.conf Regards, Pascal -- The trapper recommends today: face1e55.1232...@localdomain.org
Re: [Dovecot] Unsuscribe
On 11/19/2012 04:49 PM Hendrik wrote: Please unsubscribe me The header of your message contains: List-Unsubscribe: http://dovecot.org/cgi-bin/mailman/options/dovecot, mailto:dovecot-requ...@dovecot.org?subject=unsubscribe Regards, Pascal -- The trapper recommends today: defaced.1232...@localdomain.org
Re: [Dovecot] whoson plugin for 2.0
On 11/16/2012 04:27 AM Chuck Cochems wrote: … this is, of course, because getenv() no longer functions lie it used to in plugins. so i need a replacement for getenv(IP) and getenv(USER) to make this work. AFAIR: getenv was replaced by mail_user_plugin_getenv ,--[ lib-storage/mail-user.h ]-- | /* If name exists in plugin_envs, return its value. */ | const char *mail_user_plugin_getenv(struct mail_user *user, const char *name); `-- Regards, Pascal -- The trapper recommends today: cafefeed.1232...@localdomain.org
Re: [Dovecot] whoson plugin for 2.0
On 11/16/2012 11:21 PM Chuck Cochems wrote: … I need to return both the IP and the email address as a string to drop it into the old code. … You could check the code of the `doveadm who` command http://wiki2.dovecot.org/Tools/Doveadm/Who. It shows both, the user name and the IP address. Regards, Pascal -- The trapper recommends today: c01dcafe.1232...@localdomain.org
Re: [Dovecot] Dovecot newbie (migrating from qmail)
On 11/13/2012 05:28 PM Ajai Khattri wrote: Does Dovecot provide a utility to create maildirs? http://wiki2.dovecot.org/Tools/Doveadm/Mailbox#command_mailbox_create doveadm http://wiki2.dovecot.org/Tools/Doveadm will be your friend. Regards, Pascal -- The trapper recommends today: deadbeef.1231...@localdomain.org
Re: [Dovecot] Segmentation fault in doveadm with lib01_acl_plugin.so
On 10/14/2012 05:58 PM Alessio Cecchi wrote: Thanks, my dovecot installation is build from source. Dovecot start fine with core dumps enabled but doveadm don't return Core dumped when crash. In your terminal emulator enter the following commands: ulimit -c unlimited doveadm … Regards, Pascal -- The trapper recommends today: decade.1228...@localdomain.org
Re: [Dovecot] Error: User doesn't have home dir set, disabling duplicate database
On 09/16/2012 12:48 PM Carsten Laun-De Lellis wrote: Hi all I receive the following error in my mail.log. Does anybody know how to configure dovecot to get rid of this ? […] Fix your setup. ,--[ http://wiki2.dovecot.org/UserDatabase ]-- | The user database lookup returns these fields: | … | * home: User's home directory, overrides the global mail_home setting. | … `-- See also: http://wiki2.dovecot.org/VirtualUsers/Home Regards, Pascal -- The trapper recommends today: cafefeed.1226...@localdomain.org
Re: [Dovecot] How Converting/Using courier-userdb Files ?
On 08/31/2012 03:51 PM Dirk Caspari wrote: Hello, how can i convert/use the Original userdb-Files from courier Installation ? The files are looking like a Special-DB-Format and are not readable. - #file /etc/courier/userdb.dat /etc/courier/userdb.dat: GNU dbm 1.x or ndbm database, little endian - /etc/courier/userdb.dat /etc/courier/userdbshadow.dat These Files was created with the following scripts (Part of courier-authlib-userdb Package). . /usr/sbin/makeuserdb /usr/sbin/pw2userdb /usr/sbin/userdb .. Regards D I R K RTFM: makeuserdb(8) / DESCRIPTION / Format of /etc/courier/userdb http://manpages.ubuntu.com/manpages/natty/man8/makeuserdb.8.html Regards, Pascal -- The trapper recommends today: decade.1224...@localdomain.org
Re: [Dovecot] configuring imap_stats
On 07/09/2012 12:45 PM Reinhard Vicinus wrote: Hi, i'm trying to configure imap_stats like it's documented in the wiki: http://wiki2.dovecot.org/Statistics. But as soon as i activate the imap_stats plugin i get the following error message trying to login via imap: dovecot: imap: Error: Can't load plugin imap_stats_plugin: Plugin stats must be loaded also (you must set: mail_plugins=$mail_plugins stats) The global mail_plugins setting should contain: mail_plugins = quota stats And protocol imap's mail_plugins setting should contain: mail_plugins = $mail_plugins imap_quota imap_stats The $mail_plugins inside protocol imap {} will be expanded to the value of your global mail_plugins setting. ,--[ doveconf -f protocol=imap mail_plugins ]-- | mail_plugins = quota stats imap_quota imap_stats `-- Regards, Pascal -- The trapper recommends today: c01dcofe.1219...@localdomain.org