Re: sendmail and virtual domains and catchalls?

2004-03-17 Thread Andrzej Filip
Carl Brewer wrote:
I've been trying a number of combinations of configs to
try and get sendmail (8.12.10) to handle virtual domains
and catchall addresses for those virtual domains, but am not
sure if what I'm trying to do can be achieved with sendmail?
Say I have 2 virtual domains and a default.

Call them foo.com, bar.com and bl.echidna.id.au

I have in my imapd.conf :

virtdomains: userid
defaultdomain: bl.echidna.id.au
Sendmail expects the following syntax in virtusertable:
@virtdomains: userid
@defaultdomain: bl.echidna.id.au
But it will "catch & rewrite" *every* address in the domains

You can get get what I think you want by listing all valid addresses in the 
domains in virtusertable. Search news:comp.mail.sendmail for postings with 
_VIRTUSER_STOP_ONE_LEVEL_RECURSION_


I have in my sendmail .mc file :

define(`confLOCAL_MAILER', `cyrusv2')
MAILER(cyrusv2)
MAILER(smtp)
(yes, no MAILER(local), if I put that in, nothing works!)

and I've modified the cyrusv2 definition in mailer/cyrusv2.mc

# setup for virtual domains, Carl
S=EnvFromSMTP/HdrFromSMTP, R=EnvToSMTP E=\r\n,
# S=EnvFromSMTP/HdrFromL, R=EnvToL/HdrToL, E=\r\n,
You can use MAILER(`cyrusv2') [release B] and mailer cyrusv2d if you copy one 
file into cf/mailer/ directory of sendmail distribution.

http://anfi.webhop.org/sendmail/cyrusv2.html

In /etc/mail/mailertables I have

bl.echidna.id.aucyrusv2:/var/imap/socket/lmtp
rollcage2.bl.echidna.id.au  cyrusv2:/var/imap/socket/lmtp
foo.comcyrusv2:/var/imap/socket/lmtp
I've created (using cyradm) 'normal' virtual domain accounts, eg
[EMAIL PROTECTED], and this works just fine, mail goes happily into that
mailbox and I can see it.  Mail sent to the default domain however
doesn't work :
for mail sent (locally using /bin/mail) to [EMAIL PROTECTED] :
[...]
1) mailertable DOES NOT work for local email domains
echo '$=w' | sendmail -bt
2) your "per domain catch all" virtusertable entries does not work without 
leading @
3) whenever sendmail selects local mailer (or its substitute defines via 
confLOCAL_MAILER) domain part of envelope recipient address is stripped 
*before* R= rulestes get it [changing R= alone is not sufficient].

That's not good :)

It works fine for mail to [EMAIL PROTECTED] though.

cyradm>lm shows :

user/carl (\HasChildren)
user/carl/Sent (\HasNoChildren)
user/carl/[EMAIL PROTECTED] (\HasNoChildren)
user/carl/Trash (\HasNoChildren)
user/carl/[EMAIL PROTECTED] (\HasNoChildren)
user/[EMAIL PROTECTED] (\HasChildren)
user/postmaster (\HasNoChildren)
user/[EMAIL PROTECTED] (\HasNoChildren)
I've done something wrong with my setup .. but I don't know
what.  Do I need the MAILER(local) definition in my sendmail.mc
file (doesn't that get overridden by
define(`confLOCAL_MAILER', `cyrusv2')
?
I can get around that though, if I ditch the default domain and
just have everything as a virtual domain.
what I need to be able to do though, is have some catchalls and aliases,
different for each virtual domain.
for example, I need [EMAIL PROTECTED] to point to [EMAIL PROTECTED], and I
need @foo.com to go to [EMAIL PROTECTED], and
different catchalls for the other domains.  Google's not been helpful
here (although I may havemissed something).
Does/can sendmail's virtusertable provide this kind of thing when used
with cyrusv2?  If so, is there any doco anywhere that explains
how to set it up, or should I ditch sendmail and cut over
to postfix?  (I'd prefer to make this work with sendmail if
possible).
Thanks for any help anyone can provide!

Cyrus is cyrus-imapd-2.2.3 installed from the NetBSD ports collection
O/S is NetBSD 1.6.2 on i386
SASL is cyrus-sasl-2.1.17nb1 installed from the NetBSD ports collection
Sendmail is 8.12.10 installed from the NetBSD ports collection
My recommendation:
Implement http://anfi.webhop.org/sendmail/rtcyrus2.html solution in its 
mailertable version [it rejects messages to non existing cyrus mailboxes], I 
can easily modify it to make it support "per domain catch remaining".

More "sendmail & cyrus" links:
http://anfi.webhop.net/sendmail/#cyrus
--
Andrzej [en:Andrew] Adam Filip [EMAIL PROTECTED] [EMAIL PROTECTED]
http://anfi.webhop.net http://slashdot.org/~anfi
---
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: Cyrus 'breaks' RFC?!

2004-03-17 Thread Ken Murchison
Jamie Penman-Smithson wrote:

Hey all,

Someone I've been setting up an account for, kept getting the same mail
over and over again. Having questioned him about it, he said that he had
the 'keep mail on server' option in Outlook. (*sigh* why can't people
use _real_ MUA's) 

Then he said that *cyrus* was breaking the RFC since it wasn't supposed
to send mail that was already sent, because Outlook requests from the
last msgid.
Cyrus, or any other POP3 server, only sends the messages that the client 
asks for.  Sounds to me like Outlook is broken.  Most likely its not 
keeping track of the UIDs correctly.  This sounds like a problem which 
has been discussed on the list before.  Outlook doesn't seem to like the 
format or length of the UIDs that Cyrus uses, even though they are 
completely legal per the RFC and no other client has any problems.

--
Kenneth Murchison Oceana Matrix Ltd.
Software Engineer 21 Princeton Place
716-662-8973 x26  Orchard Park, NY 14127
--PGP Public Key--http://www.oceana.com/~ken/ksm.pgp
---
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: IMAP clients that use ANNOTATE[MORE]

2004-03-17 Thread Ken Murchison
Scott Russell wrote:

Greets -

I was thinking about enabling ANNOTATEMORE on the Cyrus IMAPd 2.2.3
build I'm planning. I was curious though, is it worth it? Are there IMAP
clients in the wild that use ANNOTATE and ANNOTATEMORE?


ANNOTATEMORE is enabled by default in 2.2.3 (and can't be disabled). 
The only client that I know of that currently supports it is cyradm. 
Cyrus now uses a handful of mailbox annotations for stuff like squatter, 
cyr_expire and nntpd.  These are all vendor-specific annotations which 
MUAs probably wouldn't use (unless the client allowed access to all 
annotations for an admin).

--
Kenneth Murchison Oceana Matrix Ltd.
Software Engineer 21 Princeton Place
716-662-8973 x26  Orchard Park, NY 14127
--PGP Public Key--http://www.oceana.com/~ken/ksm.pgp
---
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


IMAP clients that use ANNOTATE[MORE]

2004-03-17 Thread Scott Russell
Greets -

I was thinking about enabling ANNOTATEMORE on the Cyrus IMAPd 2.2.3
build I'm planning. I was curious though, is it worth it? Are there IMAP
clients in the wild that use ANNOTATE and ANNOTATEMORE?

Most of my users are Mozilla Mail, Netscape Mail (4.7x), pine, mutt, and
Evolution

Googeling on "ANNOTATEMORE IMAP client" was kind of useless :) Lots of
good info about the draft though, which I skimmed.

-- 
Scott Russell <[EMAIL PROTECTED]>
Linux Technology Center System Admin


---
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


sendmail and virtual domains and catchalls?

2004-03-17 Thread Carl Brewer


Hello,

I've been trying a number of combinations of configs to
try and get sendmail (8.12.10) to handle virtual domains
and catchall addresses for those virtual domains, but am not
sure if what I'm trying to do can be achieved with sendmail?
Say I have 2 virtual domains and a default.

Call them foo.com, bar.com and bl.echidna.id.au

I have in my imapd.conf :

virtdomains: userid
defaultdomain: bl.echidna.id.au


I have in my sendmail .mc file :

define(`confLOCAL_MAILER', `cyrusv2')
MAILER(cyrusv2)
MAILER(smtp)
(yes, no MAILER(local), if I put that in, nothing works!)

and I've modified the cyrusv2 definition in mailer/cyrusv2.mc

# setup for virtual domains, Carl
S=EnvFromSMTP/HdrFromSMTP, R=EnvToSMTP E=\r\n,
# S=EnvFromSMTP/HdrFromL, R=EnvToL/HdrToL, E=\r\n,
In /etc/mail/mailertables I have

bl.echidna.id.aucyrusv2:/var/imap/socket/lmtp
rollcage2.bl.echidna.id.au  cyrusv2:/var/imap/socket/lmtp
foo.com cyrusv2:/var/imap/socket/lmtp
I've created (using cyradm) 'normal' virtual domain accounts, eg
[EMAIL PROTECTED], and this works just fine, mail goes happily into that
mailbox and I can see it.  Mail sent to the default domain however
doesn't work :
for mail sent (locally using /bin/mail) to [EMAIL PROTECTED] :

Mar 18 11:11:31 rollcage2 sendmail[4535]: i2I0BVKA004535: from=carl, 
size=42, class=0, nrcpts=1, 
msgid=<[EMAIL PROTECTED]>, 
[EMAIL PROTECTED]
Mar 18 11:11:32 rollcage2 sendmail[4536]: i2I0BVMx004536: 
from=<[EMAIL PROTECTED]>, size=379, class=0, nrcpts=1, 
msgid=<[EMAIL PROTECTED]>, 
proto=ESMTP, daemon=MTA-v4, relay=localhost [127.0.0.1]
Mar 18 11:11:32 rollcage2 sendmail[4535]: i2I0BVKA004535: 
[EMAIL PROTECTED], ctladdr=carl (134/100), delay=00:00:01, 
xdelay=00:00:01, mailer=relay, pri=30042, relay=[127.0.0.1] [127.0.0.1], 
dsn=2.0.0, stat=Sent (i2I0BVMx004536 Message accepted for delivery)
Mar 18 11:11:32 rollcage2 sendmail[4538]: i2I0BVMx004536: 
to=<[EMAIL PROTECTED]>, delay=00:00:01, xdelay=00:00:00, 
mailer=cyrusv2, pri=30379, relay=localhost, dsn=5.1.1, stat=User unknown
Mar 18 11:11:32 rollcage2 sendmail[4538]: i2I0BVMx004536: 
i2I0BWMx004538: DSN: User unknown
Mar 18 11:11:32 rollcage2 sendmail[4538]: i2I0BWMx004538: 
to=<[EMAIL PROTECTED]>, delay=00:00:00, xdelay=00:00:00, 
mailer=cyrusv2, pri=31403, relay=localhost [[UNIX: 
/var/imap/socket/lmtp]], dsn=5.1.1, stat=User unknown
Mar 18 11:11:32 rollcage2 sendmail[4538]: i2I0BWMx004538: 
i2I0BWN0004538: return to sender: User unknown
Mar 18 11:11:32 rollcage2 sendmail[4538]: i2I0BWN0004538: to=postmaster, 
delay=00:00:00, xdelay=00:00:00, mailer=cyrusv2, pri=32427, 
relay=localhost [[UNIX: /var/imap/socket/lmtp]], dsn=5.1.1, stat=User 
unknown
Mar 18 11:11:32 rollcage2 sendmail[4538]: i2I0BWMx004538: Losing 
./qfi2I0BWMx004538: savemail panic
Mar 18 11:11:32 rollcage2 sendmail[4538]: i2I0BWMx004538: SYSERR(root): 
savemail: cannot save rejected email anywhere

That's not good :)

It works fine for mail to [EMAIL PROTECTED] though.

cyradm>lm shows :

user/carl (\HasChildren)
user/carl/Sent (\HasNoChildren)
user/carl/[EMAIL PROTECTED] (\HasNoChildren)
user/carl/Trash (\HasNoChildren)
user/carl/[EMAIL PROTECTED] (\HasNoChildren)
user/[EMAIL PROTECTED] (\HasChildren)
user/postmaster (\HasNoChildren)
user/[EMAIL PROTECTED] (\HasNoChildren)
I've done something wrong with my setup .. but I don't know
what.  Do I need the MAILER(local) definition in my sendmail.mc
file (doesn't that get overridden by
define(`confLOCAL_MAILER', `cyrusv2')
?
I can get around that though, if I ditch the default domain and
just have everything as a virtual domain.
what I need to be able to do though, is have some catchalls and aliases,
different for each virtual domain.
for example, I need [EMAIL PROTECTED] to point to [EMAIL PROTECTED], and I
need @foo.com to go to [EMAIL PROTECTED], and
different catchalls for the other domains.  Google's not been helpful
here (although I may have missed something).
Does/can sendmail's virtusertable provide this kind of thing when used
with cyrusv2?  If so, is there any doco anywhere that explains
how to set it up, or should I ditch sendmail and cut over
to postfix?  (I'd prefer to make this work with sendmail if
possible).
Thanks for any help anyone can provide!

Cyrus is cyrus-imapd-2.2.3 installed from the NetBSD ports collection
O/S is NetBSD 1.6.2 on i386
SASL is cyrus-sasl-2.1.17nb1 installed from the NetBSD ports collection
Sendmail is 8.12.10 installed from the NetBSD ports collection
Carl





---
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


JOB: NYC: Cyrus SASL Expert needed ASAP

2004-03-17 Thread Kandidates
JOB: NYC: Cyrus SASL Expert needed ASAP

Rate: Open - Name Your Price (if you have the skills)

Skills: Cyrus Electronic Mail, SASL, Sendmail, Postfix, Squirrel Main, Spam
Assassin 

Description: I need a world renownd expert in ISP email systems available
on-site ASAP.  We are in the process of converting over 36,000 email
accounts into a completely new invironment that includes POP and SMTP mail
accounts.  At this time we are having serious problems with the SASL daemon
that is used to authenticate to our registration systems, both email and
portal.  I need to have someone that can work around the clock and help or
backup the staff I have working on this now.

Here are the areas of expertise we need:

Cyrus Electronic Mail
SASL 
The Simple Authentication and Security Layer, is a generic mechanism for
protocols to accomplish authentication. Since protocols (such as SMTP or
IMAP) use SASL, it is a natural place for code sharing between applications.
Some notable applications that use SASL include Sendmail (versions 8.10.0
and higher) and Cyrus imapd (versions 1.6.0 and higher).
Sendmail 
Postfix 
Squirrel Main 
Spam Assassin 

Rate: DOE,   Job Type: Contract,   Start Date: 3/17/2004,   Number Of
Openings: 1,   Location: NYC

Please email text resume to [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


Cyrus 'breaks' RFC?!

2004-03-17 Thread Jamie Penman-Smithson
Hey all,

Someone I've been setting up an account for, kept getting the same mail
over and over again. Having questioned him about it, he said that he had
the 'keep mail on server' option in Outlook. (*sigh* why can't people
use _real_ MUA's) 

Then he said that *cyrus* was breaking the RFC since it wasn't supposed
to send mail that was already sent, because Outlook requests from the
last msgid.

I looked briefly at the RFC and didn't notice anything related to that,
except for a brief paragraph:

"...users and vendors of POP3 clients have discovered that the
combination of using the UIDL command and not issuing the DELE command
can provide a weak version of the "maildrop as semi-permanent
repository" functionality normally associated with IMAP."

Without starting a flame war about Outlook and MS, is there any truth in
his claims?

Thanks,

-j

-- 
-jamie <[EMAIL PROTECTED]> | spamtrap: [EMAIL PROTECTED]
 w: http://silverdream.org | p: [EMAIL PROTECTED]
 pgp key @ http://silverdream.org/~jps/pub.key
 21:30:01 up 1 day, 21:44,  8 users,  load average: 0.75, 0.33, 0.28


signature.asc
Description: This is a digitally signed message part


Re: permission denied

2004-03-17 Thread Ken Murchison
Rodolfo Longo wrote:

Hello all,

I'm experimenting the following error in the /var/log/imap.log when I 
use /usr/cyrus/bin/deliver -m user.test

Mar 17 20:51:52 lighthouse lmtpunix[21459]: accepted connection
Mar 17 20:51:52 lighthouse lmtpunix[21459]: lmtp connection preauth'd as 
postman
Mar 17 20:51:52 lighthouse lmtpunix[21459]: append_check() of 
'user^test' failed (Permission denied)

All right on /var/imap and /var/spool/imap seems to be correct.
Any hints please?
You're trying to deliver to user.test with unixhierarchysep enabled.  If 
this is supposed to be test's INBOX, then you need to create user/test 
instead of user.test

--
Kenneth Murchison Oceana Matrix Ltd.
Software Engineer 21 Princeton Place
716-662-8973 x26  Orchard Park, NY 14127
--PGP Public Key--http://www.oceana.com/~ken/ksm.pgp
---
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


permission denied

2004-03-17 Thread Rodolfo Longo
Hello all,

I'm experimenting the following error in the /var/log/imap.log when I 
use /usr/cyrus/bin/deliver -m user.test

Mar 17 20:51:52 lighthouse lmtpunix[21459]: accepted connection
Mar 17 20:51:52 lighthouse lmtpunix[21459]: lmtp connection preauth'd as 
postman
Mar 17 20:51:52 lighthouse lmtpunix[21459]: append_check() of 
'user^test' failed (Permission denied)

All right on /var/imap and /var/spool/imap seems to be correct.
Any hints please?
Thnx
Rodolfo Longo
---
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


Cyrus and imapd fun ina debian box

2004-03-17 Thread Mauricio Tavares
  I've installed cyrus in my debian box as a package.  Now I would like to 
configure it so it used imapds (port 993).  Could anyone outlineme what I need to get 
going?  For instance, I've created a certificate, installed it in /var/imap/ and added 
the following lines in /etc/imapd.conf:

# Where the certificate/key file used for all services is:
tls_cert_file:  /var/imap/server.pem
tls_key_file:  /var/imap/server.pem

How should my /etc/cyrus.conf be, so it can support encryption?

Mauricio
---
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


Sieve for shared mailboxes

2004-03-17 Thread Stephen Grier
What is the current situation with Sieve for shared mailboxes? I've read
the discussion from last July on the cyrus-devel list, subject
"[PROPOSAL] Sieve for shared mailboxes", but I can't find any anything
on the subject more recent than this.

Is it still the intention to use the IMAP ANNOTATE extension to hold a
/sieve value indicating the Sieve script to run for a particular shared
mailbox?

-- 

Stephen Grier
Systems Developer
Computing Services
Queen Mary, University of London




---
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


Maibox does not exist

2004-03-17 Thread Rodolfo Longo
Hello all,

I experimenting the following problem:

/usr/cyrus/bin/deliver -m test.haubold-int.de
+test.haubold-int.de: Mailbox does not exist
But the mailbox definetely EXIST:

telnet localhost 143
Trying ::1...
telnet: connect to address ::1: Connection refused
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
* OK mail.haubold.de Cyrus IMAP4 v2.1.13 server ready
0 login test.haubold-int.de test
0 OK User logged in
0 getacl user/test.haubold-int.de
* ACL user/test.haubold-int.de test.haubold-int.de lrswipcda cyrus lrswipcda
0 OK Completed
0 select inbox
* FLAGS (\Answered \Flagged \Draft \Deleted \Seen)
* OK [PERMANENTFLAGS (\Answered \Flagged \Draft \Deleted \Seen \*)]
* 0 EXISTS
* 0 RECENT
* OK [UIDVALIDITY 1079532975]
* OK [UIDNEXT 1]
0 OK [READ-WRITE] Completed
0 logout
* BYE LOGOUT received
0 OK Completed
I'm working for day trying to find the problem. Can somebody help me?

Thx,
Rodolfo Longo
---
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