Re: Cyrus IMAPd 2.2.3 Released

2004-01-28 Thread dimon
Quoting Igor Brezac <[EMAIL PROTECTED]>:

> 
> On Wed, 28 Jan 2004 [EMAIL PROTECTED] wrote:
> 
> > > > Jan 16 06:59:18 synodon imap[58231]: size read failed
> > > > Jan 16 06:59:18 synodon imap[58231]: badlogin: [68.147.210.233]
> plaintext
> > > > dennis.rendflesh SASL(-1): generic failure: checkpass failed
> > > > Jan 16 06:59:24 synodon /kernel: pid 44231 (saslauthd), uid 0: exited
> on
> > > > signal 11 (core dumped)
> >
> > > Hmm, I not sure what that is.  Can you give us backtrace and your
> > > saslauthd startup cmd?
> > >
> >
> > saslauthd -a pam (with pam_pgsql) still gives me that problem :-(
> >
> > Today I tried to use gdb on saslauthd and that's what I've got:
> >
> > Program received signal SIGSEGV, Segmentation fault.
> > 0x28104942 in vfprintf () from /usr/lib/libc.so.4
> >
> > I don't know if that will give you any clue
> >
> > Any help will be greatli appreciated!
> 
> This does not help.  Run gdb against the saslauthd core file and type bt.
> 
This is output of gdb on one of my servers:

[EMAIL PROTECTED] saslauthd]# gdb saslauthd saslauthd.core
GNU gdb 4.18 (FreeBSD)
Copyright 1998 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i386-unknown-freebsd"...(no debugging symbols 
found)...
Core was generated by `saslauthd'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /usr/lib/libcrypt.so.2...(no debugging symbols 
found)...done.
Reading symbols from /usr/lib/libpam.so.1...(no debugging symbols found)...done.
Reading symbols from /usr/lib/libc.so.4...(no debugging symbols found)...done.
Reading symbols from /usr/lib/pam_pgsql.so...(no debugging symbols 
found)...done.
Reading symbols from /usr/local/lib/libpq.so.3...(no debugging symbols 
found)...done.
Reading symbols from /usr/lib/libmd.so.2...(no debugging symbols found)...done.
Reading symbols from /usr/local/lib/libintl.so.5...(no debugging symbols 
found)...done.
Reading symbols from /usr/local/lib/libssl.so.3...(no debugging symbols 
found)...done.
Reading symbols from /usr/local/lib/libcrypto.so.3...(no debugging symbols 
found)...done.
Reading symbols from /usr/local/lib/libiconv.so.3...(no debugging symbols 
found)...done.
Reading symbols from /usr/lib/pam_skey.so...(no debugging symbols found)...done.
Reading symbols from /usr/lib/libskey.so.2...(no debugging symbols 
found)...done.
Reading symbols from /usr/lib/pam_unix.so...(no debugging symbols found)...done.
Reading symbols from /usr/lib/libutil.so.3...(no debugging symbols 
found)...done.
Reading symbols from /usr/libexec/ld-elf.so.1...(no debugging symbols 
found)...done.
#0  0x28104942 in vfprintf () from /usr/lib/libc.so.4
(gdb) bt
#0  0x28104942 in vfprintf () from /usr/lib/libc.so.4
#1  0x280eae92 in vsyslog () from /usr/lib/libc.so.4
#2  0x280eabe5 in syslog () from /usr/lib/libc.so.4
#3  0x2812e102 in pam_sm_acct_mgmt () from /usr/lib/pam_pgsql.so
#4  0x2808c271 in pam_getenvlist () from /usr/lib/libpam.so.1
#5  0x2808c51d in _pam_dispatch () from /usr/lib/libpam.so.1
#6  0x2808b56c in pam_acct_mgmt () from /usr/lib/libpam.so.1
#7  0x8049ad0 in auth_pam ()
#8  0x804c7ac in do_auth ()
#9  0x804bee1 in do_request ()
#10 0x804bb39 in ipc_loop ()
#11 0x804c743 in main ()
#12 0x804972e in _start ()
(gdb) quit

And this gdb output on the other one:

[EMAIL PROTECTED] saslauthd]# gdb saslauthd saslauthd.core
GNU gdb 4.18 (FreeBSD)
Copyright 1998 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i386-unknown-freebsd"...(no debugging symbols 
found)...
Core was generated by `saslauthd'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /usr/lib/libcrypt.so.2...(no debugging symbols 
found)...done.
Reading symbols from /usr/lib/libpam.so.1...(no debugging symbols found)...done.
Reading symbols from /usr/lib/libc.so.4...(no debugging symbols found)...done.
Reading symbols from /usr/lib/pam_pgsql.so...(no debugging symbols 
found)...done.
Reading symbols from /usr/local/lib/libpq.so.3...(no debugging symbols 
found)...done.
Reading symbols from /usr/lib/libmd.so.2...(no debugging symbols found)...done.
Reading symbols from /usr/local/lib/libintl.so.5...(no debugging symbols 
found)...done.
Reading symbols from /usr/local/lib/libssl.so.3...(no debugging symbols 
found)...done.
Reading symbols from /usr/local/lib/libcrypto.so.3...(no debugging symbols 
found)...done.
Reading symbols from /usr/local/lib/libiconv.so.3...(no debugging symbols 
found)...done.
Reading symbol

Re: Cyrus IMAPd 2.2.3 Released

2004-01-28 Thread dimon
> > Jan 16 06:59:18 synodon imap[58231]: size read failed
> > Jan 16 06:59:18 synodon imap[58231]: badlogin: [68.147.210.233] plaintext 
> > dennis.rendflesh SASL(-1): generic failure: checkpass failed
> > Jan 16 06:59:24 synodon /kernel: pid 44231 (saslauthd), uid 0: exited on  
> > signal 11 (core dumped)

> Hmm, I not sure what that is.  Can you give us backtrace and your
> saslauthd startup cmd?
>

saslauthd -a pam (with pam_pgsql) still gives me that problem :-(

Today I tried to use gdb on saslauthd and that's what I've got:

Program received signal SIGSEGV, Segmentation fault.
0x28104942 in vfprintf () from /usr/lib/libc.so.4

I don't know if that will give you any clue

Any help will be greatli appreciated!

Dmitry


Re: individual User spamassassin settings during lmtp delivery

2004-01-19 Thread dimon
Quoting Romeo Benzoni <[EMAIL PROTECTED]>:

> On Mon, 2004-01-19 at 21:41, Jure PeÄar wrote:
> > On Mon, 19 Jan 2004 15:53:13 +0100
> > Romeo Benzoni <[EMAIL PROTECTED]> wrote:
> >
> > > 1. is my approach wide of the mark or are there better, smarter
> > > solutions to achieve this?
> >
> > Smarter solution: use amavisd-new, which can be fed via lmtp from your MTA
> > and thus knows how to apply per user AV & SA settings (and can pull those
> > from just about everywhere).
> 
> thanks for the point, but I had also a look at this but as written in
> the docs the spam check is done once per message and not once per
> receipient. I'd like to have spammassassin called for each recepients as
> I want user give the ability to define their individual weights etc. on
> each spammassassin rule.
> I wan't user to be able to define individual criteria what is spam and
> not just what should happen to emails considered as spam on an per user
> basis.
> 
> 
> 
> SpamAssassin check is called only once per message regardless of the
> number of recipients, all header editing and actions taken is then done
> by amavisd-new for each recipient individually, based on its settings.
> 
 
Mimedefang is your solution. http://www.mimedefang.org
But it works only with sendmail.

Best regards,
Dmitry




Re: Cyrus SASL 2.1.17 and realms

2004-01-19 Thread dimon
Quoting Igor Brezac <[EMAIL PROTECTED]>:

> 
> Your check may fail if realm is NULL.  Use
> 
> if (realm && *realm != '\0') {
> 

Thank you, that works grate now!

Dmitry


Re: Cyrus SASL 2.1.17 and realms

2004-01-19 Thread dimon
Quoting Igor Brezac <[EMAIL PROTECTED]>:

> This may help:
> http://asg.web.cmu.edu/archive/message.php?mailbox=archive.cyrus-
sasl&searchterm=patch&msg=4669

Thank you very mach, I already did the same thing :-)
I'm not sure if it's correct (I'm not C programmer), but I just added this:
/* END VARIABLES */

+if (strlen(realm) > 0) {
+strcat(login, "@");
+strcat(login, realm);
+}
my_appdata.login = login;

For some reason just "if (realm) {" didn't work for me.

Thank you again,
Dmitry



Cyrus SASL 2.1.17 and realms

2004-01-19 Thread dimon

Hi everybody,

I'm using Cyrus SASL 2.1.17 + PAM + pam-pgsql. When I used v 2.1.15 before, I 
had user login as [EMAIL PROTECTED] in pam-pgsql module. Right now SASL devides it to 
username and realm. I can still get username (without @domain part) with 
pam_get_user() function, but not realm any more. So my question is: how can I 
retrieve this realm in my pam-pgsql module? I'm new to pam programming, so if 
anyone can help me with this, I'll be very happy :-)
Is there anything like pam_get_user() function? Is it pam_get_item() function I 
have to use to get the realm?

Thank you,
Dmitry


Re: Cyrus IMAPd 2.2.3 Released

2004-01-16 Thread dimon
> 
> Auch...  saslauthd/pam is known to be unreliable, furthermore you cannot
> use saslauthd/pam combination for fully qualified userids ([EMAIL PROTECTED])
> because libsasl (2.1.17+) ignores the realm (domain) portion.  ;(
> 

But it works just fine with my other 4 servers. I have saslauthd + pam + 
pam_pgsql (patched to make proper queries to the database to retrieve password 
for the user @ domain).
I'll try to recompile it, may be it will solve that error.
Do you think it might be a hardware problem?

Thanks again,
Dmitry


Re: Cyrus IMAPd 2.2.3 Released

2004-01-16 Thread dimon

> The actual code did not change, just the Berkeley detection did.  If you
> remove db 4.1.25 from your system, the sasl configure script should find
> 4.2.52 (Do not forget to apply a patch from the sleepycat site:
> http://www.sleepycat.com/update/4.2.52/patch.4.2.52.html)
> 
I'm installing it from FreeBSD ports collection, and there is no option in 
Makefile to compile it with BDB 4.2. I can hack it to recognize 
WITH_BDB_VER=42, so this way it will add these options to configure script: --
with-bdb=db42 --with-bdb-incdir=/usr/local/include/db42
Is that what needs to be done?


> Hmm, I not sure what that is.  Can you give us backtrace and your
> saslauthd startup cmd?
> 
What is that backtrace? The startup command is the saslauthd.sh script that 
comes as a part of FreeBSD cyrus-sasl2 port:
[EMAIL PROTECTED] cyrus-sasl2]# ps ax|grep sasl
 2442  ??  Is 0:00.51 /usr/local/sbin/saslauthd -a pam
 2443  ??  I  0:00.50 /usr/local/sbin/saslauthd -a pam
 2444  ??  I  0:00.49 /usr/local/sbin/saslauthd -a pam
 2445  ??  I  0:00.49 /usr/local/sbin/saslauthd -a pam
 2446  ??  I  0:00.49 /usr/local/sbin/saslauthd -a pam

Thanks a lot!
Dmitry


Re: Cyrus IMAPd 2.2.3 Released

2004-01-16 Thread dimon
Quoting Igor Brezac <[EMAIL PROTECTED]>:

> 
> Yes.  You need to fetch sasl from CVS or hack the configure script.
> 
 
OK, that's clear. I'll better wait for new Cyrus SASL release that will support 
BDB 4.2.

But I have another problem at one of my servers with Cyrus ASL 2.1.17
(I have the same v. 2.1.17 on all of my servers installed, but it happens only 
at this server).

Here is the part of messages log file:

Jan 16 06:58:37 synodon ctl_cyrusdb[58227]: checkpointing cyrus databases
Jan 16 06:58:37 synodon ctl_cyrusdb[58227]: done checkpointing cyrus databases
Jan 16 06:59:18 synodon /kernel: pid 44234 (saslauthd), uid 0: exited on signal 
11 (core dumped)
Jan 16 06:59:18 synodon imap[58231]: size read failed
Jan 16 06:59:18 synodon imap[58231]: badlogin: [68.147.210.233] plaintext 
dennis.rendflesh SASL(-1): generic failure: checkpass failed
Jan 16 06:59:24 synodon /kernel: pid 44231 (saslauthd), uid 0: exited on signal 
11 (core dumped)
Jan 16 06:59:24 synodon imap[58231]: size read failed
Jan 16 06:59:24 synodon imap[58231]: badlogin: [68.147.210.233] plaintext 
dennis.rendflesh SASL(-1): generic failure: checkpass failed
Jan 16 06:59:28 synodon /kernel: pid 44232 (saslauthd), uid 0: exited on signal 
11 (core dumped)
Jan 16 06:59:28 synodon imap[58231]: size read failed
Jan 16 06:59:28 synodon imap[58231]: badlogin: [68.147.210.233] plaintext 
dennis.rendflesh SASL(-1): generic failure: checkpass failed
Jan 16 07:01:27 synodon imap[58247]: login: [192.168.2.243] dsheard plaintext
Jan 16 07:02:07 synodon /kernel: pid 44230 (saslauthd), uid 0: exited on signal 
11 (core dumped)
Jan 16 07:02:07 synodon imap[58250]: size read failed
Jan 16 07:02:07 synodon imap[58250]: badlogin: [68.147.210.233] plaintext 
dennis.rendflesh SASL(-1): generic failure: checkpass failed
Jan 16 07:02:30 synodon imap[58250]: badlogin: [68.147.210.233] plaintext 
dennis.rendflesh SASL(-13): authentication failure: checkpass failed
Jan 16 07:02:36 synodon imap[58250]: badlogin: [68.147.210.233] plaintext 
dennis.rendflesh SASL(-13): authentication failure: checkpass failed

What maight cause that error?

Thank you for your help,
Dmitry



Re: Cyrus IMAPd 2.2.3 Released

2004-01-16 Thread dimon


Hi folks,

If I want to compile Cyrus IMAPD with DBD 4.2 support, and I have Cyrus SASL 
2.1.17 compiled with DBD 4.1 support, do I need to recompile Cyrus SASL with 
DBD 4.2 support (does it have that support at all)?

Thank you,
Dmitry


change defaultdomain

2003-11-26 Thread dimon
Hello,

I couldn't find anything in the documentation and mailing list archives.
So I have a simple (I hope) question:
Can I change defaultdomain: option to another domain in my imapd.conf after it 
was initially setup? Does that affect anything in Cyrus IMAPD? Are there any 
issues? I'm using 2.2.1b version.

Thank you in advance
Dmitry


Re: Slightly off-topic question but very useful one

2003-10-24 Thread dimon
Quoting Michael J Barber <[EMAIL PROTECTED]>:

> This brings up another thread in this off-topic discussion.  Anyone know of a
> good web based file management tool that (preferably) can or cannot be
> integrated with a webmail client.

Gollem module for Horde system (IMP is a webmail interface and is a part of 
Horde system too). So you can have Webmail and FTP web interface in the same 
place.

Dmitry



php's imap_set_quota() function

2003-10-17 Thread dimon
Hi,

I'm trying to use PHP's imap_set_quota() function to manage user's quotas. I 
can set user's quota to 0 with:
imap_set_quota($mbox, "user/afif", none); or
imap_set_quota($mbox, "user/afif", 0);
And for sure I can set user's quota to any other value > 0
imap_set_quota($mbox, "user/afif", -1);
imap_errors() gives me this error:
"IMAP protocol error: Invalid quota list in Setquota"
I have compiled PHP with c-client 2001 FINAL as suggested at php.net site.
But it still doesn't work :-)
So I thought It might be problem with Cyrus IMAP-2.2

My configuration is:
name   : Cyrus IMAPD
version: v2.2.1-BETA 2003/07/16 21:18:54
os : FreeBSD
os-version : 4.7-RELEASE
environment: Built w/Cyrus SASL 2.1.13
 Running w/Cyrus SASL 2.1.15
 Sleepycat Software: Berkeley DB 3.3.11: (July 12, 2001)
 Built w/OpenSSL 0.9.6h  5 Dec 2002
 Running w/OpenSSL 0.9.6h  5 Dec 2002
 CMU Sieve 2.2
PHP-4.3.3
Apache/1.3.27 
c-client 2001 FINAL 

Have anyone had any issues or luck doing the same thing?
May be I missed something?

Any help would greatly appreciated!
Dmitry


Groups

2003-07-29 Thread dimon
Hi,

When I create groups in my /etc/group file to use with cyrus, I'd like to have 
them there in format [EMAIL PROTECTED]:*:gid:users which I think make sense. 
It works just fine except fot the default domain. With the default domain 
groups work only in format groupname:*:gid:users
When I have groups in format [EMAIL PROTECTED]:*:gid:users and trying to 
assign permissions to that group I'm getting following error:

localhost> sam [EMAIL PROTECTED] group:[EMAIL PROTECTED] lrsp
setaclmailbox: group:[EMAIL PROTECTED]: lrsp: Invalid identifier

Is it possible to fix that?

BTW, I'm using Cyrus-IMAPD 2.2.1beta installation from FreeBSD ports collection.

Best regards,
Dmitry


Re: Sendmail SASL Auth problem

2003-06-13 Thread dimon
Sorry guys, my fault :-)

I forgot to put
smtpauthrequiredpam_pgsql.sotry_first_pass
smtpaccount requiredpam_pgsql.sotry_first_pass

in my pam.conf file

Dmitry



Sendmail SASL Auth problem

2003-06-13 Thread dimon
Hi,

I have a problem sending mail using sendmail SASL Authentication. I'm using 
saslauthd -a pam for authentication. pam module is pam-pgsql Users can login to 
Cyrus IMAPD and receive their mail using MS Outlook Express but they can't send 
mail. The accounts setup to authenticate to mail server using the same settings 
(username and password) as for incoming mail (Cyrus IMAPD).

When I hit reseive button Authentication screen pops up, I enter valid user 
name and password and this record appers in the maillog:

Jun 13 10:26:40 mail sm-mta[4930]: h5DGQd4D004930: win2k.intellinetinc.com 
[139.142.54.35] did not issue MAIL/EXPN/VRFY/ETRN during connection to MTA

And if I run saslauthd -a pam -d

saslauthd[4982] :main: num_procs  : 5
saslauthd[4982] :main: mech_option: NULL
saslauthd[4982] :main: run_path   : /var/state/saslauthd
saslauthd[4982] :main: auth_mech  : pam
saslauthd[4982] :ipc_init: using accept lock 
file: /var/state/saslauthd/mux.accept
saslauthd[4982] :detach_tty  : master pid is: 0
saslauthd[4982] :ipc_init: listening on socket: /var/state/saslauthd/mux
saslauthd[4982] :main: using process model
saslauthd[4982] :have_baby   : forked child: 4983
saslauthd[4983] :get_accept_lock : acquired accept lock
saslauthd[4982] :have_baby   : forked child: 4984
saslauthd[4982] :have_baby   : forked child: 4985
saslauthd[4982] :have_baby   : forked child: 4986
saslauthd[4984] :get_accept_lock : acquired accept lock
saslauthd[4983] :rel_accept_lock : released accept lock
saslauthd[4983] :do_auth : auth failure: [user=dmitry] [service=smtp] 
[realm=] [mech=pam]
saslauthd[4985] :get_accept_lock : acquired accept lock
saslauthd[4984] :rel_accept_lock : released accept lock
NOTICE:  Adding missing FROM-clause entry for table "domains"
NOTICE:  Adding missing FROM-clause entry for table "domains"
saslauthd[4984] :do_auth : auth success: [user=dmitry] [service=imap] 
[realm=] [mech=pam]
saslauthd[4984] :do_request  : response: OK
saslauthd[4986] :get_accept_lock : acquired accept lock
saslauthd[4985] :rel_accept_lock : released accept lock

In my sendmail.mc I have:
define(`confAUTH_MECHANISMS',`PLAIN LOGIN DIGEST-MD5 CRAM-MD5')dnl
TRUST_AUTH_MECH(`PLAIN LOGIN DIGEST-MD5 CRAM-MD5')dnl

Do I have to add something else to my sendmail.mc?

Please help ASAP
Thank you 
Dmitry


Sieve doesn't work

2003-05-31 Thread dimon
Hi,

I just installed Cyrus-IMAPD 2.2a (from FreeBSD ports collection) on a new 
server (FreeBSD 4.8) and can't get sieve to work

I have a simple script

require ["vacation", "reject"];

# Vacation Message
if not exists ["List-Id", "List-Post", "List-Subscribe", "List-
Unsubscribe", "List-Archive", "List-Help"]  { 
vacation :days 7 :addresses "[EMAIL PROTECTED]" :subject "Test 
Vacation" "Just testing";
} 

# Test Sieve
if header :comparator "i;ascii-casemap" :contains "From" "Dmitry Sorokin "  { 
reject "Test Sieve";
stop;
} 
 
But nothing happens when mail gets delivered. I don't see any errors in my log 
files. In message headers I see X-Sieve: CMU Sieve 2.2
That means the message was filtered by Sieve, but the rules didn't work for 
some reason. 
The script is activated.

Any ideas?

Best regards,
Dmitry


Re: Groups

2003-04-03 Thread dimon
Quoting Sebastian Konstanty Zdrojewski <[EMAIL PROTECTED]>:

> The Cyrus server runs as group defined in the configure procedure. The
> use of a different kind of authentication doesn't affect this, so all
> the users are assigned to the Cyrus' master process.
> 
> Of course, if I understood well how it works! :)
> 

I mean not the group the cyrus master server is running under, but groups which 
I want to use to set ACL permissions on mailboxes, like "sam 
user/[EMAIL PROTECTED] group:mygroup read"
So my question is: where I should define the groups and users who are members 
of these groups.

Dmitry


Re: Unexistent user

2003-04-02 Thread dimon
> 
> I am sorry, but I am running out of ideas.  I use similar setup and I have
> no problem (sendmail 8.12.9).  I suggest you try news:comp.mail.sendmail
> for more answers.  This thread was a bit OT up to this point anyway.
> 
> Good luck.

OK, no problems, thank you very much for your help anyway!

Best regards,
Dmitry


Re: Unexistent user

2003-04-02 Thread dimon


> 
> I think I know what is going on.  You also need to tell sendmail what
> domains to use on LHS of the virtuser map.  So, add
> VIRTUSER_DOMAIN(domain.com)
> VIRTUSER_DOMAIN(domain2.com)
> 
> or
> 
> use VIRTUSER_DOMAIN_FILE to your .mc file.
> 
> Please see $sendmail_src/cf/README for more.

I have read README, but it doesn't say anything specific
I added
VIRTUSER_DOMAIN_FILE(`/etc/mail/virtdomains')dnl
to my sendmail.mc but still no success

virtdomains:
intellinet.ab.ca

The error is the same :-(

Dmitry


Re: Unexistent user

2003-04-02 Thread dimon

> I looked again at your .mc file and you have an error in there:
> 
> FEATURE(`virtusertable', `hash /etc/mail/virtusertable')dnl
> 
> needs to be
> 
> FEATURE(`virtusertable', `hash -T /etc/mail/virtusertable')dnl
> 
> You need to fix your other FEATURE statements, define(`_VIRTUSER_S...
> still needs to go above FEATUREs.

OK, I done that

That's what I have in my sendmail.mc and it still doesn't work :-(((

divert(0)dnl
VERSIONID(`$Id: generic-bsd4.4.mc,v 8.10 1999/02/07 07:26:02 gshapiro Exp $')
OSTYPE(bsd4.4)dnl
DOMAIN(generic)dnl

define(`confAUTH_MECHANISMS',`DIGEST-MD5 CRAM-MD5 LOGIN PLAIN')dnl
TRUST_AUTH_MECH(`DIGEST-MD5 CRAM-MD5 LOGIN PLAIN')dnl

define(`confCACERT_PATH', `/etc/mail')dnl
define(`confCACERT', `/etc/mail/newcert.pem')dnl
define(`confSERVER_CERT', `/etc/mail/server.pem')dnl
define(`confSERVER_KEY', `/etc/mail/server.pem')dnl
define(`_USE_CT_FILE_', `/etc/mail/trusted-users')dnl

define(`_FFR_MILTER',1)
MAIL_FILTER(`mimedefang', `S=local:/var/spool/MIMEDefang/mimedefang.sock, F=T, 
T=C:15m;S:4m;R:4m;E:10m')dnl
MAIL_FILTER(`drweb-filter', `S=local:/var/run/drweb/drweb-smf.sock, F=T, 
T=C:1m;S:5m;R:5m;E:1h')dnl
define(`confINPUT_MAIL_FILTERS', `mimedefang,drweb-filter')dnl
define(`confMILTER_LOG_LEVEL',`6')dnl

define(`_VIRTUSER_STOP_ONE_LEVEL_RECURSION_', `1')dnl
FEATURE(`virtusertable', `hash -T /etc/mail/virtusertable')dnl
FEATURE(`mailertable', `hash -T /etc/mail/mailertable')dnl
FEATURE(`nocanonify')dnl
FEATURE(`always_add_domain')dnl

MAILER(`smtp')dnl
MAILER(`local')dnl
MAILER(`cyrusv2')dnl

define(`confLOCAL_MAILER', `cyrusv2')dnl


The error is the same:
Apr  2 10:23:21 mail sm-mta[98372]: h32HNK9H098372: SYSERR(root): rewrite: map 
macro not found

I'm using Sendmail 8.12.9

Dmitry


Groups

2003-04-02 Thread dimon
I asked that question but still didn't get an answer:

I'm using 'saslauthd -a pam' for IMAP authentication (pam_pgsql actually) and 
compiled cyrus-imapd22 --with-auth=unix
Should I still use /etc/groups for users group membership (to set access 
mailbox permissions) or maybe there is a way to use database for that?

Best regards,
Dmitry


Re: Unexistent user

2003-04-02 Thread dimon
Quoting Igor Brezac <[EMAIL PROTECTED]>:

> You need to modify cyrus mailer as described here:
> http://asg.web.cmu.edu/archive/message.php?mailbox=archive.info-
cyrus&searchterm=EnvFromSMTP&msg=20324

Yes, I've done that already

> Are you certain your sendmail installation is using correct .cf files?

Yes, when I remove define(`_VIRTUSER_STOP_ONE_LEVEL_RECURSION_', `1')dnl from 
sendmail.mc and rebuild/install sendmail.cf everything works just fine.

If I configure define(`_VIRTUSER_STOP_ONE_LEVEL_RECURSION_', `1')dnl in my 
sendmail.mc, then rebuld/install sendmail.cf, sendmail isn't accepting mail and 
generating this error on each incoming message:
Apr  2 10:23:21 mail sm-mta[98372]: h32HNK9H098372: SYSERR(root): rewrite: map 
macro not found

I tried to search google for this error but couldn't find anything at all :-(

Dmitry


Re: Unexistent user

2003-04-02 Thread dimon
 
> I do not see anything trying to deliver to cyrus mailer.  There is one
> attempt to send email to [EMAIL PROTECTED], most everything else is
> misconfigured MSP (submit.cf) and attempts to notify postmaster about
> those errors.
> 

Do I have to add any options to submit.mc too?

This is my submit.mc (I didn't change it)
divert(0)dnl
VERSIONID(`$Id: submit.mc,v 8.6.2.4 2002/12/29 03:54:34 ca Exp $')
define(`confCF_VERSION', `Submit')dnl
define(`__OSTYPE__',`')dnl dirty hack to keep proto.m4 from complaining
define(`_USE_DECNET_SYNTAX_', `1')dnl support DECnet
define(`confTIME_ZONE', `USE_TZ')dnl
define(`confDONT_INIT_GROUPS', `True')dnl
dnl
dnl If you use IPv6 only, change [127.0.0.1] to [IPv6:::1]
FEATURE(`msp', `[127.0.0.1]')dnl

> 
> You need to move define('_VIRT) above FEATURE statements.  Make sure
> local-host-names is empty.  What are the contents of virtuser and
> mailertable?
> 
I tried that too and there is no effect at all.

In my mailertable I have:
intellinet.ab.cacyrusv2:/var/imap/socket/lmtp

And in virtusertable:
@intellinet.ab.ca [EMAIL PROTECTED]


> 
> --
> Igor
> 




Re: Unexistent user

2003-03-31 Thread dimon
Quoting Igor Brezac <[EMAIL PROTECTED]>:

> 
> If you have define(`_VIRTUSER_STOP_ONE_LEVEL_RECURSION_', `1')dnl and a
> mailertable entry for domain.com, this will work.
> 

I did that and that's what I've got:

Mar 31 16:45:21 mail sm-mta[90664]: h2VNjL2r090664: SYSERR(root): rewrite: map 
macro not found
Mar 31 16:45:21 mail sendmail[90663]: h2VNjLdX090663: [EMAIL PROTECTED], 
[EMAIL PROTECTED] (
80/80), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30668, relay=
[127.0.0.1] [127.0.0.1], dsn=5.0.0, st
at=Service unavailable
Mar 31 16:45:21 mail sendmail[90663]: h2VNjLdX090663: h2VNjLdY090663: DSN: 
Service unavailable
Mar 31 16:45:21 mail sm-mta[90664]: h2VNjL2s090664: SYSERR(root): rewrite: map 
macro not found
Mar 31 16:45:21 mail sendmail[90663]: h2VNjLdY090663: 
[EMAIL PROTECTED], delay=00:00:00, xdelay=00:00:
00, mailer=relay, pri=33081, relay=[127.0.0.1], dsn=5.3.0, stat=Service 
unavailable
Mar 31 16:45:21 mail sm-mta[90664]: h2VNjL2s090664: from=<>, size=3081, 
class=0, nrcpts=0, proto=ESMTP, daemon
=MTA, relay=localhost [127.0.0.1]
Mar 31 16:45:21 mail sendmail[90663]: h2VNjLdY090663: h2VNjLdZ090663: return to 
sender: Service unavailable
Mar 31 16:45:21 mail sm-mta[90664]: h2VNjL2u090664: SYSERR(root): rewrite: map 
macro not found
Mar 31 16:45:21 mail sendmail[90663]: h2VNjLdZ090663: to=postmaster, 
delay=00:00:00, xdelay=00:00:00, mailer=r
elay, pri=34105, relay=[127.0.0.1] [127.0.0.1], dsn=5.3.0, stat=Service 
unavailable
Mar 31 16:45:21 mail sm-mta[90664]: h2VNjL2u090664: from=<>, size=4105, 
class=0, nrcpts=0, proto=ESMTP, daemon
=MTA, relay=localhost [127.0.0.1]
Mar 31 16:45:21 mail sendmail[90663]: h2VNjLdY090663: 
Losing ./qfh2VNjLdY090663: savemail panic
Mar 31 16:45:21 mail sendmail[90663]: h2VNjLdY090663: SYSERR(www): savemail: 
cannot save rejected email anywhe
re
Mar 31 16:45:23 mail sm-mta[90659]: h2VNjN2q090659: SYSERR(root): rewrite: map 
macro not found
Mar 31 16:49:39 mail sm-mta[90706]: h2VNnd2q090706: SYSERR(root): rewrite: map 
macro not found
.. and so on 


May be that feature conflicts with other features/settings in my sendmail.mc?

This is my senmdmail.mc file:

divert(0)dnl
OSTYPE(freebsd4)dnl
DOMAIN(generic)dnl

define(`confAUTH_MECHANISMS',`DIGEST-MD5 CRAM-MD5 LOGIN PLAIN')dnl
TRUST_AUTH_MECH(`DIGEST-MD5 CRAM-MD5 LOGIN PLAIN')dnl

define(`confCACERT_PATH', `/etc/mail')dnl
define(`confCACERT', `/etc/mail/newcert.pem')dnl
define(`confSERVER_CERT', `/etc/mail/server.pem')dnl
define(`confSERVER_KEY', `/etc/mail/server.pem')dnl
define(`_USE_CT_FILE_', `/etc/mail/trusted-users')dnl

define(`_FFR_MILTER',1)
MAIL_FILTER(`mimedefang', `S=local:/var/spool/MIMEDefang/mimedefang.sock, F=T, 
T=C:15m;S:4m;R:4m;E:10m')dnl
MAIL_FILTER(`drweb-filter', `S=local:/var/run/drweb/drweb-smf.sock, F=T, 
T=C:1m;S:5m;R:5m;E:1h')dnl
define(`confINPUT_MAIL_FILTERS', `mimedefang,drweb-filter')dnl
define(`confMILTER_LOG_LEVEL',`6')dnl


FEATURE(`virtusertable', `hash /etc/mail/virtusertable')dnl
FEATURE(`mailertable', `hash /etc/mail/mailertable')dnl
FEATURE(`nocanonify')dnl
FEATURE(`always_add_domain')dnl
define(`_VIRTUSER_STOP_ONE_LEVEL_RECURSION_', `1')dnl

MAILER(`smtp')dnl
MAILER(`local')dnl
MAILER(`cyrusv2')dnl

define(`confLOCAL_MAILER', `cyrusv2')dnl

> You are confused because LHS and RHS are the same, but they mean two
> different things.  LHS is an email address, RHS is a mailbox.  You can
> also use this as one-to-one and many-to-one alias table.
> 
> >
> --
> Igor
> 



Groups

2003-03-31 Thread dimon
I'm using 'saslauthd -a pam' for IMAP authentication (pam_pgsql actually) and 
compiled cyrus-imapd22 --with-auth=unix
Should I still use /etc/groups for group membership?

Best regards,
Dmitry


Re: Unexistent user

2003-03-31 Thread dimon
You mean I should have records in virtusertable for all my users? If I want to 
forward all mail coming to unexistent users I must have records for all valid 
users in that domain, right?
Like this:
[EMAIL PROTECTED][EMAIL PROTECTED]
???
But it doesn't make sense.


Quoting Igor Brezac <[EMAIL PROTECTED]>:

> 
> You should still use virtusertable, otherwise lmtp will be dealing with
> all the junk that sendmail can turn away during 'rcpt to'.  In addition,
> sendmail will be trying to deliver bounced messages from lmtp for days.
> 
> --
> Igor
> 




Unexistent user

2003-03-31 Thread dimon
How can I configure Curus IMAP v 2.2 to forward all incoming mail to unexistent 
users in specific domain to specific email address.
Since v 2.2 supports virtual domains I'm not using Sendmail's virtusertable any 
more. But I'm missing this important feature :-(
In virtusertable I could do this:
@domain.com [EMAIL PROTECTED]

Is there similar config option in Cyrus IMAP Server?

Best regards,
Dmitry



Re: Virtual domain Sendmail problem

2003-03-14 Thread dimon
Nevermind, I fixed that issue!

I had my domain names in /etc/local-host-names instead of /etc/relay-domains
Now everything works

Thanx,
Dmitry

Quoting [EMAIL PROTECTED]:

> Hi,
> 
> I configured Cyrus IMAP and Sendmail according install-virtdomains.html:
> 
> in /etc/mailertable
> intellinet.ab.ca  cyrusv2:/var/imap/socket/lmtp
> skillsforsuccess.ca  cyrusv2:/var/imap/socket/lmtp
> 
> then
> makemap hash /etc/mail/mailertable < /etc/mail/mailertable
> 
> in sendmail.mc
> FEATURE(`mailertable', `hash /etc/mail/mailertable')
> MAILER(`smtp')dnl
> MAILER(`local')dnl
> MAILER(`cyrusv2')dnl
> 
> in sendmail.cf fixed
> S=EnvFromSMTP/HdrFromL, R=EnvToL/HdrToL,
> 
> in imapd.conf added
> virtdomains: yes
> defaultdomain: intellinet.ab.ca
> 
> and I have users:
> user/test.user (\HasChildren)
> user/test.user/Deleted Items (\HasNoChildren)
> user/test.user/Drafts (\HasNoChildren)
> user/test.user/SPAM (\HasNoChildren)
> user/test.user/Sent Items (\HasNoChildren)
> user/[EMAIL PROTECTED] (\HasNoChildren)
> 
> But still I can't receive mail It seems that sendmail passes FQDN to cyrus2
> but
> it can't recognize users anyway
> Here is the strip from sendmail log file:
> 
> Mar 14 12:55:32 intellinet sm-mta[35564]: NOQUEUE: connect from
> web41302.mail.yahoo.com [66.218.93.51]
> Mar 14 12:55:32 intellinet sm-mta[35564]: AUTH: available mech=LOGIN
> ANONYMOUS
> PLAIN DIGEST-MD5 CRAM-MD5, allo
> wed mech=DIGEST-MD5 CRAM-MD5 LOGIN PLAIN
> Mar 14 12:55:32 intellinet sm-mta[35564]: h2EJtWLG035564: --- 220
> localhost.intellinet.ab.ca ESMTP Sendmail 8.
> 12.8/8.12.8; Fri, 14 Mar 2003 12:55:32 -0700 (MST)
> Mar 14 12:55:32 intellinet sm-mta[35564]: h2EJtWLG035564: <-- HELO
> web41302.mail.yahoo.com
> Mar 14 12:55:32 intellinet sm-mta[35564]: h2EJtWLG035564: --- 250
> localhost.intellinet.ab.ca Hello web41302.ma
> il.yahoo.com [66.218.93.51], pleased to meet you
> Mar 14 12:55:32 intellinet sm-mta[35564]: h2EJtWLG035564: <-- MAIL
> FROM:<[EMAIL PROTECTED]>
> Mar 14 12:55:32 intellinet sm-mta[35564]: h2EJtWLG035564: --- 250 2.1.0
> <[EMAIL PROTECTED]>... Sender ok
> 
> Mar 14 12:55:32 intellinet sm-mta[35564]: h2EJtWLG035564: <-- RCPT
> TO:<[EMAIL PROTECTED]>
> Mar 14 12:55:32 intellinet sm-mta[35564]: h2EJtWLG035564: --- 250 2.1.5
> <[EMAIL PROTECTED]>... Recipi
> ent ok
> Mar 14 12:55:32 intellinet sm-mta[35564]: h2EJtWLG035564: <-- DATA
> Mar 14 12:55:32 intellinet sm-mta[35564]: h2EJtWLG035564: --- 354 Enter mail,
> end with "." on a line by itself
> 
> Mar 14 12:55:32 intellinet sm-mta[35564]: h2EJtWLG035564:
> from=<[EMAIL PROTECTED]>, size=495, class=0, n
> rcpts=1, msgid=<[EMAIL PROTECTED]>,
> proto=SMTP, daemon=MTA, relay=web41302.ma
> il.yahoo.com [66.218.93.51]
> Mar 14 12:55:33 intellinet sm-mta[35564]: h2EJtWLG035564: --- 250 2.0.0
> h2EJtWLG035564 Message accepted for de
> livery
> Mar 14 12:55:33 intellinet sm-mta[35570]: h2EJtWLG035564: --- 050
> <[EMAIL PROTECTED]>... Connecting t
> o /var/imap/socket/lmtp via cyrusv2...
> Mar 14 12:55:33 intellinet sm-mta[35570]: AUTH=client, relay=localhost,
> mech=,
> bits=0
> Mar 14 12:55:33 intellinet sm-mta[35570]: h2EJtWLG035564: --- 550 5.1.1
> <[EMAIL PROTECTED]>... User u
> nknown (hold)
> Mar 14 12:55:33 intellinet sm-mta[35570]: h2EJtWLG035564:
> to=<[EMAIL PROTECTED]>, delay=00:00:01, xde
> lay=00:00:00, mailer=cyrusv2, pri=30365, relay=localhost, dsn=5.1.1,
> stat=User
> unknown
> Mar 14 12:55:33 intellinet sm-mta[35570]: h2EJtWLG035564: h2EJtXLG035570:
> DSN:
> User unknown
> Mar 14 12:55:33 intellinet sm-mta[35564]: h2EJtWLH035564: <-- QUIT
> Mar 14 12:55:33 intellinet sm-mta[35564]: h2EJtWLH035564: --- 221 2.0.0
> localhost.intellinet.ab.ca closing con
> nection
> Mar 14 12:55:33 intellinet sm-mta[35570]: h2EJtXLG035570: --- 050
> <[EMAIL PROTECTED]>... Connecting to m
> x1.mail.yahoo.com. via esmtp...
> Mar 14 12:55:33 intellinet sm-mta[35570]: h2EJtXLG035570: SMTP outgoing
> connect
> on mail.intellinet.ab.ca
> Mar 14 12:55:34 intellinet sm-mta[35570]: h2EJtXLG035570: --- 050
> <[EMAIL PROTECTED]>... Sent (ok dirdel
> )
> Mar 14 12:55:34 intellinet sm-mta[35570]: h2EJtXLG035570:
> to=<[EMAIL PROTECTED]>, delay=00:00:01, xdelay
> =00:00:01, mailer=esmtp, pri=31646, relay=mx1.mail.yahoo.com. [64.156.215.5],
> dsn=2.0.0, stat=Sent (ok dirdel)
> 
> Mar 14 12:55:34 intellinet sm-mta[35570]: h2EJtXLG035570: done;
> delay=00:00:01,
> ntries=1
> Mar 14 12:55:34 intellinet sm-mta[35570]: h2EJtWLG035564: done;
> delay=00:00:02,
> ntries=1
> Mar 14 12:55:34 intellinet sm-mta[35570]: NOQUEUE: --- 050 Closing connection
> to mx1.mail.yahoo.com.
> Mar 14 12:55:34 intellinet sm-mta[35570]: NOQUEUE: --- 050 Closing connection
> to localhost
> 
> Dmitry
> 




Virtual domain Sendmail problem

2003-03-14 Thread dimon
Hi,

I configured Cyrus IMAP and Sendmail according install-virtdomains.html:

in /etc/mailertable
intellinet.ab.ca  cyrusv2:/var/imap/socket/lmtp
skillsforsuccess.ca  cyrusv2:/var/imap/socket/lmtp

then
makemap hash /etc/mail/mailertable < /etc/mail/mailertable

in sendmail.mc
FEATURE(`mailertable', `hash /etc/mail/mailertable')
MAILER(`smtp')dnl
MAILER(`local')dnl
MAILER(`cyrusv2')dnl

in sendmail.cf fixed
S=EnvFromSMTP/HdrFromL, R=EnvToL/HdrToL,

in imapd.conf added
virtdomains: yes
defaultdomain: intellinet.ab.ca

and I have users:
user/test.user (\HasChildren)
user/test.user/Deleted Items (\HasNoChildren)
user/test.user/Drafts (\HasNoChildren)
user/test.user/SPAM (\HasNoChildren)
user/test.user/Sent Items (\HasNoChildren)
user/[EMAIL PROTECTED] (\HasNoChildren)

But still I can't receive mail It seems that sendmail passes FQDN to cyrus2 but 
it can't recognize users anyway
Here is the strip from sendmail log file:

Mar 14 12:55:32 intellinet sm-mta[35564]: NOQUEUE: connect from 
web41302.mail.yahoo.com [66.218.93.51]
Mar 14 12:55:32 intellinet sm-mta[35564]: AUTH: available mech=LOGIN ANONYMOUS 
PLAIN DIGEST-MD5 CRAM-MD5, allo
wed mech=DIGEST-MD5 CRAM-MD5 LOGIN PLAIN
Mar 14 12:55:32 intellinet sm-mta[35564]: h2EJtWLG035564: --- 220 
localhost.intellinet.ab.ca ESMTP Sendmail 8.
12.8/8.12.8; Fri, 14 Mar 2003 12:55:32 -0700 (MST)
Mar 14 12:55:32 intellinet sm-mta[35564]: h2EJtWLG035564: <-- HELO 
web41302.mail.yahoo.com
Mar 14 12:55:32 intellinet sm-mta[35564]: h2EJtWLG035564: --- 250 
localhost.intellinet.ab.ca Hello web41302.ma
il.yahoo.com [66.218.93.51], pleased to meet you
Mar 14 12:55:32 intellinet sm-mta[35564]: h2EJtWLG035564: <-- MAIL 
FROM:<[EMAIL PROTECTED]>
Mar 14 12:55:32 intellinet sm-mta[35564]: h2EJtWLG035564: --- 250 2.1.0 
<[EMAIL PROTECTED]>... Sender ok

Mar 14 12:55:32 intellinet sm-mta[35564]: h2EJtWLG035564: <-- RCPT 
TO:<[EMAIL PROTECTED]>
Mar 14 12:55:32 intellinet sm-mta[35564]: h2EJtWLG035564: --- 250 2.1.5 
<[EMAIL PROTECTED]>... Recipi
ent ok
Mar 14 12:55:32 intellinet sm-mta[35564]: h2EJtWLG035564: <-- DATA
Mar 14 12:55:32 intellinet sm-mta[35564]: h2EJtWLG035564: --- 354 Enter mail, 
end with "." on a line by itself

Mar 14 12:55:32 intellinet sm-mta[35564]: h2EJtWLG035564: 
from=<[EMAIL PROTECTED]>, size=495, class=0, n
rcpts=1, msgid=<[EMAIL PROTECTED]>, 
proto=SMTP, daemon=MTA, relay=web41302.ma
il.yahoo.com [66.218.93.51]
Mar 14 12:55:33 intellinet sm-mta[35564]: h2EJtWLG035564: --- 250 2.0.0 
h2EJtWLG035564 Message accepted for de
livery
Mar 14 12:55:33 intellinet sm-mta[35570]: h2EJtWLG035564: --- 050 
<[EMAIL PROTECTED]>... Connecting t
o /var/imap/socket/lmtp via cyrusv2...
Mar 14 12:55:33 intellinet sm-mta[35570]: AUTH=client, relay=localhost, mech=, 
bits=0
Mar 14 12:55:33 intellinet sm-mta[35570]: h2EJtWLG035564: --- 550 5.1.1 
<[EMAIL PROTECTED]>... User u
nknown (hold)
Mar 14 12:55:33 intellinet sm-mta[35570]: h2EJtWLG035564: 
to=<[EMAIL PROTECTED]>, delay=00:00:01, xde
lay=00:00:00, mailer=cyrusv2, pri=30365, relay=localhost, dsn=5.1.1, stat=User 
unknown
Mar 14 12:55:33 intellinet sm-mta[35570]: h2EJtWLG035564: h2EJtXLG035570: DSN: 
User unknown
Mar 14 12:55:33 intellinet sm-mta[35564]: h2EJtWLH035564: <-- QUIT
Mar 14 12:55:33 intellinet sm-mta[35564]: h2EJtWLH035564: --- 221 2.0.0 
localhost.intellinet.ab.ca closing con
nection
Mar 14 12:55:33 intellinet sm-mta[35570]: h2EJtXLG035570: --- 050 
<[EMAIL PROTECTED]>... Connecting to m
x1.mail.yahoo.com. via esmtp...
Mar 14 12:55:33 intellinet sm-mta[35570]: h2EJtXLG035570: SMTP outgoing connect 
on mail.intellinet.ab.ca
Mar 14 12:55:34 intellinet sm-mta[35570]: h2EJtXLG035570: --- 050 
<[EMAIL PROTECTED]>... Sent (ok dirdel
)
Mar 14 12:55:34 intellinet sm-mta[35570]: h2EJtXLG035570: 
to=<[EMAIL PROTECTED]>, delay=00:00:01, xdelay
=00:00:01, mailer=esmtp, pri=31646, relay=mx1.mail.yahoo.com. [64.156.215.5], 
dsn=2.0.0, stat=Sent (ok dirdel)

Mar 14 12:55:34 intellinet sm-mta[35570]: h2EJtXLG035570: done; delay=00:00:01, 
ntries=1
Mar 14 12:55:34 intellinet sm-mta[35570]: h2EJtWLG035564: done; delay=00:00:02, 
ntries=1
Mar 14 12:55:34 intellinet sm-mta[35570]: NOQUEUE: --- 050 Closing connection 
to mx1.mail.yahoo.com.
Mar 14 12:55:34 intellinet sm-mta[35570]: NOQUEUE: --- 050 Closing connection 
to localhost

Dmitry


Cyrus IMAPD 2.2 source download

2003-03-14 Thread dimon
Hi,

Could anybody tell me where I can get Cyrus IMAPD 2.2 sources? I tried from CVS 
co -d cyrus-imapd2_2 cyrus. But when I compile and install it, telnet localhost 
143 produces "Cyrus IMAP4 v2.1.12 server ready"

Best regards,
Dmitry


Re: pam_pgsql and sasl authentication

2003-03-13 Thread dimon
Nevermind, I solved that problem!
I found the ansver in mailing list archives:
I needed to have in my /etc/pam.conf:
imapaccountrequiredpam_pgsql.so   try_first_pass
sieve   accountrequiredpam_pgsql.so   try_first_pass

Thanx everybody
Dimon

Quoting [EMAIL PROTECTED]:

> I've setup PostgreSQl as a container for email accounts and installed and
> configured pam_pgsql
> But when I'm trying to login as a test.user I'm getting these errors:
> 
> in var/log/auth.log
> Mar 13 09:35:05 intellinet saslauthd[77076]: attempting to authenticate:
> test.user
> Mar 13 09:35:05 intellinet saslauthd[77076]: received : user: 'test.user',
> pass: 'test.user'
> Mar 13 09:35:05 intellinet saslauthd[77076]: query: SELECT password FROM
> email
> WHERE login='test.user'
> Mar 13 09:35:05 intellinet saslauthd[77076]: user test.user authenticated.
> Mar 13 09:35:05 intellinet saslauthd[77076]: DEBUG: auth_pam: pam_acct_mgmt
> failed: User not known to the underlying authentication module
> Mar 13 09:35:05 intellinet saslauthd[77076]: AUTHFAIL: user=test.user
> service=imap realm= [PAM acct error]
> 
> and in /var/log/messages:
> Mar 13 09:35:11 intellinet saslauthd[77078]: AUTHFAIL: user=test.user
> service=imap realm= [PAM acct error]
> Mar 13 09:35:11 intellinet imapd[79912]: badlogin: intellinet.ab.ca
> [139.142.54.38] plaintext test.user SASL(-13): authentication failure:
> checkpass failed
> 
> In my /etc/pam.conf I have:
> imapauthrequiredpam_pgsql.so   
> try_first_pass
> sieve   authrequiredpam_pgsql.so   
> try_first_pass
> saslauthd   authrequiredpam_pgsql.so   
> try_first_pass
> 
> and I'm running saslauthd -a pam
> 
> The user seems to be authenticated first right, but then
> DEBUG: auth_pam: pam_acct_mgmt failed: User not known to the underlying
> authentication module
> I don't know where it comes from :-(
> If anyone could help me please!
> 
> Best regards,
> Dmitry
> 




pam_pgsql and sasl authentication

2003-03-13 Thread dimon
I've setup PostgreSQl as a container for email accounts and installed and 
configured pam_pgsql
But when I'm trying to login as a test.user I'm getting these errors:

in var/log/auth.log
Mar 13 09:35:05 intellinet saslauthd[77076]: attempting to authenticate: 
test.user
Mar 13 09:35:05 intellinet saslauthd[77076]: received : user: 'test.user', 
pass: 'test.user'
Mar 13 09:35:05 intellinet saslauthd[77076]: query: SELECT password FROM email 
WHERE login='test.user'
Mar 13 09:35:05 intellinet saslauthd[77076]: user test.user authenticated.
Mar 13 09:35:05 intellinet saslauthd[77076]: DEBUG: auth_pam: pam_acct_mgmt 
failed: User not known to the underlying authentication module
Mar 13 09:35:05 intellinet saslauthd[77076]: AUTHFAIL: user=test.user 
service=imap realm= [PAM acct error]

and in /var/log/messages:
Mar 13 09:35:11 intellinet saslauthd[77078]: AUTHFAIL: user=test.user 
service=imap realm= [PAM acct error]
Mar 13 09:35:11 intellinet imapd[79912]: badlogin: intellinet.ab.ca
[139.142.54.38] plaintext test.user SASL(-13): authentication failure: 
checkpass failed

In my /etc/pam.conf I have:
imapauthrequiredpam_pgsql.sotry_first_pass
sieve   authrequiredpam_pgsql.sotry_first_pass
saslauthd   authrequiredpam_pgsql.sotry_first_pass

and I'm running saslauthd -a pam

The user seems to be authenticated first right, but then 
DEBUG: auth_pam: pam_acct_mgmt failed: User not known to the underlying 
authentication module
I don't know where it comes from :-(
If anyone could help me please!

Best regards,
Dmitry


Sieve problem

2003-03-07 Thread dimon
Hi,

I've setup cyrus IMAP with sieve a few weeks ago. It works just fine for me! 
But I couldn't find info how I can have global sieve rules. Is there a way to 
set up global rules for all users defined by administrator? I want sometimes 
change some rules for all my users, but going to each users folder is not a 
good idea at all. And I'd also like my users to override global rules by 
setting theit own. I couldn't find anything about that.

If somebody could point me to the right direction, it would be greatly 
appreciated!

Best regards,
Dmitry


Re: Vacation problem

2003-01-22 Thread dimon
Quoting John Alton Tamplin <[EMAIL PROTECTED]>:

> [EMAIL PROTECTED] wrote:
> 
> >So what is you suggestion? How do I fix this problem? Why the mail server 
> >doesn't accept the message if the envelope from set right?
> >
> It is hard to tell from the logs since you are using 4 different email 
> addresses, but it looks like sieve tried to send mail from <> (which 
> sendmail accepted, but gave an authentication warning since cyrus isn't 
> listed as a trusted user in your sendmail.cf file) to 
> [EMAIL PROTECTED]  That gets sent, apparently to the same 
> MTA, which then has a problem talking to the relay 
> mail.montana-education.ab.ca.  It then tries to send it to 
> [EMAIL PROTECTED] (presumably an alias from postmaster), and 
> again has a problem talking to mail.intellinetinc.com and panics since 
> it has nowhere to send the bounce message.  So, it looks like Cyrus is 
> fine but your MTA is misconfigured.
> 

I did some code change in lmtpd.c in function send_response (line 872):
I changed smbuf[3] = "<>"; to smbuf[3] = "<[EMAIL PROTECTED]>";
And it worked fine. Assuming that, I think the problem is in  MTA (Sendmail in 
my case) configuration. BUT I didn't configured my sendmail to refuse empty 
Return-Path: 
I suspect Sendmail is configured to do that by default. And I'm sure there are 
thousands MTAs doing the same thing (let's say to reject spam messages using 
empty Return-Path)
I'm not sure whose problem is that, cyrus or MTA but by defaulf installation 
(and wothout some code change in lmtpd.c) it simply does'n work!

Dmitry



Re: Vacation problem

2003-01-22 Thread dimon
Quoting John Alton Tamplin <[EMAIL PROTECTED]>:

> [EMAIL PROTECTED] wrote:
> 
> >I'm wondering why cyrus setting sender to <>, not to <[EMAIL PROTECTED]>,
> or 
> >even  as I made configuration in my imapd.conf?
> >May be I missed something?
> >
> You don't want an auto-generated message generating a bounce message, 
> since that could lead to an infinite loop.  Thus, just like 
> mailer-daemon messages in the MTA, a vacation message should have the 
> envelope from set to <>.
> 

So what is you suggestion? How do I fix this problem? Why the mail server 
doesn't accept the message if the envelope from set right?




Vacation problem

2003-01-22 Thread dimon
Hello,

I have Cyrus IMAP + Sendmail installed
in my imapd.conf ia have
duplicatesuppression: yes
sieveusehomedir: false
sievedir: /var/imap/sieve
sendmail: /usr/sbin/sendmail
postmaster: postmaster
sieve_maxscriptsize: 32
sieve_maxscripts: 50

And everything works fine, except for vacation message sending back to sender.

This is the part of my maillog:

Jan 22 14:54:34 synodon sm-mta[10247]: h0MLsXHp010247: 
from=<[EMAIL PROTECTED]>, size=882, class=0, nrcpts=1, 
msgid=<[EMAIL PROTECTED]>, proto=ESMTP, 
daemon=MTA, relay=[198.161.98.157]
Jan 22 14:54:46 synodon sm-mta[10255]: h0MLsXHp010247: to=<[EMAIL PROTECTED]>, 
delay=00:00:12, xdelay=00:00:00, mailer=cyrusv2, pri=30872, relay=localhost, 
dsn=2.0.0, stat=Sent
Jan 22 14:55:42 synodon sm-mta[10261]: h0MLtgHp010261: from=, size=954, class=0, nrcpts=1, 
msgid=<[EMAIL PROTECTED]>, proto=ESMTP, 
daemon=MTA, relay=[198.161.98.159]
Jan 22 14:55:46 synodon sendmail[10271]: h0MLtkqQ010271: Authentication-
Warning: synodon.com: cyrus set sender to <> using -f
Jan 22 14:55:46 synodon sendmail[10271]: h0MLtkqQ010271: from=<>, size=312, 
class=0, nrcpts=1, msgid=<[EMAIL PROTECTED]>, 
relay=cyrus@localhost
Jan 22 14:55:47 synodon sm-mta[10272]: STARTTLS=server, relay=localhost 
[127.0.0.1], version=TLSv1/SSLv3, verify=NO, cipher=EDH-RSA-DES-CBC3-SHA, 
bits=168/168
Jan 22 14:55:47 synodon sendmail[10271]: STARTTLS=client, relay=[127.0.0.1], 
version=TLSv1/SSLv3, verify=FAIL, cipher=EDH-RSA-DES-CBC3-SHA, bits=168/168
Jan 22 14:55:47 synodon sm-mta[10272]: h0MLtkHq010272: from=<>, size=548, 
class=0, nrcpts=1, msgid=<[EMAIL PROTECTED]>, 
proto=ESMTP, daemon=MTA, relay=localhost [127.0.0.1]
Jan 22 14:55:50 synodon sendmail[10271]: h0MLtkqQ010271: to=dmitry@montana-
education.ab.ca, delay=00:00:04, xdelay=00:00:04, mailer=relay, pri=30307, 
relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (h0MLtkHq010272 Me
ssage accepted for delivery)
Jan 22 14:55:50 synodon sm-mta[10269]: h0MLtgHp010261: to=<[EMAIL PROTECTED]>, 
delay=00:00:08, xdelay=00:00:0
4, mailer=cyrusv2, pri=30944, relay=localhost, dsn=2.0.0, stat=Sent
Jan 22 14:55:50 synodon sm-mta[10280]: h0MLtkHq010272: to=, delay=00:00:03, xdelay=00:00:00, mailer=esmtp, pri=30543, 
relay=mail.montana-education.ab.ca. [198.161.98.159], dsn=5.0.0, stat=
Service unavailable
Jan 22 14:55:50 synodon sm-mta[10280]: h0MLtkHq010272: h0MLtoHp010280: 
postmaster notify: Service unavailable
Jan 22 14:55:50 synodon sm-mta[10280]: h0MLtoHp010280: 
[EMAIL PROTECTED], delay=00:00:00, xdelay=00:
00:00, mailer=esmtp, pri=31757, relay=mail.intellinetinc.com. [139.142.54.37], 
dsn=5.0.0, stat=Service unavailable
Jan 22 14:55:50 synodon sm-mta[10280]: h0MLtoHp010280: h0MLtoHq010280: return 
to sender: Service unavailable
Jan 22 14:55:50 synodon sm-mta[10280]: h0MLtoHq010280: 
[EMAIL PROTECTED], delay=00:00:00, xdelay=00:00:00, mailer=esmtp, 
pri=32781, relay=mail.intellinetinc.com., dsn=5.0.0, stat=Service unavailable
Jan 22 14:55:50 synodon sm-mta[10280]: h0MLtoHp010280: 
Losing ./qfh0MLtoHp010280: savemail panic
Jan 22 14:55:50 synodon sm-mta[10280]: h0MLtoHp010280: SYSERR(root): savemail: 
cannot save rejected email anywhere

So, the sender never gets the vacation message.
I'm wondering why cyrus setting sender to <>, not to <[EMAIL PROTECTED]>, or 
even  as I made configuration in my imapd.conf?
May be I missed something?
What could be done to fix that problem?

Thanks,
Dmitry