Re: LDAP backed aliases

2016-03-31 Thread Vladislav Kurz via Info-cyrus
On Wednesday 30 of March 2016 "Jason L Tibbitts III via Info-cyrus"  wrote:

> >>>>> "TG" == Tony Galecki via Info-cyrus  
writes:
> TG> I’ve done a quick search and haven’t come across anything yet. Is
> TG> there a way to manage or pull alias information via LDAP? It could
> TG> be that my google fu is weaker than yours.
> 
> Well, I have my aliases in LDAP and have for years, but that doesn't
> involve cyrus at all.  It's done at the MTA level on our inbound mail
> servers, though you could do it at the MTA level on your cyrus machine
> as well.
> 
> My mail servers run Exim, but I doubt yours do so I don't think an
> example from my configuration would be very useful to you.

Hi,

I have the same situation at one server. Aliases in LDAP, but Exim (SMTP) 
server is dealing with them, not cyrus. I think that cyrus does not know about 
aliases at all. (whether in LDAP or anything else)

-- 
Best Regards
Vladislav Kurz

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

Re: LDAP backed aliases

2016-03-30 Thread Jason L Tibbitts III via Info-cyrus
>>>>> "TG" == Tony Galecki via Info-cyrus  
>>>>> writes:

TG> I’ve done a quick search and haven’t come across anything yet. Is
TG> there a way to manage or pull alias information via LDAP? It could
TG> be that my google fu is weaker than yours.

Well, I have my aliases in LDAP and have for years, but that doesn't
involve cyrus at all.  It's done at the MTA level on our inbound mail
servers, though you could do it at the MTA level on your cyrus machine
as well.

My mail servers run Exim, but I doubt yours do so I don't think an
example from my configuration would be very useful to you.

 - J<

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

LDAP backed aliases

2016-03-30 Thread Tony Galecki via Info-cyrus
I’ve done a quick search and haven’t come across anything yet. Is there a way 
to manage or pull alias information via LDAP? It could be that my google fu is 
weaker than yours.

We have a regular employee rotation between job types and locations. We keep 
there accounts around and activate/deactivate in LDAP them as they come and go.
I’d like to have that integrated with the aliasing feature so doing things like 
mailing all mails all the currently working employees and doesn’t fill up the 
mailboxes of people who aren’t around. I’m not apposed to changing the LDAP 
schema, there are a number of other features I’d like to add to simply the 
migration of users between active sites.

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

Re: Sendmail + Virtual Domains + aliases

2016-02-25 Thread Andrzej A. Filip via Info-cyrus
Sebastian Hagedorn via Info-cyrus  wrote:
> --On 24. Februar 2016 um 15:07:52 +0100 Andrea Venturoli via
> Info-cyrus  wrote:
>
>> I've setup a server running Cyrus IMAP 2.5.7 with virtual domains and
>> sendmail as MTA.
>> I'm having trouble with aliases.
>>
>> E.g. I put the following in /etc/aliases:
>>
>> root:m...@someotherdomain.it
>> postmas...@oneofmydomains.com:   root
>>
>> However, writing to postmas...@oneofmydomains.com fails since that
>> mailbox doesn't really exist.
>>
>>
>> I don't have oneofmydomains.com in local-host-names, since I use
>> mailertable for delivery with:
>> oneofmydomains.com   cyrusv2:/var/imap/socket/lmtp
>>
>>
>> What is the reccomended way to accomplish what I'm trying to do?
>
> Use virtusertable instead of aliases, e.g.
>
> postmas...@oneofmydomains.com root

sendmail.cf by default handles only "domain less" aliases for emails in
local email domains.  It is possible to change it *BUT* it is officially
"untested" territory. So if you do not need one to many mapping and one
to one is sufficient then use virtusertable.

-- 
A. Filip

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


Re: Sendmail + Virtual Domains + aliases

2016-02-25 Thread Sebastian Hagedorn via Info-cyrus
--On 25. Februar 2016 um 11:04:59 +0100 Andrea Venturoli  
wrote:



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


Why use mailertable? We use this:


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

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


define(`confLOCAL_MAILER', `cyrusv2')

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


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


OK, I get it. We only use virtual domains on the outside, but Cyrus doesn't 
know about them. I'm afraid I can't help you with your scenario, because 
I've never used virtual domains with Cyrus.

--
   .:.Sebastian Hagedorn - Weyertal 121 (Gebäude 133), Zimmer 2.02.:.
.:.Regionales Rechenzentrum (RRZK).:.
  .:.Universität zu Köln / Cologne University - ✆ +49-221-470-89578.:.

pgpQHtLHu95r_.pgp
Description: PGP signature

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

Re: Sendmail + Virtual Domains + aliases

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

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

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


No problem :)





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


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

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

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


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






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


Why use mailertable? We use this:


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

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







define(`confLOCAL_MAILER', `cyrusv2')

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


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




 bye & Thanks
av.

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


Re: Sendmail + Virtual Domains + aliases

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

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

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

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

Use virtusertable instead of aliases, e.g.

postmas...@oneofmydomains.comroot


Don't use unqualified LHS addresses.


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






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


Why?
Can you provide an example?






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


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


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


And the extract of the log:


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





 bye & Thanks
av.

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


Re: Sendmail + Virtual Domains + aliases

2016-02-25 Thread Sebastian Hagedorn via Info-cyrus
I was a bit brief yesterday. I have to say that I configured our sendmail 
more than 10 years ago and have only made minor changes since than. I don't 
remember the settings as well as I did back then ...


--On 24. Februar 2016 um 18:15:26 +0100 Andrea Venturoli  
wrote:



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

Use virtusertable instead of aliases, e.g.

postmas...@oneofmydomains.comroot



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

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

I still get "User unknown".

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


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

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

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


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


Why use mailertable? We use this:

define(`confLOCAL_MAILER', `cyrusv2')

That way all local mail is delivered to Cyrus. Or isn't that what you want?
--
   .:.Sebastian Hagedorn - Weyertal 121 (Gebäude 133), Zimmer 2.02.:.
.:.Regionales Rechenzentrum (RRZK).:.
  .:.Universität zu Köln / Cologne University - ✆ +49-221-470-89578.:.

pgpUDpM5zFImj.pgp
Description: PGP signature

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

Re: Sendmail + Virtual Domains + aliases

2016-02-24 Thread Alexander Dalloz via Info-cyrus

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

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

Use virtusertable instead of aliases, e.g.

postmas...@oneofmydomains.comroot


Don't use unqualified LHS addresses.
And make sure to direct a catch-all to the error mailer in virtusertable.


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

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

I still get "User unknown".


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


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

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


mailertable is not consulted for domains in class {w}


  bye & Thanks
 av.


Alexander


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


Re: Sendmail + Virtual Domains + aliases

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

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

Use virtusertable instead of aliases, e.g.

postmas...@oneofmydomains.comroot



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

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

I still get "User unknown".

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

Maybe that's really needed for virtusertable to work?

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



 bye & Thanks
av.

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


Re: Sendmail + Virtual Domains + aliases

2016-02-24 Thread Sebastian Hagedorn via Info-cyrus


--On 24. Februar 2016 um 15:07:52 +0100 Andrea Venturoli via Info-cyrus 
 wrote:



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

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

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

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


I don't have oneofmydomains.com in local-host-names, since I use
mailertable for delivery with:
oneofmydomains.com  cyrusv2:/var/imap/socket/lmtp


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


Use virtusertable instead of aliases, e.g.

postmas...@oneofmydomains.com   root
--
   .:.Sebastian Hagedorn - Weyertal 121 (Gebäude 133), Zimmer 2.02.:.
.:.Regionales Rechenzentrum (RRZK).:.
  .:.Universität zu Köln / Cologne University - ✆ +49-221-470-89578.:.

pgp03ymRNDB2G.pgp
Description: PGP signature

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

Sendmail + Virtual Domains + aliases

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

Hello.

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

I'm having trouble with aliases.

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

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

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



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

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


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


 bye & Thanks
av.

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


Re: SIEVE vacation not works with "email aliases"

2014-04-04 Thread Niels Dettenbach
Am Freitag, 4. April 2014, 09:33:47 schrieben Sie:
> require ["vacation","regex"];
> 
> vacation :days 7 :addresses ["addre...@example.com", "addre...@example.com"]
> text:

ahh! This syntax seem to work so far. Thank you!

I've tried/used things similiar to this (roundcube generated):

## Generated by Roundcube Webmail SieveRules Plugin ##
require ["vacation"];

if anyof (true)
{
vacation
:days 7
:subject "Bin kurz weg"
"..und gleich wieder da";
}


any idea why it is not working?

many thanks again.

cheerioh,


Niels.
-- 
 ---
 Niels Dettenbach
 Syndicat IT & Internet
 http://www.syndicat.com
 PGP: https://syndicat.com/pub_key.asc
 ---
 





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

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

Re: SIEVE vacation not works with "email aliases"

2014-04-04 Thread k...@rice.edu
On Fri, Apr 04, 2014 at 04:26:43PM +0200, Niels Dettenbach wrote:
> Hi all,
> 
> 
> it seems i'm not alone with this "effect" or "bug" in the SIEVE vacation 
> module.
> 
> On a cyrus-imap ("feeded" by EXIM) with virtual domains where usernames are 
> "equal" to email adresses i have the effect, that vacations are not sent out 
> when an incoming email is addressed to an "alias" of the mailbox (means to an 
> email address which is NOT the same as the IMAP user name / mailbox name).
> 
> On another machine where user accounts arr in the format user.domain.tld 
> (instead of u...@domain.tld) under NetBSD it works without any problems. So i 
> assume slightly that it may be related to the aliasing mechanism.
> 
> There is no change if i catch all incoming emails or define each by hand in 
> sieve.
> 
> 
> Is anyone out there faced to the same problem? Is there any solution? 
> 
> 
> many thanks in advance.
> cheerioh,
> 
> Niels.
> -- 

Hi Niels,

You need to include the addresses that the vacation is to reply to. Here is
an example:

require ["vacation","regex"];

vacation :days 7 :addresses ["addre...@example.com", "addre...@example.com"] 
text:
testing vacation
.
;

Regards,
Ken

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


SIEVE vacation not works with "email aliases"

2014-04-04 Thread Niels Dettenbach
Hi all,


it seems i'm not alone with this "effect" or "bug" in the SIEVE vacation 
module.

On a cyrus-imap ("feeded" by EXIM) with virtual domains where usernames are 
"equal" to email adresses i have the effect, that vacations are not sent out 
when an incoming email is addressed to an "alias" of the mailbox (means to an 
email address which is NOT the same as the IMAP user name / mailbox name).

On another machine where user accounts arr in the format user.domain.tld 
(instead of u...@domain.tld) under NetBSD it works without any problems. So i 
assume slightly that it may be related to the aliasing mechanism.

There is no change if i catch all incoming emails or define each by hand in 
sieve.


Is anyone out there faced to the same problem? Is there any solution? 


many thanks in advance.
cheerioh,

Niels.
-- 
 ---
 Niels Dettenbach
 Syndicat IT & Internet
 http://www.syndicat.com
 PGP: https://syndicat.com/pub_key.asc
 ---
 





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

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

Réf. : Re: Réf. : Re: Aliases in Cyrus ?

2007-04-13 Thread daniel . sipasseuth

>> Is there a way to bind a uid to a mailbox ? using my uid to log in,
>> but
>> using [EMAIL PROTECTED] to send/receive mail.

>This all depends on your MTA and is not cyrus related. I've done the
>whole (sendmail-virtusertable-like) aliasing in ldap+exim, if you use
>exim I can provide you some help, but you will need to do a lot of
>reading.

>> Sincerely,
>> Daniel Sipasseuth

>wogri

I can't modify the LDAP schema. :(
And i don't really understand how LDAP works.
To me, it's like a super read-optimized database representing objects like
in a unix filesytem.

If you have good docs about how the protocols works, i'll read them. :)

>> Thanks for the quick reply.
>>
>> So the only way to do this is to use the "virtual users" ability of
>> the MTA
>> ?

>Don't know if it's the only method. But cyrus takes the name of the
>user mailbox from the MTA so I think it's the MTA that should
>"translate" between email address and cyrus user name.

>Hope this helps

>> The LDAP have user names like uidXXX, where XXX are numbers.
>> Autentification is OK, work really well. but having mailbox like
>> [EMAIL PROTECTED] is not really what i want.

>what values of this parameters in your imapd.conf:
>defaultdomain
>virtdomains
>?
>
>WBR
>Dmitiry

i don't have any virtual domain set.
i'm actually trying to configure this.
need some time to understand the way postfix & cyrus handle them :)

Thanks for your help :)

Cordialement,

Daniel Sipasseuth
PSA PEUGEOT CITROËN
DINQ/DSIN/INSI/ISSI/MESG
[EMAIL PROTECTED]


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


Re: Aliases in Cyrus ?

2007-04-13 Thread Wolfgang Hennerbichler


On 13.04.2007, at 09:59, [EMAIL PROTECTED] wrote:

Is there a way to bind a uid to a mailbox ? using my uid to log in,  
but

using [EMAIL PROTECTED] to send/receive mail.


This all depends on your MTA and is not cyrus related. I've done the  
whole (sendmail-virtusertable-like) aliasing in ldap+exim, if you use  
exim I can provide you some help, but you will need to do a lot of  
reading.



Sincerely,
Daniel Sipasseuth


wogri

--
www.vix.at // www.aco.net // www.sth.ac.at
[EMAIL PROTECTED] // WH844-RIPE
Vienna University Computer Center
Tel: +43 1 4277-14031 // Fax: -9140




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


Re: Aliases in Cyrus ?

2007-04-13 Thread Dmitriy Kirhlarov
On Fri, Apr 13, 2007 at 09:59:39AM +0200, [EMAIL PROTECTED] wrote:

> The LDAP have user names like uidXXX, where XXX are numbers.
> Autentification is OK, work really well. but having mailbox like
> [EMAIL PROTECTED] is not really what i want.

what values of this parameters in your imapd.conf:
defaultdomain
virtdomains
?

WBR
Dmitiry

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


Re: Aliases in Cyrus ?

2007-04-13 Thread Ing. Andrea Vettori


This was the little problem. Now, my big problem.

The LDAP have user names like uidXXX, where XXX are numbers.
Autentification is OK, work really well. but having mailbox like
[EMAIL PROTECTED] is not really what i want.

Is there a way to bind a uid to a mailbox ? using my uid to log in,  
but

using [EMAIL PROTECTED] to send/receive mail.



I'm using sendmail virtusertable for this.

--
Ing. Andrea Vettori
Consulente per l'Information Technology



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


Aliases in Cyrus ?

2007-04-13 Thread daniel . sipasseuth

Hello,

I've been trying to set up a simple Cyrus IMAP server.
I'm using saslauthd for autentification.
Everything seems to work fine.
I just have a little problem with imap when i use telnet.

* OK [CAPABILITY IMAP4 IMAP4rev1 LITERAL+ ID] pyxq38 Cyrus IMAP4 v2.3.8
server ready

If everything was ok, it should be a '+' instead of a '*'. I didn't find
anything in logs. just logins attemps.

This was the little problem. Now, my big problem.

The LDAP have user names like uidXXX, where XXX are numbers.
Autentification is OK, work really well. but having mailbox like
[EMAIL PROTECTED] is not really what i want.

Is there a way to bind a uid to a mailbox ? using my uid to log in, but
using [EMAIL PROTECTED] to send/receive mail.

Sincerely,

Daniel Sipasseuth
PSA PEUGEOT CITROËN
DINQ/DSIN/INSI/ISSI/MESG
[EMAIL PROTECTED]


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


RE: problem with aliases as distributor/mailinglist

2007-03-06 Thread Philippe Trolliet
> hi,
> i recently asked on the postfix mailing list but there they told 
> me that it
> is a problem with cyrus.
> 
> i´m using postfix on fc4 with virtual users and domains stored in a mysql
> db.
> on my former mailserver i used aliases as 
> mailingslists/distributor. a mail
> sent to [EMAIL PROTECTED] has been delivered to all the 
> mail addresses
> defined in a seperate file for that alias.
> 
> now i tried the same and defined an alias [EMAIL PROTECTED] in the
> appropriate mysql-table. for that alias i defined 2 test mail 
> accounts. each
> account/mail-address on a seperate line. the mail is delivered to the
> accounts but the sender gets a "undelivered mail returned to sender" with
> following content:
> 
> 
> This is the Postfix program at host mail.novaware.de.
> 
> I'm sorry to have to inform you that your message could not
> be delivered to one or more recipients. It's attached below.
> 
> For further assistance, please send mail to 
> 
> If you do so, please include this problem report. You can
> delete your own text from the attached returned message.
> 
>   The Postfix program
> 
> <[EMAIL PROTECTED]>: data format error. Command output: : Mailbox does not
> exist
> 
> <[EMAIL PROTECTED]>: data format error. Command output: : 
> Mailbox does
> not exist
> 
> 
> here the snippet of my log file:
> 
> [snip]
> ...
> Mar  6 11:05:59 mail postfix/smtp[29631]: 17D4C5E44B4:
> to=<[EMAIL PROTECTED]>, orig_to=<[EMAIL PROTECTED]>,
> relay=127.0.0.1[127.0.0.1], delay=0, status=sent (250 2.6.0 Ok, 
> id=23575-01,
> from MTA([127.0.0.1]:10025): 250 Ok: queued as 4D5E05E44E2)
> Mar  6 10:05:59 mail postfix/smtp[29631]: 17D4C5E44B4:
> to=<[EMAIL PROTECTED]>, orig_to=<[EMAIL PROTECTED]>,
> relay=127.0.0.1[127.0.0.1], delay=0, status=sent (250 2.6.0 Ok, 
> id=23575-01,
> from MTA([127.0.0.1]:10025): 250 Ok: queued as 4D5E05E44E2)
> ...
> [snip]
> ...
> Mar  6 11:05:59 mail lmtpunix[29557]: IOERROR: fstating sieve script
> /var/lib/imap/sieve/domain/n/novaware.de/l/lulu/defaultbc: No such file or
> directory
> Mar  6 11:05:59 mail lmtpunix[29557]: duplicate_check:
> <[EMAIL PROTECTED]> 
> novaware.de!user.lulu 0
> Mar  6 11:05:59 mail lmtpunix[29557]: mystore: starting txn 2147484028
> Mar  6 11:05:59 mail lmtpunix[29557]: mystore: committing txn 2147484028
> Mar  6 11:05:59 mail lmtpunix[29557]: duplicate_mark:
> <[EMAIL PROTECTED]> novaware.de!user.lulu
> 1173175559 10
> Mar  6 11:05:59 mail lmtpunix[29557]: duplicate_check:
> <[EMAIL PROTECTED]>
> novaware.de!user.p^trolliet 0
> Mar  6 11:05:59 mail lmtpunix[29557]: mystore: starting txn 2147484029
> Mar  6 11:05:59 mail lmtpunix[29557]: mystore: committing txn 2147484029
> Mar  6 11:05:59 mail lmtpunix[29557]: duplicate_mark:
> <[EMAIL PROTECTED]>
> novaware.de!user.p^trolliet 1173175559 54
> Mar  6 11:05:59 mail lmtpunix[29557]: mystore: starting txn 2147484030
> Mar  6 11:05:59 mail lmtpunix[29557]: mystore: committing txn 2147484030
> Mar  6 11:05:59 mail lmtpunix[29557]: duplicate_mark:
> <[EMAIL PROTECTED]>
> [EMAIL PROTECTED] 1173175559 0
> Mar  6 11:05:59 mail postfix/pipe[29636]: 4D5E05E44E2:
> to=<[EMAIL PROTECTED]>, relay=cyrus, delay=0, status=bounced (data format
> error. Command output: : Mailbox does not exist )
> Mar  6 11:05:59 mail postfix/pipe[29636]: 4D5E05E44E2:
> to=<[EMAIL PROTECTED]>, relay=cyrus, delay=0, status=bounced (data
> format error. Command output: : Mailbox does not exist )
> Mar  6 11:05:59 mail postfix/cleanup[29628]: 66E935E44EB:
> message-id=<[EMAIL PROTECTED]>
> Mar  6 11:05:59 mail postfix/qmgr[23547]: 66E935E44EB: from=<>, size=3863,
> nrcpt=1 (queue active)
> Mar  6 11:05:59 mail postfix/qmgr[23547]: 4D5E05E44E2: removed
> Mar  6 11:05:59 mail lmtpunix[29638]: accepted connection
> Mar  6 11:05:59 mail lmtpunix[29638]: lmtp connection preauth'd as postman
> Mar  6 11:05:59 mail lmtpunix[29638]: IOERROR: fstating sieve script
> /var/lib/imap/sieve/domain/n/novathink.de/c/checkov/defaultbc: No 
> such file
> or directory
> Mar  6 11:05:59 mail lmtpunix[29638]: duplicate_check:
> <[EMAIL PROTECTED]> novathink.de!user.checkov 0
> Mar  6 11:05:59 mail lmtpunix[29638]: mystore: starting txn 2147484031
> Mar  6 11:05:59 mail lmtpunix[29638]: mystore: committing txn 2147484031
> Mar  6 11:05:59 mail lmtpunix[29638]: duplicate_mark:
> <[EMAIL PROTECTED]> novathink

problem with aliases as distributor/mailinglist

2007-03-06 Thread Philippe Trolliet
hi,
i recently asked on the postfix mailing list but there they told me that it
is a problem with cyrus.

i´m using postfix on fc4 with virtual users and domains stored in a mysql
db.
on my former mailserver i used aliases as mailingslists/distributor. a mail
sent to [EMAIL PROTECTED] has been delivered to all the mail addresses
defined in a seperate file for that alias.

now i tried the same and defined an alias [EMAIL PROTECTED] in the
appropriate mysql-table. for that alias i defined 2 test mail accounts. each
account/mail-address on a seperate line. the mail is delivered to the
accounts but the sender gets a "undelivered mail returned to sender" with
following content:


This is the Postfix program at host mail.novaware.de.

I'm sorry to have to inform you that your message could not
be delivered to one or more recipients. It's attached below.

For further assistance, please send mail to 

If you do so, please include this problem report. You can
delete your own text from the attached returned message.

The Postfix program

<[EMAIL PROTECTED]>: data format error. Command output: : Mailbox does not
exist

<[EMAIL PROTECTED]>: data format error. Command output: : Mailbox does
not exist


here the snippet of my log file:

[snip]
...
Mar  6 11:05:59 mail postfix/smtp[29631]: 17D4C5E44B4:
to=<[EMAIL PROTECTED]>, orig_to=<[EMAIL PROTECTED]>,
relay=127.0.0.1[127.0.0.1], delay=0, status=sent (250 2.6.0 Ok, id=23575-01,
from MTA([127.0.0.1]:10025): 250 Ok: queued as 4D5E05E44E2)
Mar  6 10:05:59 mail postfix/smtp[29631]: 17D4C5E44B4:
to=<[EMAIL PROTECTED]>, orig_to=<[EMAIL PROTECTED]>,
relay=127.0.0.1[127.0.0.1], delay=0, status=sent (250 2.6.0 Ok, id=23575-01,
from MTA([127.0.0.1]:10025): 250 Ok: queued as 4D5E05E44E2)
...
[snip]
...
Mar  6 11:05:59 mail lmtpunix[29557]: IOERROR: fstating sieve script
/var/lib/imap/sieve/domain/n/novaware.de/l/lulu/defaultbc: No such file or
directory
Mar  6 11:05:59 mail lmtpunix[29557]: duplicate_check:
<[EMAIL PROTECTED]> novaware.de!user.lulu 0
Mar  6 11:05:59 mail lmtpunix[29557]: mystore: starting txn 2147484028
Mar  6 11:05:59 mail lmtpunix[29557]: mystore: committing txn 2147484028
Mar  6 11:05:59 mail lmtpunix[29557]: duplicate_mark:
<[EMAIL PROTECTED]> novaware.de!user.lulu
1173175559 10
Mar  6 11:05:59 mail lmtpunix[29557]: duplicate_check:
<[EMAIL PROTECTED]>
novaware.de!user.p^trolliet 0
Mar  6 11:05:59 mail lmtpunix[29557]: mystore: starting txn 2147484029
Mar  6 11:05:59 mail lmtpunix[29557]: mystore: committing txn 2147484029
Mar  6 11:05:59 mail lmtpunix[29557]: duplicate_mark:
<[EMAIL PROTECTED]>
novaware.de!user.p^trolliet 1173175559 54
Mar  6 11:05:59 mail lmtpunix[29557]: mystore: starting txn 2147484030
Mar  6 11:05:59 mail lmtpunix[29557]: mystore: committing txn 2147484030
Mar  6 11:05:59 mail lmtpunix[29557]: duplicate_mark:
<[EMAIL PROTECTED]>
[EMAIL PROTECTED] 1173175559 0
Mar  6 11:05:59 mail postfix/pipe[29636]: 4D5E05E44E2:
to=<[EMAIL PROTECTED]>, relay=cyrus, delay=0, status=bounced (data format
error. Command output: : Mailbox does not exist )
Mar  6 11:05:59 mail postfix/pipe[29636]: 4D5E05E44E2:
to=<[EMAIL PROTECTED]>, relay=cyrus, delay=0, status=bounced (data
format error. Command output: : Mailbox does not exist )
Mar  6 11:05:59 mail postfix/cleanup[29628]: 66E935E44EB:
message-id=<[EMAIL PROTECTED]>
Mar  6 11:05:59 mail postfix/qmgr[23547]: 66E935E44EB: from=<>, size=3863,
nrcpt=1 (queue active)
Mar  6 11:05:59 mail postfix/qmgr[23547]: 4D5E05E44E2: removed
Mar  6 11:05:59 mail lmtpunix[29638]: accepted connection
Mar  6 11:05:59 mail lmtpunix[29638]: lmtp connection preauth'd as postman
Mar  6 11:05:59 mail lmtpunix[29638]: IOERROR: fstating sieve script
/var/lib/imap/sieve/domain/n/novathink.de/c/checkov/defaultbc: No such file
or directory
Mar  6 11:05:59 mail lmtpunix[29638]: duplicate_check:
<[EMAIL PROTECTED]> novathink.de!user.checkov 0
Mar  6 11:05:59 mail lmtpunix[29638]: mystore: starting txn 2147484031
Mar  6 11:05:59 mail lmtpunix[29638]: mystore: committing txn 2147484031
Mar  6 11:05:59 mail lmtpunix[29638]: duplicate_mark:
<[EMAIL PROTECTED]> novathink.de!user.checkov
1173175559 5
Mar  6 11:05:59 mail postfix/pipe[29640]: 66E935E44EB:
to=<[EMAIL PROTECTED]>, relay=cyrus, delay=0, status=sent (novathink.de)
Mar  6 11:05:59 mail postfix/qmgr[23547]: 66E935E44EB: removed



the mail is delivered to the accounts but the sender gets the above mail
(mail is being delivered with postfix and delivery is ok. then the mail is
delivered again but with lmtpunix). what´s the problem here? how can i solve
this p

Virtual domains, sendmail, aliases

2006-10-17 Thread Jérôme Nenert

Hello,

We've tried to use sendmail with Cyrus virtual domains and createonpost=yes.
Our mailer accept mail for domain1 while the machine name of the mailer 
belongs to domain2. When a mail arrive, the mailbox is created under the 
domain2 while we would like it would have been created under the domain1.


We use cyrusv2d as the delivering agent and the domain1 is the in 
/etc/mail/local-host-names because we want to be able to use 
/etc/aliases for this domain.


Is there someone using sendmail, cyrus virtual domains and /etc/aliases ?
Any experience with Sendmail and cyrus virtual domains is also appreciated.

Regards.
JN


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


Re: Aliases for cyrus imap mailboxes

2006-10-07 Thread Jorey Bump

Sol wrote:

Hello folks,
I've tinkered with cyrus imapd for some hours now and gladly got everything
working the way i wanted. But still one single question remains.

Is there a way (by means of cyrus not my mta) to set aliases for a mailbox
(Like letting mails for [EMAIL PROTECTED] end up in [EMAIL PROTECTED]'s 
mailbox)?


You *must* set up aliases in your MTA in order for it to validate the 
recipient and pass it to the delivery agent. I don't see how you can 
eliminate this step. You can certainly use one or a combination of 
Sieve/Access Control Lists/Shared mailboxes to control delivery afterwards.


Of course, you can create strictly IMAP users that aren't valid SMTP 
recipients (in the sense that they have email addresses or aliases), and 
direct delivery to them *after* Cyrus accepts the message, but I'm 
assuming that's not what you want. In fact, I sprained my mind just 
trying to write that sentence. :P


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


Aliases for cyrus imap mailboxes

2006-10-07 Thread Sol
Hello folks,
I've tinkered with cyrus imapd for some hours now and gladly got everything
working the way i wanted. But still one single question remains.

Is there a way (by means of cyrus not my mta) to set aliases for a mailbox
(Like letting mails for [EMAIL PROTECTED] end up in [EMAIL PROTECTED]'s 
mailbox)?

Cheers, Sol.


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


Re: How does aliases work with cyrus?

2006-07-15 Thread former03 | Baltasar Cevc


On 15.07.2006, at 08:14, Michael Johnson wrote:

On Jul 15, 2006, at 1:12 AM, Jim John wrote:

If a user is an alias such as [EMAIL PROTECTED], how does cyrus 
forward mail to a  different user such as [EMAIL PROTECTED] Thank 
you.


That's not really a function of the MDA.  Your MTA should be doing 
that sort of thing.  Cyrus might do that sort of thing, I don't know, 
but it's not likely.  Cyrus just delivers mail to the end user.  It 
doesn't do any transport.
You could use sieve to do it (create an account sales and create a 
sieve script that drops all mails into john's mailbox; sales must have 
post permissions for john's mailbox to do that).


Probably the MTA is the better place, as michael said. (e.g. in Postfix 
you could use the virtual_aliases transport to do that and 
virtual_mailbox transport for the actual delivery to cyrus. I'm sure 
other mailers have similar functions.


Baltasar


Baltasar Cevc

_ former 03 gmbh
_ infanteriestraße 19 haus 6 eg
_ D-80797 muenchen

_ http://www.former03.de


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: How does aliases work with cyrus?

2006-07-14 Thread Michael Johnson

On Jul 15, 2006, at 1:12 AM, Jim John wrote:

If a user is an alias such as [EMAIL PROTECTED], how does cyrus  
forward mail to a  different user such as [EMAIL PROTECTED] Thank you.


That's not really a function of the MDA.  Your MTA should be doing  
that sort of thing.  Cyrus might do that sort of thing, I don't know,  
but it's not likely.  Cyrus just delivers mail to the end user.  It  
doesn't do any transport.


Think of it like this:

Your friend sends a large package to you via freight.  The truck  
can't come into your neighborhood, so it drops it off at a  
distribution center.  The smaller truck from the distribution center  
delivers the package to your door.  Think of it like FedEx or UPS.   
They have 18 wheelers and jets which take the packages the long  
distances.  Those are the MTAs (like exim, sendmail, postfix, etc.).   
The trucks you see in the neighborhood double-parked so you can't get  
by are the MDAs (like Cyrus, UW, Dovecot, Courier, etc.).


That mail forwarding thing is sort of like a change of address form.   
The mail/package gets routed to the new place before it ever sees the  
local delivery truck.


-Michael

---
What you can do, or dream you can do, begin it; boldness has genius,  
power and magic in it.

- Johann Wolfgang von Goethe


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


How does aliases work with cyrus?

2006-07-14 Thread Jim John
If a user is an alias such as [EMAIL PROTECTED], how does cyrus forward mail to a  different user such as [EMAIL PROTECTED] Thank you. 
		Do you Yahoo!? Everyone is raving about the  all-new Yahoo! Mail Beta.
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: Virtual domains + aliases + cyrus

2006-06-02 Thread Andrzej Adam Filip
Sarah Walters <[EMAIL PROTECTED]> writes:

> All,
>
> I am attempting to configure a mail server to be able to check aliases
> and deliver to Cyrus IMAPd while preserving the domain data. Our MTA at
> the moment is sendmail, but if another MTA can do this better I can look
> at alternatives.
>
> My current understanding is as follows:
>
> 1. To maintain the virtual domain detail you need to use the
>mailertable.

Mailertable is the most common recomendation but it is not the only way.
[ Let's limit our discussion to mailertable based solutions ]

> 2. Sendmail only checks the aliases file for local delivery, which it
>does not consider mailertable to be.

Sendmail can check aliases for any mailer with F=A flag set.
The flag is set by default only for local mailer.

You can set the flag for another mailer using line as below in your *.mc
file:
MODIFY_MAILER_FLAGS(`CYRUSV2', `+A')

> We are currently using 2.2.12 (v2.2.12-Invoca-RPM-2.2.12-3.RHEL4.1 to be
> precise). At this time there are no virtual domains, and we do the
> aliases on a separate box before making an LMTP connection to the cyrus
> host. We now want to consolidate the mail service onto the one box
> rather than have SMTP on one and Cyrus on another.
>
> Can I do the above, and can anyone please tell me exactly how?
>
> I would also like to make better use of LDAP, as there is a project to
> store all account information in LDAP for these users and it would be
> preferable to use it directly rather than having to do a dump of the
> data.

It is "techically possible" to make sendmail check cyrus mailox and
alias existence *before* sending reply to "RCPT TO:".

The solution below (so far) checks only for cyrus mailbox existence:
http://anfi.homeunix.net/sendmail/rtcyrus2.html

-- 
[pl2en: Andrew] Andrzej Adam Filip : [EMAIL PROTECTED] : [EMAIL PROTECTED]
http://anfi.homeunix.net/http://www.linkedin.com/in/andfil

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


Virtual domains + aliases + cyrus

2006-06-01 Thread Sarah Walters
All,

I am attempting to configure a mail server to be able to check aliases
and deliver to Cyrus IMAPd while preserving the domain data. Our MTA at
the moment is sendmail, but if another MTA can do this better I can look
at alternatives.

My current understanding is as follows:

1. To maintain the virtual domain detail you need to use the
mailertable.
2. Sendmail only checks the aliases file for local delivery, which it
does not consider mailertable to be.

We are currently using 2.2.12 (v2.2.12-Invoca-RPM-2.2.12-3.RHEL4.1 to be
precise). At this time there are no virtual domains, and we do the
aliases on a separate box before making an LMTP connection to the cyrus
host. We now want to consolidate the mail service onto the one box
rather than have SMTP on one and Cyrus on another.

Can I do the above, and can anyone please tell me exactly how?

I would also like to make better use of LDAP, as there is a project to
store all account information in LDAP for these users and it would be
preferable to use it directly rather than having to do a dump of the
data.

Thanks,

Sarah Walters

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: Virtual domains and aliases?

2006-01-29 Thread Alexander Dalloz
Am So, den 29.01.2006 schrieb Georgy Goshin um 21:26:

> I need to setup a virtual mail server with Cyrus IMAP and sendmail.
> First -  want to use email addresses as usernames, e.g. virtdomains: userid, 
> it is simple for customers towrite their email in POP3/IMAP username box 
> instaed of some other username we candefine using sendmail's virtusertable. 
> So virtual domains should be server by Cyrus.

See below.

> Second - I'd like to have a possibility to make some aliases in these 
> virtual domains. (I think that the siplest way is to use sendmail's 
> virtusertable for it.  but don;t know how to do it).

Use the virtusertable, correct. Make sure you have catch-all entries for
each domain with an error rejection. Else your postmaster will be
flooded with spam.

> I tried to define cyrusv2 as local mailer:
> 
> MAILER(smtp)dnl
> dnl MAILER(procmail)dnl
> define(`confLOCAL_MAILER', `cyrusv2')dnl
> define(`CYRUS_LMTP_SOCKET', `/var/lib/imap/socket/lmtp')dnl
> MAILER(cyrusv2)dnl
> 
> But in this case it seems that sendmail does not pass FQDN to lmlp, just 
> before @ part. I tried of course to replace this line
> S=EnvFromSMTP/HdrFromSMTP, R=EnvToSMTP in mailer definition, but this  not 
> helps in case of using cyrusv2 aslocal mailer.Does anyone knows what 
> I'mdoing wrong or maybe there is a better solution?Thanks,Georgy.-  

You need to replace the cyrusv2.m4 macro which ships with
Redhat's/Fedora's Sendmail RPM by this one

http://anfi.homeunix.net/sendmail/cyrusv2.html

and use the cyrusv2d as MAILER.

Alexander


-- 
Alexander Dalloz | Enger, Germany | GPG http://pgp.mit.edu 0xB366A773
legal statement: http://www.uni-x.org/legal.html
Fedora Core 2 GNU/Linux on Athlon with kernel 2.6.11-1.35_FC2smp 
Serendipity 22:31:53 up 56 days, 3:08, load average: 1.38, 0.64, 0.39 


signature.asc
Description: Dies ist ein digital signierter Nachrichtenteil

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: Virtual domains and aliases?

2006-01-29 Thread Georgy Goshin

Hi again,

After a few days of tries I still have no working solution, let me explainmy 
needs:


I need to setup a virtual mail server with Cyrus IMAP and sendmail.
First -  want to use email addresses as usernames, e.g. virtdomains: userid, 
it is simple for customers towrite their email in POP3/IMAP username box 
instaed of some other username we candefine using sendmail's virtusertable. 
So virtual domains should be server by Cyrus.
Second - I'd like to have a possibility to make some aliases in these 
virtual domains. (I think that the siplest way is to use sendmail's 
virtusertable for it.  but don;t know how to do it).


I tried to define cyrusv2 as local mailer:

MAILER(smtp)dnl
dnl MAILER(procmail)dnl
define(`confLOCAL_MAILER', `cyrusv2')dnl
define(`CYRUS_LMTP_SOCKET', `/var/lib/imap/socket/lmtp')dnl
MAILER(cyrusv2)dnl

But in this case it seems that sendmail does not pass FQDN to lmlp, just 
before @ part. I tried of course to replace this line
S=EnvFromSMTP/HdrFromSMTP, R=EnvToSMTP in mailer definition, but this  not 
helps in case of using cyrusv2 aslocal mailer.Does anyone knows what 
I'mdoing wrong or maybe there is a better solution?Thanks,Georgy.-  
Original Message - 
From: "Georgy Goshin" <[EMAIL PROTECTED]>

To: 
Sent: Saturday, January 28, 2006 9:05 AM
Subject: Re: Virtual domains and aliases?



Hi!

In case if I'll create a local mailbox for someone'[EMAIL PROTECTED] and 
domain.tld will be in relay-domains and mailertable so mail will not go to 
local mmail box I think. Sendmail has ability to make any aliases in 
virtusertable, and this works well but I made already virtual domains 
using Cyrus and I like this because I can use full email address as 
username, the problem now onlt with aliases and I beleave that should be a 
solution. I just don't see it ;)



Georgy.


- Original Message - 
From: "former03 | Baltasar Cevc" <[EMAIL PROTECTED]>

To: "Georgy Goshin" <[EMAIL PROTECTED]>
Sent: Saturday, January 28, 2006 1:47 AM
Subject: Re: Virtual domains and aliases?


Aliases as such work with the local transport only - as far as I can see 
the only way to implement this would be to create a user/mailbox for the 
alias and have a sieve script that forwards the mails.
Postfix can handle this by using virtual_mailbox_tables and 
virtual_alias_tables...

Baltasar





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




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: Virtual domains and aliases?

2006-01-27 Thread Georgy Goshin

Hi!

In case if I'll create a local mailbox for someone'[EMAIL PROTECTED] and 
domain.tld will be in relay-domains and mailertable so mail will not go to 
local mmail box I think. Sendmail has ability to make any aliases in 
virtusertable, and this works well but I made already virtual domains using 
Cyrus and I like this because I can use full email address as username, the 
problem now onlt with aliases and I beleave that should be a solution. I 
just don't see it ;)



Georgy.


- Original Message - 
From: "former03 | Baltasar Cevc" <[EMAIL PROTECTED]>

To: "Georgy Goshin" <[EMAIL PROTECTED]>
Sent: Saturday, January 28, 2006 1:47 AM
Subject: Re: Virtual domains and aliases?


Aliases as such work with the local transport only - as far as I can see 
the only way to implement this would be to create a user/mailbox for the 
alias and have a sieve script that forwards the mails.
Postfix can handle this by using virtual_mailbox_tables and 
virtual_alias_tables...

Baltasar





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


Virtual domains and aliases?

2006-01-27 Thread Georgy Goshin

Hi!

I've installed Cyrus IMAPD to manage virtual domains.

My installation is configured with virtual domains support and unix 
delimeters. Sendmail pass mails to Cyrus via lmtp. To receive mails for 
domain I have to add the domain names to /etc/mail/relay-domains sendmail's 
file and to mailertable. Now seems that I can't make an alias for users in 
these virtual domains served by Cyrus.


Any advices what to do?




Georgy.



PS.

imapd.conf:
configdirectory: /var/lib/imap
partition-default: /var/spool/imap
admins: cyrus
sievedir: /var/lib/imap/sieve
sendmail: /usr/sbin/sendmail
hashimapspool: true
tls_cert_file: /usr/share/ssl/certs/cyrus-imapd.pem
tls_key_file: /usr/share/ssl/certs/cyrus-imapd.pem
tls_ca_file: /usr/share/ssl/certs/ca-bundle.crt
sasl_pwcheck_method:auxprop
sasl_auxprop_plugin:sasldb
sasldb_path:/etc/sasl2/sasldb2
sasl_mech_list: LOGIN PLAIN CRAM-MD5 DIGEST-MD5
unixhierarchysep:   on
allowanonymouslogin:no
virtdomains:userid
dafaultdomain:  omega.domain.tld
implicit_owner_rights:  lrswida



sendmail.mc:


[EMAIL PROTECTED] ~]# more /etc/mail/sendmail.mc
divert(-1)dnl
include(`/usr/share/sendmail-cf/m4/cf.m4')dnl
VERSIONID(`setup for Red Hat Linux')dnl
OSTYPE(`linux')dnl
define(`confDEF_USER_ID',``8:12'')dnl
define(`confTO_CONNECT', `1m')dnl
define(`confTRY_NULL_MX_LIST',true)dnl
define(`confDONT_PROBE_INTERFACES',true)dnl
define(`PROCMAIL_MAILER_PATH',`/usr/bin/procmail')dnl
define(`ALIAS_FILE', `/etc/aliases')dnl
define(`STATUS_FILE', `/var/log/mail/statistics')dnl
define(`UUCP_MAILER_MAX', `200')dnl
define(`confUSERDB_SPEC', `/etc/mail/userdb.db')dnl
define(`confPRIVACY_FLAGS', `authwarnings,novrfy,noexpn,restrictqrun')dnl
define(`confAUTH_OPTIONS', `A')dnl
TRUST_AUTH_MECH(`EXTERNAL DIGEST-MD5 CRAM-MD5 LOGIN PLAIN')dnl
define(`confAUTH_MECHANISMS', `EXTERNAL GSSAPI DIGEST-MD5 CRAM-MD5 LOGIN 
PLAIN')dnl

define(`confTO_IDENT', `0')dnl
FEATURE(`no_default_msa',`dnl')dnl
FEATURE(`smrsh',`/usr/sbin/smrsh')dnl
FEATURE(`mailertable',`hash -o /etc/mail/mailertable.db')dnl
FEATURE(`virtusertable',`hash -o /etc/mail/virtusertable.db')dnl
FEATURE(redirect)dnl
FEATURE(always_add_domain)dnl
FEATURE(use_cw_file)dnl
FEATURE(use_ct_file)dnl
define(`confMAX_DAEMON_CHILDREN', 24)dnl
define(`confCONNECTION_RATE_THROTTLE', 5)dnl
FEATURE(local_procmail,`',`procmail -t -Y -a $h -d $u')dnl
FEATURE(`access_db',`hash -T -o /etc/mail/access.db')dnl
EXPOSED_USER(`root')dnl
DAEMON_OPTIONS(`Port=smtp, Name=MTA')dnl
DAEMON_OPTIONS(`Port=submission, Name=MSA, M=Ea')dnl
FEATURE(`accept_unresolvable_domains')dnl
LOCAL_DOMAIN(`localhost.localdomain')dnl
MAILER(smtp)dnl
MAILER(procmail)dnl
define(`CYRUS_LMTP_SOCKET', `/var/lib/imap/socket/lmtp')dnl
MAILER(cyrusv2)dnl



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: Sendmail aliases and Cyrus

2005-11-21 Thread Per-Olov Sjöholm
On Monday 21 November 2005 06.38, Anthony Tibbs wrote:
> Hi everyone,
>
> I was trying to check the list archives for some hints, but it seems that
> that server is having some 'difficulties' at the moment, and isn't
> responding.
>
> I am currently in the process of setting up another Cyrus/IMAP server, as
> I've been (personally) running Cyrus/Sendmail for a few years now with good
> results.  I had the usual sendmail+virtdomains+cyrus hoops to jump through,
> but now have THAT working all right (by way of a mailertable entries, i.e.
>
> mydomain.cacyrusv2d:/var/lib/imap/socket/lmtp
>
> The problem is that for this to WORK, mydomain.ca must not be considered a
> "local domain" (i.e. it must not be in local-host-names), since this
> results in a rewrite that strips the 'host' portion of the address off, and
> then Cyrus rejects the message with an 'unknown mailbox' error.
>
> And all of this ultimately means that I can't use sendmail "aliases" (for
> non-local addresses), which I need in order to redirect such things as
> postmaster, root, etc. to a particular user.
>
> Have I missed something simple here?  I've tried following the instructions
> at http://asg.web.cmu.edu/cyrus/download/imapd/install-virtdomains.html but
> that is where I am getting stuck...
>
>
> 
> 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


Is it a problem to use virtuserdomainfile and virtusertable?


This stuff can be enabled by using:
--snip--
VIRTUSER_DOMAIN_FILE(`/etc/mail/virtuserdomainfile')dnl
FEATURE(`virtusertable',`hash /etc/mail/virtusertable.db')dnl
--snip--
In the sendmail.mc file.

Regards
/Per-Olov
-- 
GPG keyID: 4DB283CE
GPG fingerprint: 45E8 3D0E DE05 B714 D549 45BC CFB4 BBE9 4DB2 83CE

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: Sendmail aliases and Cyrus

2005-11-20 Thread mitrohin a.s.
On Mon, Nov 21, 2005 at 12:38:16AM -0500, Anthony Tibbs wrote:
> Hi everyone,
> 
> I was trying to check the list archives for some hints, but it seems that 
> that server is having some 'difficulties' at the moment, and isn't 
> responding.
> 
> I am currently in the process of setting up another Cyrus/IMAP server, as 
> I've been (personally) running Cyrus/Sendmail for a few years now with good 
> results.  I had the usual sendmail+virtdomains+cyrus hoops to jump through, 
> but now have THAT working all right (by way of a mailertable entries, i.e.
> 
> mydomain.cacyrusv2d:/var/lib/imap/socket/lmtp
> 
> The problem is that for this to WORK, mydomain.ca must not be considered a 
> "local domain" (i.e. it must not be in local-host-names), since this 
> results in a rewrite that strips the 'host' portion of the address off, and 
> then Cyrus rejects the message with an 'unknown mailbox' error.
> 
> And all of this ultimately means that I can't use sendmail "aliases" (for 
> non-local addresses), which I need in order to redirect such things as 
> postmaster, root, etc. to a particular user.
> 
> Have I missed something simple here?  I've tried following the instructions 
> at http://asg.web.cmu.edu/cyrus/download/imapd/install-virtdomains.html but 
> that is where I am getting stuck...

add domain to sendmail class VirtHost and use virtusertable.

/swp

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: Sendmail aliases and Cyrus

2005-11-20 Thread Casper

Anthony Tibbs wrote:


Hi everyone,

I was trying to check the list archives for some hints, but it seems 
that that server is having some 'difficulties' at the moment, and 
isn't responding.


I am currently in the process of setting up another Cyrus/IMAP server, 
as I've been (personally) running Cyrus/Sendmail for a few years now 
with good results.  I had the usual sendmail+virtdomains+cyrus hoops 
to jump through, but now have THAT working all right (by way of a 
mailertable entries, i.e.


mydomain.cacyrusv2d:/var/lib/imap/socket/lmtp

The problem is that for this to WORK, mydomain.ca must not be 
considered a "local domain" (i.e. it must not be in local-host-names), 
since this results in a rewrite that strips the 'host' portion of the 
address off, and then Cyrus rejects the message with an 'unknown 
mailbox' error.


And all of this ultimately means that I can't use sendmail "aliases" 
(for non-local addresses), which I need in order to redirect such 
things as postmaster, root, etc. to a particular user.


Have I missed something simple here?  I've tried following the 
instructions at 
http://asg.web.cmu.edu/cyrus/download/imapd/install-virtdomains.html 
but that is where I am getting stuck...




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


If you not use mailertable and put the domain in the local-host-names 
the aliases would work (even for vhosts in cyrus).


Also put,
define(`confCHECK_ALIASES', `True')dnl   <= This checks the aliasesfile 
left side of the aliases

in you sendmailcf.mc file

Also change the cyrusv2d mailer in sendmail.cf to,

Mcyrusv2d,   P=[IPC], F=lsDFMnqXzA@/:|m,
   S=EnvFromSMTP/HdrFromL, R=EnvToL/HdrToL, E=\r\n,
   T=DNS/RFC822/SMTP,
   A=FILE /var/lib/imap/socket/lmtp


The try to add aliases in the sendmailalises file like
root:   [EMAIL PROTECTED]
or
[EMAIL PROTECTED]:   [EMAIL PROTECTED]

And type, newaliases.
Test.
Done


sendmail -bt
/parse [EMAIL PROTECTED]

if you get an answer like

mailer cyrusv2, user [EMAIL PROTECTED]

if your cyrususer is [EMAIL PROTECTED] you are done

if you get an answer like

mailer cyrusv2, user user

if your cyrususer are [EMAIL PROTECTED] you need a localrule that not strip 
away the domain




/Casper

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: Sendmail aliases and Cyrus

2005-11-20 Thread Nikola Milutinovic

Anthony Tibbs wrote:


Hi everyone,

I was trying to check the list archives for some hints, but it seems 
that that server is having some 'difficulties' at the moment, and 
isn't responding.


I am currently in the process of setting up another Cyrus/IMAP server, 
as I've been (personally) running Cyrus/Sendmail for a few years now 
with good results.  I had the usual sendmail+virtdomains+cyrus hoops 
to jump through, but now have THAT working all right (by way of a 
mailertable entries, i.e.


mydomain.cacyrusv2d:/var/lib/imap/socket/lmtp

The problem is that for this to WORK, mydomain.ca must not be 
considered a "local domain" (i.e. it must not be in local-host-names), 
since this results in a rewrite that strips the 'host' portion of the 
address off, and then Cyrus rejects the message with an 'unknown 
mailbox' error.


And all of this ultimately means that I can't use sendmail "aliases" 
(for non-local addresses), which I need in order to redirect such 
things as postmaster, root, etc. to a particular user.


Have I missed something simple here?  I've tried following the 
instructions at 
http://asg.web.cmu.edu/cyrus/download/imapd/install-virtdomains.html 
but that is where I am getting stuck...



This is the way I do it:

"ev.co.yu" is our domain and is registered as a local-host-names entry,
VirtUserMap: [EMAIL PROTECTED] -> [EMAIL PROTECTED]
MailerTab: IMAP:cyrusv2d:localhost

Now two things are worth mentioning. Firstly, "IMAP" is NOT in the 
"local-host-names" - as far as I know, for a local domain Sendmail will 
not consult mailertable, as it will not consult virtual users table for 
non-local domain. Secondly, the "host part" for cyrusv2d mailer in 
mailertable has no usage. The definition of that mailer has actually no 
use for the $h macro. That can probably be changed, but I'd like Andrzej 
Filip (anfi) to do it, since he is the author of that definition.


What should be the best usage for the host part, since we could be 
requesting this change from Andrzej? I imagine it could be used for 
specifying which LMTP socket to connect to, but it can be elaborate, 
remeber Sendmail can connect to a local UNIX socket, just as easily as 
it can connect to a remote LMTP network socket. So, something like this 
would be nice, I just don't know if it is feasable:


cyrusv2d:unix:/var/opt/Cyrus-IMAP4-2.2.10/socket/lmtp
cyrusv2d:net:imap4.ev.co.yu

Nix.



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


Sendmail aliases and Cyrus

2005-11-20 Thread Anthony Tibbs

Hi everyone,

I was trying to check the list archives for some hints, but it seems that 
that server is having some 'difficulties' at the moment, and isn't 
responding.


I am currently in the process of setting up another Cyrus/IMAP server, as 
I've been (personally) running Cyrus/Sendmail for a few years now with good 
results.  I had the usual sendmail+virtdomains+cyrus hoops to jump through, 
but now have THAT working all right (by way of a mailertable entries, i.e.


mydomain.cacyrusv2d:/var/lib/imap/socket/lmtp

The problem is that for this to WORK, mydomain.ca must not be considered a 
"local domain" (i.e. it must not be in local-host-names), since this results 
in a rewrite that strips the 'host' portion of the address off, and then 
Cyrus rejects the message with an 'unknown mailbox' error.


And all of this ultimately means that I can't use sendmail "aliases" (for 
non-local addresses), which I need in order to redirect such things as 
postmaster, root, etc. to a particular user.


Have I missed something simple here?  I've tried following the instructions 
at http://asg.web.cmu.edu/cyrus/download/imapd/install-virtdomains.html but 
that is where I am getting stuck...




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


Aliases And forwards

2005-09-09 Thread Jesus Ruiz
Hi, i have a new problem now, is there a way to make aliases and forwards cyrus-imapd and sendmail.
 
I have configured 3 different domains in my sendmail/cyrus box, and i that the users can aliases their accounts or forward the email they receive in one of their accounts to others accounts in the same domain.

 
Thanks, and i'm sorry to bother that much.
 
Jesus

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: Using aliases in Cyrus IMAP

2005-08-04 Thread Wil Cooley
On Wed, 2005-07-27 at 23:54 +0200, Tammo Beishuizen wrote:

> The aliasing is done in /etc/aliases in the usual manner, and postalias'ed 
> and reloaded afterwards.

Are you sure it's /etc/aliases?  What does 'postconf alias_maps' tell
you?

Wil
-- 
Wil Cooley <[EMAIL PROTECTED]>
Naked Ape Consulting, Ltd. <http://nakedape.cc>


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


Using aliases in Cyrus IMAP

2005-07-27 Thread Tammo Beishuizen
Hi there,

In my Suse 9.1 linux set-up I am using Postfix as MTA. To have an IMAP
server going on, I have choosen Cyrus so I can use Squirrelmail as 
webmail.

The installation of Postfix went fine, although I hade som hick-ups 
(Newbie stuff ...)

Installation of Cyrus goes fine as well. That is, I can use cyradm 
to create mailboxes and I can use Squirrelmail to read these mailboxes. 

The problem is the delivery of the mail by postfix into Cyrus. If I use 
the unix user, let's say user1, as the e-mail address I send e-mail to, 
it gets into cyrus. 
However, if I use an alias like alias1 being mapped to user1 to send 
an e-mail to, it is not deliverd, but returns an error message:

Jul 11 23:27:48 myhostname postfix/pipe[9497]: 86F13DE1:
to=<[EMAIL PROTECTED]>, 
relay=cyrus, delay=1, status=bounced (data format error. 
Command output: alias1: Mailbox does not exist )

The aliasing is done in /etc/aliases in the usual manner, and postalias'ed 
and reloaded afterwards.

My overall purpose is to deliver mail from all aliases of a single user into

one cyrus mailbox.

The questions I have are:
Is this an configuration error on postfix or cyrus ?
How handles cyrus aliasing ?
Which configuration item handles these aliases (virutal_alias_maps)?

Please consider the fact I am a newbie and that I have been googling already

quite a while.
Thanks for the answers are pointers to docs.

Tammo Beishuizen




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


Cyrus + /etc/aliases

2005-06-30 Thread Gerard Ceraso
I have a postfix server delivering mail to my cyrus imap server. I have
the aliases setup on the smtp server and things seem to be fine with
postfix. But I keep getting bounced messages and errors in the log that
point to something with the imap server.

imap postfix/lmtp[17929]: C48BE54077: to=<[EMAIL PROTECTED]>,
relay=imap.example.com[192.168.1.32], delay=0, status=bounced (host
imap.example.com[192.168.1.32] said: 550-Mailbox unknown.  Either there
is no mailbox associated with this 550-name or you do not have
authorization to see it. 550 5.1.1 User unknown (in reply to RCPT TO
command))

any suggestions why the aliases are not working?

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


Catch all and aliases: is this how?

2004-10-25 Thread Roberto Leibman
Hi, it's me again.
I'm very slowly getting into hosting all of my services myself, so I'm 
porting domains currently hosted by commercial hosters into my own stuff.

I have a combination of cyrus, sendmail, spamassassin, spamass-milter, 
fetchmail, all doing various things.

So far so good, I have two domains in the sendmail local-host-names 
file, and things work as I expect:

[EMAIL PROTECTED] and [EMAIL PROTECTED] both end up in my roberto 
account without having to even touch anything else.

Now I want all email that doesn't fit a cyrus user to go to a catch-all 
account.

I have not figured out how to do that with cyrus, though I was able to 
mangle it into working with sendmail, by adding domain to sendmail's 
virtusertable, but the problem is that then I need to specify every user 
in the system otherwise the catchall takes precedence.

So I imagine there's some obscure setting in cyrus that I have to set to 
make IT handle the catchall.

On top of this (and I imagine there's a relationship) I also want some 
aliases ([EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED]) to be aliased to 
other existing accounts ([EMAIL PROTECTED]).

The man pages, documentation and this list's archive weren't very clear 
on how to do any of this.

--
Roberto Leibman
Libertarian Party Candidate for California State Senate, District 1
http://www.leibman.net/statesenate2004
---
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: Imap mailbox aliases (two names for the same box)

2004-07-29 Thread Lars Peterson
On Thu, July 22, 2004 10:24 am, Ghislain ADNET wrote:
> 
>>
>> First you were talking about the "sent" folder and the settings I
>> showed you will allow you to select *any* folder with *any* name
>> for sent, drafts and templates. I usually disable junk mail
>> filtering in mozilla (I have amavis-new+spamassassin taking care
>> of spam on the server), but I enabled it just to test what you are
>> saying and in "Junk mail control" you can select *any* folder for
>> junk mail (I selected "spam" and it showed the junk mail icon, you
>> have to collapse and expand the folders tree to see the new
>> icons).
>> The key is to select *other* and not sent/drafts/templates/junk in
>> those preferences.
>>
>> Bye
> 
>   sent,junk trash etc are the same in this regards this is just my
>   redirection is spamc that sent to user+Junk folder so
> i used it in my exemple.
> 
> I retried it and i got the icon now, i got to restart to have them
> back on the top of the list but the icons are ok with a simple
> collapse (!!).  seems that i was not enough patient to have them
> (or any other mistake possible..). Thanks for the tip this was the
> only thing i ever had against this mail client (it should be
> installed on Windows by default ;) )
> 
>This is a good thing to know for future users. For all others i
>would love also to be able to alias the mailbox at
> the server level (without using sieve) but it does not seems
> possible :(
> 
> best regards,
> Ghislain.
> ---

I would also like to mailbox aliasing at the server level.

I administer a cyrus imapd system that was designed before the advent of 
virtual domains. To accomodate multiple domains on one server, the
mailboxes were created in the format of "user1.domainname1.com".

What I'm looking for now is the ability to give "user1" a way to configure
his/her POP3/IMAP mail client so that the ".domainname1.com" portion
wouldn't be required.

How hard would implementing something like this be?

TIA

-Lars

---
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: Imap mailbox aliases (two names for the same box)

2004-07-22 Thread Ghislain ADNET

First you were talking about the "sent" folder and the settings I showed 
you will allow you to select *any* folder with *any* name for sent, 
drafts and templates. I usually disable junk mail filtering in mozilla 
(I have amavis-new+spamassassin taking care of spam on the server), but 
I enabled it just to test what you are saying and in "Junk mail control" 
you can select *any* folder for junk mail (I selected "spam" and it 
showed the junk mail icon, you have to collapse and expand the folders 
tree to see the new icons).
The key is to select *other* and not sent/drafts/templates/junk in those 
preferences.

Bye
 sent,junk trash etc are the same in this regards this is just my redirection is spamc that sent to user+Junk folder so 
i used it in my exemple.

I retried it and i got the icon now, i got to restart to have them back on the top of the list but the icons are ok with 
a simple collapse (!!).  seems that i was not enough patient to have them (or any other mistake possible..). Thanks for 
the tip this was the only thing i ever had against this mail client (it should be installed on Windows by default ;) )

  This is a good thing to know for future users. For all others i would love also to be able to alias the mailbox at 
the server level (without using sieve) but it does not seems possible :(

best regards,
Ghislain.
---
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: Imap mailbox aliases (two names for the same box)

2004-07-22 Thread Luca Olivetti
Ghislain ADNET wrote:

Don't know which version of thunderbird/mozilla you are using, but in 
the current one (and in any previous one starting from Netscape 
communicator 4.x) I have a lowercase sent folder and I do have the 
special icon (btw, mozilla shows it with an uppercase name) and 
everything works fine. In fact I use 'sent' for historical reasons: 
you can use *any* name (e.g. I use localized names for templates and 
drafts).
Only you have to remember to configure mozilla/thunderbird to use your 
folders (with thunderbird: tools->account settings->copies & folders, 
select "other" and select the imap folder you want to use for sent, 
drafts and templates, with mozilla is the same but "account settings" 
is under the "edit" menu)


i use thunderbird 0.7.2 and other people here use mozilla 1.7.1 . For my 
part my folder "junk" has not the special icon , if i put Junk then i 
have it. Also a user cannot change the name of the folder you must do it 
on the server and resubscribe to use it again (the rename menu icon do 
not show on those folders). On a large userbase you see why i wish to 
change this on the server side and not on the client :)

  So i don't know why we have different behaviors but this is my 
experience here :)
First you were talking about the "sent" folder and the settings I showed 
you will allow you to select *any* folder with *any* name for sent, 
drafts and templates. I usually disable junk mail filtering in mozilla 
(I have amavis-new+spamassassin taking care of spam on the server), but 
I enabled it just to test what you are saying and in "Junk mail control" 
you can select *any* folder for junk mail (I selected "spam" and it 
showed the junk mail icon, you have to collapse and expand the folders 
tree to see the new icons).
The key is to select *other* and not sent/drafts/templates/junk in those 
preferences.

Bye
--
Luca Olivetti
Wetron Automatización S.A. http://www.wetron.es/
Tel. +34 93 5883004  Fax +34 93 5883007
---
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: Imap mailbox aliases (two names for the same box)

2004-07-21 Thread Ghislain ADNET

Don't know which version of thunderbird/mozilla you are using, but in 
the current one (and in any previous one starting from Netscape 
communicator 4.x) I have a lowercase sent folder and I do have the 
special icon (btw, mozilla shows it with an uppercase name) and 
everything works fine. In fact I use 'sent' for historical reasons: you 
can use *any* name (e.g. I use localized names for templates and drafts).
Only you have to remember to configure mozilla/thunderbird to use your 
folders (with thunderbird: tools->account settings->copies & folders, 
select "other" and select the imap folder you want to use for sent, 
drafts and templates, with mozilla is the same but "account settings" is 
under the "edit" menu)


i use thunderbird 0.7.2 and other people here use mozilla 1.7.1 . For my part my folder "junk" has not the special icon 
, if i put Junk then i have it. Also a user cannot change the name of the folder you must do it on the server and 
resubscribe to use it again (the rename menu icon do not show on those folders). On a large userbase you see why i wish 
to change this on the server side and not on the client :)

  So i don't know why we have different behaviors but this is my experience here :)
best regards,
GHislain.
---
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: Imap mailbox aliases (two names for the same box)

2004-07-21 Thread Luca Olivetti
Ghislain ADNET wrote:
Hello,
  I know some of you had the problem of the mailbox with an upper case 
that are not recognized when goign through sendmail.

  For exemple writing to [EMAIL PROTECTED] is translated 
[EMAIL PROTECTED]

  My problem is Thunderbird use Junk, Trash Sent name boxes etc... and 
have special icons to show those folders that permit easy identification 
of the folder by mundane users. But i cannot forward to uppercase adress 
folders so i have to choose between :

1/ use sent instead of Sent and forget about the special icon in 
thunderbird and mozilla
Don't know which version of thunderbird/mozilla you are using, but in 
the current one (and in any previous one starting from Netscape 
communicator 4.x) I have a lowercase sent folder and I do have the 
special icon (btw, mozilla shows it with an uppercase name) and 
everything works fine. In fact I use 'sent' for historical reasons: you 
can use *any* name (e.g. I use localized names for templates and drafts).
Only you have to remember to configure mozilla/thunderbird to use your 
folders (with thunderbird: tools->account settings->copies & folders, 
select "other" and select the imap folder you want to use for sent, 
drafts and templates, with mozilla is the same but "account settings" is 
under the "edit" menu)

Bye
--
Luca Olivetti
Wetron Automatización S.A. http://www.wetron.es/
Tel. +34 93 5883004  Fax +34 93 5883007
---
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: Imap mailbox aliases (two names for the same box)

2004-07-20 Thread Ghislain ADNET
Scott Adkins wrote:
The solution we opted for was to patch Sendmail to make it work :)
I have an "lmtp" patch that doesn't drop the stuff after the + in the
address, and it also does not mess with the case with anything after
the +.  I implemented as a mailer flag, so including a 'W' in the
cyrus mailer flags triggers the code to work.
I can post it if you are interested...
I am glad i am not the only one to have the issue !
Sure i am interested by the patch  ! :)
best regards,
Ghislain.
---
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: Imap mailbox aliases (two names for the same box)

2004-07-20 Thread Scott Adkins
The solution we opted for was to patch Sendmail to make it work :)
I have an "lmtp" patch that doesn't drop the stuff after the + in the
address, and it also does not mess with the case with anything after
the +.  I implemented as a mailer flag, so including a 'W' in the
cyrus mailer flags triggers the code to work.
I can post it if you are interested...
I have tried working with the m4 code in the sendmail.cf file to make
that same functionality work without having to patch sendmail.  I have
yet been able to succeed.
Does anyone have a sample config file (other than CMU :->) that works?
CMU's code was so complex I couldn't figure it out.  Basically, I got all
of their config files, and they do a lot in their environment, so it was
like looking for a needle in a hay stack :)
Scott
--On Tuesday, July 20, 2004 6:39 PM +0200 Ghislain ADNET <[EMAIL PROTECTED]> 
wrote:

Hello,
   I know some of you had the problem of the mailbox with an upper case
that are not recognized when goign through sendmail.
   For exemple writing to [EMAIL PROTECTED] is translated
[EMAIL PROTECTED]
   My problem is Thunderbird use Junk, Trash Sent name boxes etc... and
have special icons to show those folders that permit easy identification
of the folder by mundane users. But i cannot forward to uppercase adress
folders so i have to choose between :
1/ use sent instead of Sent and forget about the special icon in
thunderbird and mozilla
2/ find a way to create an alias at the server level between Sent and
sent (so basicaly only one folder for two names)
   Do any of you have a solution for the second solution ?
best regards,
Ghislain.
---
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

--
+---+
 Scott W. Adkinshttp://www.cns.ohiou.edu/~sadkins/
  UNIX Systems Engineer  mailto:[EMAIL PROTECTED]
   ICQ 7626282 Work (740)593-9478 Fax (740)593-1944
+---+
PGP Public Key available at http://www.cns.ohiou.edu/~sadkins/pgp/

pgpcH0DYR34IY.pgp
Description: PGP signature


Imap mailbox aliases (two names for the same box)

2004-07-20 Thread Ghislain ADNET
Hello,
  I know some of you had the problem of the mailbox with an upper case that are not 
recognized when goign through sendmail.
  For exemple writing to [EMAIL PROTECTED] is translated [EMAIL PROTECTED]
  My problem is Thunderbird use Junk, Trash Sent name boxes etc... and have special icons to show those folders that 
permit easy identification of the folder by mundane users. But i cannot forward to uppercase adress folders so i have to 
choose between :

1/ use sent instead of Sent and forget about the special icon in thunderbird and 
mozilla
2/ find a way to create an alias at the server level between Sent and sent (so 
basicaly only one folder for two names)
  Do any of you have a solution for the second solution ?
best regards,
Ghislain.
---
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


Mailbox aliases on cyrus

2004-05-09 Thread Ghislain ADNET
Hi,

 I have setup mailoxes for my server like this :

Sent
Trash
Draft
Junk
 This way Mozilla automaticaly use the right folder so it helps a lot. 
My main concern with this setup is when i want to sent direct mail to 
one of those. For exemple if i put for Sent the "p" right and then send 
to username+Sent it goes to username because it search for username+sent 
(With lower case S). But if you name the directory in lowercase then 
mozilla do not automaticaly recognize them.

  I wanted to know if there is a way to have a mailbox alias, for 
exemple making "Sent" a symbolic link to "sent". As Cyrus is a blackbox 
i fear to create strange behavior doing that. Any of you had some 
experiences with this ?

best regards,
Ghislain.
---
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: Helpful Hint on Virtual Domains, and Mail Aliases

2004-02-18 Thread Joe Rhett
On Mon, Feb 02, 2004 at 05:49:36PM -0500, Peter P. Benac wrote:
> To Whom:
> 
> I found it very difficult to set up virtual domains and getting my
> existing mail aliases working with sendmail.  It might have been helpful if
> the documentation mentioned that I needed to get rid of my virtusertable,
> local-host-names and to reference all the aliases in the my aliases file by
> their respective domains.

Um.. well, none of those statements are true.  Clearly that configuration
worked for you, but we use Cyrus with local-host-names, local aliases and a
very extensive virtusertable.

> Having to guess all of this made the install very frustrating, not to
> mention the stupid questions I did post to the mail list could have been
> avoided.
 
It sounds like all of these questions were really Sendmail configuration
questions.  (I'm guessing) The problem wasn't Cyrus IMAPd at all, but that
you had issues configuring the MTA to route mail properly.  That really
isn't something that Cyrus documentation should attempt to solve.

That said, as Ken indicated, updates to documentation are always accepted.
I know for certain, because most of my updates were (in spirit if not word
by word).

-- 
Joe Rhett  Chief Geek
[EMAIL PROTECTED]  Isite Services, Inc.
---
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: Helpful Hint on Virtual Domains, and Mail Aliases

2004-02-02 Thread Ken Murchison
Peter P. Benac wrote:

To Whom:

I found it very difficult to set up virtual domains and getting my
existing mail aliases working with sendmail.  It might have been helpful if
the documentation mentioned that I needed to get rid of my virtusertable,
local-host-names and to reference all the aliases in the my aliases file by
their respective domains.
Having to guess all of this made the install very frustrating, not to
mention the stupid questions I did post to the mail list could have been
avoided.
If you want to write upsome documentation, we'llbe happy to include it 
in the distro.

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


Helpful Hint on Virtual Domains, and Mail Aliases

2004-02-02 Thread Peter P. Benac
To Whom:

I found it very difficult to set up virtual domains and getting my
existing mail aliases working with sendmail.  It might have been helpful if
the documentation mentioned that I needed to get rid of my virtusertable,
local-host-names and to reference all the aliases in the my aliases file by
their respective domains.

Having to guess all of this made the install very frustrating, not to
mention the stupid questions I did post to the mail list could have been
avoided.

Regards,
Pete

Peter P. Benac, CCNA
Emacolet Networking Services, Inc
Providing Systems and Network Consulting, Training, Web Hosting Services
Phone: 919-847-1740 or 866-701-2345
Web: http://www.emacolet.com
Need quick reliable Systems or Network Management advice visit
http://www.nmsusers.org

To have principles...
 First have courage.. With principles comes integrity!!!




Re: Virtual Domains and aliases.

2004-01-09 Thread Oliver Jones





would do what you want. Since mailLocalAddress is not a single-value in
LDAP, you can send as many "aliases" as you want to the
mailRoutingAddress. It works fine for my installation with Cyrus IMAP
and Virtual Domains.


OK.  Thanks for the info.  I'll do more research into it and see if I can get it to work.


As far as sending the full address (with the @domain), you will find a
line in the cyrus mailer in sendmail.cf that reads:
S=3DEnvFromSMTP/HdrFromSMTP, R=3DEnvToSMTP/HdrToSMTP, E=3D\r\n,
simply changing it to:
S=3DEnvFromSMTP/HdrFromSMTP, R=3DEnvToSMTP, E=3D\r\n,
should take care of that. There are instructions in the archives for
this also.


Hmm.  Well I have the following mailer definition in my sendmail.mc...

MAILER_DEFINITIONS
Mcyrusv2,   P=[IPC], F=lsDFMnqA5@/:|SmXz, E=\r\n,
    S=EnvFromSMTP/HdrFromSMTP, R=EnvToSMTP, T=DNS/RFC822/X-Unix,
    A=FILE /usr/local/cyrus/var/lib/imap/socket/lmtp

...and it does not appear to supply the [EMAIL PROTECTED] address to lmtpd.  Or at least when I was trying to run with confLOCAL_MAILER set to cyrusv2 lmptd was complaining about not finding the mailbox user.user1 when mail was sent to [EMAIL PROTECTED]  Which suggested to me that it was dropping the @fqdn.com part.

Regards



-- 






Oliver Jones » Director » [EMAIL PROTECTED] » +64 (21) 41 2238 
Deeper Design Limited » +64 (7) 377 3328 » www.deeperdesign.com
















Re: Virtual Domains and aliases.

2004-01-09 Thread Mike O'Rourke
>>> Oliver Jones <[EMAIL PROTECTED]> 01/08/04 03:41 AM >>>
Hi guys.

I have a question regarding mail aliases, virtual users and cyrus
virtual domains.  

I have configured my Cyrus IMAPD 2.2.2 install to deliver mail using
virtual domains.  It does this by relaying the received messages into
the cyrus mailer using Sendmail's "mailertable".  Ie the domain is not
in /etc/mail/local-host-names, but is instead in /etc/mail/access as
"domain RELAY".  However, sendmail does not reference the
virtualusertable or aliases databases when relaying mail.  

I want to create 'aliases' like [EMAIL PROTECTED] & [EMAIL PROTECTED] that
deliver to [EMAIL PROTECTED]  How can I do this with sendmail and cyrus
configured to support virtual domains??  Is there a way of doing it with
LDAP mail routing?

Or will I have to hack sendmail to treat the Cyrus mailer as "local" and
yet still pass the domain portion of the email address when trying to
deliver mail to the LMTP socket.  If I set cyrus to be the local mailer
sendmail seems to strip the @domain before delivering and so lmtpd can
not find the user's mailbox.

Is there something special I need to do in the Mailer def in
sendmail.cf?

Regards
-- 
Oliver Jones » Director » [EMAIL PROTECTED] » +64 (21) 41
2238 
Deeper Design Limited » +64 (7) 377 3328 » www.deeperdesign.com

>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

Hi Oliver,

I do what you want using LDAP Routing with sendmail. An ldif such as:

dn: cn=user1,dc=domain,o=com
objectClass: top
objectClass: inetOrgPerson
objectClass: inetLocalMailRecipient
mailLocalAddress: [EMAIL PROTECTED]
mailLocalAddress: [EMAIL PROTECTED]
mailLocalAddress: [EMAIL PROTECTED]
mailHost: mail.domain.com
mailRoutingAddress: [EMAIL PROTECTED]
cn: user1


would do what you want. Since mailLocalAddress is not a single-value in
LDAP, you can send as many "aliases" as you want to the
mailRoutingAddress. It works fine for my installation with Cyrus IMAP
and Virtual Domains.

As far as sending the full address (with the @domain), you will find a
line in the cyrus mailer in sendmail.cf that reads:
S=EnvFromSMTP/HdrFromSMTP, R=EnvToSMTP/HdrToSMTP, E=\r\n,
simply changing it to:
S=EnvFromSMTP/HdrFromSMTP, R=EnvToSMTP, E=\r\n,
should take care of that. There are instructions in the archives for
this also.

Mike


Virtual Domains and aliases.

2004-01-07 Thread Oliver Jones




Hi guys.

I have a question regarding mail aliases, virtual users and cyrus virtual domains.  

I have configured my Cyrus IMAPD 2.2.2 install to deliver mail using virtual domains.  It does this by relaying the received messages into the cyrus mailer using Sendmail's "mailertable".  Ie the domain is not in /etc/mail/local-host-names, but is instead in /etc/mail/access as "domain RELAY".  However, sendmail does not reference the virtualusertable or aliases databases when relaying mail.  

I want to create 'aliases' like [EMAIL PROTECTED] & [EMAIL PROTECTED] that deliver to [EMAIL PROTECTED]  How can I do this with sendmail and cyrus configured to support virtual domains??  Is there a way of doing it with LDAP mail routing?

Or will I have to hack sendmail to treat the Cyrus mailer as "local" and yet still pass the domain portion of the email address when trying to deliver mail to the LMTP socket.  If I set cyrus to be the local mailer sendmail seems to strip the @domain before delivering and so lmtpd can not find the user's mailbox.

Is there something special I need to do in the Mailer def in sendmail.cf?

Regards



-- 






Oliver Jones » Director » [EMAIL PROTECTED] » +64 (21) 41 2238 
Deeper Design Limited » +64 (7) 377 3328 » www.deeperdesign.com
















aliases

2002-12-13 Thread Chia Sen How








Dear all,

 

I am trying to configure aliase function
in /etc/postfix/aliase. I configured the aliase txt file, virtual txt file, run it and tried to send
the mail, but it didn’t send it to the email add that I configured it to
send.

 

Any advice?

 

Thanks and rgds,

Damian








Re: Postfix with Cyrus working on lmtp - loosing aliases

2002-10-16 Thread Michael Fair

Remove the gwch.ath.ch anything entry
from your virtual table or add
[EMAIL PROTECTED] [EMAIL PROTECTED]

The gwch.ath.ch anything entry is explicitly
to tell Postfix to reject any address it
doesn't see in this table.

-- Michael --

- Original Message -
From: "Roger Grosswiler" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, October 13, 2002 8:45 AM
Subject: Postfix with Cyrus working on lmtp - loosing aliases


Hello out there,

Thanks all for your support, now i got my connection between postfix and
cyrus on lmtp workingnevertheless, if a message comes in for
"[EMAIL PROTECTED]", regarding to the alias-table postfix should defer to
the local account
"rogerg"... he just replies with unknown user...has anybody an idea? i also
tried with virtual_maps...same effect...

Log:
ct 13 16:44:47 trinity postfix/lmtp[1478]: 3C60122ECD:
to=<[EMAIL PROTECTED]>, relay=/var/imap/socket/lmtp[/var/imap/socket/lmtp],
delay=3,
status=bounced (host /var/imap/socket/lmtp[/var/imap/socket/lmtp] said: 550
5.1.1 User
unknown)

aliases:
rogerg: rogerg, roger, [EMAIL PROTECTED]

virtual:
gwch.ath.cx anything
[EMAIL PROTECTED]   rogerg

any help is appreciated...thanks in advance...

Roger

--
+++ GMX - Mail, Messaging & more  http://www.gmx.net +++
NEU: Mit GMX ins Internet. Rund um die Uhr für 1 ct/ Min. surfen!





Postfix with Cyrus working on lmtp - loosing aliases

2002-10-13 Thread Roger Grosswiler

Hello out there,

Thanks all for your support, now i got my connection between postfix and
cyrus on lmtp workingnevertheless, if a message comes in for
"[EMAIL PROTECTED]", regarding to the alias-table postfix should defer to the local 
account
"rogerg"... he just replies with unknown user...has anybody an idea? i also
tried with virtual_maps...same effect...

Log:
ct 13 16:44:47 trinity postfix/lmtp[1478]: 3C60122ECD:
to=<[EMAIL PROTECTED]>, relay=/var/imap/socket/lmtp[/var/imap/socket/lmtp], delay=3,
status=bounced (host /var/imap/socket/lmtp[/var/imap/socket/lmtp] said: 550 5.1.1 User
unknown)

aliases:
rogerg: rogerg, roger, [EMAIL PROTECTED]

virtual:
gwch.ath.cx anything
[EMAIL PROTECTED]   rogerg

any help is appreciated...thanks in advance...

Roger

-- 
+++ GMX - Mail, Messaging & more  http://www.gmx.net +++
NEU: Mit GMX ins Internet. Rund um die Uhr für 1 ct/ Min. surfen!




RE: Cyrus-Imapd-2.0.16 doesn´t work with aliases or virtusertable??

2002-03-04 Thread Enric Ramos


Hi Marcelo:

I have the same scenario than you...
And it works fine.

Try to put in virtusertable user1@domain instead of user1 only. It works for me.
(I mean: [EMAIL PROTECTED][EMAIL PROTECTED])
And don't forget to "makemap" the virtusertable file !!

Hope this helps.

Regards-

Enric

> -Mensaje original-
> De: Marcelo Maraboli [mailto:[EMAIL PROTECTED]]
> Enviado el: lunes, 04 de marzo de 2002 21:19
> Para: cyrus
> Asunto: Cyrus-Imapd-2.0.16 doesn´t work with aliases or 
> virtusertable??
> 
> 
> Hello folks.
> 
> I have Cyrus-Imapd-2.0.16 working with sendmail-8.12.2 with one
> problem
> 
> - I send an email to the server and it does not recognize the 
> /etc/mail/aliases entries unless the user has a valid cyrus account!!!
> 
> Then how am I supposed to re-direct email to another domain for a 
> specific user..??
> 
> i.e. in /etc/mail/aliases
> user1 [EMAIL PROTECTED]
> 
> the same thing happens in /etc/mail/virtusertable...etc.
> 
> any clues?
> -- 
> Marcelo Maraboli Rosselott
> Ingeniero Civil ElectronicoJefe Area de Redes
> (Electronic Civil Engineer)  (Head Network & Systems Admin)
> 
>Direccion Central de Servicios Computacionales (DCSC)
>  Universidad Tecnica Federico Santa Maria, Chile.
> mailto:[EMAIL PROTECTED] http://elqui.dcsc.utfsm.cl/
> --/
> 



Cyrus-Imapd-2.0.16 doesn´t work with aliases or virtusertable??

2002-03-04 Thread Marcelo Maraboli

Hello folks.

I have Cyrus-Imapd-2.0.16 working with sendmail-8.12.2 with one
problem

- I send an email to the server and it does not recognize the 
/etc/mail/aliases entries unless the user has a valid cyrus account!!!

Then how am I supposed to re-direct email to another domain for a 
specific user..??

i.e. in /etc/mail/aliases
user1   [EMAIL PROTECTED]

the same thing happens in /etc/mail/virtusertable...etc.

any clues?
-- 
Marcelo Maraboli Rosselott
Ingeniero Civil Electronico  Jefe Area de Redes
(Electronic Civil Engineer)  (Head Network & Systems Admin)

   Direccion Central de Servicios Computacionales (DCSC)
 Universidad Tecnica Federico Santa Maria, Chile.
mailto:[EMAIL PROTECTED]   http://elqui.dcsc.utfsm.cl/
--/



Multiple Aliases of Cyrus Account

2002-02-01 Thread hubson

Dear Sirs,

Problem:
It should be possible for a Netscape user to have one of three possible
usernames configured in his mail server
preferences.
Example:
Cyrus' account name: p00032351
Personal Identifier: LEE
Original name: Joe Public
Joe Public's Netscape would be able to use "p00032351" or "LEE" or "Joe
Public" as the username to get mails
via POP or IMAP.
The "personal identifier" and "Cyrus' account name" are unique but it could
happen that a second Joe Public
exists. "Cyrus' account name" is
intended for those cases where a second "Joe Public" and another record
for "Bruce Lee" exists. If more than
one records are found an error
would have to result to prevent users accessing unintentionally a mailbox
of another user.

Receive request from Netscape - LDAP-request to retrieve account name -
submit account name and password received from Netscape to Cyrus-sasl.

Does anyone see a solution for this?

Thanks in advance

B. Hubatka





E-Mail for everyone! http://www.bluemail.ch/ powered by Bluewin!





Re: Aliases and virtual domain hosting

2001-11-25 Thread Simon Loader

Henrique de Moraes Holschuh wrote:
> 
> On Sat, 24 Nov 2001, Kevin J. Menard, Jr. wrote:
> > Tuesday, November 06, 2001, 7:44:04 AM, you wrote:
> > MF> If you decide that 1 IP per domain is not acceptable, which
> > MF> anybody who does lots of virtual hosting generally does, then
> > MF> I recommend you apply the sep-heirarchy patch which will
> > MF> allow you to use straight email addresses as account names.
> >
> > This is true, but lmtpd will not.  It splits on '@' for Kerberos realms or
> > something.
> 
> That is a serious limitation. Does lmtp allow one to send to it 'quoted'
> addresses? something like foo\@virtual.domain.org  to skip the kerberos
> realm check?


The part where it check for user existence does the @ split its self
It seems to work when taken out.

change lmtpengine.c 
line 936  from

while ( *addr != '@' && *addr != '>') {

to
while ( *addr != '>') {


The kerberos realm seems to be seprate.
It does work.

( I must learn kerberos some day).

-- 
Simon



Re: Re[2]: Aliases and virtual domain hosting

2001-11-25 Thread Henrique de Moraes Holschuh

On Sat, 24 Nov 2001, Kevin J. Menard, Jr. wrote:
> Tuesday, November 06, 2001, 7:44:04 AM, you wrote:
> MF> If you decide that 1 IP per domain is not acceptable, which
> MF> anybody who does lots of virtual hosting generally does, then
> MF> I recommend you apply the sep-heirarchy patch which will
> MF> allow you to use straight email addresses as account names.
> 
> This is true, but lmtpd will not.  It splits on '@' for Kerberos realms or
> something.

That is a serious limitation. Does lmtp allow one to send to it 'quoted'
addresses? something like foo\@virtual.domain.org  to skip the kerberos
realm check?

-- 
  "One disk to rule them all, One disk to find them. One disk to bring
  them all and in the darkness grind them. In the Land of Redmond
  where the shadows lie." -- The Silicon Valley Tarot
  Henrique Holschuh



Re: Aliases and virtual domain hosting

2001-11-06 Thread Michael Fair

On Monday 05 November 2001 12:17 pm, cyrus-mailinglist wrote:
> Hello folks!
>
> One question! If I have a mailbox created with cyradm how I can make
> aliases 4 this mailbox?

It's handled by your MTA.


> And if I want to host multiple domains with cyrus how this works??

Same way it does with POP-3.
It requires a globally unique account name for all users
in the system regardless of domain name they are a part of.
Unless you want to burn 1 IP address per domain name.  If
you do decide that 1 IP address per domain is a valid solution
for your installation, the archives have lots of information
on how to set this up.

If you decide that 1 IP per domain is not acceptable, which
anybody who does lots of virtual hosting generally does, then
I recommend you apply the sep-heirarchy patch which will
allow you to use straight email addresses as account names.

I also recommend using the alternate namespace patch 
to give your users the folder heirarchy look they are 
used to seeing with everything at the top level, rather
than everything being a subfolder of Inbox.

The archives cover this in great detail and I suggest
you look there first on how to set this up.

-- Michael --



Re: Aliases and virtual domain hosting

2001-11-06 Thread Wolfgang Trexler

cyrus-mailinglist wrote:
> 
> Hello folks!
> 
> One question! If I have a mailbox created with cyradm how I can make
> aliases 4 this mailbox?

You've to use your MTA (like sendmail) for mail aliases. In case of
sendmail edit
/etc/mail/aliases and then run sendmail -bi as root.

> 
> And if I want to host multiple domains with cyrus how this works??

AFAIK multiple domains also have to be handled by your MTA.

best regards
Wolfgang
-- 
Wolfgang Trexler <[EMAIL PROTECTED]>
For completely outdated information see http://members.ping.at/wolfman/



Aliases and virtual domain hosting

2001-11-05 Thread cyrus-mailinglist

Hello folks!

One question! If I have a mailbox created with cyradm how I can make
aliases 4 this mailbox? 

And if I want to host multiple domains with cyrus how this works??

Thanks in advance

--

Oliver Kaufmann
Moser & Partner
[T]+43 5522 701 54 14
[F]+43 5522 701 54 19
[E][EMAIL PROTECTED] 




Cyrus-imap and Aliases

2001-06-18 Thread Adi Linden

Hi,

I am configuring a Cyrus-imap mail system with sendmail and ldap for user
authentication. I am running into 2 problem, I cannot get mail delivered
into top level mailboxes, i.e. [EMAIL PROTECTED] and the aliases in
the '/etc/aliases' file are now ignored...

I am running sendmail-8.11.2, cyrus-sasl-1.5.24-17.1 and
cyrus-imapd-2.0.13-1.1.

Below is my sendmail configuration...

TTYL,
Adi

--- sendmail.mc ---

divert(-1)
dnl This is the sendmail macro config file. If you make changes to this file,
dnl you need the sendmail-cf rpm installed and then have to generate a
dnl new /etc/sendmail.cf by running the following command:
dnl
dnlm4 /etc/mail/sendmail.mc > /etc/sendmail.cf
dnl
include(`/usr/share/sendmail-cf/m4/cf.m4')
VERSIONID(`linux setup for Red Hat Linux')dnl
OSTYPE(`linux')
define(`confDEF_USER_ID',``8:12'')dnl
undefine(`UUCP_RELAY')dnl
undefine(`BITNET_RELAY')dnl
define(`confAUTO_REBUILD')dnl
define(`confTO_CONNECT', `1m')dnl
define(`confTRY_NULL_MX_LIST',true)dnl
define(`confDONT_PROBE_INTERFACES',true)dnl
define(`confLOCAL_MAILER',`cyrus')dnl
define(`confLDAP_DEFAULT_SPEC', `-h"localhost" -b"dc=knet, dc=ca"')dnl
define(`PROCMAIL_MAILER_PATH',`/usr/bin/procmail')dnl
define(`ALIAS_FILE', `/etc/aliases')dnl
define(`STATUS_FILE', `/var/log/sendmail.st')dnl
define(`UUCP_MAILER_MAX', `200')dnl
define(`confUSERDB_SPEC', `/etc/mail/userdb.db')dnl
define(`confPRIVACY_FLAGS', `authwarnings,novrfy,noexpn,restrictqrun')dnl
define(`confAUTH_OPTIONS', `A')dnl
TRUST_AUTH_MECH(`DIGEST-MD5 CRAM-MD5 LOGIN PLAIN')dnl
define(`confAUTH_MECHANISMS', `DIGEST-MD5 CRAM-MD5 LOGIN PLAIN')dnl
dnl define(`confTO_QUEUEWARN', `4h')dnl
dnl define(`confTO_QUEUERETURN', `5d')dnl
dnl define(`confQUEUE_LA', `12')dnl
dnl define(`confREFUSE_LA', `18')dnl
dnl FEATURE(delay_checks)dnl
FEATURE(`no_default_msa',`dnl')dnl
FEATURE(`smrsh',`/usr/sbin/smrsh')dnl
FEATURE(`mailertable',`hash -o /etc/mail/mailertable')dnl
FEATURE(`virtusertable',`hash -o /etc/mail/virtusertable')dnl
FEATURE(redirect)dnl
FEATURE(always_add_domain)dnl
FEATURE(use_cw_file)dnl
FEATURE(use_ct_file)dnl
FEATURE(local_procmail)dnl
FEATURE(`access_db')dnl
FEATURE(`blacklist_recipients')dnl
FEATURE(`ldap_routing', , , bounce)dnl
LDAPROUTE_DOMAIN(`develop.knet.ca')dnl
EXPOSED_USER(`root')dnl
dnl This changes sendmail to only listen on the loopback device 127.0.0.1
dnl and not on any other network devices. Comment this out if you want
dnl to accept email over the network.
dnl DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, Name=MTA')
dnl We strongly recommend to comment this one out if you want to protect
dnl yourself from spam. However, the laptop and users on computers that do
dnl not have 24x7 DNS do need this.
dnl FEATURE(`accept_unresolvable_domains')dnl
dnl FEATURE(`relay_based_on_MX')dnl
MAILER(local)dnl
MAILER(smtp)dnl


MAILER_DEFINITIONS
Mcyrus, P=[IPC], F=lsDFMnqA5@/:|SmXz, E=\r\n,
S=EnvFromL, R=EnvToL/HdrToL, T=DNS/RFC822/X-Unix,
A=FILE /var/imap/socket/lmtp

LOCAL_RULE_0
Rbb + $+ < @ $=w . >$#cyrus $: + $1

LOCAL_RULESETS
# if there's a plus part, we want to directly deliver it
SLocal_localaddr
R$+ + $*$#cyrus $@ $: $1 + $2