Plus addressing with exim and lmtp socket

2004-08-02 Thread Kevin Moschallski
Hi,

I use cyrus-imapd with exim. I deliver the mail from exim using the
lmtpd unix socket. All mails arrive fine but even when i try to send a
mail to a sub folder directly it ends in the users INBOX. I set the ACLs
to the users mailboxes to cyrus all and anyone p. But the mails do end
in the users INBOX.

Here is my config:

imapd.conf

# $Header:
/var/cvsroot/gentoo-x86/net-mail/cyrus-imapd/files/imapd.conf,v 1.4
2004/07/18 04:02:23 dragonheart Exp $

# Don't forget to use chattr +S (if you are using ext[23])
# when you change these directories (read the docs).
configdirectory:/var/imap
partition-default:  /var/spool/imap
sievedir:   /var/imap/sieve

tls_ca_path:/etc/ssl/certs
tls_cert_file:  /etc/ssl/cyrus/server.crt
tls_key_file:   /etc/ssl/cyrus/server.key

# Don't use an everyday user as admin.
admins: admin cyrus

sasl_pwcheck_method:auxprop
sasl_auxprop_plugin:sql
sasl_sql_engine:mysql
sasl_password_format:   crypt
sasl_mech_list: PLAIN
sasl_auto_transition:   no
sasl_sql_hostnames: 127.0.0.1
sasl_sql_user:  
sasl_sql_passwd:
sasl_sql_database:  mail
sasl_sql_statement: select password from users where username='%u'
AND domainname='%r'



hashimapspool:  yes
allowanonymouslogin:no
allowplaintext: yes

# Allow renaming of top-level mailboxes.
#allowusermoves: yes

# Use this if sieve-scripts could be in ~user/.sieve.
#sieveusehomedir:   yes

virtdomains: yes
defaultdomain: keine.de
altnamespace: yes


and the part from the exim config:

local_delivery:

driver = lmtp
  socket = /var/imap/socket/lmtp
  user = cyrus


Maybe anyone has an idea why it does not work.

Thanks for help in advance

Greets Kevin Moschallski

---
Cyrus Home Page: http://asg.web.cmu.edu/cyrus
Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Convert from altnamespace and unixhierachy to normal format

2004-07-29 Thread Kevin Moschallski
Hi,

i want to copy my mailboxes from a cyrus imapd 2.2.3 with altnamespace
and unixhierachysep turned on to a cyrus imapd 2.2.3 with only
virtdomains turned on and altnamespace and unixhierachysep both turned
off. My question now is how to do this or if theres even a way to do it
maybe a script or something, because i don't know how to copy the
mailboxes by hand.
Thanks for help in advance.

Greets Kevin Moschallski

---
Cyrus Home Page: http://asg.web.cmu.edu/cyrus
Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Re: Problems with createonpost

2004-03-16 Thread Kevin Moschallski
Sure:

imapd.conf

# $Header:
/home/cvsroot/gentoo-x86/net-mail/cyrus-imapd/files/imapd_2.conf,v 1.1
2002/10/11 14:51:49 raker Exp $
#
# Don't forget to use chattr +S (if you are using ext[23]) 
# when you change these directories (read the docs).
configdirectory:/var/imap
partition-default:  /var/spool/imap
sievedir:   /var/imap/sieve

tls_ca_file:/etc/cyrusimapd/server.pem
tls_cert_file:  /etc/cyrusimapd/server.pem
tls_key_file:   /etc/cyrusimapd/server.pem

# Don't use an everyday user as admin.
admins: cyrus [EMAIL PROTECTED]

hashimapspool:  yes
allowanonymouslogin:no
allowplaintext: yes

# Use this if sieve-scripts could be in ~user/.sieve.
#sieveusehomedir:   yes

# Use saslauthd if you want to use pam for imap.
# But be warned: login with DIGEST-MD5 or CRAM-MD5 
# is not possible using pam.
sasl_mech_list: PLAIN
sasl_pwcheck_method: auxprop
sasl_auxprop_plugin: sql
sasl_password_format: crypt
sasl_sql_user: X
sasl_sql_passwd: X
sasl_sql_hostnames: X
sasl_sql_database: X
sasl_sql_select: SELECT password FROM users WHERE username = '%u' AND
domainname = '%r' AND status = '1'

unixhierarchysep: yes
altnamespace: yes

#virtdomains: yes
#defaultdomain: 3digit.de

postuser: cyrus
defaultacl: anyone p
createonpost: yes
autocreateinboxfolders: Sent | Drafts | Trash | spam | virus
autosubscribeinboxfolders: Sent | Drafts | Trash | spam | virus
autocreatequota: 15000
quotawarn: 90

loginrealms: * moschallski.net 3digit.de pimmelklabauter.de twiceaday.de
erber-lehmbau.de silber-und-mehr.de blumenbindekurse.de

P.S.:maybe somebody knows how too handle with the realm i read somewhere
that loginrealms: * would make the deal but i must add any of the
domains a handle mails for or i get a cross-realm login denied error.


Am Di, den 16.03.2004 schrieb Aristotelis um 14:44:
> On Tue, 16 Mar 2004, Kevin Moschallski wrote:
> 
> 
>   Hello, 
> 
> 
> > Hi i installed my Cyrus-IMAPD 2.2.3 with the patches from   
> > http://email.uoa.gr/projects/cyrus/autocreate/
> > Does anybody knows why there is no permission or something else?
> 
>   COuld you please post the configuration file of your setup??
> 
> Regards,
>   Aristotelis
-- 
+--+
|Kevin Moschallski |
|Stockacker 48 |
|79252 Stegen  |
|[EMAIL PROTECTED] |
+--+

---
Home Page: http://asg.web.cmu.edu/cyrus
Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Problems with createonpost

2004-03-16 Thread Kevin Moschallski
Hi i installed my Cyrus-IMAPD 2.2.3 with the patches from   
http://email.uoa.gr/projects/cyrus/autocreate/
when i try to send a mail to a user that does not have a mailbox i get
the following error:

Mar 16 12:41:08 mail master[29564]: about to exec /usr/lib/cyrus/lmtpd
Mar 16 12:41:08 mail lmtpunix[29564]: executed
Mar 16 12:41:08 mail lmtpunix[29564]: accepted connection
Mar 16 12:41:08 mail lmtpunix[29564]: lmtp connection preauth'd as
postman
Mar 16 12:41:08 mail lmtpunix[29564]: autocreateinbox: User
[EMAIL PROTECTED], INBOX failed. Permission denied
Mar 16 12:41:08 mail lmtpunix[29564]: append_check() of
'[EMAIL PROTECTED]' failed (Permission denied)
Mar 16 12:41:08 mail lmtpunix[29564]: accepted connection
Mar 16 12:41:08 mail lmtpunix[29564]: lmtp connection preauth'd as
postman

Does anybody knows why there is no permission or something else?

Thanks for help in advance.

Greets Kevin

-- 
+------+
|Kevin Moschallski |
|Stockacker 48 |
|79252 Stegen  |
|[EMAIL PROTECTED] |
+--+

---
Home Page: http://asg.web.cmu.edu/cyrus
Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Re: deliver to folder not working...

2004-01-21 Thread Kevin Moschallski
Try setting the p flag to user all on the folder if this doesn't work
run deliver with -a flag (man deliver)

Greets Kevin Moschallski

Am Mit, den 21.01.2004 schrieb Mike Bobbitt um 19:15:
> Hi all,
> 
> I'm attempting to do the usual "deliver spam to a special folder" trick. Using 
> sendmail-8.12.10-1.1.1, procmail-3.22-11, spamassassin-2.62-2_8.rh9.at, 
> cyrus-sasl-2.1.15-6 and cyrus-imap-2.2.3.
> 
> All the sendmail/spamassassin/procmail stuff seems to work OK, and messages marked 
> as spam are delivered using "/usr/cyrus/bin/deliver -q -m spam -- bobbitt" however 
> the log shows:
> 
> Jan 21 08:08:31 www master[32652]: about to exec /usr/cyrus/bin/lmtpd
> Jan 21 08:08:31 www lmtpunix[32652]: executed
> Jan 21 08:08:31 www lmtpunix[32652]: accepted connection
> Jan 21 08:08:31 www lmtpunix[32652]: lmtp connection preauth'd as postman
> Jan 21 08:08:31 www lmtpunix[32652]: duplicate_check: <[EMAIL PROTECTED]>
> user.bobbitt.spam0
> Jan 21 08:08:33 www lmtpunix[32652]: duplicate_check: <[EMAIL PROTECTED]>
> user.bobbitt 0
> Jan 21 08:08:33 www lmtpunix[32652]: mystore: starting txn 2147483794
> Jan 21 08:08:33 www lmtpunix[32652]: mystore: committing txn 2147483794
> Jan 21 08:08:33 www lmtpunix[32652]: duplicate_mark: <[EMAIL PROTECTED]>
> user.bobbitt 1074690513 12984
> 
> It appears to *try* to deliver to the spam folder, but then fails over to the inbox. 
> (Or am I mis-interpreting the 2 duplicate checks?)
> 
> ACLs seem right:
> 
> localhost> lam user.bobbitt.spam
> bobbitt lrswipcda
> 
> How can I get more detail about what's happening here?
> 
> Thanks in advance for any help...
> 
> 



Sieve problems

2004-01-19 Thread Kevin Moschallski
I'm running cyrus-imap 2.1.15 and exim 4.21 as MTA.My user database is a
mysql db so im using sasl.All is working fine i'm using 

unixhierarchysep: yes
altnamespace: yes

because i host this server for multiple domains.Know i ran into problems
using sieve with exim.I read that using sieve with exim is much easier
when using lmtp but when i try this i allways get:


2004-01-19 17:07:35 1AicsA-Vf-V5 ** [EMAIL PROTECTED]
R=mysqluser_cyrus T=local_delivery_cyrus: SMTP error from remote mailer
after RCPT TO:<[EMAIL PROTECTED]>: host localhost [127.0.0.1]:
550-Mailbox unknown.  Either there is no mailbox associated with
this\n550-name or you do not have authorization to see it.\n550 5.1.1
User unknown
2004-01-19 17:07:35 1AicsA-Vf-V5 Frozen (delivery error message)

i added -a switch to lmtpd in cyrus.conf but this doesn't work.
I think the problem is maybe with my altnamespace.If somebody could give
me his exim transport for cyrus it may could help me solving my problem.
Thanks for help in advance.

Greets Kevin Moschallski

My exim.conf:

local_delivery_cyrus:

  driver = pipe
  command = /usr/cyrus/bin/deliver -a cyrus -m
${substr_1:${local_part_suffix}} -- [EMAIL PROTECTED]
  user = cyrus
  group = mail
  return_output
  log_output
  message_prefix =
  message_suffix =

This one works but a can't get sieve to work with this.

local_delivery_cyrus:
 
   driver = smtp   
   protocol = lmtp 
   hosts = localhost   
   allow_localhost

and this one i tried acording to an howto but this rans me into the
problem that cyrus couldn't find the users mailbox.





Re: sieveshell connection fails, while imap works ... ?

2003-12-10 Thread Kevin Moschallski
Hi i got nearly the same problem.I can auth against POP and IMAP but not
against sieveshell when i try i allways get:

Dec 10 11:55:42 mail timsieved[6167]: cross-realm login
[EMAIL PROTECTED] denied
Dec 10 11:55:42 mail perl: No worthy mechs found

in my auth.log

and:

Dec 10 11:58:34 mail master[6192]: about to exec
/usr/cyrus/bin/timsieved
Dec 10 11:58:34 mail sieve[6192]: executed
Dec 10 11:58:34 mail sieve[6192]: accepted connection
Dec 10 11:58:39 mail timsieved[6192]: badlogin:
localhost[:::127.0.0.1] PLAIN authentication failure
Dec 10 11:58:39 mail master[946]: process 6192 exited, status 0

in my imapd.log

sieveshells itself tells me:


mail / # sieveshell [EMAIL PROTECTED]
[EMAIL PROTECTED] localhost
connecting to localhost
Please enter your password: 
unable to connect to server at /usr/bin/sieveshell line 174, 
line 1.

I use PAM with Mysql as backend an a patched pam_mysql.so module.I have
a configuration for each sieve,pop and imap in my /etc/pam.d
Does somebody know what this problem cause?

Greets Kevin Moschallski


Am Mit, den 10.12.2003 schrieb Igor Brezac um 02:38:
> On Tue, 9 Dec 2003, Marc G. Fournier wrote:
> 
> > On Tue, 9 Dec 2003, Ken Murchison wrote:
> >
> > > Marc G. Fournier wrote:
> > >
> > > > When trying to connect to sieve using sieveshell, using the same
> > > > userid/passwd that I've verified does work with IMAP, I'm getting the
> > > > following in the log file(s):
> > > >
> > > > Dec  9 20:28:24 xx sieve[28283]: no secret in database
> > > > Dec  9 20:28:33 xx sieve[28304]: no secret in database
> > > > Dec  9 20:28:36 xx sieve[28304]: Password verification failed
> > > > Dec  9 20:29:01 xx sieve[28336]: no secret in database
> > > > Dec  9 20:29:03 xx sieve[28336]: Password verification failed
> > > >
> > > > don't they use the same authentication method(s)?
> > >
> > > Yes, but sieveshell will try to use the most secure SASL mech offered.
> > > So if timsieved offers anything other than PLAIN, you need to have the
> > > users secret in an auxprop plugin.  If you telnet to the sieve port,
> > > what mechs are offered.
> >
> > "IMPLEMENTATION" "Cyrus timsieved v2.2.2-BETA"
> > "SASL" "PLAIN LOGIN DIGEST-MD5 CRAM-MD5"
> >
> > > Alternatively, if you're only offering plaintext mechs and using PAM,
> > > make sure you have a PAM config for the "sieve" service.
> >
> > Note that I'm using virtdomains, maybe sieveshell isn't compatible for it?
> >
> 
> I use virtdomains and it is working fine for me.



Plus Adressing

2003-11-01 Thread Kevin Moschallski
Hi,

i try to set up my exim+amavisd+cyrus-imapd constalation the way that
all spam messages will send into users subfolder spam.I added
local_part_suffix = +* to my exim conf.Amavis tries to deliver all
messages to [EMAIL PROTECTED] but every message is sended to the users
INBOX.
In the FAQ i read about that anyone must have the p flag on the
submailbox so i did:
sam user/[EMAIL PROTECTED]/spam anyone p
lam shows me:
localhost> lam user/[EMAIL PROTECTED]/spam
[EMAIL PROTECTED] lrswipcda
cyrus lrswipcda
anyone p

Note: I use altnamespaceing and unixhyrachie.

When i try to send a mail to [EMAIL PROTECTED] with my mail client it
also get deliverd into user [EMAIL PROTECTED] INBOX.

Thanks for help in advance.

Greets
    Kevin Moschallski



Mailbox does not exist

2003-10-22 Thread Kevin Moschallski
Hi,

i installed cyrus-imap on my gentoo server.After i patched the pam_mysql
modul for to auth against my mysql database i can now login to my imap
account wich is [EMAIL PROTECTED] I uncommented
unixhierarchysep:yes and added altnamespace: yes.With cyradm i created a
mailbox with: cm user/[EMAIL PROTECTED] .When i login through my
email client i see my mailbox and can create sub-boxes.But when i try to
delvier mail to it with /usr/cyrus/bin/deliver [EMAIL PROTECTED] <
foo.txt he allways tells me that the mailbox doesnt exist. After reading
the Mailing List i also tried to give ACL to this box with sam
user/[EMAIL PROTECTED] cyrus all. But this doesnt work either.
Is there any problem with my virtual domains or is this something other.

Thanks for help in advance.

Greets Kevin Moschallski