Re: Virtual Domains or not
Hello Marc, Thank you for your answer. I will go with virtual domains and separate mailboxes for now. On 4/16/13 10:51 AM, Marc Patermann wrote: Valentin, Valentin Bud schrieb (16.04.2013 08:19 Uhr): I am trying to figure out what would be a best practice when one has a couple of domains on which it receives mail to and from which it sends mail from. For example I have the following domains: example.com example.net I have a user 'valentin' which has the following E-Mail addresses: valen...@example.com valen...@example.net The users are authenticated from OpenLDAP and the mail attribute is set to valen...@example.com. The mailAlternateAddress is set to valen...@example.net. Do you know mail is a multi valued attribute and - if there are no external circumstances - you do not need an extra attribute for a second mail address? I plan to use the Lachman LDAP Mail Routing Draft [1] and schema. Should I create in Cyrus IMAP two virtual domains and a 'valentin' user for each of this domains or would it be better to create a user 'valentin' where to post the E-Mail messages I receive on both domains? This truly depends on what YOU want or need. If YOU only need one inbox then go that way. Then the MUAs could be configured with multiple identities and have only one mailbox. For my private mail I do so. I have different domains, but want it in my only inbox. So my domains are virtual _in Postfix_ not in IMAPd. If you have an object with something like mail: valen...@example.com mail: valen...@example.net mail: f...@bar.net maildrop: valentin Postfix can send mail for all addresses (mail) included in the object to the user valentin (maildrop) in IMAPd. Simple as that. What are the gotchas if I choose to go one way or the other? And do you think that [1] is 'stable' enough to be used? [1]: http://tools.ietf.org/html/draft-lachman-ldap-mail-routing-03 Dunno. Marc Cheers and Goodwill, -- Valentin Bud www.databus.pro | valen...@databus.pro 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: Virtual Domains or not
Valentin, Valentin Bud schrieb (16.04.2013 08:19 Uhr): I am trying to figure out what would be a best practice when one has a couple of domains on which it receives mail to and from which it sends mail from. For example I have the following domains: example.com example.net I have a user 'valentin' which has the following E-Mail addresses: valen...@example.com valen...@example.net The users are authenticated from OpenLDAP and the mail attribute is set to valen...@example.com. The mailAlternateAddress is set to valen...@example.net. Do you know mail is a multi valued attribute and - if there are no external circumstances - you do not need an extra attribute for a second mail address? I plan to use the Lachman LDAP Mail Routing Draft [1] and schema. Should I create in Cyrus IMAP two virtual domains and a 'valentin' user for each of this domains or would it be better to create a user 'valentin' where to post the E-Mail messages I receive on both domains? This truly depends on what YOU want or need. If YOU only need one inbox then go that way. Then the MUAs could be configured with multiple identities and have only one mailbox. For my private mail I do so. I have different domains, but want it in my only inbox. So my domains are virtual _in Postfix_ not in IMAPd. If you have an object with something like mail: valen...@example.com mail: valen...@example.net mail: f...@bar.net maildrop: valentin Postfix can send mail for all addresses (mail) included in the object to the user valentin (maildrop) in IMAPd. Simple as that. What are the gotchas if I choose to go one way or the other? And do you think that [1] is 'stable' enough to be used? [1]: http://tools.ietf.org/html/draft-lachman-ldap-mail-routing-03 Dunno. Marc 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: Virtual domains with SSL on Cyrus 2.2.13 ?
On Fri, 17 Feb 2012, Paul van der Vlis wrote: I use Cyrus 2.2.13 (from Debian stable). Can I use virtualhosts with SSL on each host, or do I need Cyrus 2.3 for that? You can do it in 2.2, but it can be painful. One way known to work is to use one uniquely-named service per vhost, bound to a per-vhost IP address, and with service-specific imap.conf options to set the certificate (prefix the option with the service name). I believe the Debian 2.4 packages in unstable should not be too difficult to backport to Debian stable, but I have not tried that yet (when I do, I will probably maintain the backports officially for work-related reasons, but no promisses on a timetable). -- 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 Cyrus Home Page: http://www.cyrusimap.org/ List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
Re: Virtual Domains and TLS
Quoting Nybbles2Byte nybbles2b...@gmail.com: Hello, Is there a way to have the tls_... options in the imap.conf file work for multiple domains so that as many virtual domains as you want can authenticate without the client software popping up warnings like certificate does not match this server ? It depends on your Problem. If these virtual domains are all subdomains of one domain you can use wildcard domains. If there are few virtual domains and they don't change to often you can try the subject alternate name attribute. For https the Problem is solved by server name indication. But the server and client have to support this. And it would suprise me if there are any IMAP server or clients that support server name indication. M.MengeTel.: (49) 7071/29-70316 Universität Tübingen Fax.: (49) 7071/29-5912 Zentrum für Datenverarbeitung mail: michael.me...@zdv.uni-tuebingen.de Wächterstraße 76 72074 Tübingen smime.p7s Description: S/MIME krytographische Unterschrift 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: Virtual Domains and TLS
On 14/12/2009 09:10, Michael Menge wrote: Quoting Nybbles2Byte nybbles2b...@gmail.com: Hello, Is there a way to have the tls_... options in the imap.conf file work for multiple domains so that as many virtual domains as you want can authenticate without the client software popping up warnings like certificate does not match this server ? It depends on your Problem. If these virtual domains are all subdomains of one domain you can use wildcard domains. If there are few virtual domains and they don't change to often you can try the subject alternate name attribute. For https the Problem is solved by server name indication. But the server and client have to support this. And it would suprise me if there are any IMAP server or clients that support server name indication. If the above solutions (subjectAltName, wildcard) is not acceptable for you, your best bet is probably to use several imapd listener processes, each with its own IP address and imapd.conf. What I would do, however, is use the same name for all customers when they want to connect using SSL/TLS, and the virtual domain ID would be determined from the user id. Cheers, 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: Virtual Domains
FORMER 03 | Baltasar Cevc wrote: Hi Jarod, does the stripping ocurr whichever the setting of virtdomains is? Setting it to userid is quite common. Is your domain.tld the defaultdomain? In that case, cyrus substitutes it by the hostname, if I remember the behaviour right. You could post imapd.conf. Using lmtp, Postfix should not be to be blamed, I think. One setting that makes trouble sometimes is unixhierarchysep, it should be set to 1 (on) when using virtualdomains (at least when you're using a dot somewhere in any of the usernames. What's your sasl_sql_select statement. It should probably be something like the following config: sasl_sql_hostnames: sql_host(s) sasl_sql_user: sql_user sasl_sql_passwd: pass sasl_sql_database:db sasl_sql_select: SELECT `password` FROM `view_users` WHERE `email`=[EMAIL PROTECTED]; An option could be to test delivery with the lmtptest command which allows you to manually talk to cyrus lmtpd. Baltasar Baltasar and David, Thank you for your help! I never did know about the lmtptest command, and found out that it was cyrus who was stripping the domain from the email address. So I compared David's config with mine, and saw he did not have the loginrealms option set, which I did. After I disabled that option, everything worked! I can't wait to put Cyrus into production. I am also going to write a how to for Cyrus and virtual users, since documentation for Cyrus is a little on the low side. Mind if I post a link of it here when I get done with it and let you guys proof read it? Thanks again for all the help, I would still be scratching my head and possibly be reloading my system right now. 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: Virtual Domains
Hi Jarod, On Fri, 03 Aug 2007 03:06:51 -0400 Jarod Watkins [EMAIL PROTECTED] wrote: I have been searching google for the past 2 days trying to figure out how to finish setting up my Cyrus email system. I am almost there, however I cannot deliver emails from postfix to the virtual users in cyrus. After looking through the logs, its as if postfix isn't supplying the whole email address to Cyrus, or Cyrus is just stripping out it. Can anyone tell me what I have configured wrong? What's your virtual domains setting in imapd.conf (virtdomains parameter)? Baltasar 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: Virtual Domains
FORMER 03 | Baltasar Cevc wrote: Hi Jarod, On Fri, 03 Aug 2007 03:06:51 -0400 Jarod Watkins [EMAIL PROTECTED] wrote: I have been searching google for the past 2 days trying to figure out how to finish setting up my Cyrus email system. I am almost there, however I cannot deliver emails from postfix to the virtual users in cyrus. After looking through the logs, its as if postfix isn't supplying the whole email address to Cyrus, or Cyrus is just stripping out it. Can anyone tell me what I have configured wrong? What's your virtual domains setting in imapd.conf (virtdomains parameter)? Baltasar Baltasar, I have tried it all 3 ways (with it set to on, off, and userid) and it still fails, however when I have it set to on or userid, I can no longer authenticate to Cyrus with my [EMAIL PROTECTED] user, as it replaces the domain.tld with the hostname of the machine. I am using the auxprop mysql plugin to authenticate users from a MySQL database. Here is my auth.log whenever I have my virtdomains set to yes or userid. auth.log: Aug 3 08:50:34 debian cyrus/imap[14194]: sql plugin Parse the username test Aug 3 08:50:34 debian cyrus/imap[14194]: sql plugin try and connect to a host Aug 3 08:50:34 debian cyrus/imap[14194]: sql plugin trying to open db 'mail' on host 'localhost' Aug 3 08:50:34 debian cyrus/imap[14194]: begin transaction Aug 3 08:50:34 debian cyrus/imap[14194]: sql plugin create statement from userPassword test hostname of my mail server Aug 3 08:50:34 debian cyrus/imap[14194]: sql plugin doing query SELECT password FROM view_users WHERE email = '[EMAIL PROTECTED] of my mail server'; Do I have something else configured wrong that would cause this behavior when you set the virtdomains parameter? 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: Virtual Domains
I had all sorts of problems getting this to work. I have my firewall running sendmail sending the messages to an internal server via lmtp, and then authenticating against postgres. the biggest problems were getting the lmtp connection to include the domain of the destination and makeing the authentication pass through the domain the user typed in. David Lang my cyrus.conf is asgard dlang # cat /etc/cyrus.conf # $Header: /var/cvsroot/gentoo-x86/net-mail/cyrus-imapd/files/cyrus.conf,v 1.4 2004/07/18 04:02:23 dragonheart Exp $ # Standard standalone server configuration. START { # Do not delete this entry! recover cmd=ctl_cyrusdb -r # This is only necessary if using idled for IMAP IDLE. idled cmd=idled } # UNIX sockets start with a slash and are put into /var/imap/socket. SERVICES { # Add or remove based on preferences. imap cmd=imapd listen=imap2 prefork=0 pop3 cmd=pop3d listen=pop-3 prefork=0 # Don't forget to generate the needed keys for SSL or TLS # (see doc/html/install-configure.html). imaps cmd=imapd -s listen=imaps prefork=0 pop3s cmd=pop3d -s listen=pop3s prefork=0 sieve cmd=timsieved listen=sieve prefork=0 # at least one LMTP is required for delivery lmtp cmd=lmtpd -a listen=lmtp prefork=0 lmtpunix cmd=lmtpd listen=/var/imap/socket/lmtp prefork=0 # this is only necessary if using notifications #notify cmd=notifyd listen=/var/imap/socket/notify proto=udp prefork=1 } EVENTS { # This is required. checkpointcmd=ctl_cyrusdb -c period=30 # This is only necessary if using duplicate delivery suppression. delprune cmd=ctl_deliver -E 3 period=1440 # This is only necessary if caching TLS sessions. tlsprune cmd=tls_prune period=1440 } my imapd.conf asgard dlang # cat /etc/imapd.conf # $Header: /var/cvsroot/gentoo-x86/net-mail/cyrus-imapd/files/imapd.conf,v 1.5 2004/08/27 06:02:45 langthang Exp $ # Don't forget to use chattr +S (if you are using ext[23]) # when you change these directories (read the docs). configdirectory:/var/imap partition-default: /movies/imap sievedir: /var/imap/sieve virtdomains:yes #defaultdomain lang.hm #tls_ca_path:/etc/ssl/certs #tls_cert_file: /etc/ssl/cyrus/server.crt #tls_key_file: /etc/ssl/cyrus/server.key # Don't use an everyday user as admin. admins: cyrus hashimapspool: yes allowanonymouslogin:no allowplaintext: yes # Allow renaming of top-level mailboxes. #allowusermoves: yes # Use this if sieve-scripts could be in ~user/.sieve. #sieveusehomedir: yes # Use saslauthd if you want to use pam for imap. # But be warned: login with DIGEST-MD5 or CRAM-MD5 # is not possible using pam. #sasl_pwcheck_method: saslauthd ## This is a recommended authentication method if you ## emerge cyrus-sasl with 'postgres' or 'mysql' ## To use with mysql database uncomment those lines below. sasl_pwcheck_method: auxprop sasl_auxprop_plugin: sql ## possible values for sasl_auxprop_plugin 'mysql', 'pgsql', 'sqlite'. sasl_sql_engine: pgsql ## all possible values. sasl_mech_list: LOGIN PLAIN CRAM-MD5 DIGEST-MD5 ## or limit to CRAM-MD5 only #sasl_mech_list: CRAM-MD5 ## change below to suit your setup. sasl_sql_user: mailuser sasl_sql_passwd: password sasl_sql_database: maildb sasl_sql_hostnames: localhost sasl_sql_select: SELECT clear FROM users WHERE email = '[EMAIL PROTECTED]' my sendmail.mc bifrost:/etc/mail# cat sendmail.mc define(`_USE_ETC_MAIL_')dnl include(`/usr/share/sendmail/cf/m4/cf.m4')dnl VERSIONID(`DI Basebuild 3.1 07-20-05') OSTYPE(`debian')dnl DOMAIN(`debian-mta')dnl dnl # Items controlled by /etc/mail/sendmail.conf - DO NOT TOUCH HERE undefine(`confHOST_STATUS_DIRECTORY')dnl#DAEMON_HOSTSTATS dnl # Items controlled by /etc/mail/sendmail.conf - DO NOT TOUCH HERE FEATURE(`virtusertable',`hash /etc/mail/virtusertable') VIRTUSER_DOMAIN_FILE(`/etc/mail/virtdomaintable') FEATURE(`mailertable',`hash /etc/mail/mailertable') FEATURE(`use_cw_file') FEATURE(`preserve_local_plus_detail') FEATURE(always_add_domain) FEATURE(nouucp,`reject') define(`confLOCAL_MAILER',`cyrusv2') define(`CYRUSV2_MAILER_ARGS',`TCP asgard lmtp') dnl MAILER(`smtp') MAILER(`cyrusv2') MAILER(`smtp') MAILER_DEFINITIONS Mlmtp, P=[IPC], F=lsDFMnqA@/:|SmXz, E=\r\n, S=EnvFromL, R=EnvToL/HdrToL, T=DNS/RFC822/X-Unix, A=FILE $h On Fri, 3 Aug 2007, Jarod Watkins wrote: Date: Fri, 03 Aug 2007 03:06:51 -0400 From: Jarod Watkins [EMAIL PROTECTED] To: info-cyrus@lists.andrew.cmu.edu Subject: Virtual Domains I have been searching google for the past 2 days trying to figure out how to finish setting up my Cyrus email system. I am almost there, however I cannot deliver emails from postfix to the virtual
Re: Virtual Domains
Hi Jarod, does the stripping ocurr whichever the setting of virtdomains is? Setting it to userid is quite common. Is your domain.tld the defaultdomain? In that case, cyrus substitutes it by the hostname, if I remember the behaviour right. You could post imapd.conf. Using lmtp, Postfix should not be to be blamed, I think. One setting that makes trouble sometimes is unixhierarchysep, it should be set to 1 (on) when using virtualdomains (at least when you're using a dot somewhere in any of the usernames. What's your sasl_sql_select statement. It should probably be something like the following config: sasl_sql_hostnames: sql_host(s) sasl_sql_user: sql_user sasl_sql_passwd: pass sasl_sql_database:db sasl_sql_select: SELECT `password` FROM `view_users` WHERE `email`=[EMAIL PROTECTED]; An option could be to test delivery with the lmtptest command which allows you to manually talk to cyrus lmtpd. Baltasar 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: virtual domains
On Oct 26, 2006, at 11:00 PM, A Clockwork Orange wrote: Cyradm can not create virtual mailbox! Why? localhost.strs.ru cm [EMAIL PROTECTED] createmailbox: Permission denied localhost.strs.ru Please try some self-help before you ask us to fix your problems for you. Permission denied. probably indicates a permissions problem on the mailbox spool, yes? You may want to investigate commercial support options... -- Jo Rhett Senior Network Engineer Network Consonance 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: Virtual domains + aliases + cyrus
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
Re: Virtual domains and [EMAIL PROTECTED] and [EMAIL PROTECTED]
On Fri, Apr 07, 2006 at 11:56:29PM +0100, Stuart Morrison wrote: | OK you had one Joe on one domain and he was receiving mail fine. You | added another Joe to another domain and now all mail goes to one of the | Joes. It sounds like as Ciprian said it is an MTA issue. Postfix is | stripping the FQDN before passing mail on to Cyrus. to get Postfix to stop doing this, go into your master.cf file and modify your 'smtp' line to use 'recipient' instead of 'user' as the actual recipient. This way, Postfix will send the full address as is on to Cyrus. later. ryanc -- == ryan corder ryanc at silverorb dot net GnuPG key: http://silverorb.net/~ryanc/stuff/ryanc.asc There is a multi-legged creature crawling on your shoulder. -- Spock, A Taste of Armageddon, stardate 3193.9 == pgps3hNXTwCvM.pgp Description: PGP signature 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 [EMAIL PROTECTED] and [EMAIL PROTECTED]
I have TWO joes(s) in TWO different domains but they live on the same IMAP box... Because I'm using Cyrus IMAP the users mailboxes aren't mapped to system accounts so Postfix just passes any mail to unknown non-system accounts on to Cyrus for delivery. So the question becomes how do I enable such a setup so that Cyrus will deliver the mail to the correct mailbox? OK you had one Joe on one domain and he was receiving mail fine. You added another Joe to another domain and now all mail goes to one of the Joes. It sounds like as Ciprian said it is an MTA issue. Postfix is stripping the FQDN before passing mail on to Cyrus. Since he said that users to not exist as users on the underlying machine to me it looks like virtual and/or virtual_mailbox in Postfix. Simply create a different joe say joesmith as a mbox on Cyrus and split delivery in Postfix via virtual_mailbox mechanism. But then obviously I'm no Cyrus guru, most likely it can also be done in a pure Cyrus way. 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 [EMAIL PROTECTED] and [EMAIL PROTECTED]
-Original Message- From: Ciprian Vizitiu [EMAIL PROTECTED] To: info-cyrus@lists.andrew.cmu.edu Sent: 08/04/06 10:50 Subject: RE: Virtual domains and [EMAIL PROTECTED] and [EMAIL PROTECTED] I have TWO joes(s) in TWO different domains but they live on the same IMAP box... Because I'm using Cyrus IMAP the users mailboxes aren't mapped to system accounts so Postfix just passes any mail to unknown non-system accounts on to Cyrus for delivery. So the question becomes how do I enable such a setup so that Cyrus will deliver the mail to the correct mailbox? OK you had one Joe on one domain and he was receiving mail fine. You added another Joe to another domain and now all mail goes to one of the Joes. It sounds like as Ciprian said it is an MTA issue. Postfix is stripping the FQDN before passing mail on to Cyrus. Since he said that users to not exist as users on the underlying machine to me it looks like virtual and/or virtual_mailbox in Postfix. Simply create a different joe say joesmith as a mbox on Cyrus and split delivery in Postfix via virtual_mailbox mechanism. But then obviously I'm no Cyrus guru, most likely it can also be done in a pure Cyrus way. Hi I mentioned I do not use Postfix (I found Exim more suitable for me - and although there is not a howto like the postfix one there is very good docs on exim.org). When creating users in Cyrus using sasl the domain can be specified meaning they are distinct. If a MTA strips the domain from an email address and passess it Cyrus will add the default domain to the user. This is the impression of the problem I got from Jim's posts although if he has managed to have mail delivered to virtual domains already this does not quite make sense - basically if Cyrus is already delivering to multiple domains I cannot see why there is a problem with users with the same name before the @ in an email address (unless there is something particular in Jim's configuration). Hope this is of some help to Jim - if not let us have a look at imapd.conf and I might be able to suggest something else. Regards sjm 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 [EMAIL PROTECTED] and [EMAIL PROTECTED]
Ok I need to clarify. I don't have a joe mailbox yet. I would like to be able to have two joe mailboxes called for example: [EMAIL PROTECTED] and [EMAIL PROTECTED] In my current usage of Cyrus IMAP I've not been able to do this because I've been creating users with a command like cm user.joe . Without the FQUN. Then through the Postfix config files I tell Postfix which virtual domain joe belongs to. So currently joe can only exist in one virtual domain. My question is how do I go about setting up users in Cyrus IMAP and Cyrus SASL so that I could have a user joe in multiple virtual domains? Thanks for the replies everybody... Quoting S. J. Morrison [EMAIL PROTECTED]: -Original Message- From: Ciprian Vizitiu [EMAIL PROTECTED] To: info-cyrus@lists.andrew.cmu.edu Sent: 08/04/06 10:50 Subject: RE: Virtual domains and [EMAIL PROTECTED] and [EMAIL PROTECTED] I have TWO joes(s) in TWO different domains but they live on the same IMAP box... Because I'm using Cyrus IMAP the users mailboxes aren't mapped to system accounts so Postfix just passes any mail to unknown non-system accounts on to Cyrus for delivery. So the question becomes how do I enable such a setup so that Cyrus will deliver the mail to the correct mailbox? OK you had one Joe on one domain and he was receiving mail fine. You added another Joe to another domain and now all mail goes to one of the Joes. It sounds like as Ciprian said it is an MTA issue. Postfix is stripping the FQDN before passing mail on to Cyrus. Since he said that users to not exist as users on the underlying machine to me it looks like virtual and/or virtual_mailbox in Postfix. Simply create a different joe say joesmith as a mbox on Cyrus and split delivery in Postfix via virtual_mailbox mechanism. But then obviously I'm no Cyrus guru, most likely it can also be done in a pure Cyrus way. Hi I mentioned I do not use Postfix (I found Exim more suitable for me - and although there is not a howto like the postfix one there is very good docs on exim.org). When creating users in Cyrus using sasl the domain can be specified meaning they are distinct. If a MTA strips the domain from an email address and passess it Cyrus will add the default domain to the user. This is the impression of the problem I got from Jim's posts although if he has managed to have mail delivered to virtual domains already this does not quite make sense - basically if Cyrus is already delivering to multiple domains I cannot see why there is a problem with users with the same name before the @ in an email address (unless there is something particular in Jim's configuration). Hope this is of some help to Jim - if not let us have a look at imapd.conf and I might be able to suggest something else. Regards sjm 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 -- Jim Norton - http://www.jamesnortonphotography.com I cannot copy nature in a servile way. I must interpret nature and submit it to the spirit of the picture - Henri Matisse 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 [EMAIL PROTECTED] and [EMAIL PROTECTED]
Jim Add the following lines to your imapd.conf (can leave out the comments) #this says turn on virtual domains and use the user input to decide which domain the user is in (I think from memory) virtdomains: userid #you need to state which domains you will accept mail for loginrealms: domain1 domain2 domain3 sub1.domain1 sub2.domain1 sub1.domain2 sub2.domain2 If you are creating users using saslpasswd2 see man saslpaswd2 to create users in their own domain e.g. saslpasswd -c joe -u domain1 I started out using sasldb2 authentication with virtual domains and quickly realised that using a MSQL backend was much easier in the longer term. You do not mention what OS you are using but the basics of what I have done are quite well documented (man imapd.conf is a very good source of information). If you want to explore MySQL backends: For Fedora/Red Hat installs: 1) install pam_mysql.rpm 2) in /etc/sysconfig/saslauthd change the MECH to pam 3) edit /etc/pam.d/imap to include the details of your MySQL database (web-cyradm contains scripts for creating a suitable database and some quite good other advice about setup and looking at other posts there is a patch for FQUN - I hacked it myself to work - I would not really know how to release a patch). I have attached a copy of my imap file (I can also authenticate exim with pam so I think you should be able to do the same with Postfix if you are interested in that) 4) edit your /etc/imapd.conf (see man imapd.conf for detailed descriptions - I have attached an annotated copy of mine to help you along the way). Hope this helps Regards sjm Jim Norton wrote: Ok I need to clarify. I don't have a joe mailbox yet. I would like to be able to have two joe mailboxes called for example: [EMAIL PROTECTED] and [EMAIL PROTECTED] In my current usage of Cyrus IMAP I've not been able to do this because I've been creating users with a command like cm user.joe . Without the FQUN. Then through the Postfix config files I tell Postfix which virtual domain joe belongs to. So currently joe can only exist in one virtual domain. My question is how do I go about setting up users in Cyrus IMAP and Cyrus SASL so that I could have a user joe in multiple virtual domains? Thanks for the replies everybody... Quoting S. J. Morrison [EMAIL PROTECTED]: -Original Message- From: Ciprian Vizitiu [EMAIL PROTECTED] To: info-cyrus@lists.andrew.cmu.edu Sent: 08/04/06 10:50 Subject: RE: Virtual domains and [EMAIL PROTECTED] and [EMAIL PROTECTED] I have TWO joes(s) in TWO different domains but they live on the same IMAP box... Because I'm using Cyrus IMAP the users mailboxes aren't mapped to system accounts so Postfix just passes any mail to unknown non-system accounts on to Cyrus for delivery. So the question becomes how do I enable such a setup so that Cyrus will deliver the mail to the correct mailbox? OK you had one Joe on one domain and he was receiving mail fine. You added another Joe to another domain and now all mail goes to one of the Joes. It sounds like as Ciprian said it is an MTA issue. Postfix is stripping the FQDN before passing mail on to Cyrus. Since he said that users to not exist as users on the underlying machine to me it looks like virtual and/or virtual_mailbox in Postfix. Simply create a different joe say joesmith as a mbox on Cyrus and split delivery in Postfix via virtual_mailbox mechanism. But then obviously I'm no Cyrus guru, most likely it can also be done in a pure Cyrus way. Hi I mentioned I do not use Postfix (I found Exim more suitable for me - and although there is not a howto like the postfix one there is very good docs on exim.org). When creating users in Cyrus using sasl the domain can be specified meaning they are distinct. If a MTA strips the domain from an email address and passess it Cyrus will add the default domain to the user. This is the impression of the problem I got from Jim's posts although if he has managed to have mail delivered to virtual domains already this does not quite make sense - basically if Cyrus is already delivering to multiple domains I cannot see why there is a problem with users with the same name before the @ in an email address (unless there is something particular in Jim's configuration). Hope this is of some help to Jim - if not let us have a look at imapd.conf and I might be able to suggest something else. Regards sjm 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 configdirectory: /var/lib/imap partition-default: /var/spool/imap #a couple of admins for everybody and admins for each domain admins: username1 username2 [EMAIL PROTECTED] [EMAIL
Re: Virtual domains and [EMAIL PROTECTED] and [EMAIL PROTECTED]
Sorry Jim if you do not use the second method I suggested to be able to create the mailbox in cyradm all you have to do is: cm user/[EMAIL PROTECTED] (if you are using unixhierarchysep) or cm [EMAIL PROTECTED] (if you are not using the unixhierarchysep) Thinking about it there is a script online somewhere that will take a tab delimted file input in the format username password and create mailboxes and passwords for Cyrus (I hacked it to delete mailboxes from cyrus and sasldb2 because of changing accounts which is when I quickly realised the admin was a pain when there was a database alternative - something else to post somewhere one day) Regards SJM Stuart Morrison wrote: Jim Add the following lines to your imapd.conf (can leave out the comments) #this says turn on virtual domains and use the user input to decide which domain the user is in (I think from memory) virtdomains: userid #you need to state which domains you will accept mail for loginrealms: domain1 domain2 domain3 sub1.domain1 sub2.domain1 sub1.domain2 sub2.domain2 If you are creating users using saslpasswd2 see man saslpaswd2 to create users in their own domain e.g. saslpasswd -c joe -u domain1 I started out using sasldb2 authentication with virtual domains and quickly realised that using a MSQL backend was much easier in the longer term. You do not mention what OS you are using but the basics of what I have done are quite well documented (man imapd.conf is a very good source of information). If you want to explore MySQL backends: For Fedora/Red Hat installs: 1) install pam_mysql.rpm 2) in /etc/sysconfig/saslauthd change the MECH to pam 3) edit /etc/pam.d/imap to include the details of your MySQL database (web-cyradm contains scripts for creating a suitable database and some quite good other advice about setup and looking at other posts there is a patch for FQUN - I hacked it myself to work - I would not really know how to release a patch). I have attached a copy of my imap file (I can also authenticate exim with pam so I think you should be able to do the same with Postfix if you are interested in that) 4) edit your /etc/imapd.conf (see man imapd.conf for detailed descriptions - I have attached an annotated copy of mine to help you along the way). Hope this helps Regards sjm Jim Norton wrote: Ok I need to clarify. I don't have a joe mailbox yet. I would like to be able to have two joe mailboxes called for example: [EMAIL PROTECTED] and [EMAIL PROTECTED] In my current usage of Cyrus IMAP I've not been able to do this because I've been creating users with a command like cm user.joe . Without the FQUN. Then through the Postfix config files I tell Postfix which virtual domain joe belongs to. So currently joe can only exist in one virtual domain. My question is how do I go about setting up users in Cyrus IMAP and Cyrus SASL so that I could have a user joe in multiple virtual domains? Thanks for the replies everybody... Quoting S. J. Morrison [EMAIL PROTECTED]: -Original Message- From: Ciprian Vizitiu [EMAIL PROTECTED] To: info-cyrus@lists.andrew.cmu.edu Sent: 08/04/06 10:50 Subject: RE: Virtual domains and [EMAIL PROTECTED] and [EMAIL PROTECTED] I have TWO joes(s) in TWO different domains but they live on the same IMAP box... Because I'm using Cyrus IMAP the users mailboxes aren't mapped to system accounts so Postfix just passes any mail to unknown non-system accounts on to Cyrus for delivery. So the question becomes how do I enable such a setup so that Cyrus will deliver the mail to the correct mailbox? OK you had one Joe on one domain and he was receiving mail fine. You added another Joe to another domain and now all mail goes to one of the Joes. It sounds like as Ciprian said it is an MTA issue. Postfix is stripping the FQDN before passing mail on to Cyrus. Since he said that users to not exist as users on the underlying machine to me it looks like virtual and/or virtual_mailbox in Postfix. Simply create a different joe say joesmith as a mbox on Cyrus and split delivery in Postfix via virtual_mailbox mechanism. But then obviously I'm no Cyrus guru, most likely it can also be done in a pure Cyrus way. Hi I mentioned I do not use Postfix (I found Exim more suitable for me - and although there is not a howto like the postfix one there is very good docs on exim.org). When creating users in Cyrus using sasl the domain can be specified meaning they are distinct. If a MTA strips the domain from an email address and passess it Cyrus will add the default domain to the user. This is the impression of the problem I got from Jim's posts although if he has managed to have mail delivered to virtual domains already this does not quite make sense - basically if Cyrus is already delivering to multiple domains I cannot see why there is a problem with users with the same name before the @ in an email address (unless there is something
RE: Virtual domains and [EMAIL PROTECTED] and [EMAIL PROTECTED]
It doesn't seem like Cyrus related but a MTA one. Anyway the question is (I think): do you have ONE Joe with ONE IMAP box and he should be able to receive mail on TWO domains? Or what you really have is TWO Joe(s) in TWO different domains but so it happens that they live on the same IMAP box? I do not use postfix but... I am using cyrus-imapd version 2.2.12 and sasl 2.1.19 If you have managed to get mailboxes in different domains you should not have problems with users of the same name. You will need to implement loginrealms (see man imapd.conf) for more. Jim Norton wrote: Ok, I've done a lot of googling etc and haven't really found concise answers to my questions.. So hopefully somebody here can help me out. I've been running Cyrus IMAP with Cyrus SASL and Postfix for a few years now and have been making sure that the same username such as joe is only used in one virtual domain because I've not been able to figure out how to create two mailboxes such as [EMAIL PROTECTED] and [EMAIL PROTECTED] So what version of Cyrus IMAP and Cyrus SASL support such a setup and how do I configure and create mailboxes like that? And how does this work with authentication through Cyrus SASL? I'm not a super advanced Cyrus IMAP/SASL admin so the more detail that can be provided the better... :-) Thanks all, 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 [EMAIL PROTECTED] and [EMAIL PROTECTED]
On Fri, 2006-04-07 at 10:18 +0200, Ciprian Vizitiu wrote: Anyway the question is (I think): do you have ONE Joe with ONE IMAP box and he should be able to receive mail on TWO domains? Or what you really have is TWO Joe(s) in TWO different domains but so it happens that they live on the same IMAP box? It's do-able and it's not MTA related. It's _all_cyrus. One can do this via the virtdomain directive in cyrus as well as using LMTP for postfix. You can try using web-cyradm with the FQUN patches to get things going. I do not use postfix but... I am using cyrus-imapd version 2.2.12 and sasl 2.1.19 If you have managed to get mailboxes in different domains you should not have problems with users of the same name. You will need to implement loginrealms (see man imapd.conf) for more. Jim Norton wrote: Ok, I've done a lot of googling etc and haven't really found concise answers to my questions.. So hopefully somebody here can help me out. I've been running Cyrus IMAP with Cyrus SASL and Postfix for a few years now and have been making sure that the same username such as joe is only used in one virtual domain because I've not been able to figure out how to create two mailboxes such as [EMAIL PROTECTED] and [EMAIL PROTECTED] So what version of Cyrus IMAP and Cyrus SASL support such a setup and how do I configure and create mailboxes like that? And how does this work with authentication through Cyrus SASL? I'm not a super advanced Cyrus IMAP/SASL admin so the more detail that can be provided the better... :-) Thanks all, 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 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 [EMAIL PROTECTED] and [EMAIL PROTECTED]
Jim Norton wrote: Quoting Ciprian Vizitiu [EMAIL PROTECTED]: It doesn't seem like Cyrus related but a MTA one. Anyway the question is (I think): do you have ONE Joe with ONE IMAP box and he should be able to receive mail on TWO domains? Or what you really have is TWO Joe(s) in TWO different domains but so it happens that they live on the same IMAP box? I have TWO joes(s) in TWO different domains but they live on the same IMAP box... Because I'm using Cyrus IMAP the users mailboxes aren't mapped to system accounts so Postfix just passes any mail to unknown non-system accounts on to Cyrus for delivery. So the question becomes how do I enable such a setup so that Cyrus will deliver the mail to the correct mailbox? OK you had one Joe on one domain and he was receiving mail fine. You added another Joe to another domain and now all mail goes to one of the Joes. It sounds like as Ciprian said it is an MTA issue. Postfix is stripping the FQDN before passing mail on to Cyrus. I do not use postfix but... I am using cyrus-imapd version 2.2.12 and sasl 2.1.19 If you have managed to get mailboxes in different domains you should not have problems with users of the same name. You will need to implement loginrealms (see man imapd.conf) for more. Jim Norton wrote: Ok, I've done a lot of googling etc and haven't really found concise answers to my questions.. So hopefully somebody here can help me out. I've been running Cyrus IMAP with Cyrus SASL and Postfix for a few years now and have been making sure that the same username such as joe is only used in one virtual domain because I've not been able to figure out how to create two mailboxes such as [EMAIL PROTECTED] and [EMAIL PROTECTED] So what version of Cyrus IMAP and Cyrus SASL support such a setup and how do I configure and create mailboxes like that? And how does this work with authentication through Cyrus SASL? I'm not a super advanced Cyrus IMAP/SASL admin so the more detail that can be provided the better... :-) Thanks all, 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 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 [EMAIL PROTECTED] and [EMAIL PROTECTED]
I do not use postfix but... I am using cyrus-imapd version 2.2.12 and sasl 2.1.19 If you have managed to get mailboxes in different domains you should not have problems with users of the same name. You will need to implement loginrealms (see man imapd.conf) for more. Jim Norton wrote: Ok, I've done a lot of googling etc and haven't really found concise answers to my questions.. So hopefully somebody here can help me out. I've been running Cyrus IMAP with Cyrus SASL and Postfix for a few years now and have been making sure that the same username such as joe is only used in one virtual domain because I've not been able to figure out how to create two mailboxes such as [EMAIL PROTECTED] and [EMAIL PROTECTED] So what version of Cyrus IMAP and Cyrus SASL support such a setup and how do I configure and create mailboxes like that? And how does this work with authentication through Cyrus SASL? I'm not a super advanced Cyrus IMAP/SASL admin so the more detail that can be provided the better... :-) Thanks all, 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 in separate directories - how?
On Mon, 2006-03-20 at 10:13 +0100, former03 | Baltasar Cevc wrote: Hi, as far as I know, Web-yradm will always maps an address to some address @ the server hostname ([EMAIL PROTECTED] will become virtual.domain will map to virtual.domain.mailbox1 or something similar). As cyrus only sees this mapped address, all mailboxes _are_ in the same domain from its point of view. Yep.. I scanned through the code and it really seems that this is the case. [EMAIL PROTECTED] gets mapped to user.domain1.com by web-cyradm before getting inputted into mysql. creating a user directly via cyradm's cli gets it correct. localhost cm [EMAIL PROTECTED] ls -l /var/spool/imap/domain/wherever.com/ drwx-- 2 cyrus mail 4096 May 9 02:35 user^joeblow Hope that gives a useful starting point, It does. Thanks. -- Ow Mun Heng Gentoo/Linux on DELL D600 1.4Ghz 1.5GB RAM 98% Microsoft(tm) Free!! Neuromancer 09:29:03 up 2 days, 52 min, 5 users, load average: 0.65, 1.17, 2.35 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 in separate directories - how?
Hi, as far as I know, Web-yradm will always maps an address to some address @ the server hostname ([EMAIL PROTECTED] will become virtual.domain will map to virtual.domain.mailbox1 or something similar). As cyrus only sees this mapped address, all mailboxes _are_ in the same domain from its point of view. Cyrus will automatically separate domains when you really use a virtual domain setup (where your MTA delivers the message to cyrus as [EMAIL PROTECTED]). Hope that gives a useful starting point, 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
Re: Virtual domains and aliases?
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: info-cyrus@lists.andrew.cmu.edu 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?
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?
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
Re: virtual domains and subdomains
Cap wrote: Greetings, I would like to create mailboxes with fully qualified names like [EMAIL PROTECTED] I turned on virtdomains: userid unixhierarchysep: 1 in imapd.conf, like the documentation says. Now I have no problems creating and using mailbox names like [EMAIL PROTECTED] and [EMAIL PROTECTED] But if I use cyradm and try to create a mailbox for a subdomain it will not work: localhost cm [EMAIL PROTECTED] createmailbox: Invalid mailbox name Is this generally impossible? And if not, what coul dbe wrong and how can I achieve this? I have installed: cyrus-sasl-2.1.19-7 cyrus-sasl-devel-2.1.19-7 cyrus-sasl-plain-2.1.19-7 cyrus-imapd-2.2.8-6 cyrus-sasl-saslauthd-2.1.19-5 cyrus-imapd-devel-2.2.8-6 cyrus-sasl-digestmd5-2.1.19-7 Thanks for help, Cap __ Yahoo! FareChase: Search multiple travel sites in one click. http://farechase.yahoo.com 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 in imapd.conf on virtualdomain set to yes not userid. Also add alternativenamespace yes and unixhierarchysep: yes. Then add users like, cm user/[EMAIL PROTECTED] this makes the emailbox [EMAIL PROTECTED] but this does not make the emailbox INBOX so it can't collect incomming mail. Add a inbox like this cm user/olle.bolle/[EMAIL PROTECTED] About the making of mailboxes like user.olle.bolle or user/olle.bolle is depending on the altnamespace and unixhieraky in imapd.conf. /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: Virtual domains
On Fri, 20 May 2005, Jesper K. Pedersen wrote: admins: [EMAIL PROTECTED] This means your admin can only create users in the testpompa.natserv.net realm. Create an admin for each realm, or create a super admin without a realm. Thanks Jesper and Greg. With your help I got the Cyrus+sasl part working. I am in the final stretch. Now postfix config seems to be wrong. :-( Right now my sasldbblistusers2 shows [EMAIL PROTECTED]: userPassword [EMAIL PROTECTED]: userPassword [EMAIL PROTECTED]: userPassword and from cyradm lm returns user/[EMAIL PROTECTED] (\HasNoChildren) user/su (\HasNoChildren) su shows no domain because the user is in the default domain for the machine (su = [EMAIL PROTECTED]) When I try to send mail to [EMAIL PROTECTED] I get in debug.log imap[9804]: seen_db: user [EMAIL PROTECTED] opened /var/imap/domain/d/dataeverywhere.net/user/d/de.seen imap[9804]: open: user [EMAIL PROTECTED] opened INBOX master[9811]: about to exec /usr/local/cyrus/bin/lmtpd lmtpunix[9811]: executed lmtpunix[9811]: accepted connection lmtpunix[9811]: lmtp connection preauth'd as postman lmtpunix[9811]: verify_user(user.de) failed: Mailbox does not exist On another thread someone suggested to add to main.cf virtual_transport = lmtp:/var/imap/socket/lmtp Which I did. Also I was able to connect to the Cyrus using a web based mail program (Allohamail). However when I tried to make new folders I got the error Could not create folder: test c NO Permission denied I WAS able to create inbox/test Do folders in imap need to be called inbox/folder name? --- 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
Cyrus' doc for this particular setting is not as clear as it could be. I think unixhierarchysep: yes is meant for situations when you want to use a . in the username part. For example: [EMAIL PROTECTED] [EMAIL PROTECTED] It is _not_ meant to replace the . after user, at least that's how I understand it. Otis --- Francisco Reyes [EMAIL PROTECTED] wrote: On Thu, 19 May 2005, Michael King wrote: Here's what you're looking for: unixhierarchysep: yes This setting is to replace . for / right? So when I do cm I would do something like cm user/[EMAIL PROTECTED] Do I need the user/? In particular I get invalid mailbox name when I try cm user/[EMAIL PROTECTED] cm [EMAIL PROTECTED] Only thing that worked (which may be totally wrong...) was cm stringsutils.com/fran :-( --- 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
On Thu, 19 May 2005 [EMAIL PROTECTED] wrote: Cyrus' doc for this particular setting is not as clear as it could be. I think the same could be said for several parts of the docs. :-( I think unixhierarchysep: yes is meant for situations when you want to use a . in the username part. I thought it was to change the default from . to / after the user like cm user/[EMAIL PROTECTED] I tried both ways cm [EMAIL PROTECTED] cm user/[EMAIL PROTECTED] .. and still getting invalid mailbox name Thanks for the feedback anyways. --- 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
On Fri, 20 May 2005 07:41:36 -0400 (EDT) Francisco Reyes [EMAIL PROTECTED] wrote: On Thu, 19 May 2005 [EMAIL PROTECTED] wrote: Cyrus' doc for this particular setting is not as clear as it could be. I think the same could be said for several parts of the docs. :-( I think unixhierarchysep: yes is meant for situations when you want to use a . in the username part. I thought it was to change the default from . to / after the user like cm user/[EMAIL PROTECTED] I tried both ways cm [EMAIL PROTECTED] cm user/[EMAIL PROTECTED] .. and still getting invalid mailbox name Thanks for the feedback anyways. You need to remember that an administrator with a domain attached to the name can only create users under his own domain. According to your imapd.conf file you have: admins: [EMAIL PROTECTED] This means your admin can only create users in the testpompa.natserv.net realm. Create an admin for each realm, or create a super admin without a realm. That should fix your problem. Good luck. Best regards, Jesper K. Pedersen -- Carpe Aptenodytes! --- 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
Here's what you're looking for: unixhierarchysep: yes HTH, Michael King Systems Administrator Web International, Inc. www.webinternational.net -Original Message- From: [EMAIL PROTECTED] [mailto:owner-info- [EMAIL PROTECTED] On Behalf Of Robin Rainton Sent: Wednesday, May 18, 2005 10:43 PM To: Francisco Reyes Cc: Cyrus Info Subject: Re: Virtual domains I too am struggling with this. Still haven't got it working as I like, but have got past the hurdle you describe. You need to turn on unix heirarchy separator (sorry, forget the exact name of this) and set 'virtdomains: userid'. Cheers, Rob Quoting Francisco Reyes [EMAIL PROTECTED]: Got Cyrus+SASL2 working, but once I set the virtdomains flag I am unable to create users with domains. My imapd.conf is configdirectory: /var/imap partition-default: /var/imap/spool admins: [EMAIL PROTECTED] sieveusehomedir: false sievedir: /var/imap/sieve sasl_pwcheck_method: auxprop allowanonymouslogin: no autocreatequota: 10240 virtdomains: 1 loginrealms: stringsutils.com, dataeverywhere.net, testpompa.natserv.net From cyradm if I do cm fran It works.. fran (\HasNoChildren) user.fran (\HasNoChildren) But if I try to create users in any of the realms.. it fails cm [EMAIL PROTECTED] or cm [EMAIL PROTECTED] createmailbox: Invalid mailbox name Any suggestions? --- 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 --- 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
Change virtdomains: 1 to virtdomains: userid Otis --- Francisco Reyes [EMAIL PROTECTED] wrote: Got Cyrus+SASL2 working, but once I set the virtdomains flag I am unable to create users with domains. My imapd.conf is configdirectory: /var/imap partition-default: /var/imap/spool admins: [EMAIL PROTECTED] sieveusehomedir: false sievedir: /var/imap/sieve sasl_pwcheck_method: auxprop allowanonymouslogin: no autocreatequota: 10240 virtdomains: 1 loginrealms: stringsutils.com, dataeverywhere.net, testpompa.natserv.net From cyradm if I do cm fran It works.. fran (\HasNoChildren) user.fran (\HasNoChildren) But if I try to create users in any of the realms.. it fails cm [EMAIL PROTECTED] or cm [EMAIL PROTECTED] createmailbox: Invalid mailbox name Any suggestions? --- 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
On Thu, 19 May 2005, Michael King wrote: Here's what you're looking for: unixhierarchysep: yes This setting is to replace . for / right? So when I do cm I would do something like cm user/[EMAIL PROTECTED] Do I need the user/? In particular I get invalid mailbox name when I try cm user/[EMAIL PROTECTED] cm [EMAIL PROTECTED] Only thing that worked (which may be totally wrong...) was cm stringsutils.com/fran :-( --- 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
On Thu, 19 May 2005, Robin Rainton wrote: You need to turn on unix heirarchy separator (sorry, forget the exact name of this) and set 'virtdomains: userid'. Turned virtdomains: userid and unixhierarchysep: yes with no change. I still get an error when I try cm user/[EMAIL PROTECTED] cm [EMAIL PROTECTED] What did work was cm stringsutils.com/fran Which I have not idea if it's what I want, but that did not give any errors. Then I was able to saslpasswd2 [EMAIL PROTECTED], but could not connect using imtest -u [EMAIL PROTECTED] localhost --- 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
I too am struggling with this. Still haven't got it working as I like, but have got past the hurdle you describe. You need to turn on unix heirarchy separator (sorry, forget the exact name of this) and set 'virtdomains: userid'. Cheers, Rob Quoting Francisco Reyes [EMAIL PROTECTED]: Got Cyrus+SASL2 working, but once I set the virtdomains flag I am unable to create users with domains. My imapd.conf is configdirectory: /var/imap partition-default: /var/imap/spool admins: [EMAIL PROTECTED] sieveusehomedir: false sievedir: /var/imap/sieve sasl_pwcheck_method: auxprop allowanonymouslogin: no autocreatequota: 10240 virtdomains: 1 loginrealms: stringsutils.com, dataeverywhere.net, testpompa.natserv.net From cyradm if I do cm fran It works.. fran (\HasNoChildren) user.fran (\HasNoChildren) But if I try to create users in any of the realms.. it fails cm [EMAIL PROTECTED] or cm [EMAIL PROTECTED] createmailbox: Invalid mailbox name Any suggestions? --- 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
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi Frederico, Cyrus will alway drop the domain part for defaultdomain or servername (I was unable to figure out the interconnection between these two exactly). So, as far as I know you have to set defaultdomain to something bogus (however, you need to have an admin user in that domain) or have your LDAP accept that... Baltasar -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.4 (Darwin) iD8DBQFCU6onp2YsmzTbIwYRAl+qAJ0YWqPpQLfuz4eq3h/v6JGnD0UUEwCglKW3 8Zh/fvJ7fBFUk+rnYwCsZ00= =+nKK -END PGP SIGNATURE- --- 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
Renzetti Federico wrote: Hi all, this is my first mail to the list. I'm using cyrus-imapd-2.2.10-3 and I have some problems to configure virtual domains. this is my imapd.conf: ... configdirectory: /var/lib/imap partition-default: /var/spool/imap admins: cyrus postmaster sievedir: /var/lib/imap/sieve sendmail: /var/qmail/bin/sendmail hashimapspool: true sasl_pwcheck_method: saslauthd sasl_mech_list: PLAIN virtdomains: userid defaultdomain: domain.com ... My user-backend is LDAP and user-uid is something like [EMAIL PROTECTED]. When I try to login via IMAP with [EMAIL PROTECTED] in ldap.log I see (filter=user) and not ([EMAIL PROTECTED]) so I can't login. This sounds like missing realm in sasl. man saslauthd - look for parameter -r - should help you. CU Michael --- 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
Hi Baltasar, in my LDAP I have uid attribute with @ for virtualhosting (es [EMAIL PROTECTED], [EMAIL PROTECTED], etc) So dropping domain is not so good for me :-) The reason is that my SMTP server (qmail) search entire LDAP and use uid with @ for virtualhosting. Perhaps I must either find some other solution for my SMTP or change my IMAP server :-(. Could you (anyone) help me for this? Thanks again. Baltasar Cevc wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi Frederico, Cyrus will alway drop the domain part for defaultdomain or servername (I was unable to figure out the interconnection between these two exactly). So, as far as I know you have to set defaultdomain to something bogus (however, you need to have an admin user in that domain) or have your LDAP accept that... Baltasar -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.4 (Darwin) iD8DBQFCU6onp2YsmzTbIwYRAl+qAJ0YWqPpQLfuz4eq3h/v6JGnD0UUEwCglKW3 8Zh/fvJ7fBFUk+rnYwCsZ00= =+nKK -END PGP SIGNATURE- -- Renzetti Federico System/Network Administrator RedHat Certified Engineer Fabaris S.r.l. Tel. +39 0765 22181 - Fax +39 0765 410100 Via G. Mameli, 90 02047 Poggio Mirteto (RI) Filiale: Viale dell'Università, 25 00185 Roma (RM) www.fabaris.it --- 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
Many thanks. Now search filter is [EMAIL PROTECTED] Michael Plate wrote: Renzetti Federico wrote: Hi all, this is my first mail to the list. I'm using cyrus-imapd-2.2.10-3 and I have some problems to configure virtual domains. this is my imapd.conf: ... configdirectory: /var/lib/imap partition-default: /var/spool/imap admins: cyrus postmaster sievedir: /var/lib/imap/sieve sendmail: /var/qmail/bin/sendmail hashimapspool: true sasl_pwcheck_method: saslauthd sasl_mech_list: PLAIN virtdomains: userid defaultdomain: domain.com ... My user-backend is LDAP and user-uid is something like [EMAIL PROTECTED]. When I try to login via IMAP with [EMAIL PROTECTED] in ldap.log I see (filter=user) and not ([EMAIL PROTECTED]) so I can't login. This sounds like missing realm in sasl. man saslauthd - look for parameter -r - should help you. CU Michael --- 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+cyrus-imapd+saslauthd+ldap
CRAM-MD5 and DIGEST-MD5 mechanisms work ONLY against sasldb2. So far I have not seen a LDAP bridge for it. I thought I saw a axprop: ldap idea somewhere along the road, but cant say for sure. No, that's incorrect. They work with the sql auxprop also and with ldapdb auxprop mech. For authentication out af a LDAP DIT you must use the ldapdb plugin provided in the openldap contrib area. See: http://www.billy.demon.nl/Postfix-SASL-authentication.html It's a success story, although it's centered around postfix it's about authenticating with sasl and ldapdb plugin. I also have a related document - ftp://ftp.kalamazoolinux.org/pub/pdf/LDAP103.pdf --- 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+cyrus-imapd+saslauthd+ldap
* Adam Tauno Williams [EMAIL PROTECTED] [26-01-05 18:51]: No, that's incorrect. They work with the sql auxprop also and with ldapdb auxprop mech. For authentication out af a LDAP DIT you must use the ldapdb plugin provided in the openldap contrib area. See: http://www.billy.demon.nl/Postfix-SASL-authentication.html It's a success story, although it's centered around postfix it's about authenticating with sasl and ldapdb plugin. I also have a related document - ftp://ftp.kalamazoolinux.org/pub/pdf/LDAP103.pdf I know :), I remember the version 2 years ago when I first started with LDAP. I'm very grateful for your work in presenting the technology. best regards, mitu --- 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+cyrus-imapd+saslauthd+ldap
You have two problems. You cannot use secret based mech with saslauthd, only plaintext will work such as plain and login. Second, you need to run 'saslauthd -r' (see man page for more info) or change ldap_filter to (([EMAIL PROTECTED])(uid=%U)) -Igor On Tue, 18 Jan 2005, Walter [ISO-8859-1] Argüello Cortés wrote: *** NO se encontró virus en el archivo adjunto : no filename Este E-mail se ha verificado por el programa de Antivirus de T.G. Express S.A. *** -- IgorHi: My problem is virtual-domains+cyrus-imapd+saslauthd+ldap. Using the next configuration: saturno:~ # saslauthd -v saslauthd 2.1.19 authentication mechanisms: getpwent kerberos5 pam rimap shadow ldap saturno:~ # cat /etc/saslauthd.conf ldap_servers: ldap://127.0.0.1 ldap_bind_dn: cn=ldapadmin,dc=systems,dc=com,dc=co ldap_bind_pw: secret ldap_search_base: ou=virtualdomains,dc=systems,dc=com,dc=co ldap_filter: ((mail=%u)(uid=%U)) When testing saslauthd with testsaslauthd and a valid entry in OpenLDAP: saturno:~ # testsaslauthd -u [EMAIL PROTECTED] -p 54321 0: OK Success. But, when testing cyrus-imapd with the same entry in OpenLDAP, slapd is requested to do a search without the domain component of the username an the @. Then, [EMAIL PROTECTED] is truncated and gived to slapd ((mail=walter)(uid=walter)) instead (([EMAIL PROTECTED])(uid=walter)) My cyrus config: saturno:~ # cat /etc/imapd.conf configdirectory: /var/lib/imap partition-default: /var/spool/imap sievedir: /var/lib/sieve admins: cyrus allowanonymouslogin: no autocreatequota: 102400 reject8bit: no quotawarn: 90 timeout: 30 poptimeout: 10 dracinterval: 0 drachost: localhost sasl_pwcheck_method: saslauthd lmtp_overquota_perm_failure: no defaultdomain: curso.edu virtdomains: userid saturno:~ # rpm -q cyrus-imapd cyrus-imapd-2.2.8-6.3 saturno:~ # pop3test -a [EMAIL PROTECTED] WARNING: no hostname supplied, assuming localhost S: +OK saturno Cyrus POP3 v2.2.8 server ready [EMAIL PROTECTED] C: CAPA S: +OK List of capabilities follows S: SASL DIGEST-MD5 CRAM-MD5 S: EXPIRE NEVER S: LOGIN-DELAY 0 S: TOP S: UIDL S: PIPELINING S: RESP-CODES S: AUTH-RESP-CODE S: USER S: IMPLEMENTATION Cyrus POP3 server v2.2.8 S: . C: AUTH DIGEST-MD5 S: + bm9uY2U9Ikc3blozdkY2dEZwR0lQcHhSNXNXOWErWDlaZU4ycEFSRmVhV1V2aFB3NU09IixyZWFsbT0ic2F0dXJubyIscW9wPSJhdXRoLGF1dGgtaW50LGF1dGgtY29uZiIsY2lwaGVyPSJyYzQtNDAscmM0LTU2LHJjNCxkZXMsM2RlcyIsbWF4YnVmPTQwOTYsY2hhcnNldD11dGYtOCxhbGdvcml0aG09bWQ1LXNlc3M= Please enter your password: C: dXNlcm5hbWU9InJvb3QiLHJlYWxtPSJzYXR1cm5vIixhdXRoemlkPSJ3YWx0ZXJAZG9taW5pby5jb20iLG5vbmNlPSJHN25aM3ZGNnRGcEdJUHB4UjVzVzlhK1g5WmVOMnBBUkZlYVdVdmhQdzVNPSIsY25vbmNlPSJJSXFacm15UWxTNlpEdHExMVhRUTNUWVZsTXhHbG9BV0NvRHpXOVdyQnY0PSIsbmM9MDAwMDAwMDEscW9wPWF1dGgtY29uZixjaXBoZXI9cmM0LG1heGJ1Zj0xMDI0LGRpZ2VzdC11cmk9InBvcC9sb2NhbGhvc3QiLHJlc3BvbnNlPWMyNjkwOWU2YzBmYzhiMGNiOGQ1NWVlNjNlNzNhYTk5 S: -ERR [AUTH] authenticating: user not found Authentication failed. generic failure Security strength factor: 128 quit +OK Connection closed. The saslauthd's log: Jan 18 12:07:58 saturno saslauthd[4331]: Entry not found (((mail=walter)(uid=walter))). Jan 18 12:07:58 saturno saslauthd[4331]: Authentication failed for walter/dominio.com: User not fou nd (-6) Jan 18 12:07:58 saturno saslauthd[4331]: do_auth : auth failure: [user=walter] [service=pop ] [realm=dominio.com] [mech=ldap] [reason=Unknown] Jan 18 12:07:58 saturno pop3[6596]: badlogin: localhost [127.0.0.1] plaintext [EMAIL PROTECTED] SA SL(-13): authentication failure: checkpass failed Help me please! Walter.
Re: virtual-domains+cyrus-imapd+saslauthd+ldap
Walter Argello Corts wrote: *** NO se encontr virus en el archivo adjunto : no filename Este E-mail se ha verificado por el programa de Antivirus de T.G. Express S.A. *** Hi: My problem is virtual-domains+cyrus-imapd+saslauthd+ldap. Using the next configuration: saturno:~ # saslauthd -v saslauthd 2.1.19 authentication mechanisms: getpwent kerberos5 pam rimap shadow ldap saturno:~ # cat /etc/saslauthd.conf ldap_servers: ldap://127.0.0.1 ldap_bind_dn: cn=ldapadmin,dc=systems,dc=com,dc=co ldap_bind_pw: secret ldap_search_base: ou=virtualdomains,dc=systems,dc=com,dc=co ldap_filter: ((mail=%u)(uid=%U)) When testing saslauthd with testsaslauthd and a valid entry in OpenLDAP: saturno:~ # testsaslauthd -u [EMAIL PROTECTED] -p 54321 0: OK Success. But, when testing cyrus-imapd with the same entry in OpenLDAP, slapd is requested to do a search without the domain component of the username an the @. Then, [EMAIL PROTECTED] is truncated and gived to slapd ((mail=walter)(uid=walter)) instead (([EMAIL PROTECTED])(uid=walter)) My cyrus config: saturno:~ # cat /etc/imapd.conf configdirectory: /var/lib/imap partition-default: /var/spool/imap sievedir: /var/lib/sieve admins: cyrus allowanonymouslogin: no autocreatequota: 102400 reject8bit: no quotawarn: 90 timeout: 30 poptimeout: 10 dracinterval: 0 drachost: localhost sasl_pwcheck_method: saslauthd lmtp_overquota_perm_failure: no defaultdomain: curso.edu virtdomains: userid saturno:~ # rpm -q cyrus-imapd cyrus-imapd-2.2.8-6.3 saturno:~ # pop3test -a [EMAIL PROTECTED] WARNING: no hostname supplied, assuming localhost S: +OK saturno Cyrus POP3 v2.2.8 server ready [EMAIL PROTECTED] C: CAPA S: +OK List of capabilities follows S: SASL DIGEST-MD5 CRAM-MD5 S: EXPIRE NEVER S: LOGIN-DELAY 0 S: TOP S: UIDL S: PIPELINING S: RESP-CODES S: AUTH-RESP-CODE S: USER S: IMPLEMENTATION Cyrus POP3 server v2.2.8 S: . C: AUTH DIGEST-MD5 S: + bm9uY2U9Ikc3blozdkY2dEZwR0lQcHhSNXNXOWErWDlaZU4ycEFSRmVhV1V2aFB3NU09IixyZWFsbT0ic2F0dXJubyIscW9wPSJhdXRoLGF1dGgtaW50LGF1dGgtY29uZiIsY2lwaGVyPSJyYzQtNDAscmM0LTU2LHJjNCxkZXMsM2RlcyIsbWF4YnVmPTQwOTYsY2hhcnNldD11dGYtOCxhbGdvcml0aG09bWQ1LXNlc3M= Please enter your password: C: dXNlcm5hbWU9InJvb3QiLHJlYWxtPSJzYXR1cm5vIixhdXRoemlkPSJ3YWx0ZXJAZG9taW5pby5jb20iLG5vbmNlPSJHN25aM3ZGNnRGcEdJUHB4UjVzVzlhK1g5WmVOMnBBUkZlYVdVdmhQdzVNPSIsY25vbmNlPSJJSXFacm15UWxTNlpEdHExMVhRUTNUWVZsTXhHbG9BV0NvRHpXOVdyQnY0PSIsbmM9MDAwMDAwMDEscW9wPWF1dGgtY29uZixjaXBoZXI9cmM0LG1heGJ1Zj0xMDI0LGRpZ2VzdC11cmk9InBvcC9sb2NhbGhvc3QiLHJlc3BvbnNlPWMyNjkwOWU2YzBmYzhiMGNiOGQ1NWVlNjNlNzNhYTk5 S: -ERR [AUTH] authenticating: user not found Authentication failed. generic failure Security strength factor: 128 quit +OK CRAM-MD5 and DIGEST-MD5 mechanisms work ONLY against sasldb2. So far I have not seen a LDAP bridge for it. I thought I saw a axprop: ldap idea somewhere along the road, but cant say for sure. 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
Re: virtual-domains+cyrus-imapd+saslauthd+ldap
Nikola Milutinovic wrote: CRAM-MD5 and DIGEST-MD5 mechanisms work ONLY against sasldb2. So far I have not seen a LDAP bridge for it. I thought I saw a axprop: ldap idea somewhere along the road, but cant say for sure. Nix. No, that's incorrect. They work with the sql auxprop also and with ldapdb auxprop mech. For authentication out af a LDAP DIT you must use the ldapdb plugin provided in the openldap contrib area. See: http://www.billy.demon.nl/Postfix-SASL-authentication.html It's a success story, although it's centered around postfix it's about authenticating with sasl and ldapdb plugin. mitu --- 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, sendmail and catch all addresses
Many thanks, I used option b) as its going to be a real feature, as opposed to an undocumented one that might disappear in the future. Its just what I was looking for. Regards Ben There are two ways to fix your virtusertable problem, both are undocumented. a) Use ! as RHS for [EMAIL PROTECTED] [EMAIL PROTECTED] ! @domain [EMAIL PROTECTED] b) define _VIRTUSER_STOP_ONE_LEVEL_RECURSION_ in your *.mc file: define(`_VIRTUSER_STOP_ONE_LEVEL_RECURSION_',`1')dnl a is an undocumented implementation detail. b is a feature on its way to be documented in some future sendmail release. Short description of b is available in cf/m4/proto.m4 file. P.S. Take a look at http://anfi.homeunix.net/sendmail/rtcyrus2.html You may use the following mailertable entry: domain mrs_cyrus_mailertable:local:alias_name -- Andrzej [en:Andrew] Adam Filip [EMAIL PROTECTED] [EMAIL PROTECTED] Home Page http://anfi.homeunix.net/ [ PageRank 6 ] --- 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, sendmail and catch all addresses
Ben Suffolk wrote: I have looked through the FAQ, and the archive and was unable to find a reference / answer to my issue. I think it may be more of a sendmail question, so my apologies if this is the wrong place to ask. I have configured sendmail and imapd as recommend in the configuring virtual domains page at http://asg.web.cmu.edu/cyrus/download/imapd/install-virtdomains.html This means that I have used the mailertable in sendmail to make sure that sendmail does not remove the domain name. Everything works great, and just as you would expect it to. I have some aliases in the sendmail aliases file, and they work fine as well. However I now need to add another domain and I want to set up a few specific email addresses for delivery and a catch all account on this domain to, so no email is bounced with user unknown, it just gets added to a specific account. I can not figure out how to do this though. Normally with sedmail you would use the virtusers table, but I can't see how to map all unknown email to the account [EMAIL PROTECTED] Obviously if I use :- @domain[EMAIL PROTECTED] its a recursive map and so fails. I would be most grateful if anybody know how to do this. There are two ways to fix your virtusertable problem, both are undocumented. a) Use ! as RHS for [EMAIL PROTECTED] [EMAIL PROTECTED] ! @domain [EMAIL PROTECTED] b) define _VIRTUSER_STOP_ONE_LEVEL_RECURSION_ in your *.mc file: define(`_VIRTUSER_STOP_ONE_LEVEL_RECURSION_',`1')dnl a is an undocumented implementation detail. b is a feature on its way to be documented in some future sendmail release. Short description of b is available in cf/m4/proto.m4 file. P.S. Take a look at http://anfi.homeunix.net/sendmail/rtcyrus2.html You may use the following mailertable entry: domain mrs_cyrus_mailertable:local:alias_name -- Andrzej [en:Andrew] Adam Filip [EMAIL PROTECTED] [EMAIL PROTECTED] Home Page http://anfi.homeunix.net/ [ PageRank 6 ] --- 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 broken?
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Mon, 20 Sep 2004 20:29:07 -0600 Anthony Chavez [EMAIL PROTECTED] wrote: It would seem that either I am doing something wrong, imapd doesn't support interface aliases, or virtual domain support is broken. Before submitting a bug report, however, I'd like to know that I'm not just missing something. I have received no response to this post. I would very much appreciate any assistance that I could get on this matter. I will say that, in the interim, I entertained the idea that the problem could be that the mail accounts that I created with cyradm (which *do* exist now) were created as [EMAIL PROTECTED] My hypothesis is that if I were to create the accounts as [EMAIL PROTECTED], then I could have the desired result of having Cyrus imapd report the server's hostname as mail.domain.com. HOWEVER, my intent is to use my sasldb for a number of network services, not just imap. So I'd rather not go this route if I can avoid it. Some glue in the form of a script may enable me to have synchronized accounts in the sasldb such as [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED], etc. Note that this is all hypothetical and I would appreciate confirmation. ;-) Cheers! - -- Anthony Chavez http://www.anthonychavez.org/ mailto:[EMAIL PROTECTED] jabber:[EMAIL PROTECTED] -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.4 (Darwin) iD8DBQFBYkSNbZTbIaRBRXERArsXAJ0bsmGzbz7ducka9AG1BlEyUt6HyQCfZN5R PwAx/G3BDtDcp7DLIa9Amog= =sAz8 -END PGP SIGNATURE- --- 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 Stopped working
Fixed it.. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Peter P. Benac Sent: Wednesday, September 29, 2004 14:01 To: [EMAIL PROTECTED] Subject: Virtual Domains Stopped working Greetings, I updated my DNSBL support in sendmail the other day and my virtual domains stopped working. Sendmail through the lmtpd socket delivers the mail to /var/spool/imap/user/{whateveruser}. IMAPD and POP3D are looking for the mail in /var/spool/imap/domain/{whateverdomain}/user/{whateveruser}. This never happened before I updated my sendmail.cf file. Here are the appropriate lines in my sendmail.mc file (version Sendmail 8.12.10/8.12.8) define(`confLOCAL_MAILER', `cyrusv2')dnl MAILER(`cyrusv2') define(`CYRUS_MAILER_FLAGS',`SwA59@@/:|')dnl Here is my imapd.conf file: (Cyrus version 2.2.3) sasl_mech_list: {removed on purpose} sasl_pwcheck_method: {removed on purpose} sasl_auxprop_plugin: sasldb sasl_sasldb_path: /etc/sasldb2 configdirectory: /var/imap partition-default: /var/spool/imap lmtpsocket: /var/imap/socket/lmtp sievedir: /var/imap/sieve admins: cyrus virtdomains: userid defaultdomain: emacolet.com System is running Solaris 8. As I stated this all worked until I rebuilt my sendmail.cf file by adding a few DNSBL's. I tried removing the new DNSBL's and still had the problem. Any clue where to look would be helpful. 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!!! --- 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 in 2.2.3
i belive you have to use [EMAIL PROTECTED] On Wed, Sep 01, 2004 at 06:38:44PM -0700, Paul Wolstenholme wrote: I'm using the the rpm version of cyrus v2.2.3-Red Hat 2.2.3-11 2004/01/14 02:11:03 on Fedora Core 2. I have enable virtual domains but I am unable to create new mailboxes with an @. Is this a bug in 2.2.3? There was a message in the archives that indicated it may be. If so, is there a patch?. Symptoms: localhost.localdomain cm [EMAIL PROTECTED] createmailbox: Invalid mailbox name I've tried /etc/imapd.conf with and without a defaultdomain and it doesn't seem to make a difference. Cheers, Paul --- 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 in 2.2.3
Am Do, den 02.09.2004 schrieb Paul Wolstenholme um 3:38: I'm using the the rpm version of cyrus v2.2.3-Red Hat 2.2.3-11 2004/01/14 02:11:03 on Fedora Core 2. I have enable virtual domains but I am unable to create new mailboxes with an @. Is this a bug in 2.2.3? There was a message in the archives that indicated it may be. If so, is there a patch?. If things don't work like expected it is a bug? Symptoms: localhost.localdomain cm [EMAIL PROTECTED] createmailbox: Invalid mailbox name I suggest you read the documentation, especially about how valid mailbox names look like: http://asg.web.cmu.edu/cyrus/download/imapd/install-virtdomains.html Paul Alexander -- Alexander Dalloz | Enger, Germany | GPG key 1024D/ED695653 1999-07-13 Fedora GNU/Linux Core 2 (Tettnang) kernel 2.6.8-1.521smp Serendipity 04:28:17 up 3 days, 1:44, load average: 0.26, 0.31, 0.36 --- 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 in 2.2.3
Stupid mistake on my part but I still get the same error with: localhost.localdomain cm [EMAIL PROTECTED] createmailbox: Invalid mailbox name I'm also using saslauthd. I read in the archives that it may be necessary to have a ldap filter in /etc/saslauthd.conf ldap_filter: [EMAIL PROTECTED] However when I do this I can no longer login to cyradm. I've tried logging in as: cyradm -u [EMAIL PROTECTED] localhost cyradm -u cyrus localhost Neither method worked with the ldap_filter. Any suggestions would be much appreciated. /Paul On 1-Sep-04, at 7:06 PM, Ilya Krel wrote: i belive you have to use [EMAIL PROTECTED] On Wed, Sep 01, 2004 at 06:38:44PM -0700, Paul Wolstenholme wrote: I'm using the the rpm version of cyrus v2.2.3-Red Hat 2.2.3-11 2004/01/14 02:11:03 on Fedora Core 2. I have enable virtual domains but I am unable to create new mailboxes with an @. Is this a bug in 2.2.3? There was a message in the archives that indicated it may be. If so, is there a patch?. Symptoms: localhost.localdomain cm [EMAIL PROTECTED] createmailbox: Invalid mailbox name I've tried /etc/imapd.conf with and without a defaultdomain and it doesn't seem to make a difference. Cheers, Paul --- 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 question
Dwight Tovey wrote: Hi Andrzej Thanks for the response. Sorry I'm taking so long to follow up on this. I thought it was a priority, but the boss (my wife) has other ideas. Which variant have you used ? [ there are three: mailertable, stickyhub, user] I was trying the mailertable version. My problem is that I'm also using MailMan 2.0.13 to host some email lists for the virtual domains. Mail for these lists is usually resolved in the aliases file to go through a mailman command: [EMAIL PROTECTED]: |wrapper post listname With that entry (and all the others necessary for the list) in the aliases file, sendmail complains about cannot alias non-local names. Various searches point to the 'A' flag that Andrzej mentions above. I added that in, with no change in results. What is reported by the commands below: # which mailer is selected for [EMAIL PROTECTED] before aliases echo '3,0 [EMAIL PROTECTED]' | sendmail -bt On my test system, the list is '[EMAIL PROTECTED]' ADDRESS TEST MODE (ruleset 3 NOT automatically invoked) Enter ruleset address canonify input: mytest @ dtovey . local Canonify2 input: mytest @ dtovey . local Canonify2returns: mytest @ dtovey . local . canonify returns: mytest @ dtovey . local . parse input: mytest @ dtovey . local . Parse0 input: mytest @ dtovey . local . Parse0 returns: mytest @ dtovey . local . ParseLocal input: mytest @ dtovey . local . ParseLocal returns: mytest @ dtovey . local . Parse1 input: mytest @ dtovey . local . MailerToTriple input: mrs_cyrus_mailertable : error : 5 . 1 . 1 : 550 User unknown mytest @ dtovey . local . mrs_cyrus_mailer input: error : 5 . 1 . 1 : 550 User unknown mytest @ dtovey . local . MailerToTriple input: error : 5 . 1 . 1 : 550 User unknown mytest @ dtovey . local MailerToTriple returns: $# error $@ 5 . 1 . 1 $: 550 User unknown mrs_cyrus_mailer returns: $# error $@ 5 . 1 . 1 $: 550 User unknown MailerToTriple returns: $# error $@ 5 . 1 . 1 $: 550 User unknown Parse1 returns: $# error $@ 5 . 1 . 1 $: 550 User unknown parsereturns: $# error $@ 5 . 1 . 1 $: 550 User unknown Use virtusertable for non local email domains. Addming F=A to cyrusv2d will not help because error mailer is selected for non existing cyrus accounts. *.mc file: LOCAL_CONFIG F{virtHost}/etc/mail/virtual-domains /etc/mail/virtual-domains file: dtovey.local virtusertable file (use makemap to compile it): [EMAIL PROTECTED] mylist [...] You can use virtusertable to redirect [EMAIL PROTECTED] to listname. Since version 8.10 virtusertable can be consulted for some non local email domains (domain handled by mailertable). Didn't work. I still get the unknown user error. If I create the '[EMAIL PROTECTED]' mailbox, the mail is accepted, but then it is delivered into the cyrus mailbox and doesn't go through mailman at all. It seems like the aliases are not being used at all. I'm sure that I've screwed something up, but I'm not sure where. Use the command below to trace virtusertable lookups: echo '3,0 [EMAIL PROTECTED]' | sendmail -bt -d60.1 HTH -- Andrzej [en:Andrew] Adam Filip [EMAIL PROTECTED] [EMAIL PROTECTED] http://anfi.homeunix.net/ http://slashdot.org/~anfi --- 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 question
Andrzej Filip said: Use virtusertable for non local email domains. Addming F=A to cyrusv2d will not help because error mailer is selected for non existing cyrus accounts. *.mc file: LOCAL_CONFIG F{virtHost}/etc/mail/virtual-domains /etc/mail/virtual-domains file: dtovey.local virtusertable file (use makemap to compile it): [EMAIL PROTECTED] mylist Already tried this. Didn't help. Use the command below to trace virtusertable lookups: echo '3,0 [EMAIL PROTECTED]' | sendmail -bt -d60.1 ADDRESS TEST MODE (ruleset 3 NOT automatically invoked) Enter ruleset address canonify input: mytest @ dtovey . local Canonify2 input: mytest @ dtovey . local Canonify2returns: mytest @ dtovey . local . canonify returns: mytest @ dtovey . local . parse input: mytest @ dtovey . local . Parse0 input: mytest @ dtovey . local . Parse0 returns: mytest @ dtovey . local . ParseLocal input: mytest @ dtovey . local . ParseLocal returns: mytest @ dtovey . local . Parse1 input: mytest @ dtovey . local . map_lookup(mailertable, dtovey.local) = mrs_cyrus_mailertable:error:5.1.1:550 User unknown (0) MailerToTriple input: mrs_cyrus_mailertable : error : 5 . 1 . 1 : 550 User unknown mytest @ dtovey . local . mrs_cyrus_mailer input: error : 5 . 1 . 1 : 550 User unknown mytest @ dtovey . local . map_lookup(cyrus, [EMAIL PROTECTED]) = NOT FOUND (68) MailerToTriple input: error : 5 . 1 . 1 : 550 User unknown mytest @ dtovey . local MailerToTriple returns: $# error $@ 5 . 1 . 1 $: 550 User unknown mrs_cyrus_mailer returns: $# error $@ 5 . 1 . 1 $: 550 User unknown MailerToTriple returns: $# error $@ 5 . 1 . 1 $: 550 User unknown Parse1 returns: $# error $@ 5 . 1 . 1 $: 550 User unknown parsereturns: $# error $@ 5 . 1 . 1 $: 550 User unknown This looks to me like it's hitting the mailertable first, and when mrs returns the error, sendmail quits without even trying the alias or virtuser tables. In order for the listserver software to work, I need the address to be looked up in the alias file and passed through the program that is specified there. Is there a way to specify the sequence of the lookups and get it to go through aliases first? /dwight -- Dwight N. Tovey email: [EMAIL PROTECTED] web: http://www.dtovey.net/~dwight --- A conclusion is simply the place where you got tired of thinking. --- 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 question
Dwight Tovey wrote: Andrzej Filip said: Use virtusertable for non local email domains. Addming F=A to cyrusv2d will not help because error mailer is selected for non existing cyrus accounts. *.mc file: LOCAL_CONFIG F{virtHost}/etc/mail/virtual-domains I have made a typing mistake. The correct version is below: F{VirtHost}/etc/mail/virtual-domains /etc/mail/virtual-domains file: dtovey.local virtusertable file (use makemap to compile it): [EMAIL PROTECTED] mylist Already tried this. Didn't help. Use the command below to trace virtusertable lookups: echo '3,0 [EMAIL PROTECTED]' | sendmail -bt -d60.1 ADDRESS TEST MODE (ruleset 3 NOT automatically invoked) Enter ruleset address [...] This looks to me like it's hitting the mailertable first, and when mrs returns the error, sendmail quits without even trying the alias or virtuser tables. In order for the listserver software to work, I need the address to be looked up in the alias file and passed through the program that is specified there. Is there a way to specify the sequence of the lookups and get it to go through aliases first? Is dtovey.local domain listed in $={VirtHost} ? echo '$={VirtHost}' | sendmail -bt -- Andrzej [en:Andrew] Adam Filip [EMAIL PROTECTED] [EMAIL PROTECTED] http://anfi.homeunix.net/ http://slashdot.org/~anfi --- 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 question
Hi Andrzej Thanks for the response. Sorry I'm taking so long to follow up on this. I thought it was a priority, but the boss (my wife) has other ideas. Which variant have you used ? [ there are three: mailertable, stickyhub, user] I was trying the mailertable version. My problem is that I'm also using MailMan 2.0.13 to host some email lists for the virtual domains. Mail for these lists is usually resolved in the aliases file to go through a mailman command: [EMAIL PROTECTED]: |wrapper post listname With that entry (and all the others necessary for the list) in the aliases file, sendmail complains about cannot alias non-local names. Various searches point to the 'A' flag that Andrzej mentions above. I added that in, with no change in results. What is reported by the commands below: # which mailer is selected for [EMAIL PROTECTED] before aliases echo '3,0 [EMAIL PROTECTED]' | sendmail -bt On my test system, the list is '[EMAIL PROTECTED]' ADDRESS TEST MODE (ruleset 3 NOT automatically invoked) Enter ruleset address canonify input: mytest @ dtovey . local Canonify2 input: mytest @ dtovey . local Canonify2returns: mytest @ dtovey . local . canonify returns: mytest @ dtovey . local . parse input: mytest @ dtovey . local . Parse0 input: mytest @ dtovey . local . Parse0 returns: mytest @ dtovey . local . ParseLocal input: mytest @ dtovey . local . ParseLocal returns: mytest @ dtovey . local . Parse1 input: mytest @ dtovey . local . MailerToTriple input: mrs_cyrus_mailertable : error : 5 . 1 . 1 : 550 User unknown mytest @ dtovey . local . mrs_cyrus_mailer input: error : 5 . 1 . 1 : 550 User unknown mytest @ dtovey . local . MailerToTriple input: error : 5 . 1 . 1 : 550 User unknown mytest @ dtovey . local MailerToTriple returns: $# error $@ 5 . 1 . 1 $: 550 User unknown mrs_cyrus_mailer returns: $# error $@ 5 . 1 . 1 $: 550 User unknown MailerToTriple returns: $# error $@ 5 . 1 . 1 $: 550 User unknown Parse1 returns: $# error $@ 5 . 1 . 1 $: 550 User unknown parsereturns: $# error $@ 5 . 1 . 1 $: 550 User unknown # which flags are set for cyrus mailers echo '=M' | sendmail -bt | grep cyrus mailer 9 (cyrusv2): P=[IPC] S=EnvFromSMTP/HdrFromSMTP R=EnvToSMTP/HdrToL M=0 U=0:0 F=/1:@ADFMXlmnqsz| L=0 E=\r\n T=DNS/RFC822/SMTP r=100 A=FILE /var/lib/imap/socket/lmtp mailer 10 (cyrusv2d): P=[IPC] S=EnvFromSMTP/HdrFromSMTP R=EnvToSMTP/EnvToSMTP M=0 U=0:0 F=1ADFMXlmnqsz L=0 E=\r\n T=DNS/RFC822/SMTP r=100 A=FILE /var/lib/imap/socket/lmtp If I remove the domain name from the alias: listname: |wrapper post listname I no longer get the cannot alias complaints from sendmail, but now the mail is failing because there is no actual imap mailbox for the mail lists. You can use virtusertable to redirect [EMAIL PROTECTED] to listname. Since version 8.10 virtusertable can be consulted for some non local email domains (domain handled by mailertable). Didn't work. I still get the unknown user error. If I create the '[EMAIL PROTECTED]' mailbox, the mail is accepted, but then it is delivered into the cyrus mailbox and doesn't go through mailman at all. It seems like the aliases are not being used at all. I'm sure that I've screwed something up, but I'm not sure where. Thanks again for your help. /dwight -- Dwight N. Tovey email: [EMAIL PROTECTED] web: http://www.dtovey.net/~dwight --- OK. Who stopped payment on my reality check? --- 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 question
Andrzej Filip said: 2) Another alternative: Turn on aliases on cyrusv2d mailer (add F=A flag) *.mc file: dnl cyrusv2 release B - http://anfi.homeunix.net/sendmail/cyrusv2.html MODIFY_MAILER_FLAGS(`CYRUSV2D',`+A') MAILER(`cyrusv2') aliases file: [EMAIL PROTECTED]: [EMAIL PROTECTED] P.S. You can make sendmail check cyrus mailbox presence when replying to RCPT TO: - http://anfi.homeunix.net/sendmail/rtcyrus2.html I'm having a bit of a problem with the above tht I hope I can get some help with. I realize that it's only marginally related to Cyrus IMAP, but the server is in the mix so I thought I would start here for help. I'm using cyrus-imapd 2.2.3, sendmail 8.12.11, and MailScanner 4.26.8. I've recently started getting mail bounced back to non-existent users in my domain (I.E. returned spam) so I implemented the check described in the above link. For checking the presence of a mailbox, it works fine and these bounced messages will be rejected immediatly, even for my virtual domains. My problem is that I'm also using MailMan 2.0.13 to host some email lists for the virtual domains. Mail for these lists is usually resolved in the aliases file to go through a mailman command: [EMAIL PROTECTED]: |wrapper post listname With that entry (and all the others necessary for the list) in the aliases file, sendmail complains about cannot alias non-local names. Various searches point to the 'A' flag that Andrzej mentions above. I added that in, with no change in results. If I remove the domain name from the alias: listname: |wrapper post listname I no longer get the cannot alias complaints from sendmail, but now the mail is failing because there is no actual imap mailbox for the mail lists. I've gone around on this a few times and probably gotten myself totally confused. Do I have an incompatible mix of features that I'm trying to implement or do I just have something totally hosed in the configuration. Thanks in advance. /dwight -- Dwight N. Tovey email: [EMAIL PROTECTED] web: http://www.dtovey.net/~dwight --- There are two ways to write error-free programs. Only the third one works. --- 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 question
Didi Rieder wrote: I'd like to set up cyrus with some virtual domains using sendmail as MTA. How do I configure sendmail such that messages to addresses like [EMAIL PROTECTED] will be delivered to the mailbox username in the virtual domain? right now I use the cyrusv2.m4 from http://anfi.homeunix.net/sendmail/cyrusv2.html in the mailertable I have entries like this: virt.domain.comcyrusv2d:/var/imap/socket/lmtp but it seems that messages will not be delivered to the users mailbox. [mail]# sendmail -C sendmail.cf -bv [EMAIL PROTECTED] [EMAIL PROTECTED] deliverable: mailer cyrusv2d, host /var/imap/socket/lmtp, user [EMAIL PROTECTED] How can I resolve first.last to username? (aliases don't work: I have identical first.last in multiple domains) You can choose from two known options: 1) Classic recommendation: Use virtusertable for non local email domains (sendmail-8.10+). *.mc file: LOCAL_CONFIG F{VirtHost}/etc/mail/virtual-domains /etc/mail/virtual-domains file: virt.domain.com virtusertable file (needs recompilation using makemap): [EMAIL PROTECTED] [EMAIL PROTECTED] URL(s): http://www.sendmail.org/m4/features.html#virtusertable WARNING: Before using VIRTUSER_DOMAIN or VIRTUSER_DOMAIN_FILE read *CAREFULLY* about their side effects. 2) Another alternative: Turn on aliases on cyrusv2d mailer (add F=A flag) *.mc file: dnl cyrusv2 release B - http://anfi.homeunix.net/sendmail/cyrusv2.html MODIFY_MAILER_FLAGS(`CYRUSV2D',`+A') MAILER(`cyrusv2') aliases file: [EMAIL PROTECTED]: [EMAIL PROTECTED] P.S. You can make sendmail check cyrus mailbox presence when replying to RCPT TO: - http://anfi.homeunix.net/sendmail/rtcyrus2.html -- Andrzej [en:Andrew] Adam Filip [EMAIL PROTECTED] [EMAIL PROTECTED] http://anfi.homeunix.net/cyrus/ http://slashdot.org/~anfi --- 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 questions
On Thu, Apr 01, 2004 at 05:38:19AM +0400, Andrew B. Panphiloff wrote: ÷ óÒÄ, 31.03.2004, × 14:03, Joe Rhett ÐÉÛÅÔ: Is there any ability to adjust a quota per virtual domain ? Yes, read the documentation. What about this : localhost lm [EMAIL PROTECTED] (\HasNoChildren) localhost sq @borisych.mastak.com 100 quota:100 localhost sq [EMAIL PROTECTED] 500 quota:500 now I send message , which size is between 100 and 500 K I get: localhost lq [EMAIL PROTECTED] STORAGE 377/500 (75.4%) localhost lq @borisych.mastak.com STORAGE 0/100 (0%) localhost Why if I set quota for user it not consider in domain quota ? Because you didn't read the documentation. A user quota root will override a quota root at the domain. Just like any other more specific quota root, as documented. -- 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: virtual domains questions
Andrew B. Panphiloff wrote: , 01.04.2004, 06:16, Ken Murchison : Andrew B. Panphiloff wrote: , 31.03.2004, 14:03, Joe Rhett : Is there any ability to adjust a quota per virtual domain ? Yes, read the documentation. What about this : localhost lm [EMAIL PROTECTED] (\HasNoChildren) localhost sq @borisych.mastak.com 100 quota:100 localhost sq [EMAIL PROTECTED] 500 quota:500 now I send message , which size is between 100 and 500 K I get: localhost lq [EMAIL PROTECTED] STORAGE 377/500 (75.4%) localhost lq @borisych.mastak.com STORAGE 0/100 (0%) localhost Why if I set quota for user it not consider in domain quota ? Because when you have nested quotaroots, the quotaroot closest to the to the mailbox, governs it. How change this behaviour ? I have multiply domains , and want to set mail quota (like user quota and group quotas on filesystems) for each user and domain ? You can't, at least not easily. Cyrus was designed to support quotas per RFC 2087. Quotas on groups of users as you describe was not in the design. -- Kenneth Murchison Oceana Matrix Ltd. Software Engineer 21 Princeton Place 716-662-8973 x26 Orchard Park, NY 14127 --PGP Public Key--http://www.oceana.com/~ken/ksm.pgp --- Home Page: http://asg.web.cmu.edu/cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html
Re: virtual domains questions
Andrew B. Panphiloff wrote: , 31.03.2004, 14:03, Joe Rhett : Is there any ability to adjust a quota per virtual domain ? Yes, read the documentation. What about this : localhost lm [EMAIL PROTECTED] (\HasNoChildren) localhost sq @borisych.mastak.com 100 quota:100 localhost sq [EMAIL PROTECTED] 500 quota:500 now I send message , which size is between 100 and 500 K I get: localhost lq [EMAIL PROTECTED] STORAGE 377/500 (75.4%) localhost lq @borisych.mastak.com STORAGE 0/100 (0%) localhost Why if I set quota for user it not consider in domain quota ? Because when you have nested quotaroots, the quotaroot closest to the to the mailbox, governs it. -- Kenneth Murchison Oceana Matrix Ltd. Software Engineer 21 Princeton Place 716-662-8973 x26 Orchard Park, NY 14127 --PGP Public Key--http://www.oceana.com/~ken/ksm.pgp --- Home Page: http://asg.web.cmu.edu/cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html
Re: virtual domains questions
, 01.04.2004, 06:16, Ken Murchison : Andrew B. Panphiloff wrote: , 31.03.2004, 14:03, Joe Rhett : Is there any ability to adjust a quota per virtual domain ? Yes, read the documentation. What about this : localhost lm [EMAIL PROTECTED] (\HasNoChildren) localhost sq @borisych.mastak.com 100 quota:100 localhost sq [EMAIL PROTECTED] 500 quota:500 now I send message , which size is between 100 and 500 K I get: localhost lq [EMAIL PROTECTED] STORAGE 377/500 (75.4%) localhost lq @borisych.mastak.com STORAGE 0/100 (0%) localhost Why if I set quota for user it not consider in domain quota ? Because when you have nested quotaroots, the quotaroot closest to the to the mailbox, governs it. How change this behaviour ? I have multiply domains , and want to set mail quota (like user quota and group quotas on filesystems) for each user and domain ? --- 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: Fw: Re: Virtual domains, user@domain.com: Mailbox unknown
Andrzej Filip wrote: Mike O'Rourke wrote: Christopher Paluch [EMAIL PROTECTED] 02/20/04 11:14pm After installing a version of Cyrus that actually supports Virtual Domains (doh!) and getting the sendmail.mc setup properly, it looks like I got it working. I still would like to be able to get root mail accepted and sent to the old fashioned /var/spool/mail files, but still haven't figured that one out yet. I will keep on plugging away at it. I tried sending it to a Cyrus account,which I was able to do, but I couldn't get the IMAP client configured right to login and get the mail. Thanks everyone for your help. Hi Chris, Congratulations! For sending mail to unix users, you might take a look at Andrzej's page that he mentioned in a post yesterday: Andrzej [en:Andrew] Adam Filip: I promote a few alternative ways of cyrus and sendmail integration, all of them use local mailer for some users and curys||cyrusv2 for other [ e.g. http://anfi.webhop.net/sendmail/localtab.html ] I had a look at it, and it looks slick. Although the examples seem to presume that your default local mailer is local rather than cyrusv2, it might be able to be used in the reverse sense -- i.e. your default local mailer is cyrusv2, and you put in the localtable something like: rootlocal:chris to send root's mail to your chris unix account. Andrzej, is this interpretation correct? It is perfectly OK. Another option is to use LOCALized version of Cyrus Aliases http://anfi.webhop.net/sendmail/localNalias.htm I have made a mistake (htm should be replaced by html) http://anfi.webhop.net/sendmail/localNalias.html [ A few persons have tried to access wrong (*.htm) URL. ] P.S. In bright future ahead sendmail 8.13 will use socketmap protocol [protocol to query external programs] to ask cyrus about valid mailboxes *during* smtp session [AFAIK socketmap support has been added to development version of CYRUS (CVS)] -- Andrzej [en:Andrew] Adam Filip [EMAIL PROTECTED] [EMAIL PROTECTED] http://anfi.webhop.net http://slashdot.org/~anfi --- Home Page: http://asg.web.cmu.edu/cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html
Re: Fw: Re: Virtual domains, user@domain.com: Mailbox unknown
Mike O'Rourke wrote: Christopher Paluch [EMAIL PROTECTED] 02/20/04 11:14pm After installing a version of Cyrus that actually supports Virtual Domains (doh!) and getting the sendmail.mc setup properly, it looks like I got it working. I still would like to be able to get root mail accepted and sent to the old fashioned /var/spool/mail files, but still haven't figured that one out yet. I will keep on plugging away at it. I tried sending it to a Cyrus account,which I was able to do, but I couldn't get the IMAP client configured right to login and get the mail. Thanks everyone for your help. Hi Chris, Congratulations! For sending mail to unix users, you might take a look at Andrzej's page that he mentioned in a post yesterday: Andrzej [en:Andrew] Adam Filip: I promote a few alternative ways of cyrus and sendmail integration, all of them use local mailer for some users and curys||cyrusv2 for other [ e.g. http://anfi.webhop.net/sendmail/localtab.html ] I had a look at it, and it looks slick. Although the examples seem to presume that your default local mailer is local rather than cyrusv2, it might be able to be used in the reverse sense -- i.e. your default local mailer is cyrusv2, and you put in the localtable something like: rootlocal:chris to send root's mail to your chris unix account. Andrzej, is this interpretation correct? It is perfectly OK. Another option is to use LOCALized version of Cyrus Aliases http://anfi.webhop.net/sendmail/localNalias.htm P.S. In bright future ahead sendmail 8.13 will use socketmap protocol [protocol to query external programs] to ask cyrus about valid mailboxes *during* smtp session [AFAIK socketmap support has been added to development version of CYRUS (CVS)] -- Andrzej [en:Andrew] Adam Filip [EMAIL PROTECTED] [EMAIL PROTECTED] http://anfi.webhop.net http://slashdot.org/~anfi --- Home Page: http://asg.web.cmu.edu/cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html
Re: Fw: Re: Virtual domains, user@domain.com: Mailbox unknown
After installing a version of Cyrus that actually supports Virtual Domains (doh!) and getting the sendmail.mc setup properly, it looks like I got it working. I still would like to be able to get root mail accepted and sent to the old fashioned /var/spool/mail files, but still haven't figured that one out yet. I will keep on plugging away at it. I tried sending it to a Cyrus account,which I was able to do, but I couldn't get the IMAP client configured right to login and get the mail. Thanks everyone for your help. -Original Message- From: Christopher Paluch [EMAIL PROTECTED] Sent: Feb 19, 2004 2:47 PM To: Andrzej Filip [EMAIL PROTECTED], [EMAIL PROTECTED] Cc: Christopher Paluch [EMAIL PROTECTED] Subject: Re: Fw: Re: Virtual domains, [EMAIL PROTECTED]: Mailbox unknown echo =M|sendmail -bt|grep cyrus mailer 3 (cyrusv2): P=[IPC] S=EnvFromSMTP/HdrFromL R=EnvToL/HdrToL M=0 U=0:0 F=/:@ADFMXlmnqsz| L=0 E=\r\n T=DNS/RFC822/SMTP r=100 A=FILE /var/imap/socket/lmtp It looks like my overrides for S= and R= aren't working, which is causing this problem. Along with upgrading Cyrus, I will try to figure out why this isn't happening eventhough it seems to be in my sendmail.mc and sendmail.cf files. -Original Message- From: Andrzej Filip [EMAIL PROTECTED] Sent: Feb 19, 2004 12:54 PM To: [EMAIL PROTECTED] Cc: Christopher Paluch [EMAIL PROTECTED] Subject: Re: Fw: Re: Virtual domains, [EMAIL PROTECTED]: Mailbox unknown Christopher Paluch wrote: It looks like from the output of the sendmail -X, that the problem is sendmail is sending Cyrus, test.one as the mailbox, not [EMAIL PROTECTED] I've modified the sendmail.cf file so it will send the full domain, but it doesn't seem to be doing that. So am I reading this log incorrectly or is there something else I'm supposed to do to get the domain sent? 05420 EHLO ecnmail.posnetservices.com 05420 250-server.adomain.com Hello [68.248.99.56], pleased to meet you 05420 250-ENHANCEDSTATUSCODES 05420 250-PIPELINING 05420 250-8BITMIME 05420 250-SIZE 05420 250-DSN 05420 250-ETRN 05420 250-AUTH DIGEST-MD5 CRAM-MD5 05420 250-DELIVERBY 05420 250 HELP 05420 MAIL From:[EMAIL PROTECTED] SIZE=500 05420 250 2.1.0 [EMAIL PROTECTED]... Sender ok 05420 RCPT To:[EMAIL PROTECTED] 05420 250 2.1.5 [EMAIL PROTECTED]... Recipient ok 05420 DATA 05420 354 Enter mail, end with . on a line by itself 05420 Received: from web40405.mail.yahoo.com (web40405.mail.yahoo.com [66.21 05420by ecnmail.posnetservices.com (8.12.8/8.12.8) with SMTP id i1JHK 05420for [EMAIL PROTECTED]; Thu, 19 Feb 2004 11:20:02 -0600 05420 Message-ID: [EMAIL PROTECTED] 05420 Received: from [68.248.99.41] by web40405.mail.yahoo.com via HTTP; Thu 05420 Date: Thu, 19 Feb 2004 09:20:01 -0800 (PST) 05420 From: [EMAIL PROTECTED] 05420 Subject: Kill me now 05420 To: [EMAIL PROTECTED] 05420 MIME-Version: 1.0 05420 Content-Type: text/plain; charset=us-ascii 05420 05420 Kill me now. 05420 05420 __ 05420 Do you Yahoo!? 05420 Yahoo! Mail SpamGuard - Read only the mail you want. 05420 http://antispam.yahoo.com/tools 05420 . 05420 250 2.0.0 i1JHK3jk005420 Message accepted for delivery 05422 === CONNECT localhost 05420 QUIT 05420 221 2.0.0 server.adomain.com closing connection 05422 220 server.adomain.com LMTP Cyrus v2.1.16 ready 05422 LHLO server.adomain.com 05422 250-server.adomain.com 05422 250-8BITMIME 05422 250-ENHANCEDSTATUSCODES 05422 250-PIPELINING 05422 250-SIZE 05422 250-AUTH EXTERNAL 05422 250 IGNOREQUOTA 05422 MAIL From:[EMAIL PROTECTED] SIZE=723 05422 250 2.1.0 ok 05422 RCPT To:test.one 05422 DATA 05422 550-Mailbox unknown. Either there is no mailbox associated with this 05422 550-name or you do not have authorization to see it. 05422 550 5.1.1 User unknown 05422 503 5.5.1 No recipients 05422 RSET 05422 250 2.0.0 ok 05422 This is a MIME-encapsulated message 05422 05422 --i1JHK3jk005422.1077211203/server.adomain.com 05422 05422 The original message was received at Thu, 19 Feb 2004 11:20:03 -0600 05422 from [68.248.99.56] 05422 05422 - The following addresses had permanent fatal errors - 05422 [EMAIL PROTECTED] 05422 (reason: 550-Mailbox unknown. Either there is no mailbox associat 05422 05422 - Transcript of session follows - 05422 ... while talking to localhost: 05422 DATA 05422 550-Mailbox unknown. Either there is no mailbox associated with t 05422 550-name or you do not have authorization to see it. 05422 550 5.1.1 User unknown 05422 550 5.1.1 [EMAIL PROTECTED]... User unknown 05422 503 5.5.1 No recipients 05422 05422 --i1JHK3jk005422.1077211203/server.adomain.com 05422 Content-Type: message/delivery-status 05422 05422 Reporting-MTA: dns; server.adomain.com 05422 Received-From-MTA: DNS; [68.248.99.56] 05422 Arrival-Date: Thu, 19 Feb 2004 11:20:03 -0600
Re: Fw: Re: Virtual domains, user@domain.com: Mailbox unknown
Christopher Paluch [EMAIL PROTECTED] 02/20/04 11:14pm After installing a version of Cyrus that actually supports Virtual Domains (doh!) and getting the sendmail.mc setup properly, it looks like I got it working. I still would like to be able to get root mail accepted and sent to the old fashioned /var/spool/mail files, but still haven't figured that one out yet. I will keep on plugging away at it. I tried sending it to a Cyrus account,which I was able to do, but I couldn't get the IMAP client configured right to login and get the mail. Thanks everyone for your help. Hi Chris, Congratulations! For sending mail to unix users, you might take a look at Andrzej's page that he mentioned in a post yesterday: Andrzej [en:Andrew] Adam Filip: I promote a few alternative ways of cyrus and sendmail integration, all of them use local mailer for some users and curys||cyrusv2 for other [ e.g. http://anfi.webhop.net/sendmail/localtab.html ] I had a look at it, and it looks slick. Although the examples seem to presume that your default local mailer is local rather than cyrusv2, it might be able to be used in the reverse sense -- i.e. your default local mailer is cyrusv2, and you put in the localtable something like: rootlocal:chris to send root's mail to your chris unix account. Andrzej, is this interpretation correct? Mike. --- 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
Fw: Re: Virtual domains, user@domain.com: Mailbox unknown
-Forwarded Message- From: Christopher Paluch [EMAIL PROTECTED] Sent: Feb 19, 2004 8:50 AM To: Mike O'Rourke [EMAIL PROTECTED], [EMAIL PROTECTED] Subject: Re: Virtual domains, [EMAIL PROTECTED]: Mailbox unknown First let me thank everyone for their help so far and I apologize if some of this is really sendmail issues and not a pure cyrus issue. I have basically given up the idea of trying to keeping local mail delivery via procmail and I hopefully have eliminated it, since I can't send mail to root anymore (User unknown) nor send email to another Linux server via the mail command (data format error). I will look into those after I solve this one. This is what's happening now: Server name: server.adomain.com I have created a mailbox via the command: cm user/[EMAIL PROTECTED] /etc/cyrus.conf has changed from default setup, which was listed in a previous email. /etc/imapd.conf: configdirectory:/var/imap partition-default: /var/spool/imap admins: cyrus root srvtab: /var/imap/srvtab allowanonymouslogin:no sasl_passwd_check: saslauthd unixhierarchysep: yes sendmail: /usr/sbin/sendmail sievedir: /usr/sieve sieveusehomedir:no postuser: shared altnamespace: yes virtdomains:yes defaultdomain: future .com loginrealms:future.com test.com /etc/mail/local-host-names: localhost server.adomain.com adomain.com /etc/mail/virtusertable is empty /etc/mail/mailertable: test.comcyrusv2:/var/imap/socket/lmtp /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(`confTRUSTED_USER', `smmsp')dnl define(`confTO_CONNECT', `1m')dnl define(`confTRY_NULL_MX_LIST',true)dnl define(`confDONT_PROBE_INTERFACES',true)dnl dnl define(`PROCMAIL_MAILER_PATH',`/usr/bin/procmail')dnl define(`ALIAS_FILE', `/etc/aliases')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 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 dnl FEATURE(local_procmail,`',`procmail -t -Y -a $h -d $u')dnl FEATURE(`access_db',`hash -TTMPF -o /etc/mail/access.db')dnl FEATURE(`blacklist_recipients')dnl EXPOSED_USER(`root')dnl FEATURE(`accept_unresolvable_domains')dnl LOCAL_DOMAIN(`localhost.localdomain')dnl MAILER(smtp)dnl dnl MAILER(procmail)dnl MAILER(cyrusv2)dnl define(`confLOCAL_MAILER', `cyrusv2')dnl PUSHDIVERT(-1) _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 # ### Cyrus V2 Mailer specification ### # VERSIONID(`$Id: cyrusv2.m4,v 1.1 2002/06/01 21:14:57 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 After all this I still get User unknown, when I send mail to [EMAIL PROTECTED] Again I ask, when I read Configuring Virtual Domains it says I don't have to specify multiple IP addresses. Is that correct or do I have to do that to get this to work? Thanks, Chris Paluch --- 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: Fw: Re: Virtual domains, user@domain.com: Mailbox unknown
Am Donnerstag, 19. Februar 2004 16:09 schrieb Christopher Paluch: -Forwarded Message- From: Christopher Paluch [EMAIL PROTECTED] Sent: Feb 19, 2004 8:50 AM To: Mike O'Rourke [EMAIL PROTECTED], [EMAIL PROTECTED] Subject: Re: Virtual domains, [EMAIL PROTECTED]: Mailbox unknown [config] Again I ask, when I read Configuring Virtual Domains it says I don't have to specify multiple IP addresses. Is that correct or do I have to do that to get this to work? Thanks, Chris Paluch Virtual domain support does not require multiple IP addresses. Does sendmail reach to lmtpd and thus is lmtpd rejecting with User unknown or is it sendmail not talking lmtp ? What do telemetry logs say for lmtpd ? What happens in the output of sendmail started with -X ? man sendmail: -X logfile Log all traffic in and out of mailers in the indicated log file. This should only be used as a last resort for debugging mailer bugs. It will log a lot of data very quickly. And from cyrus' overview.html: log Directory The subdirectory log under the configuration directory permits administrators to keep protocol telemetry logs on a per-user basis. If a subdirectory of log exists with the same name as a user, the IMAP and POP3 servers will keep a telemetry log of protocol sessions authenticating as that user. The telemetry log is stored in the subdirectory with a filename of the server process-id and starts with the first command following authentication. -- Christian --- 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: Fw: Re: Virtual domains, user@domain.com: Mailbox unknown
This is the output from the maillog: Feb 19 09:22:54 ecnsrc01 sendmail[4856]: i1JFMsuJ004856: to=[EMAIL PROTECTED], delay=00:00:00, xdelay=00:00:00, mailer=cyrusv2, pri=31408, relay=localhost [[UNIX: /var/imap/socket/lmtp]], dsn=5.1.1, stat=User unknown Feb 19 09:22:54 ecnsrc01 sendmail[4856]: i1JFMsuJ004856: i1JFMsuK004856: return to sender: User unknown From this I assumed it was getting to Cyrus and he was rejecting it, but I will try your suggestions and see what else I can find. Thanks. -Original Message- From: Christian Schulte [EMAIL PROTECTED] Sent: Feb 19, 2004 9:49 AM To: Christopher Paluch [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: Re: Fw: Re: Virtual domains, [EMAIL PROTECTED]: Mailbox unknown Am Donnerstag, 19. Februar 2004 16:09 schrieb Christopher Paluch: -Forwarded Message- From: Christopher Paluch [EMAIL PROTECTED] Sent: Feb 19, 2004 8:50 AM To: Mike O'Rourke [EMAIL PROTECTED], [EMAIL PROTECTED] Subject: Re: Virtual domains, [EMAIL PROTECTED]: Mailbox unknown [config] Again I ask, when I read Configuring Virtual Domains it says I don't have to specify multiple IP addresses. Is that correct or do I have to do that to get this to work? Thanks, Chris Paluch Virtual domain support does not require multiple IP addresses. Does sendmail reach to lmtpd and thus is lmtpd rejecting with User unknown or is it sendmail not talking lmtp ? What do telemetry logs say for lmtpd ? What happens in the output of sendmail started with -X ? man sendmail: -X logfile Log all traffic in and out of mailers in the indicated log file. This should only be used as a last resort for debugging mailer bugs. It will log a lot of data very quickly. And from cyrus' overview.html: log Directory The subdirectory log under the configuration directory permits administrators to keep protocol telemetry logs on a per-user basis. If a subdirectory of log exists with the same name as a user, the IMAP and POP3 servers will keep a telemetry log of protocol sessions authenticating as that user. The telemetry log is stored in the subdirectory with a filename of the server process-id and starts with the first command following authentication. -- Christian --- 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: Fw: Re: Virtual domains, user@domain.com: Mailbox unknown
Am Donnerstag, 19. Februar 2004 17:00 schrieb Christopher Paluch: This is the output from the maillog: Feb 19 09:22:54 ecnsrc01 sendmail[4856]: i1JFMsuJ004856: to=[EMAIL PROTECTED], delay=00:00:00, xdelay=00:00:00, mailer=cyrusv2, pri=31408, relay=localhost [[UNIX: /var/imap/socket/lmtp]], dsn=5.1.1, stat=User unknown Feb 19 09:22:54 ecnsrc01 sendmail[4856]: i1JFMsuJ004856: i1JFMsuK004856: return to sender: User unknown From this I assumed it was getting to Cyrus and he was rejecting it, but I will try your suggestions and see what else I can find. Thanks. /etc/mail/mailertable: test.com cyrusv2:/var/imap/socket/lmtp Maybe you want to also put your servers name in there as well ? Like ecnsrc01.rm.posnetservices.com cyrusv2:/var/imap/socket/lmtp After cm user/[EMAIL PROTECTED] root should be able to receive mail. Of course this depends on other things and is more a guess than a solution but may work. Do you also get User unknown for a mail delivery for [EMAIL PROTECTED] ? Does delivery in test.com domain work ? -- Christian --- 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: Fw: Re: Virtual domains, user@domain.com: Mailbox unknown
Sorry for the confusion, the problem I'm trying to solve right now is to get mail delivered to [EMAIL PROTECTED] That is the account that keeps on coming back with user/Mailbox unknown. -Original Message- From: Christian Schulte [EMAIL PROTECTED] Sent: Feb 19, 2004 10:54 AM To: Christopher Paluch [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: Re: Fw: Re: Virtual domains, [EMAIL PROTECTED]: Mailbox unknown Am Donnerstag, 19. Februar 2004 17:00 schrieb Christopher Paluch: This is the output from the maillog: Feb 19 09:22:54 ecnsrc01 sendmail[4856]: i1JFMsuJ004856: to=[EMAIL PROTECTED], delay=00:00:00, xdelay=00:00:00, mailer=cyrusv2, pri=31408, relay=localhost [[UNIX: /var/imap/socket/lmtp]], dsn=5.1.1, stat=User unknown Feb 19 09:22:54 ecnsrc01 sendmail[4856]: i1JFMsuJ004856: i1JFMsuK004856: return to sender: User unknown From this I assumed it was getting to Cyrus and he was rejecting it, but I will try your suggestions and see what else I can find. Thanks. /etc/mail/mailertable: test.com � � � �cyrusv2:/var/imap/socket/lmtp Maybe you want to also put your servers name in there as well ? Like ecnsrc01.rm.posnetservices.com cyrusv2:/var/imap/socket/lmtp After cm user/[EMAIL PROTECTED] root should be able to receive mail. Of course this depends on other things and is more a guess than a solution but may work. Do you also get User unknown for a mail delivery for [EMAIL PROTECTED] ? Does delivery in test.com domain work ? -- Christian --- 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: Fw: Re: Virtual domains, user@domain.com: Mailbox unknown
It looks like from the output of the sendmail -X, that the problem is sendmail is sending Cyrus, test.one as the mailbox, not [EMAIL PROTECTED] I've modified the sendmail.cf file so it will send the full domain, but it doesn't seem to be doing that. So am I reading this log incorrectly or is there something else I'm supposed to do to get the domain sent? 05420 EHLO ecnmail.posnetservices.com 05420 250-server.adomain.com Hello [68.248.99.56], pleased to meet you 05420 250-ENHANCEDSTATUSCODES 05420 250-PIPELINING 05420 250-8BITMIME 05420 250-SIZE 05420 250-DSN 05420 250-ETRN 05420 250-AUTH DIGEST-MD5 CRAM-MD5 05420 250-DELIVERBY 05420 250 HELP 05420 MAIL From:[EMAIL PROTECTED] SIZE=500 05420 250 2.1.0 [EMAIL PROTECTED]... Sender ok 05420 RCPT To:[EMAIL PROTECTED] 05420 250 2.1.5 [EMAIL PROTECTED]... Recipient ok 05420 DATA 05420 354 Enter mail, end with . on a line by itself 05420 Received: from web40405.mail.yahoo.com (web40405.mail.yahoo.com [66.21 05420by ecnmail.posnetservices.com (8.12.8/8.12.8) with SMTP id i1JHK 05420for [EMAIL PROTECTED]; Thu, 19 Feb 2004 11:20:02 -0600 05420 Message-ID: [EMAIL PROTECTED] 05420 Received: from [68.248.99.41] by web40405.mail.yahoo.com via HTTP; Thu 05420 Date: Thu, 19 Feb 2004 09:20:01 -0800 (PST) 05420 From: [EMAIL PROTECTED] 05420 Subject: Kill me now 05420 To: [EMAIL PROTECTED] 05420 MIME-Version: 1.0 05420 Content-Type: text/plain; charset=us-ascii 05420 05420 Kill me now. 05420 05420 __ 05420 Do you Yahoo!? 05420 Yahoo! Mail SpamGuard - Read only the mail you want. 05420 http://antispam.yahoo.com/tools 05420 . 05420 250 2.0.0 i1JHK3jk005420 Message accepted for delivery 05422 === CONNECT localhost 05420 QUIT 05420 221 2.0.0 server.adomain.com closing connection 05422 220 server.adomain.com LMTP Cyrus v2.1.16 ready 05422 LHLO server.adomain.com 05422 250-server.adomain.com 05422 250-8BITMIME 05422 250-ENHANCEDSTATUSCODES 05422 250-PIPELINING 05422 250-SIZE 05422 250-AUTH EXTERNAL 05422 250 IGNOREQUOTA 05422 MAIL From:[EMAIL PROTECTED] SIZE=723 05422 250 2.1.0 ok 05422 RCPT To:test.one 05422 DATA 05422 550-Mailbox unknown. Either there is no mailbox associated with this 05422 550-name or you do not have authorization to see it. 05422 550 5.1.1 User unknown 05422 503 5.5.1 No recipients 05422 RSET 05422 250 2.0.0 ok 05422 This is a MIME-encapsulated message 05422 05422 --i1JHK3jk005422.1077211203/server.adomain.com 05422 05422 The original message was received at Thu, 19 Feb 2004 11:20:03 -0600 05422 from [68.248.99.56] 05422 05422 - The following addresses had permanent fatal errors - 05422 [EMAIL PROTECTED] 05422 (reason: 550-Mailbox unknown. Either there is no mailbox associat 05422 05422 - Transcript of session follows - 05422 ... while talking to localhost: 05422 DATA 05422 550-Mailbox unknown. Either there is no mailbox associated with t 05422 550-name or you do not have authorization to see it. 05422 550 5.1.1 User unknown 05422 550 5.1.1 [EMAIL PROTECTED]... User unknown 05422 503 5.5.1 No recipients 05422 05422 --i1JHK3jk005422.1077211203/server.adomain.com 05422 Content-Type: message/delivery-status 05422 05422 Reporting-MTA: dns; server.adomain.com 05422 Received-From-MTA: DNS; [68.248.99.56] 05422 Arrival-Date: Thu, 19 Feb 2004 11:20:03 -0600 05422 05422 Final-Recipient: RFC822; [EMAIL PROTECTED] 05422 X-Actual-Recipient: RFC822; [EMAIL PROTECTED] 05422 Action: failed 05422 Status: 5.1.1 05422 Diagnostic-Code: SMTP; 550-Mailbox unknown. Either there is no mailbox 05422 Last-Attempt-Date: Thu, 19 Feb 2004 11:20:03 -0600 Thanks, Chris Paluch -Original Message- From: Christian Schulte [EMAIL PROTECTED] Sent: Feb 19, 2004 10:54 AM To: Christopher Paluch [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: Re: Fw: Re: Virtual domains, [EMAIL PROTECTED]: Mailbox unknown Am Donnerstag, 19. Februar 2004 17:00 schrieb Christopher Paluch: This is the output from the maillog: Feb 19 09:22:54 ecnsrc01 sendmail[4856]: i1JFMsuJ004856: to=[EMAIL PROTECTED], delay=00:00:00, xdelay=00:00:00, mailer=cyrusv2, pri=31408, relay=localhost [[UNIX: /var/imap/socket/lmtp]], dsn=5.1.1, stat=User unknown Feb 19 09:22:54 ecnsrc01 sendmail[4856]: i1JFMsuJ004856: i1JFMsuK004856: return to sender: User unknown From this I assumed it was getting to Cyrus and he was rejecting it, but I will try your suggestions and see what else I can find. Thanks. /etc/mail/mailertable: test.com � � � �cyrusv2:/var/imap/socket/lmtp Maybe you want to also put your servers name in there as well ? Like ecnsrc01.rm.posnetservices.com cyrusv2:/var/imap/socket/lmtp After cm user/[EMAIL PROTECTED] root should be able to receive mail. Of course this depends on other things and is more a guess than a solution but may work. Do you also get User unknown for a mail delivery for [EMAIL PROTECTED] ? Does
Re: Fw: Re: Virtual domains, user@domain.com: Mailbox unknown
Christopher Paluch wrote: It looks like from the output of the sendmail -X, that the problem is sendmail is sending Cyrus, test.one as the mailbox, not [EMAIL PROTECTED] I've modified the sendmail.cf file so it will send the full domain, but it doesn't seem to be doing that. So am I reading this log incorrectly or is there something else I'm supposed to do to get the domain sent? 05420 EHLO ecnmail.posnetservices.com 05420 250-server.adomain.com Hello [68.248.99.56], pleased to meet you 05420 250-ENHANCEDSTATUSCODES 05420 250-PIPELINING 05420 250-8BITMIME 05420 250-SIZE 05420 250-DSN 05420 250-ETRN 05420 250-AUTH DIGEST-MD5 CRAM-MD5 05420 250-DELIVERBY 05420 250 HELP 05420 MAIL From:[EMAIL PROTECTED] SIZE=500 05420 250 2.1.0 [EMAIL PROTECTED]... Sender ok 05420 RCPT To:[EMAIL PROTECTED] 05420 250 2.1.5 [EMAIL PROTECTED]... Recipient ok 05420 DATA 05420 354 Enter mail, end with . on a line by itself 05420 Received: from web40405.mail.yahoo.com (web40405.mail.yahoo.com [66.21 05420by ecnmail.posnetservices.com (8.12.8/8.12.8) with SMTP id i1JHK 05420for [EMAIL PROTECTED]; Thu, 19 Feb 2004 11:20:02 -0600 05420 Message-ID: [EMAIL PROTECTED] 05420 Received: from [68.248.99.41] by web40405.mail.yahoo.com via HTTP; Thu 05420 Date: Thu, 19 Feb 2004 09:20:01 -0800 (PST) 05420 From: [EMAIL PROTECTED] 05420 Subject: Kill me now 05420 To: [EMAIL PROTECTED] 05420 MIME-Version: 1.0 05420 Content-Type: text/plain; charset=us-ascii 05420 05420 Kill me now. 05420 05420 __ 05420 Do you Yahoo!? 05420 Yahoo! Mail SpamGuard - Read only the mail you want. 05420 http://antispam.yahoo.com/tools 05420 . 05420 250 2.0.0 i1JHK3jk005420 Message accepted for delivery 05422 === CONNECT localhost 05420 QUIT 05420 221 2.0.0 server.adomain.com closing connection 05422 220 server.adomain.com LMTP Cyrus v2.1.16 ready 05422 LHLO server.adomain.com 05422 250-server.adomain.com 05422 250-8BITMIME 05422 250-ENHANCEDSTATUSCODES 05422 250-PIPELINING 05422 250-SIZE 05422 250-AUTH EXTERNAL 05422 250 IGNOREQUOTA 05422 MAIL From:[EMAIL PROTECTED] SIZE=723 05422 250 2.1.0 ok 05422 RCPT To:test.one 05422 DATA 05422 550-Mailbox unknown. Either there is no mailbox associated with this 05422 550-name or you do not have authorization to see it. 05422 550 5.1.1 User unknown 05422 503 5.5.1 No recipients 05422 RSET 05422 250 2.0.0 ok 05422 This is a MIME-encapsulated message 05422 05422 --i1JHK3jk005422.1077211203/server.adomain.com 05422 05422 The original message was received at Thu, 19 Feb 2004 11:20:03 -0600 05422 from [68.248.99.56] 05422 05422 - The following addresses had permanent fatal errors - 05422 [EMAIL PROTECTED] 05422 (reason: 550-Mailbox unknown. Either there is no mailbox associat 05422 05422 - Transcript of session follows - 05422 ... while talking to localhost: 05422 DATA 05422 550-Mailbox unknown. Either there is no mailbox associated with t 05422 550-name or you do not have authorization to see it. 05422 550 5.1.1 User unknown 05422 550 5.1.1 [EMAIL PROTECTED]... User unknown 05422 503 5.5.1 No recipients 05422 05422 --i1JHK3jk005422.1077211203/server.adomain.com 05422 Content-Type: message/delivery-status 05422 05422 Reporting-MTA: dns; server.adomain.com 05422 Received-From-MTA: DNS; [68.248.99.56] 05422 Arrival-Date: Thu, 19 Feb 2004 11:20:03 -0600 05422 05422 Final-Recipient: RFC822; [EMAIL PROTECTED] 05422 X-Actual-Recipient: RFC822; [EMAIL PROTECTED] 05422 Action: failed 05422 Status: 5.1.1 05422 Diagnostic-Code: SMTP; 550-Mailbox unknown. Either there is no mailbox 05422 Last-Attempt-Date: Thu, 19 Feb 2004 11:20:03 -0600 Thanks, Chris Paluch -Original Message- From: Christian Schulte [EMAIL PROTECTED] Sent: Feb 19, 2004 10:54 AM To: Christopher Paluch [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: Re: Fw: Re: Virtual domains, [EMAIL PROTECTED]: Mailbox unknown Am Donnerstag, 19. Februar 2004 17:00 schrieb Christopher Paluch: This is the output from the maillog: Feb 19 09:22:54 ecnsrc01 sendmail[4856]: i1JFMsuJ004856: to=[EMAIL PROTECTED], delay=00:00:00, xdelay=00:00:00, mailer=cyrusv2, pri=31408, relay=localhost [[UNIX: /var/imap/socket/lmtp]], dsn=5.1.1, stat=User unknown Feb 19 09:22:54 ecnsrc01 sendmail[4856]: i1JFMsuJ004856: i1JFMsuK004856: return to sender: User unknown From this I assumed it was getting to Cyrus and he was rejecting it, but I will try your suggestions and see what else I can find. Thanks. /etc/mail/mailertable: test.com � � � �cyrusv2:/var/imap/socket/lmtp Maybe you want to also put your servers name in there as well ? Like ecnsrc01.rm.posnetservices.com cyrusv2:/var/imap/socket/lmtp After cm user/[EMAIL PROTECTED] root should be able to receive mail. Of course this depends on other things and is more a guess than a solution but may work. Do you also get User unknown for a mail delivery for [EMAIL PROTECTED
Re: Fw: Re: Virtual domains, user@domain.com: Mailbox unknown
Warning: In-line response at your LMTP conversation!! Christopher Paluch [EMAIL PROTECTED] 02/19/04 07:07pm It looks like from the output of the sendmail -X, that the problem is sendmail is sending Cyrus, test.one as the mailbox, not [EMAIL PROTECTED] I've modified the sendmail.cf file so it will send the full domain, but it doesn't seem to be doing that. So am I reading this log incorrectly or is there something else I'm supposed to do to get the domain sent? 05420 EHLO ecnmail.posnetservices.com 05420 250-server.adomain.com Hello [68.248.99.56], pleased to meet you 05420 250-ENHANCEDSTATUSCODES 05420 250-PIPELINING 05420 250-8BITMIME 05420 250-SIZE 05420 250-DSN 05420 250-ETRN 05420 250-AUTH DIGEST-MD5 CRAM-MD5 05420 250-DELIVERBY 05420 250 HELP 05420 MAIL From:[EMAIL PROTECTED] SIZE=500 05420 250 2.1.0 [EMAIL PROTECTED]... Sender ok 05420 RCPT To:[EMAIL PROTECTED] 05420 250 2.1.5 [EMAIL PROTECTED]... Recipient ok 05420 DATA 05420 354 Enter mail, end with . on a line by itself 05420 Received: from web40405.mail.yahoo.com (web40405.mail.yahoo.com [66.21 05420by ecnmail.posnetservices.com (8.12.8/8.12.8) with SMTP id i1JHK 05420for [EMAIL PROTECTED]; Thu, 19 Feb 2004 11:20:02 -0600 05420 Message-ID: [EMAIL PROTECTED] 05420 Received: from [68.248.99.41] by web40405.mail.yahoo.com via HTTP; Thu 05420 Date: Thu, 19 Feb 2004 09:20:01 -0800 (PST) 05420 From: [EMAIL PROTECTED] 05420 Subject: Kill me now 05420 To: [EMAIL PROTECTED] 05420 MIME-Version: 1.0 05420 Content-Type: text/plain; charset=us-ascii 05420 05420 Kill me now. 05420 05420 __ 05420 Do you Yahoo!? 05420 Yahoo! Mail SpamGuard - Read only the mail you want. 05420 http://antispam.yahoo.com/tools 05420 . 05420 250 2.0.0 i1JHK3jk005420 Message accepted for delivery 05422 === CONNECT localhost 05420 QUIT 05420 221 2.0.0 server.adomain.com closing connection 05422 220 server.adomain.com LMTP Cyrus v2.1.16 ready This might give us a valuable clue. Virtual domain support is _only_ in 2.2.x; however, this still does not explain why sendmail is not sending the full address along! 05422 LHLO server.adomain.com 05422 250-server.adomain.com 05422 250-8BITMIME 05422 250-ENHANCEDSTATUSCODES 05422 250-PIPELINING 05422 250-SIZE 05422 250-AUTH EXTERNAL 05422 250 IGNOREQUOTA 05422 MAIL From:[EMAIL PROTECTED] SIZE=723 05422 250 2.1.0 ok 05422 RCPT To:test.one 05422 DATA 05422 550-Mailbox unknown. Either there is no mailbox associated with this 05422 550-name or you do not have authorization to see it. 05422 550 5.1.1 User unknown 05422 503 5.5.1 No recipients 05422 RSET 05422 250 2.0.0 ok 05422 This is a MIME-encapsulated message 05422 05422 --i1JHK3jk005422.1077211203/server.adomain.com 05422 05422 The original message was received at Thu, 19 Feb 2004 11:20:03 -0600 05422 from [68.248.99.56] 05422 05422 - The following addresses had permanent fatal errors - 05422 [EMAIL PROTECTED] 05422 (reason: 550-Mailbox unknown. Either there is no mailbox associat 05422 05422 - Transcript of session follows - 05422 ... while talking to localhost: 05422 DATA 05422 550-Mailbox unknown. Either there is no mailbox associated with t 05422 550-name or you do not have authorization to see it. 05422 550 5.1.1 User unknown 05422 550 5.1.1 [EMAIL PROTECTED]... User unknown 05422 503 5.5.1 No recipients 05422 05422 --i1JHK3jk005422.1077211203/server.adomain.com 05422 Content-Type: message/delivery-status 05422 05422 Reporting-MTA: dns; server.adomain.com 05422 Received-From-MTA: DNS; [68.248.99.56] 05422 Arrival-Date: Thu, 19 Feb 2004 11:20:03 -0600 05422 05422 Final-Recipient: RFC822; [EMAIL PROTECTED] 05422 X-Actual-Recipient: RFC822; [EMAIL PROTECTED] 05422 Action: failed 05422 Status: 5.1.1 05422 Diagnostic-Code: SMTP; 550-Mailbox unknown. Either there is no mailbox 05422 Last-Attempt-Date: Thu, 19 Feb 2004 11:20:03 -0600 Thanks, Chris Paluch -Original Message- From: Christian Schulte [EMAIL PROTECTED] Sent: Feb 19, 2004 10:54 AM To: Christopher Paluch [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: Re: Fw: Re: Virtual domains, [EMAIL PROTECTED]: Mailbox unknown Am Donnerstag, 19. Februar 2004 17:00 schrieb Christopher Paluch: This is the output from the maillog: Feb 19 09:22:54 ecnsrc01 sendmail[4856]: i1JFMsuJ004856: to=[EMAIL PROTECTED], delay=00:00:00, xdelay=00:00:00, mailer=cyrusv2, pri=31408, relay=localhost [[UNIX: /var/imap/socket/lmtp]], dsn=5.1.1, stat=User unknown Feb 19 09:22:54 ecnsrc01 sendmail[4856]: i1JFMsuJ004856: i1JFMsuK004856: return to sender: User unknown From this I assumed it was getting to Cyrus and he was rejecting it, but I will try your suggestions and see what else I can find. Thanks. /etc/mail/mailertable: test.com � � � �cyrusv2:/var/imap/socket/lmtp Maybe you want to also put your servers name in there as well ? Like ecnsrc01
Re: Fw: Re: Virtual domains, user@domain.com: Mailbox unknown
@$#%?! I thought I was running the latest version of Cyrus. I am a doofus. Let me install the 2.2.3 version and see what happens. I will send out an update in a day or two on the results of this. Thanks everyone. -Original Message- From: Mike O'Rourke [EMAIL PROTECTED] Sent: Feb 19, 2004 1:19 PM To: [EMAIL PROTECTED], [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: Re: Fw: Re: Virtual domains, [EMAIL PROTECTED]: Mailbox unknown 05420 221 2.0.0 server.adomain.com closing connection 05422 220 server.adomain.com LMTP Cyrus v2.1.16 ready This might give us a valuable clue. Virtual domain support is _only_ in 2.2.x; however, this still does not explain why sendmail is not sending the full address along! --- 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: Fw: Re: Virtual domains, user@domain.com: Mailbox unknown
echo =M|sendmail -bt|grep cyrus mailer 3 (cyrusv2): P=[IPC] S=EnvFromSMTP/HdrFromL R=EnvToL/HdrToL M=0 U=0:0 F=/:@ADFMXlmnqsz| L=0 E=\r\n T=DNS/RFC822/SMTP r=100 A=FILE /var/imap/socket/lmtp It looks like my overrides for S= and R= aren't working, which is causing this problem. Along with upgrading Cyrus, I will try to figure out why this isn't happening eventhough it seems to be in my sendmail.mc and sendmail.cf files. -Original Message- From: Andrzej Filip [EMAIL PROTECTED] Sent: Feb 19, 2004 12:54 PM To: [EMAIL PROTECTED] Cc: Christopher Paluch [EMAIL PROTECTED] Subject: Re: Fw: Re: Virtual domains, [EMAIL PROTECTED]: Mailbox unknown Christopher Paluch wrote: It looks like from the output of the sendmail -X, that the problem is sendmail is sending Cyrus, test.one as the mailbox, not [EMAIL PROTECTED] I've modified the sendmail.cf file so it will send the full domain, but it doesn't seem to be doing that. So am I reading this log incorrectly or is there something else I'm supposed to do to get the domain sent? 05420 EHLO ecnmail.posnetservices.com 05420 250-server.adomain.com Hello [68.248.99.56], pleased to meet you 05420 250-ENHANCEDSTATUSCODES 05420 250-PIPELINING 05420 250-8BITMIME 05420 250-SIZE 05420 250-DSN 05420 250-ETRN 05420 250-AUTH DIGEST-MD5 CRAM-MD5 05420 250-DELIVERBY 05420 250 HELP 05420 MAIL From:[EMAIL PROTECTED] SIZE=500 05420 250 2.1.0 [EMAIL PROTECTED]... Sender ok 05420 RCPT To:[EMAIL PROTECTED] 05420 250 2.1.5 [EMAIL PROTECTED]... Recipient ok 05420 DATA 05420 354 Enter mail, end with . on a line by itself 05420 Received: from web40405.mail.yahoo.com (web40405.mail.yahoo.com [66.21 05420by ecnmail.posnetservices.com (8.12.8/8.12.8) with SMTP id i1JHK 05420for [EMAIL PROTECTED]; Thu, 19 Feb 2004 11:20:02 -0600 05420 Message-ID: [EMAIL PROTECTED] 05420 Received: from [68.248.99.41] by web40405.mail.yahoo.com via HTTP; Thu 05420 Date: Thu, 19 Feb 2004 09:20:01 -0800 (PST) 05420 From: [EMAIL PROTECTED] 05420 Subject: Kill me now 05420 To: [EMAIL PROTECTED] 05420 MIME-Version: 1.0 05420 Content-Type: text/plain; charset=us-ascii 05420 05420 Kill me now. 05420 05420 __ 05420 Do you Yahoo!? 05420 Yahoo! Mail SpamGuard - Read only the mail you want. 05420 http://antispam.yahoo.com/tools 05420 . 05420 250 2.0.0 i1JHK3jk005420 Message accepted for delivery 05422 === CONNECT localhost 05420 QUIT 05420 221 2.0.0 server.adomain.com closing connection 05422 220 server.adomain.com LMTP Cyrus v2.1.16 ready 05422 LHLO server.adomain.com 05422 250-server.adomain.com 05422 250-8BITMIME 05422 250-ENHANCEDSTATUSCODES 05422 250-PIPELINING 05422 250-SIZE 05422 250-AUTH EXTERNAL 05422 250 IGNOREQUOTA 05422 MAIL From:[EMAIL PROTECTED] SIZE=723 05422 250 2.1.0 ok 05422 RCPT To:test.one 05422 DATA 05422 550-Mailbox unknown. Either there is no mailbox associated with this 05422 550-name or you do not have authorization to see it. 05422 550 5.1.1 User unknown 05422 503 5.5.1 No recipients 05422 RSET 05422 250 2.0.0 ok 05422 This is a MIME-encapsulated message 05422 05422 --i1JHK3jk005422.1077211203/server.adomain.com 05422 05422 The original message was received at Thu, 19 Feb 2004 11:20:03 -0600 05422 from [68.248.99.56] 05422 05422 - The following addresses had permanent fatal errors - 05422 [EMAIL PROTECTED] 05422 (reason: 550-Mailbox unknown. Either there is no mailbox associat 05422 05422 - Transcript of session follows - 05422 ... while talking to localhost: 05422 DATA 05422 550-Mailbox unknown. Either there is no mailbox associated with t 05422 550-name or you do not have authorization to see it. 05422 550 5.1.1 User unknown 05422 550 5.1.1 [EMAIL PROTECTED]... User unknown 05422 503 5.5.1 No recipients 05422 05422 --i1JHK3jk005422.1077211203/server.adomain.com 05422 Content-Type: message/delivery-status 05422 05422 Reporting-MTA: dns; server.adomain.com 05422 Received-From-MTA: DNS; [68.248.99.56] 05422 Arrival-Date: Thu, 19 Feb 2004 11:20:03 -0600 05422 05422 Final-Recipient: RFC822; [EMAIL PROTECTED] 05422 X-Actual-Recipient: RFC822; [EMAIL PROTECTED] 05422 Action: failed 05422 Status: 5.1.1 05422 Diagnostic-Code: SMTP; 550-Mailbox unknown. Either there is no mailbox 05422 Last-Attempt-Date: Thu, 19 Feb 2004 11:20:03 -0600 Thanks, Chris Paluch -Original Message- From: Christian Schulte [EMAIL PROTECTED] Sent: Feb 19, 2004 10:54 AM To: Christopher Paluch [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: Re: Fw: Re: Virtual domains, [EMAIL PROTECTED]: Mailbox unknown Am Donnerstag, 19. Februar 2004 17:00 schrieb Christopher Paluch: This is the output from the maillog: Feb 19 09:22:54 ecnsrc01 sendmail[4856]: i1JFMsuJ004856: to=[EMAIL PROTECTED], delay=00:00:00, xdelay=00:00:00, mailer
Re: Fw: Re: Virtual domains, user@domain.com: Mailbox unknown
Christopher Paluch wrote: echo =M|sendmail -bt|grep cyrus mailer 3 (cyrusv2): P=[IPC] S=EnvFromSMTP/HdrFromL R=EnvToL/HdrToL M=0 U=0:0 F=/:@ADFMXlmnqsz| L=0 E=\r\n T=DNS/RFC822/SMTP r=100 A=FILE /var/imap/socket/lmtp It looks like my overrides for S= and R= aren't working, which is causing this problem. Along with upgrading Cyrus, I will try to figure out why this isn't happening eventhough it seems to be in my sendmail.mc and sendmail.cf files. [...] I suggest you copuing cf/feature/cyrusv2.m4 to cf/feature/cyrusv3.m4 and modyfying R= in cyrusv3.m4 [use cyrusv3 mailer instead of cyrusv2] -- Andrzej [en:Andrew] Adam Filip http://anfi.webhop.net backup: [EMAIL PROTECTED] --- Home Page: http://asg.web.cmu.edu/cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html
Re: Virtual domains, user@domain.com: Mailbox unknown
Christopher Paluch [EMAIL PROTECTED] 02/16/04 07:50pm -Original Message- From: Mike O'Rourke [EMAIL PROTECTED] Sent: Feb 16, 2004 12:42 PM To: [EMAIL PROTECTED] Subject: Re: Virtual domains, [EMAIL PROTECTED]: Mailbox unknown Christopher Paluch [EMAIL PROTECTED] 02/16/04 05:04pm I to am having the same problem.I have a user called [EMAIL PROTECTED] and when I do a cyradm lm command it is listed. In my imapd.conf file, I have specified the following parameters: unixhierarchysep: yes virtdomains: yes defaultdomain: nottest.com loginrealms: nottest.com test.com I have also modifed my sendmail.cf so the cyrusv2 listing has the following parameters: S=EnvFromSMTP/HdrFromSMTP, R=EnvToSMTP When I send an email to that user, it gets through Sendmail okay, who sends it on to cyrusv2 - who rejects it for the same errors as below. Does anyone have any suggestions to what I've forgotten to do, that would be causing this problem? Also does anyone know what the proper way is to specify the cyrusv2 options in sendmail.mc is? Thanks for any assistance! -Chris Paluch Hi Chris, Can you provide some further info, such as extracts of /var/log/mail, /var/log/imapd.log, your sendmail.mc file, your /etc/imapd.conf (esecially the lines that deal with lmtp),your /etc/cyrus.conf (the lmtp lines) and the results of an lam command in cyradm? In your sendmail.mc file, you need two things: a line that says: define(`confLOCAL_MAILER', `cyrusv2')dnl and the contents of cf/mailer/cyrusv2.m4 put at the end of your sendmail.mc file (in that definition, you can change the S=... line so that when you regenerate a new sendmail.cf file, you will not have to remember to change that again.) Mike. --- Here is an excerpt from my mail.log: Feb 13 14:51:17 ecnsrc01 sendmail[16007]: i1DKpHVa016007: from=[EMAIL PROTECTED], size= 757, class=0, nrcpts=1, msgid=[EMAIL PROTECTED], proto=ESMTP, daemon=MTA, relay=[68.248.99.56] Feb 13 14:51:17 ecnsrc01 sendmail[16009]: i1DKpHVa016007: to=[EMAIL PROTECTED], delay=00:00:00, xdelay=00:00:00, mailer=cyrusv2, pri=30577, relay=localhost, dsn=5.1.1, stat=User unknown Feb 13 14:51:17 ecnsrc01 sendmail[16009]: i1DKpHVa016007: i1DKpHVa016009: DSN: User unknown Feb 13 14:51:23 ecnsrc01 sendmail[16009]: i1DKpHVa016009: to=[EMAIL PROTECTED], delay= 00:00:06, xdelay=00:00:06, mailer=esmtp, pri=31781, relay=mx1.mail.yahoo.com. [64.156.215.6], dsn= 2.0.0, stat=Sent (ok dirdel) Here is the corresponding imapd.log: Feb 13 14:42:24 ecnsrc01 master[16001]: about to exec /usr/cyrus/bin/ctl_cyrusdbFeb 13 14:42:24 ecnsrc01 ctl_cyrusdb[16001]: checkpointing cyrus databases Feb 13 14:42:25 ecnsrc01 ctl_cyrusdb[16001]: archiving log file: /var/imap/db/log.01 Feb 13 14:42:27 ecnsrc01 ctl_cyrusdb[16001]: archiving database file: /var/imap/mailboxes.db Feb 13 14:42:27 ecnsrc01 ctl_cyrusdb[16001]: archiving log file: /var/imap/db/log.01 Feb 13 14:42:28 ecnsrc01 ctl_cyrusdb[16001]: done checkpointing cyrus databases Feb 13 14:42:28 ecnsrc01 master[15527]: process 16001 exited, status 0 Feb 13 14:51:17 ecnsrc01 master[16010]: about to exec /usr/cyrus/bin/lmtpd Feb 13 14:51:17 ecnsrc01 lmtpunix[16010]: executed Feb 13 14:51:17 ecnsrc01 lmtpd[16010]: accepted connection Feb 13 14:51:17 ecnsrc01 lmtpd[16010]: lmtp connection preauth'd as postman Feb 13 14:52:22 ecnsrc01 master[15527]: process 16010 exited, status 0 My imapd.conf doesn't contain any parameters having to do with lmtp. Here is a copy of my cyrus.conf (which I haven't changed): # standard standalone server implementation START { # do not delete this entry! recover cmd=ctl_cyrusdb -r # this is only necessary if using idled for IMAP IDLE # idledcmd=idled } # UNIX sockets start with a slash and are put into /var/imap/socket SERVICES { # add or remove based on preferences imap cmd=imapd listen=imap prefork=0 imaps cmd=imapd -s listen=imaps prefork=0 pop3 cmd=pop3d listen=pop3 prefork=0 pop3s cmd=pop3d -s listen=pop3s prefork=0 sieve cmd=timsieved listen=sieve prefork=0 # at least one LMTP is required for delivery # lmtp cmd=lmtpd listen=lmtp prefork=0 lmtpunix cmd=lmtpd listen=/var/imap/socket/lmtp prefork=0 # this is only necessary if using notifications # notify cmd=notifyd listen=/var/imap/socket/notify proto=udp prefork=1 } EVENTS { # this is required checkpointcmd=ctl_cyrusdb -c period=30 # this is only necessary if using duplicate delivery suppression delprune cmd=ctl_deliver -E 3 at=0400 # this is only necessary if caching TLS sessions tlsprune cmd=tls_prune at=0400 } lam user/[EMAIL PROTECTED] [EMAIL PROTECTED] lrswipcda cyrus lrswipcda Thanks, Chris Paluch Hi Chris, Admitedly, I am using an older version of Cyrus-IMAPD (2.2.0-ALPHA), don't blast me about that -- I have to upgrade the whole system (SuSE 7.1 AXP) so I can get
Re: Virtual domains, user@domain.com: Mailbox unknown
Let me throw some more wrenches into this. I didn't mention this earlier because I didn't think they were part of this problem, since according to the log the email was making it to cyrus, but maybe I'm wrong. I am trying to run sendmail, procmail and cyrus, because I still want some local non-cyrus email to occur. So I found this method somewhere on the web (I wish I could remember where) that told me to the following: In local-host-names: test.com In virtusertable: [EMAIL PROTECTED] [EMAIL PROTECTED] In mailertable: IMAPcyrusv2:localhost .IMAP cyrusv2:%1 I tried removing the entry from local-host-names, and I see the email doesn't get to cyrus anymore. Here is my sendmail.cf: Mcyrusv2, P=[IPC], F=lsDFMnqXzA@/:|m, S=EnvFromSMTP/HdrFromSMTP, R=EnvToSMTP, E=\r\n, T=DNS/RFC822/SMTP, A=FILE /var/imap/socket/lmtp Thanks, Chris Paluch -Original Message- From: Mike O'Rourke [EMAIL PROTECTED] Sent: Feb 17, 2004 7:21 AM To: [EMAIL PROTECTED] Subject: Re: Virtual domains, [EMAIL PROTECTED]: Mailbox unknown Christopher Paluch [EMAIL PROTECTED] 02/16/04 07:50pm -Original Message- From: Mike O'Rourke [EMAIL PROTECTED] Sent: Feb 16, 2004 12:42 PM To: [EMAIL PROTECTED] Subject: Re: Virtual domains, [EMAIL PROTECTED]: Mailbox unknown Christopher Paluch [EMAIL PROTECTED] 02/16/04 05:04pm I to am having the same problem.I have a user called [EMAIL PROTECTED] and when I do a cyradm lm command it is listed. In my imapd.conf file, I have specified the following parameters: unixhierarchysep: yes virtdomains: yes defaultdomain: nottest.com loginrealms: nottest.com test.com I have also modifed my sendmail.cf so the cyrusv2 listing has the following parameters: S=EnvFromSMTP/HdrFromSMTP, R=EnvToSMTP When I send an email to that user, it gets through Sendmail okay, who sends it on to cyrusv2 - who rejects it for the same errors as below. Does anyone have any suggestions to what I've forgotten to do, that would be causing this problem? Also does anyone know what the proper way is to specify the cyrusv2 options in sendmail.mc is? Thanks for any assistance! -Chris Paluch Hi Chris, Can you provide some further info, such as extracts of /var/log/mail, /var/log/imapd.log, your sendmail.mc file, your /etc/imapd.conf (esecially the lines that deal with lmtp),your /etc/cyrus.conf (the lmtp lines) and the results of an lam command in cyradm? In your sendmail.mc file, you need two things: a line that says: define(`confLOCAL_MAILER', `cyrusv2')dnl and the contents of cf/mailer/cyrusv2.m4 put at the end of your sendmail.mc file (in that definition, you can change the S=... line so that when you regenerate a new sendmail.cf file, you will not have to remember to change that again.) Mike. --- Here is an excerpt from my mail.log: Feb 13 14:51:17 ecnsrc01 sendmail[16007]: i1DKpHVa016007: from=[EMAIL PROTECTED], size= 757, class=0, nrcpts=1, msgid=[EMAIL PROTECTED], proto=ESMTP, daemon=MTA, relay=[68.248.99.56] Feb 13 14:51:17 ecnsrc01 sendmail[16009]: i1DKpHVa016007: to=[EMAIL PROTECTED], delay=00:00:00, xdelay=00:00:00, mailer=cyrusv2, pri=30577, relay=localhost, dsn=5.1.1, stat=User unknown Feb 13 14:51:17 ecnsrc01 sendmail[16009]: i1DKpHVa016007: i1DKpHVa016009: DSN: User unknown Feb 13 14:51:23 ecnsrc01 sendmail[16009]: i1DKpHVa016009: to=[EMAIL PROTECTED], delay= 00:00:06, xdelay=00:00:06, mailer=esmtp, pri=31781, relay=mx1.mail.yahoo.com. [64.156.215.6], dsn= 2.0.0, stat=Sent (ok dirdel) Here is the corresponding imapd.log: Feb 13 14:42:24 ecnsrc01 master[16001]: about to exec /usr/cyrus/bin/ctl_cyrusdbFeb 13 14:42:24 ecnsrc01 ctl_cyrusdb[16001]: checkpointing cyrus databases Feb 13 14:42:25 ecnsrc01 ctl_cyrusdb[16001]: archiving log file: /var/imap/db/log.01 Feb 13 14:42:27 ecnsrc01 ctl_cyrusdb[16001]: archiving database file: /var/imap/mailboxes.db Feb 13 14:42:27 ecnsrc01 ctl_cyrusdb[16001]: archiving log file: /var/imap/db/log.01 Feb 13 14:42:28 ecnsrc01 ctl_cyrusdb[16001]: done checkpointing cyrus databases Feb 13 14:42:28 ecnsrc01 master[15527]: process 16001 exited, status 0 Feb 13 14:51:17 ecnsrc01 master[16010]: about to exec /usr/cyrus/bin/lmtpd Feb 13 14:51:17 ecnsrc01 lmtpunix[16010]: executed Feb 13 14:51:17 ecnsrc01 lmtpd[16010]: accepted connection Feb 13 14:51:17 ecnsrc01 lmtpd[16010]: lmtp connection preauth'd as postman Feb 13 14:52:22 ecnsrc01 master[15527]: process 16010 exited, status 0 My imapd.conf doesn't contain any parameters having to do with lmtp. Here is a copy of my cyrus.conf (which I haven't changed): # standard standalone server implementation START { # do not delete this entry! recover cmd=ctl_cyrusdb -r # this is only necessary if using idled for IMAP IDLE # idledcmd=idled } # UNIX sockets start with a slash and are put into /var/imap/socket SERVICES { # add or remove
Re: Virtual domains, user@domain.com: Mailbox unknown
I to am having the same problem.I have a user called [EMAIL PROTECTED] and when I do a cyradm lm command it is listed. In my imapd.conf file, I have specified the following parameters: unixhierarchysep: yes virtdomains: yes defaultdomain: nottest.com loginrealms: nottest.com test.com I have also modifed my sendmail.cf so the cyrusv2 listing has the following parameters: S=EnvFromSMTP/HdrFromSMTP, R=EnvToSMTP When I send an email to that user, it gets through Sendmail okay, who sends it on to cyrusv2 - who rejects it for the same errors as below. Does anyone have any suggestions to what I've forgotten to do, that would be causing this problem? Also does anyone know what the proper way is to specify the cyrusv2 options in sendmail.mc is? Thanks for any assistance! -Chris Paluch -Original Message- From: Henrik Troeng [EMAIL PROTECTED] Sent: Feb 16, 2004 6:17 AM To: [EMAIL PROTECTED] Subject: Virtual domains, [EMAIL PROTECTED]: Mailbox unknown Hi all, I have a problem, I use multiple domains but for users I create with the domain specified, for example [EMAIL PROTECTED] it can't receive mail. When I try to send to this user I get back a reply from Mailer-Daemon that says 550-Mailbox Unknown. Either there is no mailbox associated 550-name or you don't have authorization to see it. If I create the user user.postmaster it works fine, but the user [EMAIL PROTECTED] wont accept any mail. Here is my imapd.conf: configdirectory: /var/imap partition-default: /var/spool/imap admins: cyrus root Henrik sasl_pwcheck_method: saslauthd sasl_mech_list: PLAIN LOGIN sendmail: /usr/sbin/sendmail servername: htc.troeng.com virtdomains: yes defaultdomain: troeng.com I have set up the domain in the local-host-names config file for sendmail. Here is the error message: The original message was received at Mon, 16 Feb 2004 12:47:04 +0100 from lmdeliver01.st1.spray.net [212.78.202.210] - The following addresses had permanent fatal errors - root (reason: 550-Mailbox unknown. Either there is no mailbox associated with this) (expanded from: [EMAIL PROTECTED]) - Transcript of session follows - ... while talking to localhost: DATA 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 550 5.1.1 root... User unknown 503 5.5.1 No recipients Regards Henrik --- 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: Virtual domains, user@domain.com: Mailbox unknown
From: Henrik Troeng [EMAIL PROTECTED] Sent: Feb 16, 2004 6:17 AM To: [EMAIL PROTECTED] Subject: Virtual domains, [EMAIL PROTECTED]: Mailbox unknown Hi all, I have a problem, I use multiple domains but for users I create with the domain specified, for example [EMAIL PROTECTED] it can't receive mail. When I try to send to this user I get back a reply from Mailer-Daemon that says 550-Mailbox Unknown. Either there is no mailbox associated 550-name or you don't have authorization to see it. If I create the user user.postmaster it works fine, but the user [EMAIL PROTECTED] wont accept any mail. Here is my imapd.conf: configdirectory: /var/imap partition-default: /var/spool/imap admins: cyrus root Henrik sasl_pwcheck_method: saslauthd sasl_mech_list: PLAIN LOGIN sendmail: /usr/sbin/sendmail servername: htc.troeng.com virtdomains: yes defaultdomain: troeng.com I have set up the domain in the local-host-names config file for sendmail. Here is the error message: The original message was received at Mon, 16 Feb 2004 12:47:04 +0100 from lmdeliver01.st1.spray.net [212.78.202.210] - The following addresses had permanent fatal errors - root (reason: 550-Mailbox unknown. Either there is no mailbox associated with this) (expanded from: [EMAIL PROTECTED]) - Transcript of session follows - ... while talking to localhost: DATA 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 550 5.1.1 root... User unknown 503 5.5.1 No recipients Henrik Hi Henrik, You evidently have postmaster aliased to root in /etc/mail/aliases (a common; nay default alias in sendmail), so sendmail will never try to deliver to postmaster, but only to root (as evidenced by the (expanded from: [EMAIL PROTECTED]) line). Either change the alias to send it to the correct user (don't forget to re-build the aliases database!), or delete it (ditto on the don't forget) and let it go to the postmaster mailbox you have created. Mike. --- 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: Virtual domains, user@domain.com: Mailbox unknown
Christopher Paluch [EMAIL PROTECTED] 02/16/04 05:04pm I to am having the same problem.I have a user called [EMAIL PROTECTED] and when I do a cyradm lm command it is listed. In my imapd.conf file, I have specified the following parameters: unixhierarchysep: yes virtdomains: yes defaultdomain: nottest.com loginrealms: nottest.com test.com I have also modifed my sendmail.cf so the cyrusv2 listing has the following parameters: S=EnvFromSMTP/HdrFromSMTP, R=EnvToSMTP When I send an email to that user, it gets through Sendmail okay, who sends it on to cyrusv2 - who rejects it for the same errors as below. Does anyone have any suggestions to what I've forgotten to do, that would be causing this problem? Also does anyone know what the proper way is to specify the cyrusv2 options in sendmail.mc is? Thanks for any assistance! -Chris Paluch Hi Chris, Can you provide some further info, such as extracts of /var/log/mail, /var/log/imapd.log, your sendmail.mc file, your /etc/imapd.conf (esecially the lines that deal with lmtp),your /etc/cyrus.conf (the lmtp lines) and the results of an lam command in cyradm? In your sendmail.mc file, you need two things: a line that says: define(`confLOCAL_MAILER', `cyrusv2')dnl and the contents of cf/mailer/cyrusv2.m4 put at the end of your sendmail.mc file (in that definition, you can change the S=... line so that when you regenerate a new sendmail.cf file, you will not have to remember to change that again.) Mike. --- 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: Virtual domains, user@domain.com: Mailbox unknown
Here is an excerpt from my mail.log: Feb 13 14:51:17 ecnsrc01 sendmail[16007]: i1DKpHVa016007: from=[EMAIL PROTECTED], size=757, class=0, nrcpts=1, msgid=[EMAIL PROTECTED], proto=ESMTP, daemon=MTA, relay=[68.248.99.56] Feb 13 14:51:17 ecnsrc01 sendmail[16009]: i1DKpHVa016007: to=[EMAIL PROTECTED], delay=00:00:00, xdelay=00:00:00, mailer=cyrusv2, pri=30577, relay=localhost, dsn=5.1.1, stat=User unknown Feb 13 14:51:17 ecnsrc01 sendmail[16009]: i1DKpHVa016007: i1DKpHVa016009: DSN: User unknown Feb 13 14:51:23 ecnsrc01 sendmail[16009]: i1DKpHVa016009: to=[EMAIL PROTECTED], delay=00:00:06, xdelay=00:00:06, mailer=esmtp, pri=31781, relay=mx1.mail.yahoo.com. [64.156.215.6], dsn=2.0.0, stat=Sent (ok dirdel) Here is the corresponding imapd.log: Feb 13 14:42:24 ecnsrc01 master[16001]: about to exec /usr/cyrus/bin/ctl_cyrusdbFeb 13 14:42:24 ecnsrc01 ctl_cyrusdb[16001]: checkpointing cyrus databases Feb 13 14:42:25 ecnsrc01 ctl_cyrusdb[16001]: archiving log file: /var/imap/db/log.01 Feb 13 14:42:27 ecnsrc01 ctl_cyrusdb[16001]: archiving database file: /var/imap/mailboxes.db Feb 13 14:42:27 ecnsrc01 ctl_cyrusdb[16001]: archiving log file: /var/imap/db/log.01 Feb 13 14:42:28 ecnsrc01 ctl_cyrusdb[16001]: done checkpointing cyrus databases Feb 13 14:42:28 ecnsrc01 master[15527]: process 16001 exited, status 0 Feb 13 14:51:17 ecnsrc01 master[16010]: about to exec /usr/cyrus/bin/lmtpd Feb 13 14:51:17 ecnsrc01 lmtpunix[16010]: executed Feb 13 14:51:17 ecnsrc01 lmtpd[16010]: accepted connection Feb 13 14:51:17 ecnsrc01 lmtpd[16010]: lmtp connection preauth'd as postman Feb 13 14:52:22 ecnsrc01 master[15527]: process 16010 exited, status 0 My imapd.conf doesn't contain any parameters having to do with lmtp. Here is a copy of my cyrus.conf (which I haven't changed): # standard standalone server implementation START { # do not delete this entry! recover cmd=ctl_cyrusdb -r # this is only necessary if using idled for IMAP IDLE # idledcmd=idled } # UNIX sockets start with a slash and are put into /var/imap/socket SERVICES { # add or remove based on preferences imap cmd=imapd listen=imap prefork=0 imaps cmd=imapd -s listen=imaps prefork=0 pop3 cmd=pop3d listen=pop3 prefork=0 pop3s cmd=pop3d -s listen=pop3s prefork=0 sieve cmd=timsieved listen=sieve prefork=0 # at least one LMTP is required for delivery # lmtp cmd=lmtpd listen=lmtp prefork=0 lmtpunix cmd=lmtpd listen=/var/imap/socket/lmtp prefork=0 # this is only necessary if using notifications # notify cmd=notifyd listen=/var/imap/socket/notify proto=udp prefork=1 } EVENTS { # this is required checkpointcmd=ctl_cyrusdb -c period=30 # this is only necessary if using duplicate delivery suppression delprune cmd=ctl_deliver -E 3 at=0400 # this is only necessary if caching TLS sessions tlsprune cmd=tls_prune at=0400 } lam user/[EMAIL PROTECTED] [EMAIL PROTECTED] lrswipcda cyrus lrswipcda Thanks, Chris Paluch -Original Message- From: Mike O'Rourke [EMAIL PROTECTED] Sent: Feb 16, 2004 12:42 PM To: [EMAIL PROTECTED] Subject: Re: Virtual domains, [EMAIL PROTECTED]: Mailbox unknown Christopher Paluch [EMAIL PROTECTED] 02/16/04 05:04pm I to am having the same problem.I have a user called [EMAIL PROTECTED] and when I do a cyradm lm command it is listed. In my imapd.conf file, I have specified the following parameters: unixhierarchysep: yes virtdomains: yes defaultdomain: nottest.com loginrealms: nottest.com test.com I have also modifed my sendmail.cf so the cyrusv2 listing has the following parameters: S=EnvFromSMTP/HdrFromSMTP, R=EnvToSMTP When I send an email to that user, it gets through Sendmail okay, who sends it on to cyrusv2 - who rejects it for the same errors as below. Does anyone have any suggestions to what I've forgotten to do, that would be causing this problem? Also does anyone know what the proper way is to specify the cyrusv2 options in sendmail.mc is? Thanks for any assistance! -Chris Paluch Hi Chris, Can you provide some further info, such as extracts of /var/log/mail, /var/log/imapd.log, your sendmail.mc file, your /etc/imapd.conf (esecially the lines that deal with lmtp),your /etc/cyrus.conf (the lmtp lines) and the results of an lam command in cyradm? In your sendmail.mc file, you need two things: a line that says: define(`confLOCAL_MAILER', `cyrusv2')dnl and the contents of cf/mailer/cyrusv2.m4 put at the end of your sendmail.mc file (in that definition, you can change the S=... line so that when you regenerate a new sendmail.cf file, you will not have to remember to change that again.) Mike. --- 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 --- Home Page: http://asg.web.cmu.edu/cyrus Wiki/FAQ: http
Re: Virtual Domains and aliases.
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
Re: Virtual Domains and aliases.
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 2.1.15 - 2.2BETA
On Monday 24 November 2003 21:15, Robert Harris wrote: several good ideas...nothing that pans out yet but id find out that the virtual domains are looping to the default domain (admin wise an mailbox wise) unexplainablyany more insights greatlt appreciated... :} subquery... I do have virtdomains: yes set in imapd.conf if it was off or not acknowledged as being set would that cause the aforementioned problem? --Robert configdirectory: /var/imap partition-default: /var/spool/imap admins: admin [EMAIL PROTECTED] [EMAIL PROTECTED] virtdomains: yes defaultdomain: exampleisp.net Here's my imapd.conf for test purposes on test server: (I suppose you have the line sasl_pwcheck_method: auxprop too) for simple testing: configdirectory: /var/imap partition-default: /var/spool/imap admins: cyrus [EMAIL PROTECTED] [EMAIL PROTECTED] sasl_pwcheck_method: auxprop virtdomains: yes defaultdomain: localdomain.net with saslpasswd2 create admin cyrus: saslpasswd2 -c cyrus (asks for passwd etc.) now you can login in with: cyradm --auth plain --user cyrus localhost and when you do lm you see e.g.: [EMAIL PROTECTED] (\HasNoChildren) [EMAIL PROTECTED] (\HasNoChildren) [EMAIL PROTECTED] (\HasNoChildren) [EMAIL PROTECTED] (\HasNoChildren) [EMAIL PROTECTED] (\HasNoChildren) etc.. you can create mailboxes with cm [EMAIL PROTECTED] lm: [EMAIL PROTECTED] (\HasNoChildren) [EMAIL PROTECTED] (\HasNoChildren) [EMAIL PROTECTED] (\HasNoChildren) [EMAIL PROTECTED] (\HasNoChildren) [EMAIL PROTECTED] (\HasNoChildren) [EMAIL PROTECTED] (\HasNoChildren) for the different domains. create admins for the different domains with: saslpasswd2 -c -u unetix.net mailadmin etc.. if you login as cyradm --auth plain --user [EMAIL PROTECTED] localhost and you do lm you see: user.unetix (\HasNoChildren) only the mailboxes for that domain create mailbix with cm: cm user.guest2 lm : user.guest2 (\HasNoChildren) user.unetix (\HasNoChildren) exit and login with cyradm --auth plain --user cyrus localhost lm gives: [EMAIL PROTECTED] (\HasNoChildren) [EMAIL PROTECTED] (\HasNoChildren) [EMAIL PROTECTED] (\HasNoChildren) [EMAIL PROTECTED] (\HasNoChildren) [EMAIL PROTECTED] (\HasNoChildren) [EMAIL PROTECTED] (\HasNoChildren) [EMAIL PROTECTED] (\HasNoChildren) so , I suppose , cyrus is the overall admin, you may create create mailboxes for all domains in the form of cm user.username@domain mailadmins for the different domains login with --user mailadmin@domain and see and create only mailboxes in their domain without the domain extension. What doesn't work is the default domain, I have that line in the imapd.conf too but I think you might as well leave it out because you can't do anything with it. So forget about the default domain , it doesn't work, or it works completely different from what one expects which is the same. Hope this helps wim This e-mail was scanned by RAV Antivirus!
RE: virtual domains 2.1.15 - 2.2BETA
Don't I feel Baa sheepish ttp Thanks go to all those who helped with the vdom problems I was haveing.. now solved... appears that 2.1.15-16 does not have vdom enabled when I finally got 2.2.2BETA compiled started accepting the vdoms :} now alls left to figure out is authentication (bed I tested on doesn't havd LDAP installed and unix pwfiles don't allow a . in user records...:} othertestbed still has 2.1.15 installed er atleast it does for the next 30 mins while I prepare it for the update to beta status..) --Robert
Re: virtual domains 2.1.15 - 2.2BETA
On Monday 24 November 2003 05:42, Robert Harris wrote: ok.. Ive been hashing out quite a few diffrernt ways and can just not seam to get firtual domains working according to FAQ one needs to set the following in the imapd.conf file configdirectory: /var/imap partition-default: /var/spool/imap admins: admin [EMAIL PROTECTED] [EMAIL PROTECTED] virtdomains: yes defaultdomain: exampleisp.net ok... done... but heres the problem when createing the mailboxes can only create for the default domain still FAQ says create for new domain as cm [EMAIL PROTECTED] Here is it how it works for me, I implemented this for a client with two domains, very simple and straightforward. Imapd.conf as you have. I can create mailboxes for the hisdomain.com and herdomain.com virtual domains by logging in as their respiective administrators. E.g. to create a mailbox in hisdomain.com do: cyradm --auth plain --user [EMAIL PROTECTED] localhost and to create a mailbox for user [EMAIL PROTECTED] do: cm user.test this is without the hisdomain.com extension because you are allready logged in as admin in that domain. You will see a mailbox [EMAIL PROTECTED] is created with lm Hope this is what you asked . Greetings Wim This e-mail was scanned by RAV Antivirus!
Re: virtual domains 2.1.15 - 2.2BETA
several good ideas...nothing that pans out yet but id find out that the virtual domains are looping to the default domain (admin wise an mailbox wise) unexplainablyany more insights greatlt appreciated... :} subquery... I do have virtdomains: yes set in imapd.conf if it was off or not acknowledged as being set would that cause the aforementioned problem? --Robert On Monday 24 November 2003 05:42, Robert Harris wrote: ok.. Ive been hashing out quite a few diffrernt ways and can just not seam to get firtual domains working according to FAQ one needs to set the following in the imapd.conf file configdirectory: /var/imap partition-default: /var/spool/imap admins: admin [EMAIL PROTECTED] [EMAIL PROTECTED] virtdomains: yes defaultdomain: exampleisp.net ok... done... but heres the problem when createing the mailboxes can only create for the default domain still FAQ says create for new domain as cm [EMAIL PROTECTED]
Re: Virtual domains Debian Sarge
On Sat, 04 Oct 2003, Jim Archer wrote: Does the package from Sid require any other Sid level packages, or can it come down to Sarge by itself? Will it propagate down to Sarge at some point? It is waiting on perl and other crap. Get the source and recompile it in sarge. Everything but SNMP will work well. I configured Exim4 to use the cyrdeliver program to deliver mail to Cyrus. Yuck. Nah, that I won't recommend people doing :) I need docs on how to use exim 4's lmtp driver (over unix socket) or smtp driver on lmtp mode (over tcp/ip socket), as well as the dropcr stuff needed for the /usr/sbin/sendmail wrapper for sieve... -- 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 domains Debian Sarge
On Sat, 04 Oct 2003, Jim Archer wrote: I have installed and configured Cyrus21 on Debian Sarge (testing) using the cyrus21 package, which is version 2.1.14. I have it working very nicely with Exim4 and one domain. Using LMTP? Then please get the Cyrus from sid, and send me snippets of your exim 4 config so that I can create a nice README.exim... 2.1.15 with a LOT of fixes is in sid. I see in the change log that partial virtual domain support was added in version 2.0.12. I looked through the doc directory, but I didn't find the domainsvirtual.html file I have seen referenced in the mail list archive. ? Could someone please tell me to what extent version 2.1.14 supports virtual domains and where I could find the docs for it? Is this feature built into the Debian package? It does NOT support virtual domains, period. There is robot101mode, but you better read the source and understand how to use it yourself, or else you really should not be enabling it. And if you do, you better know that the resulting Cyrus install will probably have to be migrated using IMAP to Cyrus 2.2. -- 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 domains Debian Sarge
Hello... --On Saturday, October 04, 2003 6:10 AM -0300 Henrique de Moraes Holschuh [EMAIL PROTECTED] wrote: Using LMTP? Then please get the Cyrus from sid, and send me snippets of your exim 4 config so that I can create a nice README.exim... 2.1.15 with a LOT of fixes is in sid. Does the package from Sid require any other Sid level packages, or can it come down to Sarge by itself? Will it propagate down to Sarge at some point? I configured Exim4 to use the cyrdeliver program to deliver mail to Cyrus. It looks like this program uses LMTP, but at this point Exim4 is only passing one address at a time. I plan to look into having Exim4 pass all the addresses at once after I get a bunch of other stuff working. I don't know if that can be done but I plan to try. If this one address at a time configuration is helpful I'll gladly send you my notes and the config file excerpts. It does NOT support virtual domains, period. There is robot101mode, but you better read the source and understand how to use it yourself, or else you really should not be enabling it. And if you do, you better know that the resulting Cyrus install will probably have to be migrated using IMAP to Cyrus 2.2. Okay, I guess that answers that. In this case I may just forget using virtual domain support in Cyrus and just may the addresses in Exim4. But before I decide I'll pull the docs for Cyrus 2.2 and see what I am missing. Thanks!
Re: virtual domains
Danny García Hernández wrote: Hello, i´m trying to install a cyrus-imapd-2_2 server with virtual domains support. Right now i have a server (cyrus-imap-2.1.9) with this support, using mysql and one cyrus.conf file by domain. Also, I have separated imap directory for each (/var/imap/example1.net and /var/imap/example2.net) I was reading into cyrusv2 docs that a new clause was included into conf file to give support for virtual domains. Can any one explain me how mail boxes are create into separated domain directory?. Unless you want to know what it looks like in the filesystem, doc/install-virtdomains.html should tell you what you need to know. Doing tools/mkimap in my new system, create some subdirectories under /var/imap but user and quota directories are missing. In 2.2, all of the user meta-data directories are created on the fly, that is why mkimap doesn't do it. -- 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 domains shared folders
Hi, I've used shared folders very happily and successfully in the past, but on slightly older installations of Cyrus (this particular installation is 2.2.1), and obviously never in a virtual domains environment. What's your postfix version? Tarjei Ok, so what I did was: localhost.freebsd.se cm [EMAIL PROTECTED] localhost.freebsd.se sam [EMAIL PROTECTED] anyone lrspi localhost.freebsd.se sam [EMAIL PROTECTED] anonymous p localhost.freebsd.se lam [EMAIL PROTECTED] anonymous p anyone lrspi Now, using any IMAP client the folder shows up just fine and everyone can do what they need to do to it. I cannot for the life of me figure out how to send mail to this new folder. The LMTP conversation between Postfix and Cyrus goes something like (sorry for the crappy wrapping): Sep 17 01:53:31 hq postfix/lmtp[19514]: lmtp socket: wanted attribute: original_recipient Sep 17 01:53:31 hq postfix/lmtp[19514]: input attribute name: original_recipient Sep 17 01:53:31 hq postfix/lmtp[19514]: input attribute value: [EMAIL PROTECTED] Sep 17 01:53:31 hq postfix/lmtp[19514]: lmtp socket: wanted attribute: recipient Sep 17 01:53:31 hq postfix/lmtp[19514]: input attribute name: recipient Sep 17 01:53:31 hq postfix/lmtp[19514]: /var/imap/socket/lmtp[/var/imap/socket/lmtp]: 250 2.0.0 ok Sep 17 01:53:31 hq postfix/lmtp[19514]: deliver_message: reusing (count 1) session with: /var/imap/socket/lmtp Sep 17 01:53:31 hq postfix/lmtp[19514]: /var/imap/socket/lmtp[/var/imap/socket/lmtp]: MAIL FROM:[EMAIL PROTECTED] SIZE=908 Sep 17 01:53:31 hq postfix/lmtp[19514]: /var/imap/socket/lmtp[/var/imap/socket/lmtp]: RCPT TO:[EMAIL PROTECTED] Sep 17 01:53:31 hq postfix/lmtp[19514]: /var/imap/socket/lmtp[/var/imap/socket/lmtp]: DATA Sep 17 01:53:31 hq postfix/lmtp[19514]: /var/imap/socket/lmtp[/var/imap/socket/lmtp]: 250 2.1.0 ok Sep 17 01:53:31 hq postfix/lmtp[19514]: /var/imap/socket/lmtp[/var/imap/socket/lmtp]: 550-Mailbox unknown. Either there is no mailbox associated with this Sep 17 01:53:31 hq postfix/lmtp[19514]: /var/imap/socket/lmtp[/var/imap/socket/lmtp]: 550-name or you do not have authorization to see it. Sep 17 01:53:31 hq postfix/lmtp[19514]: /var/imap/socket/lmtp[/var/imap/socket/lmtp]: 550 5.1.1 User unknown Did I miss something silly? --Jo
Re: Virtual domains shared folders
On Tue, 2003-09-16 at 23:16, Tarjei Huse wrote: Hi, I've used shared folders very happily and successfully in the past, but on slightly older installations of Cyrus (this particular installation is 2.2.1), and obviously never in a virtual domains environment. What's your postfix version? It's a snapshot from a couple of weeks ago. --Jo
Re: Virtual domains shared folders
You send it to a name of [EMAIL PROTECTED] So if your imapd.conf sets postuser to bb (the old style) then use [EMAIL PROTECTED] If it is blank, use [EMAIL PROTECTED] Note that you may need to convince your mta to keep the plus sign. On Tue, Sep 16, 2003 at 04:57:58PM -0700, Joakim Ryden wrote: Hey fellas - so I've seen some confusion about shared folders and thought I'd check out what the fuss was all about. ;) I've used shared folders very happily and successfully in the past, but on slightly older installations of Cyrus (this particular installation is 2.2.1), and obviously never in a virtual domains environment. Ok, so what I did was: localhost.freebsd.se cm [EMAIL PROTECTED] localhost.freebsd.se sam [EMAIL PROTECTED] anyone lrspi localhost.freebsd.se sam [EMAIL PROTECTED] anonymous p localhost.freebsd.se lam [EMAIL PROTECTED] anonymous p anyone lrspi Now, using any IMAP client the folder shows up just fine and everyone can do what they need to do to it. I cannot for the life of me figure out how to send mail to this new folder. The LMTP conversation between Postfix and Cyrus goes something like (sorry for the crappy wrapping): Sep 17 01:53:31 hq postfix/lmtp[19514]: lmtp socket: wanted attribute: original_recipient Sep 17 01:53:31 hq postfix/lmtp[19514]: input attribute name: original_recipient Sep 17 01:53:31 hq postfix/lmtp[19514]: input attribute value: [EMAIL PROTECTED] Sep 17 01:53:31 hq postfix/lmtp[19514]: lmtp socket: wanted attribute: recipient Sep 17 01:53:31 hq postfix/lmtp[19514]: input attribute name: recipient Sep 17 01:53:31 hq postfix/lmtp[19514]: /var/imap/socket/lmtp[/var/imap/socket/lmtp]: 250 2.0.0 ok Sep 17 01:53:31 hq postfix/lmtp[19514]: deliver_message: reusing (count 1) session with: /var/imap/socket/lmtp Sep 17 01:53:31 hq postfix/lmtp[19514]: /var/imap/socket/lmtp[/var/imap/socket/lmtp]: MAIL FROM:[EMAIL PROTECTED] SIZE=908 Sep 17 01:53:31 hq postfix/lmtp[19514]: /var/imap/socket/lmtp[/var/imap/socket/lmtp]: RCPT TO:[EMAIL PROTECTED] Sep 17 01:53:31 hq postfix/lmtp[19514]: /var/imap/socket/lmtp[/var/imap/socket/lmtp]: DATA Sep 17 01:53:31 hq postfix/lmtp[19514]: /var/imap/socket/lmtp[/var/imap/socket/lmtp]: 250 2.1.0 ok Sep 17 01:53:31 hq postfix/lmtp[19514]: /var/imap/socket/lmtp[/var/imap/socket/lmtp]: 550-Mailbox unknown. Either there is no mailbox associated with this Sep 17 01:53:31 hq postfix/lmtp[19514]: /var/imap/socket/lmtp[/var/imap/socket/lmtp]: 550-name or you do not have authorization to see it. Sep 17 01:53:31 hq postfix/lmtp[19514]: /var/imap/socket/lmtp[/var/imap/socket/lmtp]: 550 5.1.1 User unknown Did I miss something silly? --Jo -- Joe Rhett Chief Geek [EMAIL PROTECTED] Isite Services, Inc.
Re: Virtual domains and LDAP
James Satterfield wrote: I'm using a virtual domain setup based on usernames. So I have a domain uberduper.com and a user [EMAIL PROTECTED] I've got imapd setup to use saslauthd, and saslauthd setup to auth against LDAP. If I assign the uid of [EMAIL PROTECTED] in ldap, testsaslauthd can successfully auth, but imapd cannot. Looking at the logs suggests that imapd isn't passing the entire username [EMAIL PROTECTED] to saslauthd. Just jsatter This is because you have specified uberduper.com as your defaultdomain, which causes Cyrus to strip the domain. defaultdomain is usually only used for backwards compatibility when upgrading an existing single domain installation. Read the virtdomains docs in the distro for details. Thanks, James. Config snippets: imapd.conf virtdomains: yes defaultdomain: uberduper.com configdirectory: /usr/local/var/imap partition-default: /usr/local/var/spool/imap allowplaintext: yes admins: root cyrus singleinstancestore: yes duplicatesuppression: yes sieveusehomedir: false sievedir: /usr/local/var/imap/sieve sendmail: /usr/sbin/sendmail sasl_pwcheck_method: saslauthd sasl_mech_list: plain lmtpsocket: /usr/local/var/imap/socket/lmtp idlesocket: /usr/local/var/imap/socket/idle notifysocket: /usr/local/var/imap/socket/notify saslauthd.conf ldap_servers: ldap://64.62.153.124/ ldap_bind_dn: cn=root,dc=uberduper,dc=com ldap_bind_pw: secret ldap_search_base: dc=uberduper,dc=com ldap_auth_method: custom auth.log Aug 4 20:44:36 knight saslauthd[48297]: do_auth : auth failure: [user=jsatter] [service=imap] [realm=] [mech=ldap] [reason=Unknown] -- 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 Domains and authentication
I've never used pam for virtual domains but the general idea is that the user provides the fully qualified [EMAIL PROTECTED] as their userid. SASL splits that up into a realm and a user so in terms of SASL, creating the user looks something like this: saslpasswd -c -U domain.dom userid I really can't say how this will map to PAM since PAM really doesn't support the concept of realms (as I understand it). -- Michael -- James Satterfield [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I'm having a lot of difficulty wrapping my mind around authentication for a virtual domain configuration. I would like to use PAM for auth, but I don't see how to get around the '@' in the usernames. I see nothing in the docs that address how to setup auth for virtual domain support. Do any of you have any tips, howtos, advice, config examples? Thanks, James.
Re: Virtual Domains and authentication
On Tue, 2003-08-12 at 11:47, Michael Fair wrote: I've never used pam for virtual domains but the general idea is that the user provides the fully qualified [EMAIL PROTECTED] as their userid. SASL splits that up into a realm and a user so in terms of SASL, creating the user looks something like this: saslpasswd -c -U domain.dom userid I really can't say how this will map to PAM since PAM really doesn't support the concept of realms (as I understand it). -- Michael -- Hi, With pam you can have IMAP accounts of the type: username.domain.tld so that mail sent to [EMAIL PROTECTED] is delivered to a cyrus account: username.domain.tld This needs the the option unixhierarchysep: yes is set in the /etc/imapd.conf. There are howto's showing how to achieve this: http://www.delouw.ch/linux/Postfix-Cyrus-Web-cyradm-HOWTO/html/index.html and http://home.teleport.ch/simix/RPMS/Cyrus-imapd/contrib/Postfix+cyrus+postgreSQL+web-cyradm.pdf In the new cyrus-2.2.x (now in beta) [EMAIL PROTECTED] will be allowed. Otherwise for now you can use the Perdition IMAP/POP proxy server(http://vergenet.net/linux/perdition/) or get a patch (I think), for the current stable 2.1.x series. James Satterfield [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I'm having a lot of difficulty wrapping my mind around authentication for a virtual domain configuration. I would like to use PAM for auth, but I don't see how to get around the '@' in the usernames. I see nothing in the docs that address how to setup auth for virtual domain support. Do any of you have any tips, howtos, advice, config examples? Thanks, James. -- Andrew Koros Developer, Systems Services UUNET KENYA LTD 2nd Floor Parkside Towers Mombasa Road, Nairobi Tel: +254 2 69088618 Fax: +254 2 69088001 Email: [EMAIL PROTECTED] http://www.uunet.co.ke NOTICE: The contents of this e-mail and any accompanying documentation is confidential and any use thereof, in whatever form, by anyone other than the addressee for whom it is intended, is strictly prohibited.