I'm tired of searching helpful information, i've red all mailing lists but it still not working. Now im running it in non chroot environment. Im thinking what i need to change in my configuration files to get it working. Im running freebsd 7.0 and postfix + sasl2 + mysql + postfixadmin. I can't login with my email client (thunderbird). The log file says:
Jul 10 19:34:31 ist imapd: LOGIN FAILED, user=admin, ip=[MYIPADDRESS]
But when i use for the username "admin@sub.domain.com" (not only "admin") then i can login successfully.
There are my configuration files:
main.cf:
alias_database = hash:/usr/local/etc/postfix/aliases
alias_maps = hash:/usr/local/etc/postfix/aliases
command_directory = /usr/local/sbin
config_directory = /usr/local/etc/postfix
daemon_directory = /usr/local/libexec/postfix
debug_peer_level = 2
default_destination_concurrency_limit = 10
disable_vrfy_command = yes
home_mailbox = Maildir/
inet_interfaces = all
local_destination_concurrency_limit = 2
mail_name = Postfix
mail_owner = postfix
mail_spool_directory = /var/mail
mailbox_size_limit = 10000000
mailq_path = /usr/local/bin/mailq
manpage_directory = /usr/local/man
#maximal_queue_lifetime = 3d
message_size_limit = 5000000
mydestination = 127.0.0.1
myhostname = sub.domain.com
mynetworks = 10.0.1.0/24, 127.0.0.0/8
myorigin = $myhostname
newaliases_path = /usr/local/bin/newaliases
queue_directory = /var/spool/postfix
queue_run_delay = 30m
readme_directory = no
relay_domains = 127.0.0.0/8
sample_directory = /usr/local/etc/postfix
sendmail_path = /usr/local/sbin/sendmail
setgid_group = maildrop
smtpd_banner = $myhostname ESMTP $mail_name
smtpd_error_sleep_time = 3
smtpd_hard_error_limit = 5
smtpd_recipient_limit = 10
smtpd_soft_error_limit = 3
unknown_local_recipient_reject_code = 550
virtual_mailbox_base = /usr/local/virtual
virtual_alias_maps = mysql:/usr/local/etc/postfix/mysql_virtual_alias_maps.cf
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_gid_maps = static:125
virtual_minimum_uid = 125
virtual_uid_maps = static:125
virtual_transport = virtual
smtpd_sender_restrictions = reject_unknown_sender_domain
smtpd_client_restrictions = reject_unknown_sender_domain
smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination
smtpd_sasl_auth_enable = yes
broken_sasl_auth_clients = yes
smtpd_sasl_local_domain = smtpd_sasl_security_options = noanonymous
mysql_virtual_alias_maps.cf:
user = postfix
password = postfix
hosts = 127.0.0.1
dbname = postfix
table = alias
select_field = goto
where_field = address
mysql_virtual_domains_maps.cf:
user = postfix
password = postfix
hosts = 127.0.0.1
dbname = postfix
table = domain
select_field = description
where_field = domain
mysql_virtual_mailbox_maps.cf
user = postfix
password = postfix
hosts = 127.0.0.1
dbname = postfix
table = mailbox
select_field = maildir
where_field = username
smtpd.conf:
pwcheck_method: auxprop
auxprop_plugin: sql
sql_engine: mysql
mech_list: login plain
sql_user: postfix
sql_passwd: postfix
sql_database: postfix
sql_select: select password from mailbox where username = '%u@%r'
sql_verbose: yes
ls -la /usr/local/virtual:
/usr/local/virtual:
total 6
drwxr-x--x 3 postfix postfix 512 Jul 10 18:53 .
drwxr-xr-x 17 root wheel 512 Jul 8 15:44 ..
drwx------ 5 postfix postfix 512 Jul 10 18:53
admin@sub.domain.com
Thank you for your patience.