$ echo test | sendmail farid
Gives the same result.
Jan 13 00:36:48 nuc smtpd[74767]: 4fe96d06d9598294 smtp connected
address=local host=nuc.example.com
Jan 13 00:36:48 nuc smtpd[74767]: 4fe96d06d9598294 smtp message
address=local host=nuc.example.com msgid=e2d1316f from=<
[email protected]> to=<[email protected]> size=299 ndest=1
proto=ESMTP
Jan 13 00:36:48 nuc smtpd[74767]: 4fe96d06d9598294 smtp disconnected
address=local host=nuc.example.com reason=quit
Jan 13 00:36:49 nuc dovecot: lmtp(59642): Connect from local
Jan 13 00:36:49 nuc dovecot: lmtp(59642): Disconnect from local: Connection
closed (in RCPT TO)
Jan 13 00:36:49 nuc smtpd[74767]: 0000000000000000 mda delivery
evpid=e2d1316f48d8bb14 from=<[email protected]> to=<
[email protected]> rcpt=<[email protected]> user=farid delay=1s
result=PermFail stat=Error ("mail.lmtp: LMTP server error: 550 5.1.1 <
[email protected]> User doesn't exist: [email protected]\^M")
Jan 13 00:36:50 nuc smtpd[74767]: 4fe96d0a928ffd19 smtp connected
address=local host=nuc.example.com
Jan 13 00:36:50 nuc smtpd[74767]: 4fe96d0a928ffd19 smtp message
address=local host=nuc.example.com msgid=8d31ca79 from=<> to=<
[email protected]> size=1651 ndest=1 proto=ESMTP
Jan 13 00:36:50 nuc smtpd[74767]: 4fe96d0a928ffd19 smtp disconnected
address=local host=nuc.example.com reason=quit
Jan 13 00:36:50 nuc dovecot: lmtp(59642): Connect from local
Jan 13 00:36:50 nuc dovecot: lmtp(59642): Disconnect from local: Connection
closed (in RCPT TO)
Jan 13 00:36:50 nuc smtpd[74767]: 0000000000000000 mda delivery
evpid=8d31ca79b8186de4 from=<> to=<[email protected]> rcpt=<
[email protected]> user=farid delay=0s result=PermFail stat=Error
("mail.lmtp: LMTP server error: 550 5.1.1 <[email protected]> User
doesn't exist: [email protected]\^M")
Jan 13 00:36:50 nuc smtpd[23390]: warn: queue: no return path!

This is with a cleaned alias file:
nuc# grep farid /etc/mail/aliases



root:           farid
manager:        farid
dumper:         farid


And now I realize that we are onto something...
nuc# cat /etc/dovecot/conf.d/auth-passwdfile.conf.ext
# Authentication for passwd-file users. Included from 10-auth.conf.
#
# passwd-like file with specified location.
# <doc/wiki/AuthDatabase.PasswdFile.txt>

passdb {
  driver = passwd-file
  args = scheme=blf-crypt /etc/mail/passwd
}

userdb {
  args = uid=vmail gid=vmail home=/var/vmail/%d/%n
  driver = static
}
nuc#
I had forgotten that I had my dovecot setup like that.
I set it up that way so that I can have e-mail users that are not system
users.


nuc# grep farid /etc/mail/passwd
[email protected]:$2b$09$xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.::::::




I'm not able to receive external e-mails to [email protected] with this:
action lmtp-local lmtp "/var/dovecot/lmtp" alias <aliases>
But I can receive with this:
action lmtp-local lmtp "/var/dovecot/lmtp" rcpt-to


nuc# cat /etc/mail/domains



example.com
nuc.example.com


On Sat, Jan 12, 2019 at 1:04 PM Thomas Bohl <[email protected]>
wrote:

> > Yes The mailbox of farid is on the host nuc.example.com.
>
> It all should be straightforward :-) Assuming you have a standard
> dovecot.conf with
> userdb {
>         driver = passwd
> }
>
> lmtp needs farid as a username not farid@something.
> Remove the mail address from your alias for now.
>
>
> > At least several years ago when I set the server up, I had to have the
> > alias from farid to [email protected]
> > Otherwise the email headers had traces of [email protected].
>
> Worry about that later.
>
>
> > I don't know why the from field is empty.
> > I sent the test e-mail by doing this: "/bin/sh /etc/daily".
>
> Please try:
> $ echo test | sendmail farid
>
> --
> You received this mail because you are subscribed to [email protected]
> To unsubscribe, send a mail to: [email protected]
>
>

Reply via email to