Re: Virtual User handling

2019-09-08 Thread Ede Wolf

Hooray,

I think I have it now. The lmtpd user was member of the goup "mail", 
that is required to access the socket, however, it was not it's primary 
group. Seems like opensmtpd does not like the non primary groups.


I've changed this and it seems to work now - besides mary not having a 
mailbox, but that is on the other side of the socket and ok:


b2e883cb2493b807 mda delivery evpid=bb707c97fa5b562b 
from= to= rcpt= 
user=lmtpd delay=2m40s result=TempFail stat=Error (temporary failure: 
"mail.lmtp: LMTP server error: 550-Mailbox unknown.  Either there is no 
mailbox associated with this")



What is still bite me, why the error changed from

mail.lmtp: No such file or directoryconnect

to

mail.lmtp: Permission deniedconnect


All that I can remember I've done was a restart (or poweron today, after 
I've powered off yesterday).


Anyway, thanks to all for your time, support and hints. I'll silently 
try to figure out the cause for the change in the errormessage and then 
we may move on to filtering.


Thanks very much again!


Ede


Am 08.09.19 um 17:22 schrieb Reio Remma:

On 07.09.2019 12:53, Ede Wolf wrote:
Excellent idea, however, the error stays the same. No change, despite copying 
the whole opensmtpd folder to /usr/local/libexec

result=TempFail stat=Error (temporary failure: "mail.lmtp: No such file or 
directoryconnect")


I purposefully mistyped the Dovecot LMTP socket in my config and got the same 
message.

Sep  7 13:26:28 host smtpd[26873]: 7cde0d1cf207f8f3 mda delivery evpid=b96774ed55a5492e from=<> 
to=<> rcpt=<> user=3 delay=0s result=TempFail stat=Error (temporary failure: "mail.lmtp: 
No such file or directoryconnect")

I suspect your problem is that there is no Cyrus LMTP listening in 
/run/cyrus/socket/lmtp:

action "deliver" lmtp "/run/cyrus/socket/lmtp" rcpt-to user lmtpd

Do you actually use Cyrus IMAP?

Good luck,
Reio







Re: Virtual User handling

2019-09-08 Thread Reio Remma
> On 07.09.2019 12:53, Ede Wolf wrote:
> Excellent idea, however, the error stays the same. No change, despite copying 
> the whole opensmtpd folder to /usr/local/libexec
> 
> result=TempFail stat=Error (temporary failure: "mail.lmtp: No such file or 
> directoryconnect")

I purposefully mistyped the Dovecot LMTP socket in my config and got the same 
message.

Sep  7 13:26:28 host smtpd[26873]: 7cde0d1cf207f8f3 mda delivery 
evpid=b96774ed55a5492e from=<> to=<> rcpt=<> user=3 delay=0s result=TempFail 
stat=Error (temporary failure: "mail.lmtp: No such file or directoryconnect")

I suspect your problem is that there is no Cyrus LMTP listening in 
/run/cyrus/socket/lmtp:

action "deliver" lmtp "/run/cyrus/socket/lmtp" rcpt-to user lmtpd

Do you actually use Cyrus IMAP?

Good luck,
Reio




Re: Virtual User handling

2019-09-08 Thread Ede Wolf





https://manpages.debian.org/testing/cyrus-common/cyrus-lmtpd.8.en.html



Sorry. Great idea, but AFAIK the cyrus lmtpd is activated on demand by 
the cyrus master process. But I can verify, that either the unix- or the 
tcp socket are there. And the unix socket is writeable by the opensmtpd 
lmtpd user.


Additionally, I believe the error message from smtpd to be pretty clear 
about mail.lmtp not being found.


But of course, as this may be a follow up error, I will try to verify 
the lmtp socket with postfix.


Thanks

Ede




Re: Virtual User handling

2019-09-08 Thread Ede Wolf






Looks like lmtpd isn't running.



Not sure wether there is such a thing as a lmtpd service? lmtpd is the 
name of the user, that is supposed to connect to the socket.


A bit unlucky naming maybe, but the "d" stands for deliver, not daemon.

But may I am missing something else