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]