I get Maildir being created in /home/vmail but that's all. master.cf # # maildrop. See the Postfix MAILDROP_README file for details. # Also specify in main.cf: maildrop_destination_recipient_limit=1 # maildrop unix - n n - - pipe flags=DRhu user=vmail argv=/usr/bin/maildrop -d ${recipient} # # See the Postfix UUCP_README file for configuration details. # uucp unix - n n - - pipe flags=Fqhu user=uucp argv=uux -r -n -z -a$sender - $nexthop!rmail ($recipient) # # Other external delivery methods. # ifmail unix - n n - - pipe flags=F user=ftn argv=/usr/lib/ifmail/ifmail -r $nexthop ($recipient) bsmtp unix - n n - - pipe flags=Fq. user=bsmtp argv=/usr/lib/bsmtp/bsmtp -t$nexthop -f$sender $recipient scalemail-backend unix - n n - 2 pipe flags=R user=scalemail argv=/usr/lib/scalemail/bin/scalemail-store ${nexthop} ${user} ${extension} mailman unix - n n - - pipe flags=FR user=list argv=/usr/lib/mailman/bin/postfix-to-mailman.py ${nexthop} ${user} ################################################## amavis unix - - - - 2 smtp -o smtp_data_done_timeout=1200 -o smtp_send_xforward_command=yes /maildrop main.cf mahler:/etc/courier# cd ../postfix mahler:/etc/postfix# vi master.cf mahler:/etc/postfix# vi main.cf mahler:/etc/postfix# postconf -n broken_sasl_auth_clients = yes config_directory = /etc/postfix message_size_limit = 30720000 mydestination = mail.myhost.tld, localhost, localhost.localdomain myhostname = mail.myhost.tld mynetworks = 127.0.0.0/8 proxy_read_maps = $local_recipient_maps $mydestination $virtual_alias_maps $virtual_alias_domains $virtual_mailbox_maps $virtual_mailbox_domains $relay_recipient_maps $relay_domains $canonical_maps $sender_canonical_maps $recipient_canonical_maps $relocated_maps $transport_maps $mynetworks $virtual_mailbox_limit_maps relay_domains = mysql:/etc/postfix/mysql_relay_domains_maps.cf smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination smtpd_sasl_auth_enable = yes smtpd_sasl_authenticated_header = yes smtpd_tls_cert_file = /etc/postfix/smtpd.cert smtpd_tls_key_file = /etc/postfix/smtpd.key smtpd_use_tls = yes transport_maps = hash:/etc/postfix/transport virtual_alias_maps = proxy:mysql:/etc/postfix/mysql_virtual_alias_maps.cf virtual_gid_maps = static:5000 virtual_mailbox_base = /home/vmail virtual_mailbox_domains = proxy:mysql:/etc/postfix/mysql_virtual_domains.cf virtual_mailbox_maps = proxy:mysql:/etc/postfix/mysql_virtual_mailboxes.cf virtual_transport = maildrop virtual_uid_maps = static:5000
Hi I found this was a maildrop problem and managed to get that running, but the problem now seems to be in courier. For some reason it doesn't get the full path for the file, with the result that the chdir command borks authdaemond: SQL query: SELECT username, password, "", 5000, 5000, "/home/vmail/", CONCAT(SUBSTRING_INDEX(username,'@',-1),'/',SUBSTRING_INDEX(username,'@',1),'/') , quota, "", "" FROM mailbox WHERE username = '[email protected]' Oct 6 17:46:30 mahler authdaemond: password matches successfully Oct 6 17:46:30 mahler authdaemond: authmysql: sysusername=<null>, sysuserid=5000, sysgroupid=5000, homedir=/home/vmail/, [email protected], fullname=<null>, maildir=domain.tld/<user>/, quota=0, options=<null> Oct 6 17:46:30 mahler authdaemond: Authenticated: sysusername=<null>, sysuserid=5000, sysgroupid=5000, homedir=/home/vmail/, [email protected], fullname=<null>, maildir=domain.tld/<user>/, quota=0, options=<null> Oct 6 17:46:30 mahler imapd-ssl: chdir domain.tld/<user>/: No such file or directory Maybe a change to the SQL string?
Yes, and the mail goes to /home/vmail/<user>@domain.tld/new/. Not sure how the directories /new /tmp/ and /cur got there, but suspect it's maildrop. Should I be using maildrop at all? It's not part of the howto (Virtual Users And Domains With Postfix, Courier, MySQL And SquirrelMail (Debian Lenny))