Postfix + cyrus imapd data format error. Command output Mailbox does not exist => Virtual mailboxes [EMAIL PROTECTED]
Dear I'm fighting with the cyrus + postfix since one week about creating virtual mailboxes. i have always these errors Apr 11 10:00:49 debian-cyrus cyrus/lmtpd[24387]: accepted connection Apr 11 10:00:49 debian-cyrus cyrus/lmtpd[24387]: lmtp connection preauth'd as postman Apr 11 10:00:49 debian-cyrus postfix/pipe[26522]: 12E5CABB29: to=<[EMAIL PROTECTED]>, relay=cyrus, delay=0, status=bounced (data format error. Command output: [EMAIL PROTECTED]: Mailbox does not exist ) The problem that i must create user with domain name ex user/[EMAIL PROTECTED] user/[EMAIL PROTECTED] I'had checked imapd.conf with these settings : unixhierarchysep: yes virtdomain: yes admins: cyrus lmtp_downcase_rcpt: yes loginrealms: domain.tld the user [EMAIL PROTECTED] exist and i can access it trought imap. I have changed in the master.cf the command line in order to set postfix to send to the full email address : cyrus unix- n n - - pipe flags= user=cyrus argv=/usr/sbin/cyrdeliver -m $(extension) $(user)@$(nexthop) in the main.cf : header_checks=regexp:/etc/postfix/hash_files/header_checks.cf body_checks=regexp:/etc/postfix/hash_files/body_checks.cf mime_header_checks=regexp:/etc/postfix/hash_files/mime_header_checks.cf virtual_alias_maps=hash:/etc/postfix/hash_files/virtual_alias_maps.cf transport_maps=hash:/etc/postfix/hash_files/transport_maps.cf virtual_mailbox_domains=hash:/etc/postfix/hash_files/virtual_domains_maps.cf relay_domains=hash:/etc/postfix/hash_files/relay_domains_maps.cf virtual_transport = cyrus mailbox_transport = cyrus cyrus_destination_recipient_limit = 1 virtual_mailbox_maps = hash:/etc/postfix/hash_files/virtual_mailbox_maps.cf if i create user has user/user.name,the postfix send correctly the email but at the wrong mailbox not user/[EMAIL PROTECTED] just to user/user.name pr 11 10:14:10 debian-cyrus postfix/cleanup[9100]: C61E7ABB29: message-id=<[EMAIL PROTECTED]> Apr 11 10:14:10 debian-cyrus postfix/qmgr[24476]: C61E7ABB29: from=<[EMAIL PROTECTED]>, size=637, nrcpt=1 (queue active) Apr 11 10:14:10 debian-cyrus postfix/smtpd[9091]: disconnect from unknown[192.168.1.17] Apr 11 10:14:11 debian-cyrus cyrus/lmtpd[24387]: accepted connection Apr 11 10:14:11 debian-cyrus cyrus/lmtpd[24387]: lmtp connection preauth'd as postman Apr 11 10:14:11 debian-cyrus cyrus/lmtpd[24387]: duplicate_check: <[EMAIL PROTECTED]> user.user^name 0 Apr 11 10:14:11 debian-cyrus cyrus/lmtpd[24387]: mystore: starting txn 2147483657 Apr 11 10:14:11 debian-cyrus cyrus/lmtpd[24387]: mystore: committing txn 2147483657 Apr 11 10:14:11 debian-cyrus cyrus/lmtpd[24387]: duplicate_mark: <[EMAIL PROTECTED]> user.user^name 1176279251 Apr 11 10:14:11 debian-cyrus postfix/pipe[9119]: C61E7ABB29: to=<[EMAIL PROTECTED]>, relay=cyrus, delay=1, status=sent (domain.tlb) Apr 11 10:14:11 debian-cyrus postfix/qmgr[24476]: C61E7ABB29: removed How can i fix it ??? Thanks Best regards. -- David Touzeau -- Linux Ubuntu Dapper 6.0.6 FreePascal-Lazarus,perl,delphi,php icq:160018849 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: delivery fails to virtual mailboxes
On 1/27/06 12:17 PM, "Stuart Morrison" <[EMAIL PROTECTED]> wrote: > Try adding a line to your imapd.conf in the following format: > > loginrealms: domain2.tld domain3.tld Nope, no joy. I tried this with both ${user} and ${mailbox} settings in postfix's master.cf, reloading postfix and imapd each time. dn 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
delivery fails to virtual mailboxes
Greetings. I'm a new cyrus-imap user with delivery-to-virtual-domains problem. I've set up a server with cyrus-imap 2.2.12, cyrus-sasl2, Postfix, MySQL, and virtual domains. Mail inbound to users in virtual domains isn't being delivered. SMTP and MySQL are working OK. Postfix says it has handed off a message to [EMAIL PROTECTED]: Jan 26 17:59:27 petacchi postfix/pipe[858]: 2ABB75081D: to=<[EMAIL PROTECTED]>, relay=cyrus, delay=0, status=sent (domain2.tld) But there's nothing in maillog on the imap side. And imtest says there's no such message: petacchi# /usr/local/bin/imtest -m login -a [EMAIL PROTECTED] localhost S: * OK domain1.tld Cyrus IMAP4 v2.2.12 server ready C: C01 CAPABILITY S: * CAPABILITY IMAP4 IMAP4rev1 ACL QUOTA LITERAL+ MAILBOX-REFERRALS NAMESPACE UIDPLUS ID NO_ATOMIC_RENAME UNSELECT CHILDREN MULTIAPPEND BINARY SORT THREAD=ORDEREDSUBJECT THREAD=REFERENCES ANNOTATEMORE IDLE STARTTLS S: C01 OK Completed Please enter your password: C: L01 LOGIN [EMAIL PROTECTED] {5} S: + go ahead C: S: L01 OK User logged in Authenticated. Security strength factor: 0 . select INBOX * FLAGS (\Answered \Flagged \Draft \Deleted \Seen) * OK [PERMANENTFLAGS (\Answered \Flagged \Draft \Deleted \Seen \*)] * 0 EXISTS But if I send mail to [EMAIL PROTECTED] (which is also a virtual domain, but one that happens to be the same domain as the mailserver's real domain), the message does show up. Searching the info-cyrus mailing lists, I found two possible issues, but I'm not sure either explains my problem: --cyrus-imap doesn't like usernames with '@' signs in them, and that's what we have in the database. This may be the problem, BUT a) I don't understand from the FAQ entry which file I'm supposed to fix and b) delivery works fine with the virtual domain entry that's also a real domain. --the deliver statement in Postfix's master.cf file might want ${mailbox} instead of ${user}. I also tried changing this, but no joy. Here is the relevant part of master.cf: cyrus unix - n n - - pipe user=cyrus argv=/usr/local/cyrus/bin/deliver -e -r ${sender} -m ${extension} ${user} And here is imapd.conf: configdirectory: /usr/local/imap partition-default: /usr/local/imap/spool unixhierarchysep: yes servername: domain1.tld admins: cyrus autocreatequota: 1024000 sieveusehomedir: false sievedir: /usr/local/imap/sieve sasl_pwcheck_method: auxprop tls_cert_file: /usr/local/imap/cyrus.pem tls_key_file: /usr/local/imap/cyrus.key tls_ca_file: /usr/local/imap/cacert.pem lmtpsocket: /usr/local/imap/socket/lmtp idlesocket: /usr/local/imap/socket/idle notifysocket: /usr/local/imap/socket/notify virtdomains: yes defaultdomain: domain1.tld allowusermoves: yes sasl_auxprop_plugin: sql sasl_sql_user: sasl_sql_passwd: sasl_sql_database: postfix sasl_sql_hostnames: localhost sasl_sql_select: SELECT password FROM mailbox WHERE username='[EMAIL PROTECTED]' AND active='1' sasl_sql_verbose: yes sasl_sql_engine: mysql sasl_mech_list: plain login sasl_password_format: crypt BTW, the SQL SELECT statement returns a password (encrypted) when I run it manually. Again, the "username" entries in the database are in the form of "[EMAIL PROTECTED]". Thanks in advance for any clues on how to get mail delivery working. dn versions: FreeBSD 6.0-RELEASE on amd64 cyrus-imap 2.2.12 cyrus-sasl2 2.1.21 MySQL server and client 4.1 Berkeley DB 3 Postfix 2.2.5 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 doesn't exist (virtual mailboxes)
Okay... I have my virtual domains working properly. Now I'm having another problem. When checking mail from thunderbird, I am told "error from server: mailbox doesn't exist." In cyradm, 'lm' shows '[EMAIL PROTECTED] (\HasNoChildren)'. I can verify via 'imtest' that the credentials I'm using are correct. What can cause this? I haven't configured postfix yet, but I wouldn't think that is the problem. Any help would be most appreciated, as this is my first real attempt toward setting up mail on linux. I'm not a linux newbie, but I am new to linux mail systems. Thanks! --- 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: Cyrus + postfix virtual mailboxes
Andrew Morgan wrote: On Wed, 17 Nov 2004, Hamish wrote: Dick Davies wrote: * Hamish <[EMAIL PROTECTED]> [1119 15:19]: Hello everyone Could someone please point me in the right direction? I would like to use virtual mailboxes for users. Username, pass, aliases etc are stored in ldap and I would like to be able to just use this to store user information. Cyrus authentication can work that way, but unless you want to store mail in LDAP you need a mailbox created in cyrus for the ldap entry as well. i.e. to create a mail user 1. ldapadd a user/password pair 2. run 'cyradm' and then 'cm user.username' I have found that there seems to be a way of using one user for all the virtual mailboxes with courier - is this possible with cyrus? IE one mailbox which dishes out virtual mailboxes. I want to be able to administer users in ldap, and not have to then change passwords etc anywhere else, so cyrus would have to check the user against ldap. Just to be clear, you have to create the mailbox in cyrus so that mail can be received. You'll also have to delete the mailbox in cyrus when you remove the user. You can have cyrus authenticate against any number of sources, including ldap. Cyrus does not "read" ldap to figure out what mailboxes exist on the system, so you're stuck with an extra step to create the mailbox. However, you do not need to make a separate password in cyrus. Andy --- 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 Thanks Andy, this is helpful - I was worried about having to reset passwords in too many places! Adding and deleting mailboxes is ok, as long as its easy to fix if users forget their passwords! Cheers, H --- 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: Cyrus + postfix virtual mailboxes
On Wed, 17 Nov 2004, Hamish wrote: Dick Davies wrote: * Hamish <[EMAIL PROTECTED]> [1119 15:19]: Hello everyone Could someone please point me in the right direction? I would like to use virtual mailboxes for users. Username, pass, aliases etc are stored in ldap and I would like to be able to just use this to store user information. Cyrus authentication can work that way, but unless you want to store mail in LDAP you need a mailbox created in cyrus for the ldap entry as well. i.e. to create a mail user 1. ldapadd a user/password pair 2. run 'cyradm' and then 'cm user.username' I have found that there seems to be a way of using one user for all the virtual mailboxes with courier - is this possible with cyrus? IE one mailbox which dishes out virtual mailboxes. I want to be able to administer users in ldap, and not have to then change passwords etc anywhere else, so cyrus would have to check the user against ldap. Just to be clear, you have to create the mailbox in cyrus so that mail can be received. You'll also have to delete the mailbox in cyrus when you remove the user. You can have cyrus authenticate against any number of sources, including ldap. Cyrus does not "read" ldap to figure out what mailboxes exist on the system, so you're stuck with an extra step to create the mailbox. However, you do not need to make a separate password in cyrus. Andy --- 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: Cyrus + postfix virtual mailboxes
Dick Davies wrote: * Hamish <[EMAIL PROTECTED]> [1119 15:19]: Hello everyone Could someone please point me in the right direction? I would like to use virtual mailboxes for users. Username, pass, aliases etc are stored in ldap and I would like to be able to just use this to store user information. Cyrus authentication can work that way, but unless you want to store mail in LDAP you need a mailbox created in cyrus for the ldap entry as well. i.e. to create a mail user 1. ldapadd a user/password pair 2. run 'cyradm' and then 'cm user.username' I have found that there seems to be a way of using one user for all the virtual mailboxes with courier - is this possible with cyrus? IE one mailbox which dishes out virtual mailboxes. I want to be able to administer users in ldap, and not have to then change passwords etc anywhere else, so cyrus would have to check the user against ldap. --- 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: Cyrus + postfix virtual mailboxes
* Hamish <[EMAIL PROTECTED]> [1119 15:19]: > Hello everyone > Could someone please point me in the right direction? I would like to > use virtual mailboxes for users. Username, pass, aliases etc are stored > in ldap and I would like to be able to just use this to store user > information. Cyrus authentication can work that way, but unless you want to store mail in LDAP you need a mailbox created in cyrus for the ldap entry as well. i.e. to create a mail user 1. ldapadd a user/password pair 2. run 'cyradm' and then 'cm user.username' -- When you have to kill a man it costs nothing to be polite. - Winston Churchill, On formal declarations of war Rasputin :: Jack of All Trades - Master of Nuns --- 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 + postfix virtual mailboxes
Hello everyone Could someone please point me in the right direction? I would like to use virtual mailboxes for users. Username, pass, aliases etc are stored in ldap and I would like to be able to just use this to store user information. I have seen ways to do this with virtual domains, but I dont need this for now, only virtual mailboxes with postfix. Is this possible? Are there any howtos or docs on this? Thanks, H --- 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 mailboxes
Hello Talking about virtual domains or virtual mailboxes. I have a linux box with sasl 2.1.9 and cyrus 2.1.9, Sasl was compiled with support for MySLQ like this. export LIBS="-lz" ./configure --prefix=/usr/local --disable-krb4 --disable-gssapi --with-dbpat h=/etc/sasldb2 \ --with-dblib=berkeley --with-bdb-libdir=/usr/local/BerkeleyDB.4.1/lib \ --with-dbd-incdir=/usr/local/BerkeleyDB.4.1/include --disable-otp --disable- pwcheck \ --enable-plain --with-mysql The configure process looks fine, and the same for make and make install command. After that, cyrus-imapd-2.1.9 is compiled and installed with the following options ./configure --prefix=/usr/local --with-state=/var/state --with-dbdir=/usr/lo cal/BerkeleyDB.4.1 \ --with-auth=unix --enable-sieve --enable-server --with-perl=/usr/bin/perl -- without-krb \ --disable-gssapi --with-sasl=/usr/local/lib/sasl2 make depend make all CFLAGS=-O make install And here is my problem, i planning to configure imap with virtual domains support , firts i´m trying to use the sasldb2 but i can´t (sorry, i´m a newbie). Then, looking for some materials in internet, i found the --with-mysql options in saslv2 and is that i trying today :). here is my imapd.conf file servername: xxx.net configdirectory: /var/imap/xxx.net partition-default: /var/spool/imap/xxx.net admins: cyrus root altnamespace: yes allowanonymouslogin: no allowplaintext: yes #sasl_mech_list: PLAIN sasl_pwcheck_method: auxprop sasl_mysql_user: mail sasl_mysql_passwd: xxx sasl_mysql_hostnames: localhost sasl_mysql_database: mail sasl_mysql_statement: select password from accountuser where username = '%u' and domain_name = '%r' sasl_mysql_verbose: yes In mysql server i have a database named mail and i have added for it mysql>use mysql; mysql>insert into user (host,user,password,..) values ('localhost','mail','xxx'); mysql>use mail; mysql>insert into accountuser (unsername,password,domain) values ('cyrus',PASSWORD('test'),'xxx.net'); That´s all that i have configure but the log look very ugly when a try to log with cyradm. #su cyrus #cyradm 192.168.1.172 Jan 13 10:16:50 llus imapd[28754]: mysql plugin try and connect to localhost Jan 13 10:16:50 llus imapd[28754]: mysql plugin couldnt connect to any host Jan 13 10:16:50 llus imapd[28754]: unable to open Berkeley db /etc/sasldb2: No such file or directory Jan 13 10:16:50 llus imapd[28754]: unable to open Berkeley db /etc/sasldb2: No such file or directory Jan 13 10:16:50 llus imapd[28754]: mysql plugin Parse the username cyrus Jan 13 10:16:50 llus imapd[28754]: mysql plugin try and connect to a host Jan 13 10:16:50 llus imapd[28754]: mysql plugin try and connect to localhost Jan 13 10:16:50 llus imapd[28754]: mysql plugin couldnt connect to any host Jan 13 10:16:50 llus imapd[28754]: badlogin: factorysoft.net[192.168.1.172] plaintext cyrus SASL(-13): user not found: checkpass failed ene 13 10:17:03 llus su(pam_unix)[28757]: session closed for user cyrus i think the problem can be the mech used to insert the password into the user table can any one advise about my problem? thanks in advanced Danny - Original Message - From: "Ken Murchison" <[EMAIL PROTECTED]> To: "Joe Ellis" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Friday, January 10, 2003 11:33 PM Subject: Re: Virtual mailboxes > If you want to try 2.2 from CVS, you want to check out tag > cyrus-imapd-2_2 > > > > Joe Ellis wrote: > > > > Yeah. thats exactly what I want. ...i just built a new mail server too > > using cyrus-imap 2.1.11. > > > > Thanks. > > > > Ken Murchison wrote: > > > Sounds to me like you want virtual domain support. This is part of > > > Cyrus 2.2 (which is in CVS). Here is some docs: > > > > > > http://bugzilla.andrew.cmu.edu/cgi-bin/cvsweb.cgi/~checkout~/src/cyrus/doc/A ttic/install-virtdomains.html?rev=1.1.2.5&content-type=text/html&hideattic=0 > > > > > > > > > Joe Ellis wrote: > > > > > >>Is there a way to have cyrus deliver mail to a mailbox based on the domain? > > >> > > >>for example, if [EMAIL PROTECTED] has mail deliverd, it goes to > > >>user/lithodyne.net/joee. If [EMAIL PROTECTED] has mail delivered, it > > >>goes to user/andrew.cmu.edu/joee. > > >> > > >>I'm trying to eliminate usernames as the email address. Currently, I > > >>have cyrus setup so the mailbox is [EMAIL PROTECTED] So the > > >>username is [EMAIL PROTECTED] and not just joee. I'd like to have the > > >>user as joee no matter what domain. > > >> > > >>I use postfix as the mta. Maybe I should write a wrapper for deliver so >
Re: Virtual mailboxes
If you want to try 2.2 from CVS, you want to check out tag cyrus-imapd-2_2 Joe Ellis wrote: > > Yeah. thats exactly what I want. ...i just built a new mail server too > using cyrus-imap 2.1.11. > > Thanks. > > Ken Murchison wrote: > > Sounds to me like you want virtual domain support. This is part of > > Cyrus 2.2 (which is in CVS). Here is some docs: > > > > >http://bugzilla.andrew.cmu.edu/cgi-bin/cvsweb.cgi/~checkout~/src/cyrus/doc/Attic/install-virtdomains.html?rev=1.1.2.5&content-type=text/html&hideattic=0 > > > > > > Joe Ellis wrote: > > > >>Is there a way to have cyrus deliver mail to a mailbox based on the domain? > >> > >>for example, if [EMAIL PROTECTED] has mail deliverd, it goes to > >>user/lithodyne.net/joee. If [EMAIL PROTECTED] has mail delivered, it > >>goes to user/andrew.cmu.edu/joee. > >> > >>I'm trying to eliminate usernames as the email address. Currently, I > >>have cyrus setup so the mailbox is [EMAIL PROTECTED] So the > >>username is [EMAIL PROTECTED] and not just joee. I'd like to have the > >>user as joee no matter what domain. > >> > >>I use postfix as the mta. Maybe I should write a wrapper for deliver so > >>postfix will extract the username and domain and pass the correct > >>mailbox to cyrus. > >> > >>Anyone doing this? > >> > >>I hope I'm clear on what I'm asking. > >> > >>-- > >>Joe Ellis > >>http://www.lithodyne.net > >>Jas 5:7,8 > > > > > > -- > Joe Ellis > http://www.lithodyne.net > Jas 5:7,8 -- 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
Re: Virtual mailboxes
Yeah. thats exactly what I want. ...i just built a new mail server too using cyrus-imap 2.1.11. Thanks. Ken Murchison wrote: Sounds to me like you want virtual domain support. This is part of Cyrus 2.2 (which is in CVS). Here is some docs: http://bugzilla.andrew.cmu.edu/cgi-bin/cvsweb.cgi/~checkout~/src/cyrus/doc/Attic/install-virtdomains.html?rev=1.1.2.5&content-type=text/html&hideattic=0 Joe Ellis wrote: Is there a way to have cyrus deliver mail to a mailbox based on the domain? for example, if [EMAIL PROTECTED] has mail deliverd, it goes to user/lithodyne.net/joee. If [EMAIL PROTECTED] has mail delivered, it goes to user/andrew.cmu.edu/joee. I'm trying to eliminate usernames as the email address. Currently, I have cyrus setup so the mailbox is [EMAIL PROTECTED] So the username is [EMAIL PROTECTED] and not just joee. I'd like to have the user as joee no matter what domain. I use postfix as the mta. Maybe I should write a wrapper for deliver so postfix will extract the username and domain and pass the correct mailbox to cyrus. Anyone doing this? I hope I'm clear on what I'm asking. -- Joe Ellis http://www.lithodyne.net Jas 5:7,8 -- Joe Ellis http://www.lithodyne.net Jas 5:7,8
Re: Virtual mailboxes
Sounds to me like you want virtual domain support. This is part of Cyrus 2.2 (which is in CVS). Here is some docs: http://bugzilla.andrew.cmu.edu/cgi-bin/cvsweb.cgi/~checkout~/src/cyrus/doc/Attic/install-virtdomains.html?rev=1.1.2.5&content-type=text/html&hideattic=0 Joe Ellis wrote: > > Is there a way to have cyrus deliver mail to a mailbox based on the domain? > > for example, if [EMAIL PROTECTED] has mail deliverd, it goes to > user/lithodyne.net/joee. If [EMAIL PROTECTED] has mail delivered, it > goes to user/andrew.cmu.edu/joee. > > I'm trying to eliminate usernames as the email address. Currently, I > have cyrus setup so the mailbox is [EMAIL PROTECTED] So the > username is [EMAIL PROTECTED] and not just joee. I'd like to have the > user as joee no matter what domain. > > I use postfix as the mta. Maybe I should write a wrapper for deliver so > postfix will extract the username and domain and pass the correct > mailbox to cyrus. > > Anyone doing this? > > I hope I'm clear on what I'm asking. > > -- > Joe Ellis > http://www.lithodyne.net > Jas 5:7,8 -- 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
Virtual mailboxes
Is there a way to have cyrus deliver mail to a mailbox based on the domain? for example, if [EMAIL PROTECTED] has mail deliverd, it goes to user/lithodyne.net/joee. If [EMAIL PROTECTED] has mail delivered, it goes to user/andrew.cmu.edu/joee. I'm trying to eliminate usernames as the email address. Currently, I have cyrus setup so the mailbox is [EMAIL PROTECTED] So the username is [EMAIL PROTECTED] and not just joee. I'd like to have the user as joee no matter what domain. I use postfix as the mta. Maybe I should write a wrapper for deliver so postfix will extract the username and domain and pass the correct mailbox to cyrus. Anyone doing this? I hope I'm clear on what I'm asking. -- Joe Ellis http://www.lithodyne.net Jas 5:7,8
Re: Virtual Mailboxes
On Thu, 02 May 2002, simon wrote: > Personally I use the alternative hierarchy separator a patch to lmtp > to allow @ and of I go (this gets rid of realms in in lmtp though which > Im not sure of the effect). It just means I dont have to rewrite names > all the time. This is actually in Debian's packaged version. It is not enabled by default, and it is undocumented on purpose :) But if one reads changelogs, they will figure out how to enable it. -- "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: Virtual Mailboxes
On Thu, 2002-05-02 at 05:56, Igor Brezac wrote: > > On Thu, 2 May 2002, Devdas Bhagat wrote: > > > > > > > I'd like to avoid this if I can, but I may have to go this route. What is > > > the cyrus mailbox name for [EMAIL PROTECTED] vs [EMAIL PROTECTED]? > > user/user.dom.ain , user/user2.dom.ain > > The rewrite code is basically s/@/./, with calls in the appropriate > > places in the authentication mechanisms. > Personally I use the alternative hierarchy separator a patch to lmtp to allow @ and of I go (this gets rid of realms in in lmtp though which Im not sure of the effect). It just means I dont have to rewrite names all the time. -- Simon
Re: Virtual Mailboxes
On Thu, 2 May 2002, Devdas Bhagat wrote: > > > > I'd like to avoid this if I can, but I may have to go this route. What is > > the cyrus mailbox name for [EMAIL PROTECTED] vs [EMAIL PROTECTED]? > user/user.dom.ain , user/user2.dom.ain > The rewrite code is basically s/@/./, with calls in the appropriate > places in the authentication mechanisms. So, you changed cyrus-imap as well as the cyrus-sasl code? -Igor
Re: Virtual Mailboxes
On 01/05/02 09:33 -0400, Igor Brezac wrote: > cyrus can listen on multiple interfaces. The rewrite code can check where > the connection came from and then apply the rewrite rule accordingly. Effectively a single binary with different installs. If you have the ips to spare, then this is the way to go. > > > > We have users authenticating with [EMAIL PROTECTED] > > I'd like to avoid this if I can, but I may have to go this route. What is > the cyrus mailbox name for [EMAIL PROTECTED] vs [EMAIL PROTECTED]? user/user.dom.ain , user/user2.dom.ain The rewrite code is basically s/@/./, with calls in the appropriate places in the authentication mechanisms. Devdas Bhagat
Re: Virtual Mailboxes
On Wed, 1 May 2002, Devdas Bhagat wrote: > On 30/04/02 23:12 -0400, Igor Brezac wrote: > > I am looking at a prospect of integrating several customer bases into one > > email server (cyrus :)) while maintaining email addresses from various > > domain names. I would also like for the transition to be transparent to > > the clients' setup (Outlook, etc). The main obstacle is the duplicate > > usernames. Perhaps, the aggregator may help with this issue. Another > > solution can be a simple user rewrite module for pop/imap/sieve. This can > How do the customers currently authenticate? User rewriting is pretty > easy, but then all users have to authenticate as [EMAIL PROTECTED] which you > rewrite to the actual mailbox. If this is not an option, then you will > probably have to have separate cyrus installations per domain. > (The rewriter needs some information about what domain to rewrite to). cyrus can listen on multiple interfaces. The rewrite code can check where the connection came from and then apply the rewrite rule accordingly. > > We have users authenticating with [EMAIL PROTECTED] I'd like to avoid this if I can, but I may have to go this route. What is the cyrus mailbox name for [EMAIL PROTECTED] vs [EMAIL PROTECTED]? -Igor
Re: Virtual Mailboxes
On 30/04/02 23:12 -0400, Igor Brezac wrote: > I am looking at a prospect of integrating several customer bases into one > email server (cyrus :)) while maintaining email addresses from various > domain names. I would also like for the transition to be transparent to > the clients' setup (Outlook, etc). The main obstacle is the duplicate > usernames. Perhaps, the aggregator may help with this issue. Another > solution can be a simple user rewrite module for pop/imap/sieve. This can How do the customers currently authenticate? User rewriting is pretty easy, but then all users have to authenticate as [EMAIL PROTECTED] which you rewrite to the actual mailbox. If this is not an option, then you will probably have to have separate cyrus installations per domain. (The rewriter needs some information about what domain to rewrite to). We have users authenticating with [EMAIL PROTECTED] Devdas Bhagat
Virtual Mailboxes
Hello, I am looking at a prospect of integrating several customer bases into one email server (cyrus :)) while maintaining email addresses from various domain names. I would also like for the transition to be transparent to the clients' setup (Outlook, etc). The main obstacle is the duplicate usernames. Perhaps, the aggregator may help with this issue. Another solution can be a simple user rewrite module for pop/imap/sieve. This can be db, skiplist or ldap based. I was wondering if you can share your experience with a such predicament. Thanks, -Igor