From owner-freebsd-questions@FreeBSD.ORG Fri Jul 15 16:37:00 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 242C016A41C for ; Fri, 15 Jul 2005 16:37:00 +0000 (GMT) (envelope-from bettan@nerim.net) Received: from kraid.nerim.net (smtp-105-friday.nerim.net [62.4.16.105]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7130F43D45 for ; Fri, 15 Jul 2005 16:36:58 +0000 (GMT) (envelope-from bettan@nerim.net) Received: from danielle (linux-win.org [62.212.96.206]) by kraid.nerim.net (Postfix) with SMTP id 312DC40E25 for ; Fri, 15 Jul 2005 18:36:54 +0200 (CEST) Message-ID: <001401c5895b$699d4170$0301a8c0@danielle> From: "cell" To: Date: Fri, 15 Jul 2005 18:36:55 +0200 MIME-Version: 1.0 X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.2180 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Problems with postfix / mysql /maildrop / courier-imap X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 15 Jul 2005 16:37:00 -0000 Hello , i have a problem when i sent a mail with a virtual user.I am on = freebsd 5.4 and i use postfix-2.1.5_1,1 , maildrop-1.8.0_3 , = courier-authlib-0.56 , courier-authlib-mysql-0.56 and = courier-imap-4.0.3,1 . When i sent a mail with a virtual user , i have that in my log : Jul 15 17:56:27 linux-win postfix/smtpd[1067]: connect from = localhost[127.0.0.1] Jul 15 17:56:27 linux-win postfix/smtpd[1067]: NOQUEUE: reject: RCPT = from localhost[127.0.0.1]: 550 : Recipient = address rejected: User unknown in virtual mailbox table; = from=3D to=3D = proto=3DESMTP helo=3D Jul 15 17:56:27 linux-win postfix/smtpd[1067]: lost connection after = RCPT from localhost[127.0.0.1] Jul 15 17:56:27 linux-win postfix/cleanup[1068]: 8EF685806: = message-id=3D<20050715155627.8EF685806@linux-win.org> Jul 15 17:56:27 linux-win postfix/qmgr[667]: 8EF685806: = from=3D, size=3D862, nrcpt=3D1 (queue = active) Jul 15 17:56:27 linux-win postfix/smtpd[1067]: disconnect from = localhost[127.0.0.1] Jul 15 17:56:33 linux-win postfix/local[1069]: 8EF685806: = to=3D, orig_to=3D, relay=3Dlocal, = delay=3D6, status=3Dsent (delivered to command: /usr/local/bin/procmail) Jul 15 17:56:33 linux-win postfix/qmgr[667]: 8EF685806: removed Jul 15 17:57:05 linux-win imapd: LOGIN, user=3Dflob2009, = ip=3D[::ffff:127.0.0.1], protocol=3DIMAP Jul 15 17:57:05 linux-win imapd: LOGOUT, user=3Dflob2009, = ip=3D[::ffff:127.0.0.1], headers=3D0, body=3D0, time=3D0 In my main.cf , i have that : command_directory =3D /usr/local/sbin daemon_directory =3D /usr/local/libexec/postfix smtpd_banner =3D $myhostname ESMTP $mail_name $mail_version (FreeBSD) setgid_group =3D maildrop biff =3D no masquerade_domains =3D mail.linux-win.org linux-win.org masquerade_exceptions =3D root # appending .domain is the MUA's job. append_dot_mydomain =3D yes myhostname =3D linux-win.org mydestination =3D $myhostname alias_maps =3D hash:/usr/local/etc/postfix/aliases alias_database =3D hash:/usr/local/etc/postfix/aliases home_mailbox =3D Maildir/ mail_spool_directory =3D /var/mail local_destination_concurrency_limit=3D 1 default_destination_concurrency_limit =3D 1 smtpd_recipient_limit =3D 50 notify_classes=3Dbounce,resource,software,policy relayhost =3D relay_domains =3D mynetworks =3D 192.168.1.0/32, 192.168.3.0/32, 127.0.0.0/8 mailbox_command =3D /usr/local/bin/procmail mailbox_size_limit =3D 0 mailq_path =3D /usr/local/bin/mailq message_size_limit =3D 10000000 recipient_delimiter =3D + smtpd_helo_required =3D yes smtpd_recipient_restrictions =3D = permit_mynetworks,permit_sasl_authenticated, = reject_unauth_pipelining,reject_unauth_destination,reject_invalid_hostnam= e,reject_unknown_recipient_domain smtpd_sender_restrictions =3D hash:/usr/local/etc/postfix/access, reject_unknown_sender_domain, reject_invalid_hostname header_checks =3D regexp:/usr/local/etc/postfix/header_checks strict_rfc821_envelopes =3D yes unknown_address_reject_code =3D 554 unknown_client_reject_code =3D 554 unknown_hostname_reject_code =3D 554 readme_directory =3D no sample_directory =3D /usr/local/etc/postfix sendmail_path =3D /usr/local/sbin/sendmail manpage_directory =3D /usr/local/man newaliases_path =3D /usr/local/bin/newaliases queue_directory =3D /var/spool/postfix mail_owner =3D postfix unknown_local_recipient_reject_code =3D 450 virtual_alias_maps =3D = mysql:/usr/local/etc/postfix/mysql_virtual_alias_maps.cf virtual_gid_maps =3D static:125 virtual_mailbox_base =3D /home/vmail virtual_mailbox_domains =3D = mysql:/usr/local/etc/postfix/mysql_virtual_domains_maps.cf virtual_mailbox_maps =3D = mysql:/usr/local/etc/postfix/mysql_virtual_mailbox_maps.cf virtual_mailbox_limit =3D 51200000 virtual_minimum_uid =3D 125 virtual_transport =3D maildrop virtual_uid_maps =3D static:125 content_filter =3D smtp-amavis:[127.0.0.1]:10024 My authmysqlrc is : MYSQL_CRYPT_PWFIELD password MYSQL_DATABASE postfix MYSQL_GID_FIELD '125' MYSQL_HOME_FIELD '/home/vmail' MYSQL_LOGIN_FIELD username MYSQL_MAILDIR_FIELD maildir MYSQL_NAME_FIELD name MYSQL_OPT 0 MYSQL_PASSWORD ****** MYSQL_SERVER localhost MYSQL_UID_FIELD '125' MYSQL_USERNAME postfix MYSQL_USER_TABLE mailbox and i have add a virtual domain who is "mail.linux-win.org" and a = virtual user with phpmyadmin.With phypmyadmin , in the table "mailbox" , = i have that : username flob2009 password ********* name Mailbox User =20 maildir flob2009@mail.linux-win.org/Maildir/ quota 0 etc... With maildrop , i have that : maildrop -V 9 -d flob2009 maildrop: authlib: groupid=3D125 maildrop: authlib: userid=3D125 maildrop: authlib: logname=3Dflob2009, home=3D/home/vmail, = mail=3Dflob2009@mail.linux-win.org/Maildir/ maildrop: Changing to /home/vmail Anyone see where is the probleme , because i don't know why postfix say = "Recipient address rejected: User unknown in virtual mailbox table".