imapd 2.4.6 sendmail and rtcyrus v3
Hi list I'm having problems getting sendmail, rtcyrus v3 and imap server to play together. I can log in to the imap server, no problem. when sending mail to testu...@example.com i get error telling me "No such user at example.com" wich is from virtusertable. The real user/domain is substituted by testu...@example.com Any idea what i'm missing? I can't think of any thing else to test. My virtusertable has these mappings: postmas...@example.com testu...@example.com webmas...@example.com testu...@example.com dom...@example.com testu...@example.com @example.comerror:nouser 550 No such user at example.com Testing map's in sendmail seems to be OK. # echo '/map virtuser postmas...@example.com' | sendmail -bt ADDRESS TEST MODE (ruleset 3 NOT automatically invoked) Enter > map_lookup: virtuser (postmas...@example.com) returns testu...@example.com (0) # echo '/map cyrus testu...@example.com' | sendmail -bt ADDRESS TEST MODE (ruleset 3 NOT automatically invoked) Enter > map_lookup: cyrus (testu...@example.com) returns testu...@example.com (0) My system is Zenwalk 6.2/6.4 Linux 2.6.30.5 #1 SMP PREEMPT Mon Sep 14 11:49:43 CEST 2009 i686 Intel(R) Pentium(R) D CPU 2.80GHz GenuineIntel GNU/Linux sendmail 8.14.4 patched med anfi/cyrusv3 sendmail.mc -- divert(-1)dnl ## ## example.mc sendmail mc file ## generated by build-sendmail-rtcyrus.sh ## divert(0)dnl VERSIONID(`$Id: example.mc,v 2.0 (rtcyrusv3) 2011/04/11 19:30 testuser Exp $') OSTYPE(linux)dnl DOMAIN(generic)dnl # dnl ## FEATURE(`use_cw_file')dnl FEATURE(`access_db')dnl FEATURE(`virtusertable')dnl FEATURE(`blacklist_recipients')dnl dnl ## FEATURE(`preserve_local_plus_detail')dnl FEATURE(nocanonify)dnl FEATURE(always_add_domain)dnl # dnl ## Cyrus imap config # LOCAL_CONFIG dnl ## list of virtual cyrus domains dnl ## C{VCyrusDomains} example.com example.net F{VCyrusDomains}/etc/mail/cyrus-virtual-domains dnl # socket map socket location serviced by cyrus define(`SMMAP_SOCKET',`/var/imap/socket/smmapd')dnl dnl # lmtp socket location serviced by cyrus define(`CYRUS_LMTP_SOCKET',`/var/imap/socket/lmtp')dnl # FEATURE(`anfi/vcyrus')dnl # MAILER(`anfi/cyrusv3')dnl MAILER(smtp)dnl MAILER(local)dnl --- cyrus-imapd 2.4.6 patched med: cyrus-imapd-2.4.4-autocreate-0.10-0.patch cyrus-imapd-2.4.4-autosieve-0.6.0.patch name : Cyrus IMAPD version: v2.4.6 35e0e72f 2010-12-21 vendor : Project Cyrus support-url: http://cyrusimap.web.cmu.edu os : Linux os-version : 2.6.30.5 environment: Built w/Cyrus SASL 2.1.23 Running w/Cyrus SASL 2.1.23 Built w/Sleepycat Software: Berkeley DB 4.4.20: (January 10, 2006) Running w/Sleepycat Software: Berkeley DB 4.4.20: (January 10, 2006) Built w/OpenSSL 0.9.8r 8 Feb 2011 Running w/OpenSSL 0.9.8r 8 Feb 2011 Built w/zlib 1.2.5 Running w/zlib 1.2.5 CMU Sieve 2.4 TCP Wrappers mmap = shared lock = fcntl nonblock = fcntl idle = poll imapd.conf --- auth_mech: unix # -- AutoCcreate Stuff -- autocreatequota:5 createonpost: no autocreateinboxfolders: Sent|Trash|Draft autosubscribeinboxfolders: Sent|Trash|Draft # --- unixhierarchysep: yes altnamespace: yes fulldirhash:yes lmtp_downcase_rcpt: yes sieve_maxscriptsize:320 configdirectory:/var/imap/config partition-default: /var/imap/mail lmtpsocket: /var/imap/socket/lmtp sievedir: /var/imap/sieve sieveusehomedir:false annotation_db: skiplist duplicate_db: skiplist mboxlist_db:skiplist ptscache_db:skiplist quota_db: skiplist seenstate_db: skiplist lscache_db: skiplist subscription_db:skiplist tlscache_db:skiplist #user_deny.db: skiplist hashimapspool: yes sendmail: /usr/sbin/sendmail admins: cyrus postmaster: testu...@example.com #defaultdomain: trader.com virtdomains:yes #servername:example.com allowanonymouslogin:no allowplaintext: yes tls_ca_file:/var/imap/cert/ca.crt tls_cert_file: /var/imap/cert/cyrus.example.com.crt tls_key_file: /var/imap/cert/cyrus.example.com.key tls_session_timeout:
Re: imapd 2.4.6 sendmail and rtcyrus v3
Mogens Melander wrote: > My virtusertable has these mappings: > > postmas...@example.comtestu...@example.com > webmas...@example.com testu...@example.com > dom...@example.comtestu...@example.com > @example.com error:nouser 550 No such user at example.com Sendmail does recursive table lookups, so: webmas...@example.com resolves to testu...@example.com testu...@example.com resolves to error:nouser Use the aliases file, e.g. postmaster: testuser webmaster: testuser domain: testuser Joseph Brennan Columbia University Information Technology Cyrus Home Page: http://www.cyrusimap.org/ List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
Re: imapd 2.4.6 sendmail and rtcyrus v3
On Wed, April 13, 2011 14:52, Joseph Brennan wrote: > > Mogens Melander wrote: > >> My virtusertable has these mappings: >> >> postmas...@example.com testu...@example.com >> webmas...@example.comtestu...@example.com >> dom...@example.com testu...@example.com >> @example.com error:nouser 550 No such user at example.com > > Sendmail does recursive table lookups, so: > > webmas...@example.com resolves to testu...@example.com > testu...@example.com resolves to error:nouser > > > Use the aliases file, e.g. > > postmaster: testuser > webmaster: testuser > domain: testuser > > > Joseph Brennan > Columbia University Information Technology Hmmm, i would think, as there is only virtual users on the system, that they would be resolved in virtusertable. I do have mappings in aliases like: MAILER-DAEMON: postmaster postmaster: root root: mogens mogens: mog...@trader-internet.dk I can se that postmas...@example.com resolves to testu...@example.com when testing on localhost: # echo '/map virtuser postmas...@example.com' | sendmail -bt ADDRESS TEST MODE (ruleset 3 NOT automatically invoked) Enter > map_lookup: virtuser (postmas...@example.com) returns testu...@example.com (0) But receiving from at remote server fail??? remote server: sendmail[2358]: p3DE7WB2002346: to= , ctladdr= (1000/100) , delay=00:00:06, xdelay=00:00:05, mailer=esmtp, pri=120750 , relay=mail.example.com. [111.222.333.444], dsn=5.0.0, stat=User unknown local server: sendmail[3779]: p3DE7cRO003779: ... No such user at example.com I'm lost??? -- Later Mogens Melander +66 8701 33224 -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. Cyrus Home Page: http://www.cyrusimap.org/ List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
Error when compilating cyrus imap
hi, i m working on a project about the extension CONVERT of IMAP but when i try to compile the makefile of the directory imap, i ve this error: /dev/cyrus-imapd/sieve/comparator.c:282: undefined reference to `pcreposix_regexec' collect2: ld returned 1 exit status make[1]: *** [sievec] Erreur 1 have you an idea ? (it's important...) thank you Cyrus Home Page: http://www.cyrusimap.org/ List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
Re: imapd 2.4.6 sendmail and rtcyrus v3
--On Wednesday, April 13, 2011 16:14 +0200 Mogens Melander wrote: > I can se that postmas...@example.com resolves to testu...@example.com > when testing on localhost: > ># echo '/map virtuser postmas...@example.com' | sendmail -bt > Sure, but then resolve:- echo '/map virtuser testu...@example.com' | sendmail -bt because that's what sendmail does. For this to work you'll need to define testu...@example.com going to some address not @example.com. Joseph Brennan Columbia University Information Technology Cyrus Home Page: http://www.cyrusimap.org/ List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
Re: Error when compilating cyrus imap
On Wed, 13 Apr 2011 15:18:55 +0100 (BST) Ami Stage wrote: > hi, > > i m working on a project about the extension CONVERT of IMAP but when i try > to > compile the makefile of the directory imap, i ve this error: > > /dev/cyrus-imapd/sieve/comparator.c:282: undefined reference to > `pcreposix_regexec' > collect2: ld returned 1 exit status > make[1]: *** [sievec] Erreur 1 > > > have you an idea ? (it's important...) Sounds like you're missing the PRCE libraries, but your Makefile thinks you have them. This could be due to a partial copy of PCRE on your system. What OS are you running, what packages? Also, what version of cyrus? Thanks, Bron. Cyrus Home Page: http://www.cyrusimap.org/ List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
Re: imapd 2.4.6 sendmail and rtcyrus v3
On Wed, April 13, 2011 16:30, Joseph Brennan wrote: > > > --On Wednesday, April 13, 2011 16:14 +0200 Mogens Melander > wrote: > >> I can se that postmas...@example.com resolves to testu...@example.com >> when testing on localhost: >> >># echo '/map virtuser postmas...@example.com' | sendmail -bt >> > > > Sure, but then resolve:- > > echo '/map virtuser testu...@example.com' | sendmail -bt > > because that's what sendmail does. For this to work you'll need to > define testu...@example.com going to some address not @example.com. > > Joseph Brennan > Columbia University Information Technology Ok, testu...@example.com is a virtual user in imap's world, and i would expect sendmail to resolve using SMMAP_SOCKET # echo '/map cyrus testu...@example.com' | sendmail -bt ADDRESS TEST MODE (ruleset 3 NOT automatically invoked) Enter > map_lookup: cyrus (testu...@example.com) returns testu...@example.com (0) I have a feeling this might be a problem in my sendmail.mc file: divert(0)dnl VERSIONID(`$Id: trader-internet.mc,v 2.0 (rtcyrus3) 2011/04/11 19:30 mogens melander Exp $') OSTYPE(linux)dnl DOMAIN(generic)dnl # FEATURE(`access_db')dnl FEATURE(`virtusertable')dnl FEATURE(`blacklist_recipients')dnl FEATURE(nocanonify)dnl FEATURE(always_add_domain)dnl # dnl ## Cyrus imap config # LOCAL_CONFIG dnl ## list of virtual cyrus domains dnl ## C{VCyrusDomains} example.com example.net F{VCyrusDomains}/etc/mail/cyrus-virtual-domains dnl # socket map socket location serviced by cyrus define(`SMMAP_SOCKET',`/var/imap/socket/smmapd')dnl dnl # lmtp socket location serviced by cyrus define(`CYRUS_LMTP_SOCKET',`/var/imap/socket/lmtp')dnl # FEATURE(`anfi/vcyrus')dnl # MAILER(`anfi/cyrusv3')dnl MAILER(smtp)dnl MAILER(local)dnl -- Later Mogens Melander +66 8701 33224 -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. Cyrus Home Page: http://www.cyrusimap.org/ List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
Cyrus 2.4.8 Released
We are pleased to announce the release of Cyrus IMAPd 2.4.8. This is a stable release in the 2.4.x series, fixing a few bugs found since the release of 2.4.7. We urge all users of the 2.4 series to update to this release. The list of reported bugs fixed can be found here: http://cyrusimap.org/mediawiki/index.php/Bugs_Resolved_in_2.4.8 Or if you want extreme detail of all changes made, check git: http://git.cyrusimap.org/cyrus-imapd/log/?id=cyrus-imapd-2.4.8 You can download via HTTP or FTP: http://cyrusimap.org/releases/cyrus-imapd-2.4.8.tar.gz ftp://ftp.cyrusimap.org/cyrus-imapd/cyrus-imapd-2.4.8.tar.gz Regards, Bron. Cyrus Home Page: http://www.cyrusimap.org/ List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
Re : Error when compilating cyrus imap
the problem is solved, i had a mistake in the file configure.in thanks De : Bron Gondwana À : Ami Stage Cc : info-cy...@andrew.cmu.edu Envoyé le : Mer 13 avril 2011, 16h 30min 08s Objet : Re: Error when compilating cyrus imap On Wed, 13 Apr 2011 15:18:55 +0100 (BST) Ami Stage wrote: > hi, > > i m working on a project about the extension CONVERT of IMAP but when i try > to > compile the makefile of the directory imap, i ve this error: > > /dev/cyrus-imapd/sieve/comparator.c:282: undefined reference to > `pcreposix_regexec' > collect2: ld returned 1 exit status > make[1]: *** [sievec] Erreur 1 > > > have you an idea ? (it's important...) Sounds like you're missing the PRCE libraries, but your Makefile thinks you have them. This could be due to a partial copy of PCRE on your system. What OS are you running, what packages? Also, what version of cyrus? Thanks, Bron. Cyrus Home Page: http://www.cyrusimap.org/ List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
Re : Error when compilating cyrus imap
On 04/13/2011 11:28 AM, Ami Stage wrote: > the problem is solved, > i had a mistake in the file configure.in Did you modify configure.in, or is there a bug in the distributed version? Thanks! Dave Cyrus Home Page: http://www.cyrusimap.org/ List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
Re: imapd 2.4.6 sendmail and rtcyrus v3
At this point, you're using features we don't use, so I bow out. Maybe someone else is doing it this way. Joseph Brennan Columbia University Information Technology Cyrus Home Page: http://www.cyrusimap.org/ List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
Re: imapd 2.4.6 sendmail and rtcyrus v3
Ok, thanks anyway. How are you doing it? sendmail <-> cyrus imapd. On Wed, April 13, 2011 17:44, Joseph Brennan wrote: > > At this point, you're using features we don't use, so I bow out. > Maybe someone else is doing it this way. > > Joseph Brennan > Columbia University Information Technology > > > Cyrus Home Page: http://www.cyrusimap.org/ > List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/ > > -- > This message has been scanned for viruses and > dangerous content by MailScanner, and is > believed to be clean. > -- Later Mogens Melander +66 8701 33224 -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. Cyrus Home Page: http://www.cyrusimap.org/ List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
Re: imapd 2.4.6 sendmail and rtcyrus v3
On 13/04/11 17:54 +0200, Mogens Melander wrote: >Ok, thanks anyway. > >How are you doing it? sendmail <-> cyrus imapd. Have you taken a look at?: http://www.cyrusimap.org/docs/cyrus-imapd/2.4.8/install-configure.php >On Wed, April 13, 2011 17:44, Joseph Brennan wrote: >> >> At this point, you're using features we don't use, so I bow out. >> Maybe someone else is doing it this way. -- Dan White Cyrus Home Page: http://www.cyrusimap.org/ List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
Re: imapd 2.4.6 sendmail and rtcyrus v3
--On Wednesday, April 13, 2011 17:54 +0200 Mogens Melander wrote: > Ok, thanks anyway. > > How are you doing it? sendmail <-> cyrus imapd. Gateway columbia.edu resolves virtusers, aliases, users, to the correct destination for that end user, which might be our Cyrus cluster or our Exchange cluster or forwarding elsewhere. For Cyrus users, gateway re-sends (smtp) to the end user @ the cyrus cluster's hostname. On the cyrus hosts, all they have to do is deliver to the user given in the address. There are no virtuser or alias tables there. There IS an access.db that tells these hosts to accept mail only from the gateway. Joseph Brennan Columbia University Information Technology Cyrus Home Page: http://www.cyrusimap.org/ List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
Regex in sieve broken in 2.4?
We recently upgraded a few of our imap servers to 2.4.8beta1 from 2.3.16 and found that sieve filters with regex are broken. The filtering rule is ignored and the message delivered to INBOX, so at least not gone. Example filter: require ["fileinto","regex"]; if header :regex :comparator "i;ascii-casemap" "X-UiO-Spam-score" "s{3,}" { fileinto "INBOX.spam"; stop; } This fails to compile on 2.4.8: r...@mail-utv2.uio.no tmp# sievec phpscript.script phpscript.bc Unable to parse script: script errors: line 4: bad argument at offset 0 while on 2.3.16 this is no problem: r...@mail-imap2.uio.no tmp# sievec phpscript.script phpscript.bc r...@mail-imap2.uio.no tmp# The filter is generated using the avelsieve plugin in Squrrielmail. Neither of them have defined the option sieve_extensions in imapd.conf. ./configure reported that it found pcre headers: checking pcreposix.h usability... yes checking pcreposix.h presence... yes checking for pcreposix.h... yes checking for utf8 enabled pcre... yes and sievec and other binaries are linked with libpcre. Any ideas? -- Øyvind Kolbu Postmaster University of Oslo pgpcrYDWxHMqa.pgp Description: PGP signature Cyrus Home Page: http://www.cyrusimap.org/ List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
Re: Regex in sieve broken in 2.4?
On Wed, Apr 13, 2011 at 07:03:17PM +0200, Øyvind Kolbu wrote: > We recently upgraded a few of our imap servers to 2.4.8beta1 from 2.3.16 > and found that sieve filters with regex are broken. The filtering rule is > ignored and the message delivered to INBOX, so at least not gone. > > Example filter: > > require ["fileinto","regex"]; > > if > header :regex :comparator "i;ascii-casemap" "X-UiO-Spam-score" "s{3,}" > { fileinto "INBOX.spam"; stop; } > > This fails to compile on 2.4.8: > r...@mail-utv2.uio.no tmp# sievec phpscript.script phpscript.bc > Unable to parse script: script errors: > line 4: bad argument at offset 0 > while on 2.3.16 this is no problem: > r...@mail-imap2.uio.no tmp# sievec phpscript.script phpscript.bc > r...@mail-imap2.uio.no tmp# > > The filter is generated using the avelsieve plugin in Squrrielmail. Neither > of them have defined the option sieve_extensions in imapd.conf. > > ./configure reported that it found pcre headers: > checking pcreposix.h usability... yes > checking pcreposix.h presence... yes > checking for pcreposix.h... yes > checking for utf8 enabled pcre... yes > > and sievec and other binaries are linked with libpcre. > > Any ideas? Please file a bug :) 2.4.8 has added a pile of charset changes, and it is possible that I've broken something. Bron. Cyrus Home Page: http://www.cyrusimap.org/ List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
Re: Regex in sieve broken in 2.4?
On 2011-04-13 at 23:05, Bron Gondwana wrote: > Please file a bug :) 2.4.8 has added a pile of charset changes, > and it is possible that I've broken something. OK, Bugzilla #3442. -- Øyvind Kolbu Postmaster Universitetet i Oslo pgpcKEF9yj982.pgp Description: PGP signature Cyrus Home Page: http://www.cyrusimap.org/ List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/