DB positions

2016-06-29 Thread Andrea Venturoli via Info-cyrus

Hello.

Just a quick question: I have FreeBSD box wich cyrus-imap 2.5.8 
installed and I'm seing some strange messages in the logs, i.e.



Jun 29 10:46:09 xx imaps[51333]: DBERROR db6: /var/imap/db/__db.001: No 
such file or directory
Jun 29 10:46:09 xx imaps[51333]: DBERROR: dbenv->open '/var/imap/db' 
failed: No such file or directory
Jun 29 10:46:09 xx imaps[51333]: DBERROR: init() on berkeley
Jun 29 10:46:09 xx imaps[51333]: DBERROR: reading /var/imap/db/skipstamp, 
assuming the worst: No such file or directory




Now, in fact, I don't have /var/imap/db!


# ls -l /var/imap/
total 416
-rw---  1 cyrus  mail 336 Nov  6  2015 annotations.db
drwx--  2 cyrus  mail 512 Jun 29 10:30 db.backup1
drwx--  2 cyrus  mail 512 Jun 29 10:00 db.backup2
-rw---  1 cyrus  mail  108840 Jun 29 10:47 deliver.db
drwxr-xr-x  5 cyrus  mail 512 Nov 20  2015 domain
drwxr-xr-x  5 cyrus  mail 512 Dec 16  2015 lock
drwxr-xr-x  3 cyrus  mail 512 Jun  7 17:41 log
-rw---  1 cyrus  mail  248208 Jun 28 04:00 mailboxes.db
drwxr-xr-x  2 cyrus  mail2048 Jun 29 10:47 proc
drwxr-xr-x  2 cyrus  mail1024 Jun  7 17:44 proc.old
drwx--  3 cyrus  mail 512 Jun  6 13:24 sieve
drwxr-x---  2 cyrus  mail4608 Jun 29 10:47 socket
-rw---  1 cyrus  mail 336 Nov  9  2015 statuscache.db
-rw---  1 cyrus  mail   10600 Jun 29 08:28 tls_sessions.db
drwxr-xr-x  4 cyrus  mail 512 Nov  6  2015 user


But, as you can see I have db.backup1 and db.backup2, which seems to be 
correctly updated with their own copy of mailboxes.db and annotations.db.



What are the consequences of the above?
Should I try and fix this, given the server seems to works perfectly? 
How do I do it?



 bye & Thanks
av.

Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
To Unsubscribe:
https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus


Re: Sendmail + Virtual Domains + aliases

2016-02-25 Thread Andrea Venturoli via Info-cyrus

On 02/25/16 10:42, Sebastian Hagedorn wrote:

I was a bit brief yesterday. I have to say that I configured our
sendmail more than 10 years ago and have only made minor changes since
than. I don't remember the settings as well as I did back then ...


No problem :)





There's a comment in virtusertable.sample which says: "Remember to add
the source hostname to /etc/mail/local-host-names".
Maybe that's really needed for virtusertable to work?


I suppose that's one way. We have this line in our .mc file:

VIRTUSER_DOMAIN_FILE(`/etc/smtp-in/virtualdomains')dnl

So in our case we would add oneofmydomains.com to that file.


I put VIRTUSER_DOMAIN(`oneofmydomains.com') in my MC file, but that 
didn't help either.






If I add that, then cyrusv2 from mailertable will not be used for
oneofmydomains.com.


Why use mailertable? We use this:


I've followed the instructions on this page:
> https://cyrusimap.org/docs/cyrus-imapd/2.5.4/install-virtdomains.php

AFAICT this is needed for virtual domains or sendmail will strip the 
domain part from destination addresses and cyrusv2 can't tell where to 
deliver.







define(`confLOCAL_MAILER', `cyrusv2')

That way all local mail is delivered to Cyrus. Or isn't that what you want?


I'm using this on servers where I don't have virtual domains.




 bye & Thanks
av.

Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
To Unsubscribe:
https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus


Re: Sendmail + Virtual Domains + aliases

2016-02-25 Thread Andrea Venturoli via Info-cyrus

On 02/24/16 19:16, Alexander Dalloz via Info-cyrus wrote:

Am 24.02.2016 um 18:15 schrieb Andrea Venturoli via Info-cyrus:

On 02/24/16 15:24, Sebastian Hagedorn wrote:

Use virtusertable instead of aliases, e.g.

postmas...@oneofmydomains.comroot


Don't use unqualified LHS addresses.


LHS=Left Hand Side? Then I didn't.
Changing root to "someth...@somedomain.com" doesn't work either.






And make sure to direct a catch-all to the error mailer in virtusertable.


Why?
Can you provide an example?






You complete sendmail.mc and log content would be useful.


Here's the MC (stripped of config and blank lines):


divert(-1)
divert(0)
VERSIONID(`$FreeBSD: src/etc/sendmail/freebsd.mc,v 1.34.2.3.4.1 2009/04/15 
03:14:26 kensmith Exp $')
OSTYPE(freebsd6)
DOMAIN(generic)
FEATURE(access_db, `hash -o -T /etc/mail/access')
FEATURE(blacklist_recipients)
FEATURE(local_lmtp)
FEATURE(mailertable, `hash -o /etc/mail/mailertable')
FEATURE(virtusertable, `hash -o /etc/mail/virtusertable')
define(`confCW_FILE', `-o /etc/mail/local-host-names')
define(`CYRUSV2_MAILER_FLAGS',`A5@')
define(`confLOCAL_MAILER', `cyrusv2')
_DEFIFNOT(`_DEF_CYRUSV2_MAILER_FLAGS', `lsDFMnqXz')
_DEFIFNOT(`CYRUSV2_MAILER_FLAGS', `A@/:|m')
ifdef(`CYRUSV2_MAILER_ARGS',, `define(`CYRUSV2_MAILER_ARGS', `FILE 
/var/imap/socket/lmtp')')
define(`_CYRUSV2_QGRP', `ifelse(defn(`CYRUSV2_MAILER_QGRP'),`',`', ` 
Q=CYRUSV2_MAILER_QGRP,')')dnl
POPDIVERT
VERSIONID(`$Id: cyrusv2.m4,v 1.2 2013-11-22 20:51:14 ca Exp $')
Mcyrusv2,   P=[IPC], F=_MODMF_(CONCAT(_DEF_CYRUSV2_MAILER_FLAGS, 
CYRUSV2_MAILER_FLAGS), `CYRUSV2'),
S=EnvFromSMTP/HdrFromSMTP, R=EnvToSMTP, E=\r\n,
_OPTINS(`CYRUSV2_MAILER_MAXMSGS', `m=', `, 
')_OPTINS(`CYRUSV2_MAILER_MAXRCPTS', `r=', `, 
')_OPTINS(`CYRUSV2_MAILER_CHARSET', `C=', `, ')T=DNS/RFC822/SMTP,_CYRUSV2_QGRP
A=CYRUSV2_MAILER_ARGS
define(`confBIND_OPTS', `WorkAroundBroken')
define(`confNO_RCPT_ACTION', `add-to-undisclosed')
define(`confPRIVACY_FLAGS', `authwarnings,noexpn,novrfy')
MAILER(local)
MAILER(smtp)
define(`CERT_DIR', `/usr/local/netfence/etc/openssl')
define(`CACERT_DIR', `CERT_DIR')
define(`confCACERT_PATH', `CACERT_DIR')
define(`confCACERT', `CACERT_DIR/trustico.pem')
define(`confSERVER_CERT', `CERT_DIR/smtp.mydomain.it.pem')
define(`confSERVER_KEY', `CERT_DIR/smtp.mydomain.it_key.pem')
define(`confDOUBLE_BOUNCE_ADDRESS',`')
TRUST_AUTH_MECH(`DIGEST-MD5 CRAM-MD5 LOGIN PLAIN')
define(`confAUTH_MECHANISMS',`DIGEST-MD5 CRAM-MD5 LOGIN PLAIN')
define(`confAUTH_OPTIONS',`y')
CLIENT_OPTIONS(`Family=inet,M=S')
DAEMON_OPTIONS(`Port=smtp, Name=MTA')
DAEMON_OPTIONS(`Port=smtps, Name=SSA, M=Eas')
INPUT_MAIL_FILTER(`clmilter',`S=local:/var/run/clamav/clmilter.sock, F=, 
T=S:4m;R:4m')dnl
define(`confINPUT_MAIL_FILTERS', `clmilter')
LOCAL_CONFIG
O 
CipherList=ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:DHE-DSS-AES128-GCM-SHA256:kEDH+AESGCM:ECDHE-RSA-AES128-SHA256:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA:ECDHE-ECDSA-AES128-SHA:ECDHE-RSA-AES256-SHA384:ECDHE-ECDSA-AES256-SHA384:ECDHE-RSA-AES256-SHA:ECDHE-ECDSA-AES256-SHA:DHE-RSA-AES128-SHA256:DHE-RSA-AES128-SHA:DHE-DSS-AES128-SHA256:DHE-RSA-AES256-SHA256:DHE-DSS-AES256-SHA:DHE-RSA-AES256-SHA:AES128-GCM-SHA256:AES256-GCM-SHA384:AES128-SHA256:AES256-SHA256:AES128-SHA:AES256-SHA:AES:CAMELLIA:DES-CBC3-SHA:!aNULL:!eNULL:!EXPORT:!DES:!RC4:!MD5:!PSK:!aECDH:!EDH-DSS-DES-CBC3-SHA:!EDH-RSA-DES-CBC3-SHA:!KRB5-DES-CBC3-SHA
O DHParameters=/etc/mail/dhparams.pem


And the extract of the log:


Feb 25 10:47:21 wilbur sm-mta[62536]: u1P9lKPJ062536: from=, 
size=816, class=0, nrcpts=1, msgid=<56cecd91.3010...@netfence.it>, proto=ESMTP, 
daemon=MTA, relay=smtp206.
alice.it [82.57.200.102]
Feb 25 10:48:03 wilbur sm-mta[62573]: u1P9lKPJ062536: 
to=, delay=00:00:42, xdelay=00:00:00, 
mailer=cyrusv2, pri=30816, relay=localhost, dsn=5.1.1, stat=User unknown





 bye & Thanks
av.

Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
To Unsubscribe:
https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus


Re: Sendmail + Virtual Domains + aliases

2016-02-24 Thread Andrea Venturoli via Info-cyrus

On 02/24/16 15:24, Sebastian Hagedorn wrote:

Use virtusertable instead of aliases, e.g.

postmas...@oneofmydomains.comroot



Thanks, but it doesn't seem to work either.

I put that line in virtusertable and issued "make".
I even restarted sendmail, even if IIRC it's not needed.
I confirm I have the following in my .mc file:
> FEATURE(virtusertable, `hash -o /etc/mail/virtusertable')

I still get "User unknown".

There's a comment in virtusertable.sample which says: "Remember to add 
the source hostname to /etc/mail/local-host-names".

Maybe that's really needed for virtusertable to work?

If I add that, then cyrusv2 from mailertable will not be used for 
oneofmydomains.com.



 bye & Thanks
av.

Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
To Unsubscribe:
https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus


Sendmail + Virtual Domains + aliases

2016-02-24 Thread Andrea Venturoli via Info-cyrus

Hello.

I've setup a server running Cyrus IMAP 2.5.7 with virtual domains and 
sendmail as MTA.

I'm having trouble with aliases.

E.g. I put the following in /etc/aliases:

root:   m...@someotherdomain.it
postmas...@oneofmydomains.com:  root

However, writing to postmas...@oneofmydomains.com fails since that 
mailbox doesn't really exist.



I don't have oneofmydomains.com in local-host-names, since I use 
mailertable for delivery with:

oneofmydomains.com  cyrusv2:/var/imap/socket/lmtp


What is the reccomended way to accomplish what I'm trying to do?


 bye & Thanks
av.

Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
To Unsubscribe:
https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus


Re: Trouble with Outlook 2013, especially with the upgrade from 12/8

2015-12-11 Thread Andrea Venturoli via Info-cyrus

On 12/11/15 14:18, Sebastian Hagedorn via Info-cyrus wrote:

Hi,

we've always had more problems with users of Outlook than other clients,
but in recent days they have become much graver. A number of users have
lost mail in a way that we couldn't recover, even though we are using
expunge_mode: delayed. There seems to be some correlation to this
upgrade from Microsoft:



However, details are vague. There seem to be two types of problems:


As others pointed out, OL and IMAP never put up with each other well and 
2013 is a lot worse than earlier versions, to the point it's not usable.


Troubles I've encountered include:
_ inability to choose folders for Sent mail, Drafts, etc...;
_ as a cool addition to the above, if you add an account which already 
has a Sent mail folder which is not called exactly "Sent", the new 
"Sent" folder will be "This computer only";
_ on some installations, long delays (tens of minutes) before mail 
starts arriving after the program is launched;
_ hours of no mail arriving (not even pushing the fetch button or 
restarting the program); of course new mail is on the server and it will 
suddenly start downloading again for no reason;
_ creating folders usually work (provided their name is legal), but 
sometimes they won't show up until a restart;
_ folders with a legal name often fail to be created: either no error 
message is produced or the folder is created only locally (without any 
further sync);
_ creating folders with unallowed characters fails on the server, but 
not on the client and won't be synchronized thereafter; if you are 
lucky, "This computer only" is appended to the name, so you know, but 
don't count on this too much;
_ moving messages into a folder works most of the time, but you might 
see the folder full, then suddenly empty, then possibly filling up again 
after a restart;
_ legal renaming of folders might work or not; again no error, but it 
might succeed locally (and stop uploading messages);
_ ability to rename "Other Users" or "Other Users.mailbox": of course 
this will fail on the server, but no indication of that is given; 
instead any subfolder will stop uploading new messages to the server 
(hope I don't need to describe the risks of this!);
_ frequent corruption of .pst/.ost files or whatever else, so you need 
to recreate the profile (but this was also true in 2007 and 2010);
_ mail disappearing for no reason (*) and if you are lucky it had been 
pushed to the server, so you have backups.


(*) I might think user1 accidentally hit the Delete button, I might 
think user2 somehow delete its mail by mistake, but when user3, 4, 5, 
etc... call and tell me the same thing...





I agree with Andre': such an aggravation over previous versions can only 
be intentional (to help selling Exchange).

In any case bottom line is: either drop OutLook or Cyrus.

 bye
av.

Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
To Unsubscribe:
https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus


CalDAV and virtual domains

2015-11-11 Thread Andrea Venturoli via Info-cyrus

Hello.

What's the status of CardDAV/CalDav and virtual domains?
I read some messages about this being broken, but they are quite old: 
did this ever get fixed?

Is this component stable?


If I try:


http:///dav/calendars/user/@./Default/


I get:

Not Found

Mailbox does not exist
Cyrus/2.5.6 Cyrus-SASL/2.1.26 OpenSSL/7 Zlib/1.2.8 LibXML2.9.2 SQLite/3.9.1 
Libical/1.0 Jansson/2.7 Server at 127.0.1.1 Port 80




 bye & Thanks
av.

Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
To Unsubscribe:
https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus