[opensuse] Postfix + Cyrus IMAP + MySQL won't work :-(
Hi all, I followed the instructions under http://www.delouw.ch/linux/Postfix-Cyrus-Web-cyradm-HOWTO/html/index.html to set up Postfix + Cyrus IMAP + MySQL. Before posting here I was searching for a solution but couldn't find it, so maybe someone here could shed some light... After setting everything up I wanted to test the whole scenario... It doesn't seem to work, though... These are the relevant error lines taken from /var/log/mail when sending one single email from root to my newly created email account: --- May 9 13:05:27 v601 sendmail[13720]: l49B5RoD013720: from=root, size=60, class=0, nrcpts=2, msgid=<200705091105.l49B5RoD013720@v601.myemaildomain.com>, relay=root@localhost May 9 13:05:27 v601 postfix/smtpd[13721]: connect from v601.myemaildomain.com[127.0.0.1] May 9 13:05:27 v601 postfix/smtpd[13721]: 081342C0168: client=v601.myemaildomain.com[127.0.0.1], sasl_sender=root@v601.myemaildomain.com May 9 13:05:27 v601 postfix/cleanup[13725]: 081342C0168: message-id=<200705091105.l49B5RoD013720@v601.myemaildomain.com> May 9 13:05:27 v601 postfix/qmgr[13497]: 081342C0168: from=<root@v601.myemaildomain.com>, size=536, nrcpt=2 (queue active) May 9 13:05:27 v601 sendmail[13720]: l49B5RoD013720: to=martin.mielke@myemaildomain.com,., ctladdr=root (0/0), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=60060, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (Ok: queued as 081342C0168) May 9 13:05:27 v601 postfix/smtpd[13721]: disconnect from v601.myemaildomain.com[127.0.0.1] May 9 13:05:27 v601 master[13733]: about to exec /usr/lib/cyrus-imapd/lmtpd May 9 13:05:27 v601 lmtpunix[13733]: executed May 9 13:05:27 v601 lmtpunix[13733]: accepted connection May 9 13:05:27 v601 lmtpunix[13733]: lmtp connection preauth'd as postman May 9 13:05:27 v601 master[13735]: about to exec /usr/lib/cyrus-imapd/lmtpd May 9 13:05:27 v601 lmtpunix[13733]: verify_user(user.^) failed: Mailbox does not exist May 9 13:05:27 v601 lmtpunix[13733]: accepted connection May 9 13:05:27 v601 lmtpunix[13733]: lmtp connection preauth'd as postman May 9 13:05:27 v601 lmtpunix[13733]: verify_user(user.martin^mielke^myemaildomain^com) failed: Mailbox does not exist May 9 13:05:27 v601 lmtpunix[13735]: executed May 9 13:05:27 v601 postfix/pipe[13731]: 081342C0168: to=<martin.mielke.myemaildomain.com@myemaildomain.com>, orig_to=<martin.mielke@myemaildomain.com>, relay=cyrus, delay=0.08, delays=0.05/0.01/0/0.02, dsn=5.6.0, status=bounced (data format error. Command output: martin.mielke.myemaildomain.com: Mailbox does not exist ) May 9 13:05:28 v601 postfix/pipe[13730]: 081342C0168: to=<.@v601.myemaildomain.com>, relay=cyrus, delay=1.1, delays=0.05/0.01/0/1.1, dsn=5.6.0, status=bounced (data format error. Command output: .: Mailbox does not exist ) May 9 13:05:28 v601 postfix/cleanup[13725]: 20A4E2C016C: message-id=<20070509110528.20A4E2C016C@v601.myemaildomain.com> May 9 13:05:28 v601 postfix/bounce[13736]: 081342C0168: sender non-delivery notification: 20A4E2C016C May 9 13:05:28 v601 postfix/qmgr[13497]: 20A4E2C016C: from=<>, size=2805, nrcpt=1 (queue active) May 9 13:05:28 v601 postfix/qmgr[13497]: 081342C0168: removed May 9 13:05:28 v601 lmtpunix[13733]: accepted connection May 9 13:05:28 v601 lmtpunix[13733]: lmtp connection preauth'd as postman May 9 13:05:28 v601 lmtpunix[13733]: verify_user(user.root) failed: Mailbox does not exist May 9 13:05:28 v601 postfix/pipe[13731]: 20A4E2C016C: to=<root@v601.myemaildomain.com>, relay=cyrus, delay=0.01, delays=0/0/0/0, dsn=5.6.0, status=bounced (data format error. Command output: root: Mailbox does not exist ) May 9 13:05:28 v601 postfix/qmgr[13497]: 20A4E2C016C: removed May 9 13:06:08 v601 master[13347]: process 13714 exited, status 0 May 9 13:06:28 v601 master[13347]: process 13733 exited, status 0 May 9 13:21:55 v601 master[13808]: about to exec /usr/lib/cyrus-imapd/ctl_cyrusdb --- In the meantime I'll re-read and re-check one more time the whole process... although I'm close to have all in my mind already :-/ TIA, Martin __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Martin Mielke wrote:
Hi all,
I followed the instructions under http://www.delouw.ch/linux/Postfix-Cyrus-Web-cyradm-HOWTO/html/index.html to set up Postfix + Cyrus IMAP + MySQL.
Before posting here I was searching for a solution but couldn't find it, so maybe someone here could shed some light...
After setting everything up I wanted to test the whole scenario... It doesn't seem to work, though...
These are the relevant error lines taken from /var/log/mail when sending one single email from root to my newly created email account:
--- May 9 13:05:27 v601 sendmail[13720]: l49B5RoD013720: from=root, size=60, class=0, nrcpts=2, msgid=<200705091105.l49B5RoD013720@v601.myemaildomain.com>, relay=root@localhost May 9 13:05:27 v601 postfix/smtpd[13721]: connect from v601.myemaildomain.com[127.0.0.1] May 9 13:05:27 v601 postfix/smtpd[13721]: 081342C0168: client=v601.myemaildomain.com[127.0.0.1], sasl_sender=root@v601.myemaildomain.com May 9 13:05:27 v601 postfix/cleanup[13725]: 081342C0168: message-id=<200705091105.l49B5RoD013720@v601.myemaildomain.com> May 9 13:05:27 v601 postfix/qmgr[13497]: 081342C0168: from=<root@v601.myemaildomain.com>, size=536, nrcpt=2 (queue active) May 9 13:05:27 v601 sendmail[13720]: l49B5RoD013720: to=martin.mielke@myemaildomain.com,., ctladdr=root (0/0), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=60060, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (Ok: queued as 081342C0168) May 9 13:05:27 v601 postfix/smtpd[13721]: disconnect from v601.myemaildomain.com[127.0.0.1] May 9 13:05:27 v601 master[13733]: about to exec /usr/lib/cyrus-imapd/lmtpd May 9 13:05:27 v601 lmtpunix[13733]: executed May 9 13:05:27 v601 lmtpunix[13733]: accepted connection May 9 13:05:27 v601 lmtpunix[13733]: lmtp connection preauth'd as postman May 9 13:05:27 v601 master[13735]: about to exec /usr/lib/cyrus-imapd/lmtpd May 9 13:05:27 v601 lmtpunix[13733]: verify_user(user.^) failed: Mailbox does not exist May 9 13:05:27 v601 lmtpunix[13733]: accepted connection May 9 13:05:27 v601 lmtpunix[13733]: lmtp connection preauth'd as postman May 9 13:05:27 v601 lmtpunix[13733]: verify_user(user.martin^mielke^myemaildomain^com) failed: Mailbox does not exist May 9 13:05:27 v601 lmtpunix[13735]: executed May 9 13:05:27 v601 postfix/pipe[13731]: 081342C0168: to=<martin.mielke.myemaildomain.com@myemaildomain.com>, orig_to=<martin.mielke@myemaildomain.com>, relay=cyrus, delay=0.08, delays=0.05/0.01/0/0.02, dsn=5.6.0, status=bounced (data format error. Command output: martin.mielke.myemaildomain.com: Mailbox does not exist ) May 9 13:05:28 v601 postfix/pipe[13730]: 081342C0168: to=<.@v601.myemaildomain.com>, relay=cyrus, delay=1.1, delays=0.05/0.01/0/1.1, dsn=5.6.0, status=bounced (data format error. Command output: .: Mailbox does not exist ) May 9 13:05:28 v601 postfix/cleanup[13725]: 20A4E2C016C: message-id=<20070509110528.20A4E2C016C@v601.myemaildomain.com> May 9 13:05:28 v601 postfix/bounce[13736]: 081342C0168: sender non-delivery notification: 20A4E2C016C May 9 13:05:28 v601 postfix/qmgr[13497]: 20A4E2C016C: from=<>, size=2805, nrcpt=1 (queue active) May 9 13:05:28 v601 postfix/qmgr[13497]: 081342C0168: removed May 9 13:05:28 v601 lmtpunix[13733]: accepted connection May 9 13:05:28 v601 lmtpunix[13733]: lmtp connection preauth'd as postman May 9 13:05:28 v601 lmtpunix[13733]: verify_user(user.root) failed: Mailbox does not exist May 9 13:05:28 v601 postfix/pipe[13731]: 20A4E2C016C: to=<root@v601.myemaildomain.com>, relay=cyrus, delay=0.01, delays=0/0/0/0, dsn=5.6.0, status=bounced (data format error. Command output: root: Mailbox does not exist ) May 9 13:05:28 v601 postfix/qmgr[13497]: 20A4E2C016C: removed May 9 13:06:08 v601 master[13347]: process 13714 exited, status 0 May 9 13:06:28 v601 master[13347]: process 13733 exited, status 0 May 9 13:21:55 v601 master[13808]: about to exec /usr/lib/cyrus-imapd/ctl_cyrusdb
---
In the meantime I'll re-read and re-check one more time the whole process... although I'm close to have all in my mind already :-/
TIA, Martin
__________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
Cyrus has it own mailbox and account structure (it is effectively a mail black box with mail stored in a database). I think you need create the appropriate cyrus mailbox so that delivery can take place. All postfix bit is point postfix delivery to the cyrus mail system. It does not really need postfix as it has its own MTA and MDA agents. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (GNU/Linux) Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org iD8DBQFGQfkZasN0sSnLmgIRAsTRAJ9vQ1pRPoOroO3ilecwDbNJe+NeAQCgrDWd 0MAh+ZEar6ZNkLm461lkRBE= =DjtK -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
G T Smith wrote:
Cyrus has it own mailbox and account structure (it is effectively a mail black box with mail stored in a database). I think you need create the appropriate cyrus mailbox so that delivery can take place. All postfix bit is point postfix delivery to the cyrus mail system. It does not really need postfix as it has its own MTA and MDA agents.
A good part of this is at least a bit misleading. (^-^) I hope you don't mind if I expand a bit on your comment. Cyrus does indeed not use maildir to store mails, though it may look the same at first glance. Instead the mails are stored in folders and a few databases are maintaining the structure and status flags. So the mails are NOT stored in a database, but the status of the mails is (mailboxes.db, seen.db, deliver.db etc.). The valid mailboxes are maintained in mailboxes.db. Before a mailbox can be used it must be created. This can be done in cyradm or by scripts that use similar funktions. Both php and perl provide modules where the neccessary functions are available. Postfix does indeed not deliver the mail itself, lmtp is used either directly or through a pipe transport (in Postfix the transport is called "cyrus" in master.cf) using the deliver binary from Cyrus. In the end, it is the same since deliver will also use lmtp to submit the mail to Cyrus. So the delivery is not done by the Postfix local delivery agent (either "local" or "virtual"). But Cyrus is a pure imap server, it does not speak smtp, so a MTA (mail transfer agent) like Postfix, Exim or Sendmail is neccessary. Maybe you mistook it for Courier. There are two packages available: courier-imap, the imapserver, and courier-mta, the mailserver package. -- Sandy List replies only please! Please address PMs to: news-reply2 (@) japantest (.) homelinux (.) com -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Sandy Drobic wrote:
G T Smith wrote:
Cyrus has it own mailbox and account structure (it is effectively a mail black box with mail stored in a database). I think you need create the appropriate cyrus mailbox so that delivery can take place. All postfix bit is point postfix delivery to the cyrus mail system. It does not really need postfix as it has its own MTA and MDA agents.
A good part of this is at least a bit misleading. (^-^) I hope you don't mind if I expand a bit on your comment.
Cyrus does indeed not use maildir to store mails, though it may look the same at first glance. Instead the mails are stored in folders and a few databases are maintaining the structure and status flags. So the mails are NOT stored in a database, but the status of the mails is (mailboxes.db, seen.db, deliver.db etc.).
The valid mailboxes are maintained in mailboxes.db. Before a mailbox can be used it must be created. This can be done in cyradm or by scripts that use similar funktions. Both php and perl provide modules where the neccessary functions are available.
Postfix does indeed not deliver the mail itself, lmtp is used either directly or through a pipe transport (in Postfix the transport is called "cyrus" in master.cf) using the deliver binary from Cyrus. In the end, it is the same since deliver will also use lmtp to submit the mail to Cyrus.
So the delivery is not done by the Postfix local delivery agent (either "local" or "virtual").
But Cyrus is a pure imap server, it does not speak smtp, so a MTA (mail transfer agent) like Postfix, Exim or Sendmail is neccessary. Maybe you mistook it for Courier. There are two packages available: courier-imap, the imapserver, and courier-mta, the mailserver package.
Lifted of Mullet & Mullet - Managing IMAP - Part III - p107..p108 . read this thing when establishing which version of IMAP to run with... Took one look at Cyrus decided was not a runner... -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (GNU/Linux) Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org iD8DBQFGQhS+asN0sSnLmgIRAgn9AJ9l5i20Ef4/o+43uROyFVOXHsIYgACglq4D XNplISp1x5d96PEmnpraKTs= =O/Ou -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
G T Smith wrote:
Lifted of Mullet & Mullet - Managing IMAP - Part III - p107..p108 . read this thing when establishing which version of IMAP to run with... Took one look at Cyrus decided was not a runner...
Innocent and blue-eyed as I was I started with Cyrus without reading any documentation and only later I began to dig into the documentation and the maintenance part of the package. Cyrus is nice as long as you know what you are doing and nothing goes wrong. Recovering from a corrupt file system and having no backup will keep you busy for days. If someone is starting fresh it might be worth a thought to think about alternatives like Courier Imap. -- Sandy List replies only please! Please address PMs to: news-reply2 (@) japantest (.) homelinux (.) com -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Martin Mielke wrote:
Hi all,
I followed the instructions under http://www.delouw.ch/linux/Postfix-Cyrus-Web-cyradm-HOWTO/html/index.html to set up Postfix + Cyrus IMAP + MySQL.
Before posting here I was searching for a solution but couldn't find it, so maybe someone here could shed some light...
After setting everything up I wanted to test the whole scenario... It doesn't seem to work, though...
These are the relevant error lines taken from /var/log/mail when sending one single email from root to my newly created email account:
--- May 9 13:05:27 v601 sendmail[13720]: l49B5RoD013720: from=root, size=60, class=0, nrcpts=2, msgid=<200705091105.l49B5RoD013720@v601.myemaildomain.com>, relay=root@localhost
You have a mixed configuration!! This syslog entry was made by Sendmail, not the compatibility binary of Postfix. Did you have a previous installation with Sendmail enabled? The sendmail binary from Postfix logs its entries like May 9 13:05:27 v601 postfix/pickup[12532]: 41C5B4940E: uid=0 from=<root>
May 9 13:05:27 v601 postfix/smtpd[13721]: connect from v601.myemaildomain.com[127.0.0.1] May 9 13:05:27 v601 postfix/smtpd[13721]: 081342C0168: client=v601.myemaildomain.com[127.0.0.1], sasl_sender=root@v601.myemaildomain.com May 9 13:05:27 v601 postfix/cleanup[13725]: 081342C0168: message-id=<200705091105.l49B5RoD013720@v601.myemaildomain.com> May 9 13:05:27 v601 postfix/qmgr[13497]: 081342C0168: from=<root@v601.myemaildomain.com>, size=536, nrcpt=2 (queue active) May 9 13:05:27 v601 sendmail[13720]: l49B5RoD013720: to=martin.mielke@myemaildomain.com,., ctladdr=root (0/0), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=60060, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (Ok: queued as 081342C0168) May 9 13:05:27 v601 postfix/smtpd[13721]: disconnect from v601.myemaildomain.com[127.0.0.1] May 9 13:05:27 v601 master[13733]: about to exec /usr/lib/cyrus-imapd/lmtpd May 9 13:05:27 v601 lmtpunix[13733]: executed May 9 13:05:27 v601 lmtpunix[13733]: accepted connection May 9 13:05:27 v601 lmtpunix[13733]: lmtp connection preauth'd as postman May 9 13:05:27 v601 master[13735]: about to exec /usr/lib/cyrus-imapd/lmtpd May 9 13:05:27 v601 lmtpunix[13733]: verify_user(user.^) failed: Mailbox does not exist May 9 13:05:27 v601 lmtpunix[13733]: accepted connection May 9 13:05:27 v601 lmtpunix[13733]: lmtp connection preauth'd as postman May 9 13:05:27 v601 lmtpunix[13733]: verify_user(user.martin^mielke^myemaildomain^com) failed: Mailbox does not exist
Are you able to use deliver to submit mails to Cyrus? This looks as if either The mailbox does not exist in Cyrus (verify in cyradm, that the mailbox was successfully created AND that it has beed created within a virtual domain.
May 9 13:05:27 v601 lmtpunix[13735]: executed May 9 13:05:27 v601 postfix/pipe[13731]: 081342C0168: to=<martin.mielke.myemaildomain.com@myemaildomain.com>, orig_to=<martin.mielke@myemaildomain.com>, relay=cyrus, delay=0.08, delays=0.05/0.01/0/0.02, dsn=5.6.0, status=bounced (data format error. Command output: martin.mielke.myemaildomain.com: Mailbox does not exist ) May 9 13:05:28 v601 postfix/pipe[13730]: 081342C0168: to=<.@v601.myemaildomain.com>, relay=cyrus, delay=1.1, delays=0.05/0.01/0/1.1, dsn=5.6.0, status=bounced (data format error. Command output: .: Mailbox does not exist ) May 9 13:05:28 v601 postfix/cleanup[13725]: 20A4E2C016C: message-id=<20070509110528.20A4E2C016C@v601.myemaildomain.com> May 9 13:05:28 v601 postfix/bounce[13736]: 081342C0168: sender non-delivery notification: 20A4E2C016C May 9 13:05:28 v601 postfix/qmgr[13497]: 20A4E2C016C: from=<>, size=2805, nrcpt=1 (queue active) May 9 13:05:28 v601 postfix/qmgr[13497]: 081342C0168: removed May 9 13:05:28 v601 lmtpunix[13733]: accepted connection May 9 13:05:28 v601 lmtpunix[13733]: lmtp connection preauth'd as postman May 9 13:05:28 v601 lmtpunix[13733]: verify_user(user.root) failed: Mailbox does not exist May 9 13:05:28 v601 postfix/pipe[13731]: 20A4E2C016C: to=<root@v601.myemaildomain.com>, relay=cyrus, delay=0.01, delays=0/0/0/0, dsn=5.6.0, status=bounced (data format error. Command output: root: Mailbox does not exist ) May 9 13:05:28 v601 postfix/qmgr[13497]: 20A4E2C016C: removed
Okay, that address doesn't exist either, so Postfix killed the mail completely. One more mail has succeeded to reach Digital Nirwana(TM)...
May 9 13:06:08 v601 master[13347]: process 13714 exited, status 0 May 9 13:06:28 v601 master[13347]: process 13733 exited, status 0 May 9 13:21:55 v601 master[13808]: about to exec /usr/lib/cyrus-imapd/ctl_cyrusdb
---
In the meantime I'll re-read and re-check one more time the whole process... although I'm close to have all in my mind already :-/
Without showing the actual configuration no advice can be given. I suggest you get Cyrus up first, then at least you can deliver mails safely. Afterwards you should see that Postfix is configured as you need it. -- Sandy List replies only please! Please address PMs to: news-reply2 (@) japantest (.) homelinux (.) com -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (3)
-
G T Smith
-
Martin Mielke
-
Sandy Drobic