LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 03-07-2018, 04:50 PM   #1
chinook96
LQ Newbie
 
Registered: Mar 2018
Posts: 2

Rep: Reputation: Disabled
postfix with dovecot user unknown


I have postfix with ldap and virtual. It is work fine. But when I want delivered with dovecot it is writing user unknown. Because postfix delivered with full mail address of the recipient (test@domain.com). But dovecot's user database to only recognise usernames without domains (test).

Imap with dovecot work fine too.
postfix witch virtual work fine too.

But postfix with dovecot work when only username is same as mail address. Can tell postfix send dovecot only username? Now it is send email address.

main.cf
dovecot unix - n n - - pipe
flags=DRhu user=vmail:vmail argv=/usr/lib/dovecot/dovecot-lda -f ${sender} -d ${user}@${nexthop}


Where is error?
 
Old 03-08-2018, 01:11 PM   #2
chinook96
LQ Newbie
 
Registered: Mar 2018
Posts: 2

Original Poster
Rep: Reputation: Disabled
I think, that error is in dovecot. It cant not verify alias.

I set verify for lda.
Quote:
}
userdb {
driver = prefetch
}
But I know verify user and password. It is work now for verify only user
Quote:
user_attrs = maildrop=mail=/data/vmail/%$/Maildir, maildrop=home=/data/vmail/%$
user_filter = (&(objectClass=mailUser)(uid=%u))
pass_attrs = uid=user,userPassword=password
pass_filter = (&(objectClass=posixAccount)(uid=%u))
When I want verify alias I configure:
Quote:
user_filter = (&(objectClass=mailUser)(mail=%u))
pass_attrs = uid=user,userPassword=password,maildrop=userdb_mail=/data/vmail/%$/Maildir, maildrop=userdb_home=/data/vmail/%$, uid=userdb_uid
pass_filter = (&(objectClass=posixAccount)(uid=%u))
It is verify only alias. But I do not know how to make it work together.
 
  


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
[SOLVED] Postfix and Dovecot - One user receives mail but other one not DextrousDave Linux - Server 2 07-22-2013 02:18 PM
Postfix, dovecot, user account setup problems freeweaver Linux - Server 1 11-15-2012 10:32 AM
User unknown Postfix giorniwrek Linux - Newbie 1 04-22-2012 05:26 PM
postfix + dovecot + TLS: can't relay for authenticated user gargunkle Linux - Software 4 10-19-2011 10:25 PM
Strange dovecot logs (check pass; user unknown) 3dMaster Linux - Server 3 04-14-2008 07:24 AM

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

All times are GMT -5. The time now is 10:00 PM.

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