[Dovecot] LMTP Setup/Design Help Request
Hi again,
Thank you for your first hints. I have now set up a dedicated test instance of postfix and dovecot to be able to recreate the problems in detail.
Even after using your inputs, they do not seem to work with my setup I already mentioned above. I get errors like
postfix/lmtp[10994]: C2DF4C000DF: to=<user1@mydomain.org>, relay=mail.mydomain.org[private/dovecot-lmtp], delay=0.1, delays=0.05/0/0/0.04, dsn=5.1.1, status=bounced (host mail.mydomain.org[private/dovecot-lmtp] said: 550 5.1.1 <user1@mydomain.org> User doesn't exist: user1@mydomain.org (in reply to RCPT TO command))
As stated before, my setup is as follows:
I do not know how to strip the domain when the username is handed over from postfix to dovecot, and what would be the sane solution.
I hope, you can give me a hint to that.
Thank you, again, and greetings,
Matthias Hofer
I understand that technical issue, but what I wanted was a possible solution based on plain usernames.
This is because I want to make the transition from dbmail to dovecot completely transparent to users and clients, and dbmail just uses plain login names, indepentend of what e-Mail alias would then in dbmail be mapped to which login name.
The plain solution above now works completely transparent for IMAP with dovecot, and it is also documented in the wiki that dovecot is domain agnostic. That is great news for my setup.
Where I am very flexible is delivering mail: I could use dovecot-lda or dovecot-lmtpd, or postfix doing the work itself or whatever. It is just that I did not find any solution, and this is why I was asking for help here.
So, is there a way for dovecot-{lda/lmtpd} to accept "user1@mydomain.org" but checks for "user1" in the user DB?
If there is some other idea, I would be happy to hear about it.
Thank you, again,
Matthias Hofer
Matthias Hofer schrieb:
So, is there a way for dovecot-{lda/lmtpd} to accept "user1@mydomain.org" but checks for "user1" in the user DB?
Try username_format=%n so dovecot uses the username only: http://wiki2.dovecot.org/Variables
passdb { driver = passwd-file args = scheme=PLAIN username_format=%n /etc/dovecot/mypasswd.file }
At first, everyone should use "Reply to List", it's much easier to understand if you see every ones answers. :)
I see that you solved the problem, another things that could help in future: dovecot logging verbosity
http://wiki1.dovecot.org/Logging#Logging_verbosity
This is a great help if something doesn't work.
Have a nice weekend. :)
Greetings, Jan
participants (3)
-
Jan Phillip Greimann
-
Matthias Hofer
-
Patrick Westenberg