<html><head><title>Cyrus + Postfix through LMTP problem</title>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-15">
</head>
<body>
<span style=" font-family:'Verdana'; font-size: 10pt;">Hello,<br>
<br>
I seem to have one nagging problem in getting my Cyrus to work in that it won't talk with Postfix.<br>
They are on the same computer and are connected through LMTP. I use MySQL for authentication, <br>
directly through Postfix and via SASL for Cyrus. I can connect to Cyrus through my email client <br>
on another computer to the same email address that Postfix is having a problem with.<br>
<br>
From the detailed debug log from Postfix it seems to me that Cyrus is rejecting the email but<br>
all the detail in the log suggests that Postfix is passing Cyrus the correct information. Being<br>
a newbie on Linux and all the components in this setup I could very well be wrong in this <br>
conclusion so I am hoping someone much more experienced can shed some light on this problem.<br>
<br>
Below is all the outputs I could create from sending an email to and from the same account as <br>
a test plus all the setup information to go with it - with comments and some other <br>
irrelevancies stripped to make a little as possible to look through.<br>
<br>
I know this is my last problem but I've run out of ideas on where to look to solve it so help <br>
would be greatly appreciated!<br>
<br>
-Reggie<br>
<br>
<span style=" font-family:'Courier';">-----------------------------------------------------------------------------------------------------<br>
- VERSIONS OF SOFTWARE (all x86_64)<br>
-----------------------------------------------------------------------------------------------------<br>
Cyrus-IMAP 2.3.11- 31.1<br>
Cyrus-SASL 2.1.22-140.2<br>
Postfix 2.5. 1- 28.5<br>
<br>
<br>
-----------------------------------------------------------------------------------------------------<br>
- PROOF OF EXISTENCE OF MAILBOXES<br>
-----------------------------------------------------------------------------------------------------<br>
neutrino:/var/mail # cyradm -u root@localhost localhost<br>
Password: <br>
localhost> lm *@stuv.com<br>
user.sales@stuv.com (\HasNoChildren) <br>
localhost> <br>
<br>
<br>
-----------------------------------------------------------------------------------------------------<br>
- ADDITIONAL VERIFICATION OF MAILBOXES -> OUTPUT FROM "tree -Ad" on Cyrus data (mailboxes) directory<br>
-----------------------------------------------------------------------------------------------------<br>
.<br>
├── domain<br>
│ └── s<br>
│ └── stuv.com<br>
│ └── u<br>
│ └── user^sales<br>
├── stage.<br>
└── sync.<br>
<br>
<br>
-----------------------------------------------------------------------------------------------------<br>
- CYRUS SETUP File: "cyrus.conf"<br>
-----------------------------------------------------------------------------------------------------<br>
START {<br>
recover cmd="ctl_cyrusdb -r"<br>
idled cmd="idled"<br>
}<br>
SERVICES {<br>
imap cmd="imapd" listen="imap" prefork=0<br>
sieve cmd="timsieved" listen="sieve" prefork=0<br>
lmtpunix cmd="lmtpd" listen="/var/lib/imap/socket/lmtp" prefork=0<br>
notify cmd="notifyd" listen="/var/lib/imap/socket/notify" proto="udp" prefork=0<br>
}<br>
<br>
EVENTS {<br>
checkpoint cmd="ctl_cyrusdb -c" period=30<br>
delprune cmd="cyr_expire -E 3" at=0400<br>
tlsprune cmd="tls_prune" at=0400<br>
}<br>
<br>
<br>
-----------------------------------------------------------------------------------------------------<br>
- CYRUS SETUP File: "imap.conf"<br>
-----------------------------------------------------------------------------------------------------<br>
sasl_auxprop_plugin: sql<br>
sasl_log_level: 7<br>
sasl_mech_list: PLAIN LOGIN CRAM-MD5 DIGEST-MD5<br>
sasl_pwcheck_method: auxprop<br>
sasl_sql_hostnames: localhost<br>
sasl_sql_user: cyrus<br>
sasl_sql_passwd: XXXXXXXXXXXX<br>
sasl_sql_database: mail<br>
sasl_sql_select: SELECT `password` FROM `accounts` WHERE `user`='%u' AND `realm`='%r' AND `virtual` != 0<br>
sasl_sql_insert: INSERT INTO `accounts` (`user`, `realm`, `password`) VALUES ('%u', '%r', '%v')<br>
sasl_sql_update: UPDATE `accounts` SET `user`='%u',`realm`='%r',`password`='%v' WHERE `user`='%u' AND `realm`='%r'<br>
<br>
admins: cyrus root<br>
allowplaintext: 1<br>
altnamespace: 1<br>
anyoneuseracl: 0<br>
auth_mech: unix<br>
configdirectory: /var/lib/imap<br>
defaultdomain: localhost<br>
<br>
drachost: localhost<br>
dracinterval: 0<br>
<br>
foolstupidclients: 1<br>
<br>
hashimapspool: 1<br>
<br>
improved_mboxlist_sort: 1<br>
lmtp_downcase_rcpt: 1<br>
lmtp_strict_quota: 1<br>
logtimestamps: 1<br>
partition-default: /var/mail/cyrus<br>
popsubfolders: 1<br>
poptimeout: 10<br>
sendmail: /usr/sbin/sendmail<br>
sievedir: /var/mail/sieve<br>
syslog_prefix: SeoWS<br>
unixhierarchysep: 1<br>
virtdomains: 1<br>
<br>
<br>
-----------------------------------------------------------------------------------------------------<br>
- POSTFIX SETUP File: "master.cf" (relevant lines only)<br>
-----------------------------------------------------------------------------------------------------<br>
virtual unix - n n - - virtual<br>
lmtp unix - - n - - lmtp -v<br>
<br>
cyrus unix - n n - - pipe<br>
user=cyrus argv=/usr/lib/cyrus/bin/deliver -e -r ${sender} -m ${extension} ${user}<br>
<br>
<br>
-----------------------------------------------------------------------------------------------------<br>
- POSTFIX SETUP File: "main.cf"<br>
-----------------------------------------------------------------------------------------------------<br>
alias_maps = hash:/etc/aliases, mysql:/etc/postfix/mysql-local-aliases.cf<br>
command_directory = /usr/sbin<br>
config_directory = /etc/postfix<br>
daemon_directory = /usr/lib/postfix<br>
debug_peer_level = 7<br>
home_mailbox = Maildir/<br>
html_directory = /usr/share/doc/packages/postfix24/html<br>
inet_protocols = all<br>
local_destination_concurrency_limit = 5<br>
local_destination_recipient_limit = 300<br>
mail_owner = postfix<br>
mailq_path = /usr/bin/mailq<br>
manpage_directory = /usr/share/man<br>
mydestination = <br>
mydomain = stuv.com<br>
myhostname = neutrino.stuv.com<br>
mynetworks = 192.168.17.0/24, 173.11.84.1, 173.11.84.2, 127.0.0.0/8<br>
myorigin = $mydomain<br>
newaliases_path = /usr/bin/newaliases<br>
queue_directory = /var/spool/postfix<br>
readme_directory = /usr/share/doc/packages/postfix24/README_FILES<br>
sample_directory = /usr/share/doc/packages/postfix24/samples<br>
sendmail_path = /usr/sbin/sendmail<br>
setgid_group = maildrop<br>
smtpd_recipient_restrictions = permit_mynetworks, permit_auth_destination, permit_sasl_authenticated, reject_unauth_destination<br>
soft_bounce = yes<br>
unknown_local_recipient_reject_code = 550<br>
virtual_alias_maps = mysql:/etc/postfix/mysql-virtual-aliases.cf<br>
virtual_gid_maps = static:124<br>
virtual_mailbox_domains = mysql:/etc/postfix/mysql-virtual-mailbox-domains.cf<br>
virtual_mailbox_maps = mysql:/etc/postfix/mysql-virtual-mailboxes.cf<br>
virtual_transport = lmtp:unix:/var/lib/imap/socket/lmtp<br>
virtual_uid_maps = static:1002<br>
<br>
<br>
-----------------------------------------------------------------------------------------------------<br>
- SASL OUTPUT - File: "auth.log"<br>
-----------------------------------------------------------------------------------------------------<br>
Jul 11 03:39:24 neutrino SeoWS/lmtpunix[11084]: sql auxprop plugin using mysql engine<br>
<br>
<br>
-----------------------------------------------------------------------------------------------------<br>
- MySQL QUERY OUTPUT - File: "mysqld-query.log"<br>
-----------------------------------------------------------------------------------------------------<br>
090711 3:39:2414254 Connect postfix@localhost on mail<br>
14254 Query SELECT `send_to` FROM `aliases` WHERE `alias`='stuv.com' AND `virtual` != 0<br>
14255 Connect postfix@localhost on mail<br>
14255 Query SELECT realm FROM accounts WHERE realm='stuv.com' AND `virtual` != 0 LIMIT 1<br>
14256 Connect postfix@localhost on mail<br>
14256 Query SELECT `send_to` FROM `aliases` WHERE `alias`='sales@stuv.com' AND `virtual` != 0<br>
14256 Query SELECT `send_to` FROM `aliases` WHERE `alias`='sales' AND `virtual` != 0<br>
14256 Query SELECT `send_to` FROM `aliases` WHERE `alias`='@stuv.com' AND `virtual` != 0<br>
14257 Connect postfix@localhost on mail<br>
14257 Query SELECT CONCAT(`realm`, '/user.', `user`) AS maildir FROM accounts WHERE CONCAT_WS('@', `user`, `realm`)='sales@stuv.com' AND `virtual` != 0<br>
14258 Connect postfix@localhost on mail<br>
14258 Query SELECT `send_to` FROM `aliases` WHERE `alias`='sales@stuv.com' AND `virtual` != 0<br>
14258 Query SELECT `send_to` FROM `aliases` WHERE `alias`='sales' AND `virtual` != 0<br>
14258 Query SELECT `send_to` FROM `aliases` WHERE `alias`='@stuv.com' AND `virtual` != 0<br>
<br>
<br>
-----------------------------------------------------------------------------------------------------<br>
- POSTFIX DEBUG LEVEL ON LMTP OUTPUT - File: "mail"<br>
-----------------------------------------------------------------------------------------------------<br>
Jul 11 03:39:24 neutrino postfix/lmtp[11083]: smtp_connect_unix: trying: /var/lib/imap/socket/lmtp...<br>
Jul 11 03:39:24 neutrino postfix/lmtp[11083]: global TLS level: none<br>
Jul 11 03:39:24 neutrino postfix/lmtp[11083]: < neutrino.stuv.com[/var/lib/imap/socket/lmtp]: 220 neutrino LMTP Cyrus v2.3.11 ready<br>
Jul 11 03:39:24 neutrino postfix/lmtp[11083]: > neutrino.stuv.com[/var/lib/imap/socket/lmtp]: LHLO neutrino.stuv.com<br>
Jul 11 03:39:24 neutrino postfix/lmtp[11083]: < neutrino.stuv.com[/var/lib/imap/socket/lmtp]: 250-neutrino<br>
Jul 11 03:39:24 neutrino postfix/lmtp[11083]: < neutrino.stuv.com[/var/lib/imap/socket/lmtp]: 250-8BITMIME<br>
Jul 11 03:39:24 neutrino postfix/lmtp[11083]: < neutrino.stuv.com[/var/lib/imap/socket/lmtp]: 250-ENHANCEDSTATUSCODES<br>
Jul 11 03:39:24 neutrino postfix/lmtp[11083]: < neutrino.stuv.com[/var/lib/imap/socket/lmtp]: 250-PIPELINING<br>
Jul 11 03:39:24 neutrino postfix/lmtp[11083]: < neutrino.stuv.com[/var/lib/imap/socket/lmtp]: 250-SIZE<br>
Jul 11 03:39:24 neutrino postfix/lmtp[11083]: < neutrino.stuv.com[/var/lib/imap/socket/lmtp]: 250-AUTH EXTERNAL<br>
Jul 11 03:39:24 neutrino postfix/lmtp[11083]: < neutrino.stuv.com[/var/lib/imap/socket/lmtp]: 250 IGNOREQUOTA<br>
Jul 11 03:39:24 neutrino postfix/lmtp[11083]: server features: 0xf size 0<br>
Jul 11 03:39:24 neutrino postfix/lmtp[11083]: Using LMTP PIPELINING, TCP send buffer size is 4096<br>
Jul 11 03:39:24 neutrino postfix/lmtp[11083]: > neutrino.stuv.com[/var/lib/imap/socket/lmtp]: MAIL FROM:<sales@stuv.com> SIZE=1520<br>
Jul 11 03:39:24 neutrino postfix/lmtp[11083]: > neutrino.stuv.com[/var/lib/imap/socket/lmtp]: RCPT TO:<sales@stuv.com><br>
Jul 11 03:39:24 neutrino postfix/lmtp[11083]: > neutrino.stuv.com[/var/lib/imap/socket/lmtp]: DATA<br>
Jul 11 03:39:24 neutrino postfix/lmtp[11083]: < neutrino.stuv.com[/var/lib/imap/socket/lmtp]: 250 2.1.0 ok<br>
Jul 11 03:39:24 neutrino postfix/lmtp[11083]: < neutrino.stuv.com[/var/lib/imap/socket/lmtp]: 550-Mailbox unknown. Either there is no mailbox associated with this<br>
Jul 11 03:39:24 neutrino postfix/lmtp[11083]: < neutrino.stuv.com[/var/lib/imap/socket/lmtp]: 550-name or you do not have authorization to see it.<br>
Jul 11 03:39:24 neutrino postfix/lmtp[11083]: < neutrino.stuv.com[/var/lib/imap/socket/lmtp]: 550 5.1.1 User unknown<br>
Jul 11 03:39:24 neutrino postfix/lmtp[11083]: connect to subsystem private/defer<br>
Jul 11 03:39:24 neutrino postfix/lmtp[11083]: send attr nrequest = 0<br>
Jul 11 03:39:24 neutrino postfix/lmtp[11083]: send attr flags = 0<br>
Jul 11 03:39:24 neutrino postfix/lmtp[11083]: send attr queue_id = 1E8E1D67BB<br>
Jul 11 03:39:24 neutrino postfix/lmtp[11083]: send attr original_recipient = sales@stuv.com<br>
Jul 11 03:39:24 neutrino postfix/lmtp[11083]: send attr recipient = sales@stuv.com<br>
Jul 11 03:39:24 neutrino postfix/lmtp[11083]: send attr offset = 498<br>
Jul 11 03:39:24 neutrino postfix/lmtp[11083]: send attr dsn_orig_rcpt = rfc822;sales@stuv.com<br>
Jul 11 03:39:24 neutrino postfix/lmtp[11083]: send attr notify_flags = 0<br>
Jul 11 03:39:24 neutrino postfix/lmtp[11083]: send attr status = 4.1.1<br>
Jul 11 03:39:24 neutrino postfix/lmtp[11083]: send attr diag_type = smtp<br>
Jul 11 03:39:24 neutrino postfix/lmtp[11083]: send attr diag_text = 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<br>
Jul 11 03:39:24 neutrino postfix/lmtp[11083]: send attr mta_type = dns<br>
Jul 11 03:39:24 neutrino postfix/lmtp[11083]: send attr mta_mname = neutrino.stuv.com<br>
Jul 11 03:39:24 neutrino postfix/lmtp[11083]: send attr action = delayed<br>
Jul 11 03:39:24 neutrino postfix/lmtp[11083]: send attr reason = host neutrino.stuv.com[/var/lib/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)<br>
Jul 11 03:39:24 neutrino postfix/smtpd[11074]: disconnect from unknown[192.168.17.1]<br>
Jul 11 03:39:24 neutrino postfix/lmtp[11083]: private/defer socket: wanted attribute: status<br>
Jul 11 03:39:24 neutrino postfix/lmtp[11083]: input attribute name: status<br>
Jul 11 03:39:24 neutrino postfix/lmtp[11083]: input attribute value: 0<br>
Jul 11 03:39:24 neutrino postfix/lmtp[11083]: private/defer socket: wanted attribute: (list terminator)<br>
Jul 11 03:39:24 neutrino postfix/lmtp[11083]: input attribute name: (end)<br>
Jul 11 03:39:24 neutrino postfix/lmtp[11083]: 1E8E1D67BB: to=<sales@stuv.com>, relay=neutrino.stuv.com[/var/lib/imap/socket/lmtp], delay=0.09, delays=0.03/0.02/0.01/0.04, dsn=4.1.1, status=SOFTBOUNCE (host neutrino.stuv.com[/var/lib/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))<br>
Jul 11 03:39:24 neutrino postfix/lmtp[11083]: < neutrino.stuv.com[/var/lib/imap/socket/lmtp]: 503 5.5.1 No recipients<br>
Jul 11 03:39:24 neutrino postfix/lmtp[11083]: > neutrino.stuv.com[/var/lib/imap/socket/lmtp]: RSET<br>
Jul 11 03:39:24 neutrino postfix/lmtp[11083]: > neutrino.stuv.com[/var/lib/imap/socket/lmtp]: QUIT<br>
Jul 11 03:39:24 neutrino postfix/lmtp[11083]: < neutrino.stuv.com[/var/lib/imap/socket/lmtp]: 250 2.0.0 ok<br>
Jul 11 03:39:24 neutrino postfix/lmtp[11083]: name_mask: resource<br>
Jul 11 03:39:24 neutrino postfix/lmtp[11083]: name_mask: software<br>
Jul 11 03:39:24 neutrino postfix/lmtp[11083]: deliver_request_final: send: "" -1<br>
Jul 11 03:39:24 neutrino postfix/lmtp[11083]: send attr status = <br>
Jul 11 03:39:24 neutrino postfix/lmtp[11083]: send attr diag_type = <br>
Jul 11 03:39:24 neutrino postfix/lmtp[11083]: send attr diag_text = <br>
Jul 11 03:39:24 neutrino postfix/lmtp[11083]: send attr mta_type = <br>
Jul 11 03:39:24 neutrino postfix/lmtp[11083]: send attr mta_mname = <br>
Jul 11 03:39:24 neutrino postfix/lmtp[11083]: send attr action = <br>
Jul 11 03:39:24 neutrino postfix/lmtp[11083]: send attr reason = <br>
Jul 11 03:39:24 neutrino postfix/lmtp[11083]: send attr status = 4294967295<br>
Jul 11 03:39:24 neutrino postfix/lmtp[11083]: master_notify: status 1<br>
Jul 11 03:39:24 neutrino postfix/lmtp[11083]: connection closed<br>
-----------------------------------------------------------------------------------------------------<br>
- END POSTFIX OUTPUT<br>
-----------------------------------------------------------------------------------------------------<br>
<br>
<span style=" font-family:'arial'; font-size: 8pt; color: #c0c0c0;"><i>-- <br>
Reg <a style=" font-style: normal;" href="mailto:nybbles2byte@gmail.com">mailto:nybbles2byte@gmail.com</a></body>