Cheeto wrote:
You should make sure that your imap accounts are actually being created.
cyrus keeps the mail spools in /var/spool/imap/domain
find your domain in there and make sure that your user is in that
domain.

No domains at all, does webcyradm create these?

[EMAIL PROTECTED] root]# ls -al /var/spool/imap/
total 12
drwxr-x---    3 cyrus    mail         4096 Oct 26 17:40 .
drwxr-xr-x   14 root     root         4096 Oct 26 17:40 ..
drwxr-xr-x    2 cyrus    cyrus        4096 Oct 26 17:40 stage.

or use the cyradm tool and run 'lm' in the cryadm shell to see
if your mailbox exists.

You mean "su - cyradm; lm [EMAIL PROTECTED]"?

Btw, I can see that the web-cyradm adds a file in /var/mail/

[EMAIL PROTECTED] root]# ls -al /var/mail/
total 140
drwxrwxr-x    2 root     mail         4096 Nov  3 01:06 .
drwxr-xr-x   14 root     root         4096 Oct 26 17:40 ..
-rw-rw----    1 cyrus    mail            0 Oct 26 17:39 cyrus
-rw-rw----    1 emax     mail            0 Sep  8 21:33 emax
-rw-------    1 root     root       130150 Oct  8 19:25 root

However it looks strange that emax should have been created to months ago...? 1½ months before I installed cyrus actually...

/Kim

On Sat, 2005-10-29 at 09:28 +0200, Kim Emax wrote:

Cheeto wrote:

I ditched the whole cyrus mail transport method and opted to use lmtp. In /etc/postfix/main.cf:
I use
mailbox_transport = lmtp:unix:/var/imap/socket/lmtp
OR
mailbox_transport = lmtp:123.45.67.89
#with 123.45.67.89 being the ip of a remote lmtp daemon.

instead of
mailbox_transport = cyrus

I believe I´ve tried that too, but took a shot and...:

Oct 29 09:14:18 serv010 postfix/lmtp[7243]: 9CDE35F0054: to=<[EMAIL PROTECTED]>, orig_to=<[EMAIL PROTECTED]>, relay=none, delay=0, status=deferred (connect to /var/imap/socket/lmtp[/var/imap/socket/lmtp]: Permission denied)

Perms:
[EMAIL PROTECTED] root]# ls -al /var/imap/socket
total 8
drwxr-xr-x    2 cyrus    cyrus        4096 Oct 28 11:50 .
drwxr-x---   12 cyrus    mail         4096 Oct 29 08:50 ..
-rw-------    1 cyrus    cyrus           0 Oct 28 07:47 imaplocal-0.lock
srwxrwxrwx    1 root     root            0 Oct 28 11:50 lmtp
-rw-------    1 cyrus    cyrus           0 Oct 26 23:48 lmtpunix-0.lock

[EMAIL PROTECTED] root]# ls -al /var/imap
total 72
drwxr-x---   12 cyrus    mail         4096 Oct 29 08:50 .
drwxr-xr-x   17 root     root         4096 Oct 26 17:32 ..
-rw-------    1 cyrus    cyrus         144 Oct 28 11:50 annotations.db
drwxr-xr-x    2 cyrus    cyrus        4096 Oct 28 11:50 db
drwx------    2 cyrus    cyrus        4096 Oct 29 08:50 db.backup1
drwx------    2 cyrus    cyrus        4096 Oct 29 08:20 db.backup2
-rw-------    1 cyrus    cyrus        8192 Oct 29 04:20 deliver.db
drwxr-xr-x    2 cyrus    cyrus        4096 Oct 26 17:40 log
-rw-------    1 cyrus    cyrus         144 Oct 28 11:50 mailboxes.db
drwxr-xr-x    2 cyrus    cyrus        4096 Oct 26 17:40 msg
drwxr-xr-x    2 cyrus    cyrus        4096 Oct 28 07:49 proc
drwxr-xr-x    2 cyrus    cyrus        4096 Oct 26 17:40 ptclient
drwxrwxr-x    2 cyrus    cyrus        4096 Oct 26 17:43 quota
-rw-------    1 root     root            0 Oct 26 17:33 server.pem
drwxr-xr-x    2 cyrus    cyrus        4096 Oct 28 11:50 socket
-rw-------    1 cyrus    cyrus        8192 Oct 28 11:50 tls_sessions.db
drwxrwxr-x    2 cyrus    cyrus        4096 Oct 26 17:42 user

[EMAIL PROTECTED] root]# ls -al /var
total 68
drwxr-xr-x   17 root     root         4096 Oct 26 17:32 .
drwxr-xr-x   21 root     root         4096 Oct 20 11:50 ..
drwxr-xr-x    3 root     root         4096 Sep  8 20:45 cache
drwxr-xr-x    2 root     root         4096 Jan 25  2003 db
drwxr-xr-x    3 root     root         4096 Sep  8 20:46 empty
drwxr-x---   12 cyrus    mail         4096 Oct 29 08:50 imap
drwxr-xr-x   12 root     root         4096 Sep 19 21:47 lib
drwxr-xr-x    2 root     root         4096 Jan 25  2003 local
drwxrwxr-x    3 root     lock         4096 Oct 29 04:02 lock
drwxr-xr-x    3 root     root         4096 Oct 26 22:13 log
lrwxrwxrwx    1 root     root           10 Sep  8 20:43 mail -> spool/mail
drwxr-xr-x    2 root     root         4096 Jan 25  2003 nis
drwxr-xr-x    2 root     root         4096 Jan 25  2003 opt
drwxr-xr-x    2 root     root         4096 Jan 25  2003 preserve
drwxr-xr-x    6 root     root         4096 Oct 26 23:48 run
drwxr-xr-x   14 root     root         4096 Oct 26 17:40 spool
drwxrwxrwt    2 root     root         4096 Oct 19 18:29 tmp
drwxr-xr-x    3 root     root         4096 Sep  8 20:46 yp

okay, seems that the imap folder is only accessable for the users root and cyrus.

[EMAIL PROTECTED] root]# chmod 755 /var/imap

Kicking the queue...

Oct 29 09:20:53 serv010 postfix/lmtp[7287]: 9CDE35F0054: to=<[EMAIL PROTECTED]>, orig_to=<[EMAIL PROTECTED]>, relay=/var/imap/socket/lmtp[/var/imap/socket/lmtp], delay=395, status=bounced (host /var/imap/socket/lmtp[/var/imap/socket/lmtp] said: 550-Mailbox unknown. Either there is no mailbox associated with this 550-name or you do not have authorization to see it. 550 5.1.1 User unknown (in reply to RCPT TO command)) Oct 29 09:20:53 serv010 postfix/cleanup[7290]: 434B65F0055: message-id=<[EMAIL PROTECTED]> Oct 29 09:20:53 serv010 postfix/qmgr[7229]: 434B65F0055: from=<>, size=2318, nrcpt=1 (queue active)
Oct 29 09:20:53 serv010 postfix/qmgr[7229]: 9CDE35F0054: removed
Oct 29 09:20:53 serv010 postfix/lmtp[7287]: 434B65F0055: to=<[EMAIL PROTECTED]>, relay=/var/imap/socket/lmtp[/var/imap/socket/lmtp], delay=0, status=bounced (host /var/imap/socket/lmtp[/var/imap/socket/lmtp] said: 550-Mailbox unknown. Either there is no mailbox associated with this 550-name or you do not have authorization to see it. 550 5.1.1 User unknown (in reply to RCPT TO command))
Oct 29 09:20:53 serv010 postfix/qmgr[7229]: 434B65F0055: removed

So actually something went right... we have a new error :-)

Where does cyrus keep the mail? in courier it´s in Maildir, default in the users homedir. If cyrus does the same, that the answer to the current error cause neither emax nor root has a Maildir at the moment.

/Kim


On Sat, 2005-10-29 at 00:16 +0200, Kim Emax wrote:


Hi

For the last couple of years I´ve been using postfix along with courier-imap, but now I´m going to switch to cyrus, and have followed the guide from postfix.org -> doc -> Postfix+Cyrus+Web-cyradm howto by Luc de Louw (http://www.delouw.ch/linux/postfix.phtml)

However that causes me some trouble, when I send testmails, they´re bounced with "Mailbox does not exist". I can´t see what I´ve missed (or if it´s a postfix or cyrus problem for that matter :-) This mail has been posted to the postfixlist aswell...

Anyone running a similar setup, who´s got a clue?

Here´s a bit of the maillog:
Oct 28 11:58:27 serv010 postfix/pickup[4515]: 6870E5F0054: uid=0 from=<root>
Oct 28 11:58:27 serv010 postfix/cleanup[4577]: 6870E5F0054: message-id=<[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>> Oct 28 11:58:27 serv010 postfix/qmgr[4516]: 6870E5F0054: from=<[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>>, size=279, nrcpt=1 (queue active) Oct 28 11:58:27 serv010 postfix/pipe[4583]: 6870E5F0054: to=<[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>>, orig_to=<[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>>, relay=cyrus, delay=0, status=bounced (data format error. Command output: emax: Mailbox does not exist ) Oct 28 11:58:27 serv010 postfix/cleanup[4577]: 7890D5F0055: message-id=<[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>> Oct 28 11:58:27 serv010 postfix/qmgr[4516]: 7890D5F0055: from=<>, size=1968, nrcpt=1 (queue active)
Oct 28 11:58:27 serv010 postfix/qmgr[4516]: 6870E5F0054: removed
Oct 28 11:58:27 serv010 postfix/pipe[4583]: 7890D5F0055: to=<[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>>, relay=cyrus, delay=0, status=bounced (data format error. Command output: root: Mailbox does not exist )
Oct 28 11:58:27 serv010 postfix/qmgr[4516]: 7890D5F0055: removed

master.cf:
<snip></snip>
lmtp      unix  -       -       n       -       -       lmtp
<snip></snip>
old-cyrus unix  -       n       n       -       -       pipe
flags= user=cyrus argv=/usr/cyrus/bin/deliver -r ${sender} -m ${extension} ${user}

# Cyrus 2.1.5 (Amos Gouaux)
# Also specify in main.cf: cyrus_destination_recipient_limit=1
cyrus     unix  -       n       n       -       -       pipe
flags= user=cyrus argv=/usr/cyrus/bin/deliver -r ${sender} -m ${extension} ${user}

cyrus.conf:
# 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
#  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="192.168.1.5:imap" prefork=0
imaplocal cmd="imapd -C /etc/imapd-local.conf" listen="127.0.0.1:imap" prefork=0
 imaps         cmd="imapd -s" listen="192.168.1.5:imaps" prefork=0
imapslocal cmd="imapd -C /etc/imapd-local.conf" listen="127.0.0.1:imaps" prefork=0
 pop3          cmd="pop3d" listen="pop3" prefork=0
 pop3s         cmd="pop3d -s" listen="pop3s" prefork=0
 sieve         cmd="timsieved" listen="192.168.1.5:sieve" prefork=0
sievelocal cmd="timsieved -C /etc/imapd-local.conf listen="127.0.0.1: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=1

 # this is only necessary if using notifications
# notify cmd="notifyd" listen="/var/imap/socket/notify" proto="udp" prefork=1
}

EVENTS {
 # this is required
 checkpoint    cmd="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
}

imapd.conf:
postmaster: postmaster
configdirectory: /var/imap
partition-default: /var/spool/imap
# admins: cyrus # no admins!
allowanonymouslogin: no
allowplaintext: yes
sasl_mech_list: PLAIN
servername: masterminds.dk
autocreatequota: 20480
reject8bit: no
quotawarn: 90
timeout: 30
poptimeout: 10
dracinterval: 0
drachost: localhost
sasl_pwcheck_method: saslauthd
sievedir: /usr/sieve
sendmail: /usr/sbin/sendmail
sieve_maxscriptsize: 32
sieve_maxscripts: 5

# unixhierarchysep: yes« is only used if you like to have usernames like »hans.mueller.somedomain.tld«
# 28/10-2005: removed the outcomment and make sure this is set to no
unixhierarchysep: no

imapd-local.conf:
postmaster: postmaster
configdirectory: /var/imap
partition-default: /var/spool/imap
admins: cyrus
allowanonymouslogin: no
allowplaintext: yes
sasl_mech_list: PLAIN
servername: masterminds.dk
autocreatequota: 20480
reject8bit: no
quotawarn: 90
timeout: 30
poptimeout: 10
dracinterval: 0
drachost: localhost
sasl_pwcheck_method: saslauthd
sievedir: /usr/sieve
sendmail: /usr/sbin/sendmail
sieve_maxscriptsize: 32
sieve_maxscripts: 5
# 28/10-2005: removed the outcomment and make sure this is set to no
unixhierarchysep: no


[EMAIL PROTECTED] root]# postconf -n
2bounce_notice_recipient = [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
alias_maps = hash:/etc/aliases
body_checks = regexp:/etc/postfix/securitysage/body_checks
bounce_notice_recipient = [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
broken_sasl_auth_clients = yes
command_directory = /usr/sbin
config_directory = /etc/postfix
daemon_directory = /usr/libexec/postfix
debug_peer_level = 2
delay_notice_recipient = [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
disable_vrfy_command = yes
error_notice_recipient = [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
header_checks = regexp:/etc/postfix/block255, regexp:/etc/postfix/header_checks, regexp:/etc/postfix/securitysage/header_checks
html_directory = no
mail_owner = postfix
mail_spool_directory = /var/spool/mail
mailbox_transport = cyrus
mailq_path = /usr/bin/mailq
manpage_directory = /usr/local/share/man
mime_header_checks = regexp:/etc/postfix/mime_header_checks
mydestination = $myhostname, $mynetworks, localhost.$mydomain, $transport_maps
mydomain = $myhostname
myhostname = emax.dk
mynetworks = 192.168.1.0/24, 127.0.0.0/8, 213.237.12.252/32, 213.84.242.68/32, 195.135.219.0/24, 81.7.149.95/32, 85.82.1.250/32, 195.135.216.0/24
newaliases_path = /usr/bin/newaliases
queue_directory = /var/spool/postfix
readme_directory = no
recipient_delimiter = +
relay_domains = $mydestination
sample_directory = /etc/postfix
sender_canonical_maps = mysql:/etc/postfix/mysql-canonical.cf
sendmail_path = /usr/sbin/sendmail
setgid_group = postdrop
smtpd_helo_required = yes
smtpd_recipient_restrictions = permit_sasl_authenticated, permit_mynetworks, reject_unauth_destination
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain =
smtpd_sasl_security_options = noanonymous
unknown_local_recipient_reject_code = 550
virtual_alias_maps = mysql:/etc/postfix/mysql-virtual.cf

mysql> select * from virtual;
+------------------+------+----------+--------+
| alias            | dest | username | status |
+------------------+------+----------+--------+
| [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>     | root | root     |      1 |
| [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>  | emax | emax     |      1 |
+------------------+------+----------+--------+

mysql> select * from accountuser;
+----------+---------------+--------+-------------+
| username | password      | prefix | domain_name |
+----------+---------------+--------+-------------+
| cyrus    | KuugKb.lIBFX2 |        |             |
| emax     | 09F5EN7.iqzBw | www.   | emax.dk     |
| root     | 09F5EN7.iqzBw | www.   | emax.dk     |
+----------+---------------+--------+-------------+

[EMAIL PROTECTED] root]# ps -ax | egrep "(sasl|mysql|imap|postfix|cyrus)"
2300 ? S 0:00 /bin/sh /usr/bin/mysqld_safe --datadir=/var/lib/mysql --pid-file=/var/lib/mysql/serv010.masterminds.dk.pid
2329 ?        S      0:00 [mysqld]
2350 ?        S      0:00 [mysqld]
2351 ?        S      0:00 [mysqld]
2352 ?        S      0:00 [mysqld]
2353 ?        S      0:00 [mysqld]
2354 ?        S      0:00 [mysqld]
2355 ?        S      0:00 [mysqld]
2356 ?        S      0:00 [mysqld]
2357 ?        S      0:00 [mysqld]
2358 ?        S      0:00 [mysqld]
4479 ?        S      0:00 /usr/local/sbin/saslauthd -c -a pam
4567 ? S 0:00 /usr/sbin/saslauthd -m /var/run/saslauthd/mux -a shadow
5332 pts/1    S      0:00 mysql -u root -p mail
5333 ?        S      0:00 [mysqld]


_______________________________________________
This mailing list is hosted and supported
by bit-heads GmbH | http://www.bit-heads.ch

_______________________________________________
Web-cyradm mailing list
[email protected]
http://www.web-cyradm.org/mailman/listinfo/web-cyradm

Reply via email to