LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 11-06-2009, 12:20 AM   #1
xiutuo
Member
 
Registered: Mar 2008
Posts: 55

Rep: Reputation: 15
postfix used dovecot lda problem


env:
postfix2.6+dovecot1.2.6+ clamav+ amavisw+virtual users(mysql)
sasl auth:dovecot sasl
lda:dovecot lda (with quota function)

here is the problem:

email send to other MTA,work fine.
but send mail to my own mailserver user,postfix use its own lda- local,
it should use dovecot as lda ,and these mail can not receive.
mailserver logs below:
Quote:

Nov 6 12:17:11 mail postfix/postfix-script[23386]: starting the Postfix mail system
Nov 6 12:17:11 mail postfix/master[23387]: daemon started -- version 2.6.2, configuration /etc/postfix
Nov 6 12:17:20 mail postfix/smtpd[23390]: connect from unknown[192.168.8.121]
Nov 6 12:17:21 mail postfix/smtpd[23390]: 2650F134DC0: client=unknown[192.168.8.121], sasl_method=LOGIN, sasl_username=test@lanxt.com
Nov 6 12:17:21 mail postfix/cleanup[23397]: 2650F134DC0: message-id=<ADF95F97B53F445DA9D7349E5810CB13@PC200911031417>
Nov 6 12:17:21 mail postfix/qmgr[23388]: 2650F134DC0: from=<test@lanxt.com>, size=1537, nrcpt=1 (queue active)
Nov 6 12:17:21 mail postfix/smtpd[23390]: disconnect from unknown[192.168.8.121]
Nov 6 12:17:23 mail postfix/smtpd[23406]: connect from localhost.localdomain[127.0.0.1]
Nov 6 12:17:23 mail postfix/smtpd[23406]: 7CF5A134E50: client=localhost.localdomain[127.0.0.1]
Nov 6 12:17:23 mail postfix/cleanup[23397]: 7CF5A134E50: message-id=<ADF95F97B53F445DA9D7349E5810CB13@PC200911031417>
Nov 6 12:17:23 mail postfix/qmgr[23388]: 7CF5A134E50: from=<test@lanxt.com>, size=2203, nrcpt=1 (queue active)
Nov 6 12:17:23 mail amavis[23192]: (23192-01) Passed CLEAN, [192.168.8.121] [192.168.8.121] <test@lanxt.com> -> <test@lanxt.com>, Message-ID: <ADF95F97B53F445DA9D7349E5810CB13@PC200911031417>, mail_id: UKaLmn8pbmz1, Hits: 3.717, size: 1537, queued_as: 7CF5A134E50, 2460 ms
Nov 6 12:17:23 mail postfix/lmtp[23399]: 2650F134DC0: to=<test@lanxt.com>, relay=127.0.0.1[127.0.0.1]:10024, delay=2.7, delays=0.11/0.05/0.09/2.5, dsn=2.0.0, status=sent (250 2.0.0 Ok, id=23192-01, from MTA([127.0.0.1]:10025): 250 2.0.0 Ok: queued as 7CF5A134E50)
Nov 6 12:17:23 mail postfix/qmgr[23388]: 2650F134DC0: removed
Nov 6 12:17:23 mail postfix/local[23408]: 7CF5A134E50: to=<test@lanxt.com>, relay=local, delay=0.33, delays=0.06/0.08/0/0.2, dsn=2.0.0, status=sent (delivered to mailbox)
Nov 6 12:17:23 mail postfix/qmgr[23388]: 7CF5A134E50: removed
anyone any suggest will help out..thx..


relate config file content

1.dovecont.conf
Quote:
# 1.2.6: /etc/dovecot.conf
# OS: Linux 2.6.18-53.el5 i686 CentOS release 5 (Final) ext3
log_path: /var/log/dovelog
protocols: pop3 imap
ssl: no
disable_plaintext_auth: no
login_dir: /usr/local/var/run/dovecot/login
login_executable(default): /usr/local/libexec/dovecot/imap-login
login_executable(imap): /usr/local/libexec/dovecot/imap-login
login_executable(pop3): /usr/local/libexec/dovecot/pop3-login
mail_location: maildir:/var/vmail/%d/%u
mail_debug: yes
mail_executable(default): /usr/local/libexec/dovecot/imap
mail_executable(imap): /usr/local/libexec/dovecot/imap
mail_executable(pop3): /usr/local/libexec/dovecot/pop3
mail_plugin_dir(default): /usr/local/lib/dovecot/imap
mail_plugin_dir(imap): /usr/local/lib/dovecot/imap
mail_plugin_dir(pop3): /usr/local/lib/dovecot/pop3
lda:
postmaster_address: test@lanxt.com
mail_plugins: quota
mail_plugin_dir: /usr/local/lib/dovecot/lda
sendmail_path: /usr/sbin/sendmail
auth_socket_path: /var/run/dovecot/auth-master
auth default:
mechanisms: plain login digest-md5 cram-md5
realms: lanxt.com mail.lanxt.com www.lanxt.com
default_realm: lanxt.com
verbose: yes
debug: yes
passdb:
driver: sql
args: /etc/dovecot-sql.conf
userdb:
driver: sql
args: /etc/dovecot-sql.conf
socket:
type: listen
client:
path: /var/run/dovecot/auth-client
mode: 432
user: postfix
group: postfix
master:
path: /var/run/dovecot/auth-master
mode: 384
user: postfix
group: postfix
plugin:
#trash: /etc/dovecot-trash.conf
2.dovecot-sql.conf
Quote:
driver = mysql
connect = host=localhost dbname=postfix user=root password=****
user_query = SELECT maildir,503 AS uid, 503 AS gid FROM mailbox WHERE username = '%u' AND active = '1'
password_query = SELECT password FROM mailbox WHERE username = '%u' AND active = '1'
3.postfix--main.cf
Quote:
……
……
smtpd_sasl_auth_enable = yes
smtpd_sasl_authenticated_header = yes
smtpd_sasl_local_domain = $myhostname
smtpd_sasl_path = /var/run/dovecot/auth-client
smtpd_sasl_security_options = noanonymous
smtpd_sasl_type = dovecot
unknown_local_recipient_reject_code = 550
virtual_alias_maps = mysql:$config_directory/mysql_virtual_alias_maps.cf
virtual_gid_maps = static:503
virtual_mailbox_base = /var/vmail
virtual_mailbox_domains = mysql:$config_directory/mysql_virtual_domains_maps.cf
virtual_mailbox_maps = mysql:$config_directory/mysql_virtual_mailbox_maps.cf
virtual_minimum_uid = 500
virtual_transport = dovecot
virtual_uid_maps = static:503
……
……
4.postfix--master.cf
Quote:
……
……
dovecot unix - n n - - pipe
flags=DRhu user=postfixostfix argv=/usr/local/libexec/dovecot/deliver -f ${sender} -d ${recipient}
……
……

Last edited by xiutuo; 11-06-2009 at 12:36 AM.
 
Old 11-12-2009, 07:58 PM   #2
xiutuo
Member
 
Registered: Mar 2008
Posts: 55

Original Poster
Rep: Reputation: 15
I fix myself ,change dovecot with newest version...done...
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Mail Server: Postfix + imapproxy + dovecot + squirrelmail -> Folders problem brgsousa Linux - Software 1 09-09-2008 06:56 AM
problem with postfix and dovecot ayush1440 Linux - Server 1 02-01-2008 01:04 AM
Postfix > Dovecot problem cypsteel Linux - Server 0 12-31-2007 02:21 PM
Postfix and Dovecot umbraeOtheisles Linux - Software 3 11-23-2004 07:36 AM
smtp? mua? mta? lda?postfix? AWWWW hotrodowner Linux - Networking 22 06-13-2003 10:08 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 07:22 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration