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 <[EMAIL PROTECTED]>: Recipient address rejected: User 
unknown in virtual mailbox table; from=<[EMAIL PROTECTED]> to=<[EMAIL 
PROTECTED]> proto=ESMTP helo=<www.linux-win.org>
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=<[EMAIL 
PROTECTED]>
Jul 15 17:56:27 linux-win postfix/qmgr[667]: 8EF685806: from=<[EMAIL 
PROTECTED]>, size=862, nrcpt=1 (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=<[EMAIL 
PROTECTED]>, orig_to=<postmaster>, relay=local, delay=6, status=sent (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=flob2009, ip=[::ffff:127.0.0.1], 
protocol=IMAP
Jul 15 17:57:05 linux-win imapd: LOGOUT, user=flob2009, ip=[::ffff:127.0.0.1], 
headers=0, body=0, time=0


In my main.cf , i have that :


command_directory = /usr/local/sbin
daemon_directory = /usr/local/libexec/postfix
smtpd_banner = $myhostname ESMTP $mail_name $mail_version (FreeBSD)
setgid_group = maildrop
biff = no
masquerade_domains = mail.linux-win.org linux-win.org
masquerade_exceptions = root
# appending .domain is the MUA's job.
append_dot_mydomain = yes
myhostname = linux-win.org
mydestination = $myhostname
alias_maps = hash:/usr/local/etc/postfix/aliases
alias_database = hash:/usr/local/etc/postfix/aliases
home_mailbox = Maildir/
mail_spool_directory = /var/mail
local_destination_concurrency_limit= 1
default_destination_concurrency_limit = 1
smtpd_recipient_limit = 50
notify_classes=bounce,resource,software,policy
relayhost =
relay_domains =
mynetworks = 192.168.1.0/32, 192.168.3.0/32, 127.0.0.0/8
mailbox_command = /usr/local/bin/procmail
mailbox_size_limit = 0
mailq_path = /usr/local/bin/mailq
message_size_limit = 10000000
recipient_delimiter = +
smtpd_helo_required = yes
smtpd_recipient_restrictions = permit_mynetworks,permit_sasl_authenticated,
    
reject_unauth_pipelining,reject_unauth_destination,reject_invalid_hostname,reject_unknown_recipient_domain
smtpd_sender_restrictions = hash:/usr/local/etc/postfix/access,
    reject_unknown_sender_domain,
    reject_invalid_hostname
header_checks = regexp:/usr/local/etc/postfix/header_checks
strict_rfc821_envelopes = yes
unknown_address_reject_code = 554
unknown_client_reject_code = 554
unknown_hostname_reject_code = 554
readme_directory = no
sample_directory = /usr/local/etc/postfix
sendmail_path = /usr/local/sbin/sendmail
manpage_directory = /usr/local/man
newaliases_path = /usr/local/bin/newaliases
queue_directory = /var/spool/postfix
mail_owner = postfix
unknown_local_recipient_reject_code = 450

virtual_alias_maps = mysql:/usr/local/etc/postfix/mysql_virtual_alias_maps.cf
virtual_gid_maps = static:125
virtual_mailbox_base = /home/vmail
virtual_mailbox_domains = 
mysql:/usr/local/etc/postfix/mysql_virtual_domains_maps.cf
virtual_mailbox_maps = 
mysql:/usr/local/etc/postfix/mysql_virtual_mailbox_maps.cf
virtual_mailbox_limit = 51200000
virtual_minimum_uid = 125
virtual_transport = maildrop
virtual_uid_maps = static:125
content_filter = 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    
maildir          [EMAIL PROTECTED]/Maildir/
quota            0


etc...


With maildrop , i have that :

maildrop -V 9 -d flob2009
maildrop: authlib: groupid=125
maildrop: authlib: userid=125
maildrop: authlib: logname=flob2009, home=/home/vmail, [EMAIL 
PROTECTED]/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".







_______________________________________________
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to