Re: Mail to root not working anymore with 6.4

2019-01-14 Thread Farid Joubbi
I copied the row with fa...@example.com and modified the new row to be
fa...@nuc.example.com in /etc/mail/passwd.

Now the e-mails go through without an error.

Is this the most correct way to configure in my situation, with a symlink?

Why did it stop working going from 6.3 to 6.4?


On Sun, Jan 13, 2019, 03:43 Thomas Bohl  > 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.
>
> That is kind of important information.
> That makes the question whether farid has a $HOME or the alias edit
> pointless.
>
> ...I don't know, have you tried to simply symlink
> /var/vmail/nuc.example.com to /var/vmail/example.com
> And go for
> fa...@example.com:$2b$09$x.::
> fa...@nuc.example.com:$2b$09$x.::
>
> --
> You received this mail because you are subscribed to misc@opensmtpd.org
> To unsubscribe, send a mail to: misc+unsubscr...@opensmtpd.org
>
>


Re: Mail to root not working anymore with 6.4

2019-01-14 Thread Farid Joubbi
I don't know where the ^M comes from.
I did a "cat -e /etc/mail/smtpd.conf" and for all other files in that
directory.
Same thing for dovecot config files.
All line endings are showing $ which is UNIX.



On Mon, Jan 14, 2019, 09:36 Gilles Chehade  On Fri, Jan 11, 2019 at 11:27:53PM +0100, Farid Joubbi wrote:
> > Hello fellow opensmtpd admins!
> >
>
> Hello,
>
> > I have been running smtpd on OpenBSD for several years without problems.
> > Now after upgrading to release 6.4 I have an issue with local system
> > e-mails not coming through.
> >
> > My hostname is nuc.example.com.
> > My normal e-mail address is fa...@example.com.
> > All system generated e-mails sent to root go to r...@nuc.example.com,
> which
> > was properly translated to fa...@example.com in 6.3, but not anymore.
> > I can't figure out how to fix this.
> >
> > This is from the log:
> > Jan 11 22:45:02 nuc smtpd[3]: e5cfc1fdf14d2d33 smtp connected
> > address=local host=nuc.example.com
> > Jan 11 22:45:02 nuc smtpd[3]: e5cfc1fdf14d2d33 smtp message
> > address=local host=nuc.example.com msgid=4d7fc17d from=<> to=<
> > r...@nuc.example.com> size=1991 ndest=1 proto=ESMTP
> > Jan 11 22:45:02 nuc smtpd[3]: e5cfc1fdf14d2d33 smtp disconnected
> > address=local host=nuc.example.com reason=quit
> > Jan 11 22:45:02 nuc dovecot: lmtp(72696): Connect from local
> > Jan 11 22:45:02 nuc dovecot: lmtp(72696): Disconnect from local:
> Connection
> > closed (in RCPT TO)
> > Jan 11 22:45:02 nuc smtpd[3]:  mda delivery
> > evpid=4d7fc17d08076b4e from=<> to= rcpt=<
> > r...@nuc.example.com> user=farid delay=0s result=PermFail stat=Error
> > ("mail.lmtp: LMTP server error: 550 5.1.1  User
> > doesn't exist: r...@nuc.example.com\^M")
>
> That ^M is very likely a cause of error.
>
>
> > Jan 11 22:45:02 nuc smtpd[43925]: warn: queue: no return path!
> >
> > /etc/mail/aliases is configured to translate root to farid and farid to
> > fa...@example.com.
> > This worked in 6.3.
> >
>
> Surely that ^M wasn't there because I don't see how it could work.
>
>
> >
> > nuc# cat /etc/mail/smtpd.conf
> >
> >
> >
> > # pki setup
> > pki mail.example.com cert "/etc/ssl/mail.example.com.fullchain.pem"
> > pki mail.example.com key "/etc/ssl/private/mail.example.com.key"
> >
> > # tables setup
> > table aliases db:/etc/mail/aliases.db
> > #table aliases file:/etc/mail/aliases
> > table domains file:/etc/mail/domains
> > table passwd passwd:/etc/mail/passwd
> > table virtuals file:/etc/mail/virtuals
> > table secrets file:/etc/mail/secrets
> >
> > # listen ports setup
> > listen on lo0
> > listen on lo0 port 10026 tag DKIM_CHECKED
> > listen on lo0 port 10028 tag DKIM
> > listen on egress port 25 tls pki mail.example.com
> > listen on egress port 587 tls-require pki mail.example.com auth 
> >
> > action lmtp-local lmtp "/var/dovecot/lmtp" rcpt-to
> > #action lmtp-local lmtp "/var/dovecot/lmtp" rcpt-to alias 
> > action "relay" relay host smtp+tls://smtp...@mail.smtp2go.com:2525 auth
> > 
> > action "relay_dkim" relay host smtp://127.0.0.1:10027
> > action "relay_incoming" relay host smtp://127.0.0.1:10025
> >
> > match for local action "lmtp-local"
> > match tag DKIM_CHECKED from any for domain  action "lmtp-local"
> > match tag DKIM for any action "relay"
> > match from any for domain  action "relay_incoming"
> > match from local for any action "relay_dkim"
> > match auth from any for any action "relay_dkim"
> >
> > (My real domain name is censored to protect the innocent).
> >
> > Any help is greatly appreciated.
> >
>
> I'm 99% positive the issue is unrelated to your config but related to a
> table content containing the \^M control character.
>
>
> --
> Gilles Chehade @poolpOrg
>
> https://www.poolp.org tip me: https://paypal.me/poolpOrg
>


Re: Mail to root not working anymore with 6.4

2019-01-14 Thread Gilles Chehade
On Fri, Jan 11, 2019 at 11:27:53PM +0100, Farid Joubbi wrote:
> Hello fellow opensmtpd admins!
> 

Hello,

> I have been running smtpd on OpenBSD for several years without problems.
> Now after upgrading to release 6.4 I have an issue with local system
> e-mails not coming through.
> 
> My hostname is nuc.example.com.
> My normal e-mail address is fa...@example.com.
> All system generated e-mails sent to root go to r...@nuc.example.com, which
> was properly translated to fa...@example.com in 6.3, but not anymore.
> I can't figure out how to fix this.
> 
> This is from the log:
> Jan 11 22:45:02 nuc smtpd[3]: e5cfc1fdf14d2d33 smtp connected
> address=local host=nuc.example.com
> Jan 11 22:45:02 nuc smtpd[3]: e5cfc1fdf14d2d33 smtp message
> address=local host=nuc.example.com msgid=4d7fc17d from=<> to=<
> r...@nuc.example.com> size=1991 ndest=1 proto=ESMTP
> Jan 11 22:45:02 nuc smtpd[3]: e5cfc1fdf14d2d33 smtp disconnected
> address=local host=nuc.example.com reason=quit
> Jan 11 22:45:02 nuc dovecot: lmtp(72696): Connect from local
> Jan 11 22:45:02 nuc dovecot: lmtp(72696): Disconnect from local: Connection
> closed (in RCPT TO)
> Jan 11 22:45:02 nuc smtpd[3]:  mda delivery
> evpid=4d7fc17d08076b4e from=<> to= rcpt=<
> r...@nuc.example.com> user=farid delay=0s result=PermFail stat=Error
> ("mail.lmtp: LMTP server error: 550 5.1.1  User
> doesn't exist: r...@nuc.example.com\^M")

That ^M is very likely a cause of error.


> Jan 11 22:45:02 nuc smtpd[43925]: warn: queue: no return path!
> 
> /etc/mail/aliases is configured to translate root to farid and farid to
> fa...@example.com.
> This worked in 6.3.
> 

Surely that ^M wasn't there because I don't see how it could work.


> 
> nuc# cat /etc/mail/smtpd.conf
> 
> 
> 
> # pki setup
> pki mail.example.com cert "/etc/ssl/mail.example.com.fullchain.pem"
> pki mail.example.com key "/etc/ssl/private/mail.example.com.key"
> 
> # tables setup
> table aliases db:/etc/mail/aliases.db
> #table aliases file:/etc/mail/aliases
> table domains file:/etc/mail/domains
> table passwd passwd:/etc/mail/passwd
> table virtuals file:/etc/mail/virtuals
> table secrets file:/etc/mail/secrets
> 
> # listen ports setup
> listen on lo0
> listen on lo0 port 10026 tag DKIM_CHECKED
> listen on lo0 port 10028 tag DKIM
> listen on egress port 25 tls pki mail.example.com
> listen on egress port 587 tls-require pki mail.example.com auth 
> 
> action lmtp-local lmtp "/var/dovecot/lmtp" rcpt-to
> #action lmtp-local lmtp "/var/dovecot/lmtp" rcpt-to alias 
> action "relay" relay host smtp+tls://smtp...@mail.smtp2go.com:2525 auth
> 
> action "relay_dkim" relay host smtp://127.0.0.1:10027
> action "relay_incoming" relay host smtp://127.0.0.1:10025
> 
> match for local action "lmtp-local"
> match tag DKIM_CHECKED from any for domain  action "lmtp-local"
> match tag DKIM for any action "relay"
> match from any for domain  action "relay_incoming"
> match from local for any action "relay_dkim"
> match auth from any for any action "relay_dkim"
> 
> (My real domain name is censored to protect the innocent).
> 
> Any help is greatly appreciated.
> 

I'm 99% positive the issue is unrelated to your config but related to a
table content containing the \^M control character.


-- 
Gilles Chehade @poolpOrg

https://www.poolp.org tip me: https://paypal.me/poolpOrg

-- 
You received this mail because you are subscribed to misc@opensmtpd.org
To unsubscribe, send a mail to: misc+unsubscr...@opensmtpd.org



Re: Mail to root not working anymore with 6.4

2019-01-13 Thread ED Fochler
Do you have a macintosh carriage return stuck in your aliases file?

ED.


> On 2019, Jan 12, at 7:09 PM, Farid Joubbi  wrote:
> 
> User doesn't exist: fa...@nuc.example.com\^M")


-- 
You received this mail because you are subscribed to misc@opensmtpd.org
To unsubscribe, send a mail to: misc+unsubscr...@opensmtpd.org



Re: Mail to root not working anymore with 6.4

2019-01-12 Thread Thomas Bohl

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.


That is kind of important information.
That makes the question whether farid has a $HOME or the alias edit 
pointless.


...I don't know, have you tried to simply symlink 
/var/vmail/nuc.example.com to /var/vmail/example.com

And go for
fa...@example.com:$2b$09$x.::
fa...@nuc.example.com:$2b$09$x.::

--
You received this mail because you are subscribed to misc@opensmtpd.org
To unsubscribe, send a mail to: misc+unsubscr...@opensmtpd.org



Re: Mail to root not working anymore with 6.4

2019-01-12 Thread Farid Joubbi
$ 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=<
fa...@nuc.example.com> to= 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]:  mda delivery
evpid=e2d1316f48d8bb14 from= to=<
fa...@nuc.example.com> rcpt= user=farid delay=1s
result=PermFail stat=Error ("mail.lmtp: LMTP server error: 550 5.1.1 <
fa...@nuc.example.com> User doesn't exist: fa...@nuc.example.com\^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=<
fa...@nuc.example.com> 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]:  mda delivery
evpid=8d31ca79b8186de4 from=<> to= rcpt=<
fa...@nuc.example.com> user=farid delay=0s result=PermFail stat=Error
("mail.lmtp: LMTP server error: 550 5.1.1  User
doesn't exist: fa...@nuc.example.com\^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.
# 

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
fa...@example.com:$2b$09$x.::




I'm not able to receive external e-mails to fa...@example.com with this:
action lmtp-local lmtp "/var/dovecot/lmtp" alias 
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 
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 fa...@example.com
> > Otherwise the email headers had traces of fa...@nuc.example.com.
>
> 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 misc@opensmtpd.org
> To unsubscribe, send a mail to: misc+unsubscr...@opensmtpd.org
>
>


Re: Mail to root not working anymore with 6.4

2019-01-12 Thread edgar
On Sat, Jan 12, 2019 at 12:37:12PM +0100, Farid Joubbi wrote:
> Now I'm getting tired.
> I just noticed that my find and replace with my domain name was kind of
> half ass before I pasted the previous log.
> You can see both my real domain name and example.com in the log.
> Sorry for the unnecessary confusion.
> 
> On Sat, Jan 12, 2019 at 12:32 PM Farid Joubbi  wrote:
> 
> > It doesnt seem to give more information.
> >
> > This is with "action lmtp-local lmtp "/var/dovecot/lmtp" rcpt-to":
> > Jan 12 12:12:29 nuc smtpd[91698]: f4addfe2dfdc0dee smtp connected
> > address=local host=nuc.example.com
> > Jan 12 12:12:29 nuc smtpd[91698]: f4addfe2dfdc0dee smtp message
> > address=local host=nuc.example.com msgid=7701f750 from=<
> > fa...@nuc.example.com> to= size=2268 ndest=1
> > proto=ESMTP
> > Jan 12 12:12:29 nuc smtpd[91698]: f4addfe2dfdc0dee smtp disconnected
> > address=local host=nuc.example.com reason=quit
> > Jan 12 12:12:29 nuc dovecot: lmtp(9123): Connect from local
> > Jan 12 12:12:29 nuc dovecot: lmtp(9123): Disconnect from local: Connection
> > closed (in RCPT TO)
> > Jan 12 12:12:29 nuc smtpd[91698]:  mda delivery
> > evpid=7701f7508063f43e from= to=<
> > r...@nuc.example.com> rcpt= user=farid delay=0s
> > result=PermFail stat=Error ("mail.lmtp: LMTP server error: 550 5.1.1 <
> > r...@nuc.example.com> User doesn't exist: r...@nuc.joubbi.se\^M")
> > Jan 12 12:12:30 nuc smtpd[91698]: f4addfe6604e447f smtp connected
> > address=local host=nuc.example.com
> > Jan 12 12:12:30 nuc smtpd[91698]: f4addfe6604e447f smtp message
> > address=local host=nuc.example.com msgid=9efcaf84 from=<> to=<
> > fa...@nuc.example.com> size=3621 ndest=1 proto=ESMTP
> > Jan 12 12:12:30 nuc smtpd[91698]: f4addfe6604e447f smtp disconnected
> > address=local host=nuc.example.com reason=quit
> > Jan 12 12:12:30 nuc dovecot: lmtp(9123): Connect from local
> > Jan 12 12:12:30 nuc dovecot: lmtp(9123): Disconnect from local: Connection
> > closed (in RCPT TO)
> > Jan 12 12:12:30 nuc smtpd[91698]:  mda delivery
> > evpid=9efcaf8480e8b1a5 from=<> to= rcpt=<
> > fa...@nuc.example.com> user=farid delay=0s result=PermFail stat=Error
> > ("mail.lmtp: LMTP server error: 550 5.1.1  User
> > doesn't exist: fa...@nuc.example.com\^M")
> > Jan 12 12:12:30 nuc smtpd[28280]: warn: queue: no return path!
> >
> > This is with "action lmtp-local lmtp "/var/dovecot/lmtp" alias ":
> > Jan 12 12:23:43 nuc smtpd[58396]: info: OpenSMTPD 6.4.0 starting
> > Jan 12 12:24:05 nuc smtpd[59733]: af9c713d7d262539 smtp connected
> > address=local host=nuc.example.com
> > Jan 12 12:24:05 nuc smtpd[59733]: af9c713d7d262539 smtp message
> > address=local host=nuc.example.com msgid=f80c9238 from=<
> > fa...@nuc.joubbi.se> to= size=2268 ndest=1 proto=ESMTP
> > Jan 12 12:24:05 nuc smtpd[59733]: af9c713d7d262539 smtp disconnected
> > address=local host=nuc.example.com reason=quit
> > Jan 12 12:24:05 nuc smtpd[59733]: af9c7141cd28962a mta connecting
> > address=smtp://127.0.0.1:10025 host=localhost
> > Jan 12 12:24:05 nuc smtpd[59733]: af9c7141cd28962a mta connected
> > Jan 12 12:24:05 nuc smtpd[59733]: af9c7142ff99ae87 smtp connected
> > address=127.0.0.1 host=localhost
> > Jan 12 12:24:05 nuc smtpd[59733]: af9c7142ff99ae87 smtp failed-command
> > address=127.0.0.1 host=localhost command="RCPT TO:"

dovecot doesn't like rcpt to:
need to look at dovecot and see what it wants

> > result="524 5.2.4 Mailing list expansion problem"
> > Jan 12 12:24:05 nuc smtpd[59733]: af9c7141cd28962a mta delivery
> > evpid=f80c92380ac5a4ea from= to=
> > rcpt= source="127.0.0.1" relay="127.0.0.1
> > (localhost)" delay=0s result="PermFail" stat="524 5.2.4 Mailing list
> > expansion problem"
> > Jan 12 12:24:06 nuc smtpd[59733]: af9c714308ca58b6 smtp connected
> > address=local host=nuc.example.com
> > Jan 12 12:24:06 nuc smtpd[59733]: af9c714308ca58b6 smtp message
> > address=local host=nuc.example.com msgid=43ded801 from=<> to=<
> > fa...@nuc.joubbi.se> size=3553 ndest=1 proto=ESMTP
> > Jan 12 12:24:06 nuc smtpd[59733]: af9c714308ca58b6 smtp disconnected
> > address=local host=nuc.example.com reason=quit
> > Jan 12 12:24:07 nuc smtpd[59733]: af9c7142ff99ae87 smtp failed-command
> > address=127.0.0.1 host=localhost command="RCPT TO:"
> > result="524 5.2.4 Mailing list expansion problem"
> > Jan 12 12:24:07 nuc smtpd[59733]: af9c7141cd28962a mta delivery
> > evpid=43ded8014be1c057 from=<> to= rcpt=<
> > fa...@nuc.joubbi.se> source="127.0.0.1" relay="127.0.0.1 (localhost)"
> > delay=1s result="PermFail" stat="524 5.2.4 Mailing list expansion problem"
> > Jan 12 12:24:07 nuc smtpd[21379]: warn: queue: no return path!
> > Jan 12 12:24:17 nuc smtpd[59733]: af9c7142ff99ae87 smtp disconnected
> > address=127.0.0.1 host=localhost reason=quit
> > Jan 12 12:24:17 nuc smtpd[59733]: af9c7141cd28962a mta disconnected
> > reason=quit messages=0
> > Jan 12 12:25:26 nuc smtpd[59733]: af9c714553dbc567 smtp connected
> > address=local host=nuc.example.com
> > Jan 12 12:25:26 n

Re: Mail to root not working anymore with 6.4

2019-01-12 Thread edgar
On Sat, Jan 12, 2019 at 12:53:42PM +0100, Farid Joubbi wrote:
> That is what I have been looking at.
> I need help.
> 
> On Sat, Jan 12, 2019, 12:46 Reio Remma  
> > User doesn't exist: fa...@nuc.example.com\^M <-- What about looking at
> > this?
> >
> > Reio
> >
> > On 12.01.2019 13:32, Farid Joubbi wrote:
> >
> > It doesnt seem to give more information.
> >
> > This is with "action lmtp-local lmtp "/var/dovecot/lmtp" rcpt-to":
> > Jan 12 12:12:29 nuc smtpd[91698]: f4addfe2dfdc0dee smtp connected
> > address=local host=nuc.example.com
> > Jan 12 12:12:29 nuc smtpd[91698]: f4addfe2dfdc0dee smtp message
> > address=local host=nuc.example.com msgid=7701f750 from=<
> > fa...@nuc.example.com> to= size=2268 ndest=1
> > proto=ESMTP
> > Jan 12 12:12:29 nuc smtpd[91698]: f4addfe2dfdc0dee smtp disconnected
> > address=local host=nuc.example.com reason=quit
> > Jan 12 12:12:29 nuc dovecot: lmtp(9123): Connect from local
> > Jan 12 12:12:29 nuc dovecot: lmtp(9123): Disconnect from local: Connection
> > closed (in RCPT TO)
> > Jan 12 12:12:29 nuc smtpd[91698]:  mda delivery
> > evpid=7701f7508063f43e from= to=<
> > r...@nuc.example.com> rcpt= user=farid delay=0s
> > result=PermFail stat=Error ("mail.lmtp: LMTP server error: 550 5.1.1 <
> > r...@nuc.example.com> User doesn't exist: r...@nuc.joubbi.se\^M")
> > Jan 12 12:12:30 nuc smtpd[91698]: f4addfe6604e447f smtp connected
> > address=local host=nuc.example.com
> > Jan 12 12:12:30 nuc smtpd[91698]: f4addfe6604e447f smtp message
> > address=local host=nuc.example.com msgid=9efcaf84 from=<> to=<
> > fa...@nuc.example.com> size=3621 ndest=1 proto=ESMTP
> > Jan 12 12:12:30 nuc smtpd[91698]: f4addfe6604e447f smtp disconnected
> > address=local host=nuc.example.com reason=quit
> > Jan 12 12:12:30 nuc dovecot: lmtp(9123): Connect from local
> > Jan 12 12:12:30 nuc dovecot: lmtp(9123): Disconnect from local: Connection
> > closed (in RCPT TO)
> > Jan 12 12:12:30 nuc smtpd[91698]:  mda delivery
> > evpid=9efcaf8480e8b1a5 from=<> to= rcpt=<
> > fa...@nuc.example.com> user=farid delay=0s result=PermFail stat=Error
> > ("mail.lmtp: LMTP server error: 550 5.1.1  User
> > doesn't exist: fa...@nuc.example.com\^M")
> > Jan 12 12:12:30 nuc smtpd[28280]: warn: queue: no return path!
> >
> > This is with "action lmtp-local lmtp "/var/dovecot/lmtp" alias ":
> > Jan 12 12:23:43 nuc smtpd[58396]: info: OpenSMTPD 6.4.0 starting
> > Jan 12 12:24:05 nuc smtpd[59733]: af9c713d7d262539 smtp connected
> > address=local host=nuc.example.com
> > Jan 12 12:24:05 nuc smtpd[59733]: af9c713d7d262539 smtp message
> > address=local host=nuc.example.com msgid=f80c9238 from=<
> > fa...@nuc.joubbi.se> to= size=2268 ndest=1 proto=ESMTP
> > Jan 12 12:24:05 nuc smtpd[59733]: af9c713d7d262539 smtp disconnected
> > address=local host=nuc.example.com reason=quit
> > Jan 12 12:24:05 nuc smtpd[59733]: af9c7141cd28962a mta connecting address=
> > smtp://127.0.0.1:10025 host=localhost
> > Jan 12 12:24:05 nuc smtpd[59733]: af9c7141cd28962a mta connected
> > Jan 12 12:24:05 nuc smtpd[59733]: af9c7142ff99ae87 smtp connected
> > address=127.0.0.1 host=localhost
> > Jan 12 12:24:05 nuc smtpd[59733]: af9c7142ff99ae87 smtp failed-command
> > address=127.0.0.1 host=localhost command="RCPT TO:"
> > result="524 5.2.4 Mailing list expansion problem"
> > Jan 12 12:24:05 nuc smtpd[59733]: af9c7141cd28962a mta delivery
> > evpid=f80c92380ac5a4ea from= to=
> > rcpt= source="127.0.0.1" relay="127.0.0.1
> > (localhost)" delay=0s result="PermFail" stat="524 5.2.4 Mailing list
> > expansion problem"
> > Jan 12 12:24:06 nuc smtpd[59733]: af9c714308ca58b6 smtp connected
> > address=local host=nuc.example.com
> > Jan 12 12:24:06 nuc smtpd[59733]: af9c714308ca58b6 smtp message
> > address=local host=nuc.example.com msgid=43ded801 from=<> to=<
> > fa...@nuc.joubbi.se> size=3553 ndest=1 proto=ESMTP
> > Jan 12 12:24:06 nuc smtpd[59733]: af9c714308ca58b6 smtp disconnected
> > address=local host=nuc.example.com reason=quit
> > Jan 12 12:24:07 nuc smtpd[59733]: af9c7142ff99ae87 smtp failed-command
> > address=127.0.0.1 host=localhost command="RCPT TO:"
> > result="524 5.2.4 Mailing list expansion problem"
> > Jan 12 12:24:07 nuc smtpd[59733]: af9c7141cd28962a mta delivery
> > evpid=43ded8014be1c057 from=<> to= rcpt=<
> > fa...@nuc.joubbi.se> source="127.0.0.1" relay="127.0.0.1 (localhost)"
> > delay=1s result="PermFail" stat="524 5.2.4 Mailing list expansion problem"
> > Jan 12 12:24:07 nuc smtpd[21379]: warn: queue: no return path!
> > Jan 12 12:24:17 nuc smtpd[59733]: af9c7142ff99ae87 smtp disconnected
> > address=127.0.0.1 host=localhost reason=quit
> > Jan 12 12:24:17 nuc smtpd[59733]: af9c7141cd28962a mta disconnected
> > reason=quit messages=0
> > Jan 12 12:25:26 nuc smtpd[59733]: af9c714553dbc567 smtp connected
> > address=local host=nuc.example.com
> > Jan 12 12:25:26 nuc smtpd[59733]: af9c714553dbc567 smtp message
> > address=local host=nuc.example.com msgid=a5518f63 from=<
> > fa...@nuc.joubbi.se> to= s

Re: Mail to root not working anymore with 6.4

2019-01-12 Thread Thomas Bohl

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 fa...@example.com

Otherwise the email headers had traces of fa...@nuc.example.com.


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 misc@opensmtpd.org
To unsubscribe, send a mail to: misc+unsubscr...@opensmtpd.org



Re: Mail to root not working anymore with 6.4

2019-01-12 Thread Farid Joubbi
That is what I have been looking at.
I need help.

On Sat, Jan 12, 2019, 12:46 Reio Remma  User doesn't exist: fa...@nuc.example.com\^M <-- What about looking at
> this?
>
> Reio
>
> On 12.01.2019 13:32, Farid Joubbi wrote:
>
> It doesnt seem to give more information.
>
> This is with "action lmtp-local lmtp "/var/dovecot/lmtp" rcpt-to":
> Jan 12 12:12:29 nuc smtpd[91698]: f4addfe2dfdc0dee smtp connected
> address=local host=nuc.example.com
> Jan 12 12:12:29 nuc smtpd[91698]: f4addfe2dfdc0dee smtp message
> address=local host=nuc.example.com msgid=7701f750 from=<
> fa...@nuc.example.com> to= size=2268 ndest=1
> proto=ESMTP
> Jan 12 12:12:29 nuc smtpd[91698]: f4addfe2dfdc0dee smtp disconnected
> address=local host=nuc.example.com reason=quit
> Jan 12 12:12:29 nuc dovecot: lmtp(9123): Connect from local
> Jan 12 12:12:29 nuc dovecot: lmtp(9123): Disconnect from local: Connection
> closed (in RCPT TO)
> Jan 12 12:12:29 nuc smtpd[91698]:  mda delivery
> evpid=7701f7508063f43e from= to=<
> r...@nuc.example.com> rcpt= user=farid delay=0s
> result=PermFail stat=Error ("mail.lmtp: LMTP server error: 550 5.1.1 <
> r...@nuc.example.com> User doesn't exist: r...@nuc.joubbi.se\^M")
> Jan 12 12:12:30 nuc smtpd[91698]: f4addfe6604e447f smtp connected
> address=local host=nuc.example.com
> Jan 12 12:12:30 nuc smtpd[91698]: f4addfe6604e447f smtp message
> address=local host=nuc.example.com msgid=9efcaf84 from=<> to=<
> fa...@nuc.example.com> size=3621 ndest=1 proto=ESMTP
> Jan 12 12:12:30 nuc smtpd[91698]: f4addfe6604e447f smtp disconnected
> address=local host=nuc.example.com reason=quit
> Jan 12 12:12:30 nuc dovecot: lmtp(9123): Connect from local
> Jan 12 12:12:30 nuc dovecot: lmtp(9123): Disconnect from local: Connection
> closed (in RCPT TO)
> Jan 12 12:12:30 nuc smtpd[91698]:  mda delivery
> evpid=9efcaf8480e8b1a5 from=<> to= rcpt=<
> fa...@nuc.example.com> user=farid delay=0s result=PermFail stat=Error
> ("mail.lmtp: LMTP server error: 550 5.1.1  User
> doesn't exist: fa...@nuc.example.com\^M")
> Jan 12 12:12:30 nuc smtpd[28280]: warn: queue: no return path!
>
> This is with "action lmtp-local lmtp "/var/dovecot/lmtp" alias ":
> Jan 12 12:23:43 nuc smtpd[58396]: info: OpenSMTPD 6.4.0 starting
> Jan 12 12:24:05 nuc smtpd[59733]: af9c713d7d262539 smtp connected
> address=local host=nuc.example.com
> Jan 12 12:24:05 nuc smtpd[59733]: af9c713d7d262539 smtp message
> address=local host=nuc.example.com msgid=f80c9238 from=<
> fa...@nuc.joubbi.se> to= size=2268 ndest=1 proto=ESMTP
> Jan 12 12:24:05 nuc smtpd[59733]: af9c713d7d262539 smtp disconnected
> address=local host=nuc.example.com reason=quit
> Jan 12 12:24:05 nuc smtpd[59733]: af9c7141cd28962a mta connecting address=
> smtp://127.0.0.1:10025 host=localhost
> Jan 12 12:24:05 nuc smtpd[59733]: af9c7141cd28962a mta connected
> Jan 12 12:24:05 nuc smtpd[59733]: af9c7142ff99ae87 smtp connected
> address=127.0.0.1 host=localhost
> Jan 12 12:24:05 nuc smtpd[59733]: af9c7142ff99ae87 smtp failed-command
> address=127.0.0.1 host=localhost command="RCPT TO:"
> result="524 5.2.4 Mailing list expansion problem"
> Jan 12 12:24:05 nuc smtpd[59733]: af9c7141cd28962a mta delivery
> evpid=f80c92380ac5a4ea from= to=
> rcpt= source="127.0.0.1" relay="127.0.0.1
> (localhost)" delay=0s result="PermFail" stat="524 5.2.4 Mailing list
> expansion problem"
> Jan 12 12:24:06 nuc smtpd[59733]: af9c714308ca58b6 smtp connected
> address=local host=nuc.example.com
> Jan 12 12:24:06 nuc smtpd[59733]: af9c714308ca58b6 smtp message
> address=local host=nuc.example.com msgid=43ded801 from=<> to=<
> fa...@nuc.joubbi.se> size=3553 ndest=1 proto=ESMTP
> Jan 12 12:24:06 nuc smtpd[59733]: af9c714308ca58b6 smtp disconnected
> address=local host=nuc.example.com reason=quit
> Jan 12 12:24:07 nuc smtpd[59733]: af9c7142ff99ae87 smtp failed-command
> address=127.0.0.1 host=localhost command="RCPT TO:"
> result="524 5.2.4 Mailing list expansion problem"
> Jan 12 12:24:07 nuc smtpd[59733]: af9c7141cd28962a mta delivery
> evpid=43ded8014be1c057 from=<> to= rcpt=<
> fa...@nuc.joubbi.se> source="127.0.0.1" relay="127.0.0.1 (localhost)"
> delay=1s result="PermFail" stat="524 5.2.4 Mailing list expansion problem"
> Jan 12 12:24:07 nuc smtpd[21379]: warn: queue: no return path!
> Jan 12 12:24:17 nuc smtpd[59733]: af9c7142ff99ae87 smtp disconnected
> address=127.0.0.1 host=localhost reason=quit
> Jan 12 12:24:17 nuc smtpd[59733]: af9c7141cd28962a mta disconnected
> reason=quit messages=0
> Jan 12 12:25:26 nuc smtpd[59733]: af9c714553dbc567 smtp connected
> address=local host=nuc.example.com
> Jan 12 12:25:26 nuc smtpd[59733]: af9c714553dbc567 smtp message
> address=local host=nuc.example.com msgid=a5518f63 from=<
> fa...@nuc.joubbi.se> to= size=1078 ndest=1 proto=ESMTP
> Jan 12 12:25:26 nuc smtpd[59733]: af9c714553dbc567 smtp disconnected
> address=local host=nuc.example.com reason=quit
> Jan 12 12:25:26 nuc smtpd[59733]: af9c7149e986a51f mta connecting address=
> smtp://127.0.0.1:10025 

Re: Mail to root not working anymore with 6.4

2019-01-12 Thread Reio Remma
User doesn't exist: fa...@nuc.example.com 
\^M <-- What about looking at this?


Reio

On 12.01.2019 13:32, Farid Joubbi wrote:

It doesnt seem to give more information.

This is with "action lmtp-local lmtp "/var/dovecot/lmtp" rcpt-to":
Jan 12 12:12:29 nuc smtpd[91698]: f4addfe2dfdc0dee smtp connected 
address=local host=nuc.example.com 
Jan 12 12:12:29 nuc smtpd[91698]: f4addfe2dfdc0dee smtp message 
address=local host=nuc.example.com  
msgid=7701f750 from=> to=> size=2268 ndest=1 proto=ESMTP
Jan 12 12:12:29 nuc smtpd[91698]: f4addfe2dfdc0dee smtp disconnected 
address=local host=nuc.example.com  reason=quit

Jan 12 12:12:29 nuc dovecot: lmtp(9123): Connect from local
Jan 12 12:12:29 nuc dovecot: lmtp(9123): Disconnect from local: 
Connection closed (in RCPT TO)
Jan 12 12:12:29 nuc smtpd[91698]:  mda delivery 
evpid=7701f7508063f43e from=> to=> rcpt=> user=farid delay=0s result=PermFail 
stat=Error ("mail.lmtp: LMTP server error: 550 5.1.1 
mailto:r...@nuc.example.com>> User doesn't 
exist: r...@nuc.joubbi.se \^M")
Jan 12 12:12:30 nuc smtpd[91698]: f4addfe6604e447f smtp connected 
address=local host=nuc.example.com 
Jan 12 12:12:30 nuc smtpd[91698]: f4addfe6604e447f smtp message 
address=local host=nuc.example.com  
msgid=9efcaf84 from=<> to=> size=3621 ndest=1 proto=ESMTP
Jan 12 12:12:30 nuc smtpd[91698]: f4addfe6604e447f smtp disconnected 
address=local host=nuc.example.com  reason=quit

Jan 12 12:12:30 nuc dovecot: lmtp(9123): Connect from local
Jan 12 12:12:30 nuc dovecot: lmtp(9123): Disconnect from local: 
Connection closed (in RCPT TO)
Jan 12 12:12:30 nuc smtpd[91698]:  mda delivery 
evpid=9efcaf8480e8b1a5 from=<> to=> rcpt=> user=farid delay=0s result=PermFail 
stat=Error ("mail.lmtp: LMTP server error: 550 5.1.1 
mailto:fa...@nuc.example.com>> User doesn't 
exist: fa...@nuc.example.com \^M")

Jan 12 12:12:30 nuc smtpd[28280]: warn: queue: no return path!

This is with "action lmtp-local lmtp "/var/dovecot/lmtp" alias ":
Jan 12 12:23:43 nuc smtpd[58396]: info: OpenSMTPD 6.4.0 starting
Jan 12 12:24:05 nuc smtpd[59733]: af9c713d7d262539 smtp connected 
address=local host=nuc.example.com 
Jan 12 12:24:05 nuc smtpd[59733]: af9c713d7d262539 smtp message 
address=local host=nuc.example.com  
msgid=f80c9238 from=mailto:fa...@nuc.joubbi.se>> 
to=mailto:r...@nuc.joubbi.se>> size=2268 ndest=1 
proto=ESMTP
Jan 12 12:24:05 nuc smtpd[59733]: af9c713d7d262539 smtp disconnected 
address=local host=nuc.example.com  reason=quit
Jan 12 12:24:05 nuc smtpd[59733]: af9c7141cd28962a mta connecting 
address=smtp://127.0.0.1:10025  host=localhost

Jan 12 12:24:05 nuc smtpd[59733]: af9c7141cd28962a mta connected
Jan 12 12:24:05 nuc smtpd[59733]: af9c7142ff99ae87 smtp connected 
address=127.0.0.1 host=localhost
Jan 12 12:24:05 nuc smtpd[59733]: af9c7142ff99ae87 smtp failed-command 
address=127.0.0.1 host=localhost command="RCPT TO:>" result="524 5.2.4 Mailing list expansion 
problem"
Jan 12 12:24:05 nuc smtpd[59733]: af9c7141cd28962a mta delivery 
evpid=f80c92380ac5a4ea from=> to=> rcpt=> source="127.0.0.1" relay="127.0.0.1 
(localhost)" delay=0s result="PermFail" stat="524 5.2.4 Mailing list 
expansion problem"
Jan 12 12:24:06 nuc smtpd[59733]: af9c714308ca58b6 smtp connected 
address=local host=nuc.example.com 
Jan 12 12:24:06 nuc smtpd[59733]: af9c714308ca58b6 smtp message 
address=local host=nuc.example.com  
msgid=43ded801 from=<> to=> size=3553 ndest=1 proto=ESMTP
Jan 12 12:24:06 nuc smtpd[59733]: af9c714308ca58b6 smtp disconnected 
address=local host=nuc.example.com  reason=quit
Jan 12 12:24:07 nuc smtpd[59733]: af9c7142ff99ae87 smtp failed-command 
address=127.0.0.1 host=localhost command="RCPT TO:>" result="524 5.2.4 Mailing list expansion 
problem"
Jan 12 12:24:07 nuc smtpd[59733]: af9c7141cd28962a mta delivery 
evpid=43ded8014be1c057 from=<> to=> rcpt=> source="127.0.0.1" relay="127.0.0.1 
(localhost)" delay=1s result="PermFail" stat="524 5.2.4 Mailing list 
expansion problem"

Jan 12 12:24:07 nuc smtpd[21379]: warn: queue: no return path!
Jan 12 12:24:17 nuc smtpd[59733]: af9c7142ff99ae87 smtp disconnected 
address=127.0.0.1 host=localhost reas

Re: Mail to root not working anymore with 6.4

2019-01-12 Thread Farid Joubbi
Now I'm getting tired.
I just noticed that my find and replace with my domain name was kind of
half ass before I pasted the previous log.
You can see both my real domain name and example.com in the log.
Sorry for the unnecessary confusion.

On Sat, Jan 12, 2019 at 12:32 PM Farid Joubbi  wrote:

> It doesnt seem to give more information.
>
> This is with "action lmtp-local lmtp "/var/dovecot/lmtp" rcpt-to":
> Jan 12 12:12:29 nuc smtpd[91698]: f4addfe2dfdc0dee smtp connected
> address=local host=nuc.example.com
> Jan 12 12:12:29 nuc smtpd[91698]: f4addfe2dfdc0dee smtp message
> address=local host=nuc.example.com msgid=7701f750 from=<
> fa...@nuc.example.com> to= size=2268 ndest=1
> proto=ESMTP
> Jan 12 12:12:29 nuc smtpd[91698]: f4addfe2dfdc0dee smtp disconnected
> address=local host=nuc.example.com reason=quit
> Jan 12 12:12:29 nuc dovecot: lmtp(9123): Connect from local
> Jan 12 12:12:29 nuc dovecot: lmtp(9123): Disconnect from local: Connection
> closed (in RCPT TO)
> Jan 12 12:12:29 nuc smtpd[91698]:  mda delivery
> evpid=7701f7508063f43e from= to=<
> r...@nuc.example.com> rcpt= user=farid delay=0s
> result=PermFail stat=Error ("mail.lmtp: LMTP server error: 550 5.1.1 <
> r...@nuc.example.com> User doesn't exist: r...@nuc.joubbi.se\^M")
> Jan 12 12:12:30 nuc smtpd[91698]: f4addfe6604e447f smtp connected
> address=local host=nuc.example.com
> Jan 12 12:12:30 nuc smtpd[91698]: f4addfe6604e447f smtp message
> address=local host=nuc.example.com msgid=9efcaf84 from=<> to=<
> fa...@nuc.example.com> size=3621 ndest=1 proto=ESMTP
> Jan 12 12:12:30 nuc smtpd[91698]: f4addfe6604e447f smtp disconnected
> address=local host=nuc.example.com reason=quit
> Jan 12 12:12:30 nuc dovecot: lmtp(9123): Connect from local
> Jan 12 12:12:30 nuc dovecot: lmtp(9123): Disconnect from local: Connection
> closed (in RCPT TO)
> Jan 12 12:12:30 nuc smtpd[91698]:  mda delivery
> evpid=9efcaf8480e8b1a5 from=<> to= rcpt=<
> fa...@nuc.example.com> user=farid delay=0s result=PermFail stat=Error
> ("mail.lmtp: LMTP server error: 550 5.1.1  User
> doesn't exist: fa...@nuc.example.com\^M")
> Jan 12 12:12:30 nuc smtpd[28280]: warn: queue: no return path!
>
> This is with "action lmtp-local lmtp "/var/dovecot/lmtp" alias ":
> Jan 12 12:23:43 nuc smtpd[58396]: info: OpenSMTPD 6.4.0 starting
> Jan 12 12:24:05 nuc smtpd[59733]: af9c713d7d262539 smtp connected
> address=local host=nuc.example.com
> Jan 12 12:24:05 nuc smtpd[59733]: af9c713d7d262539 smtp message
> address=local host=nuc.example.com msgid=f80c9238 from=<
> fa...@nuc.joubbi.se> to= size=2268 ndest=1 proto=ESMTP
> Jan 12 12:24:05 nuc smtpd[59733]: af9c713d7d262539 smtp disconnected
> address=local host=nuc.example.com reason=quit
> Jan 12 12:24:05 nuc smtpd[59733]: af9c7141cd28962a mta connecting
> address=smtp://127.0.0.1:10025 host=localhost
> Jan 12 12:24:05 nuc smtpd[59733]: af9c7141cd28962a mta connected
> Jan 12 12:24:05 nuc smtpd[59733]: af9c7142ff99ae87 smtp connected
> address=127.0.0.1 host=localhost
> Jan 12 12:24:05 nuc smtpd[59733]: af9c7142ff99ae87 smtp failed-command
> address=127.0.0.1 host=localhost command="RCPT TO:"
> result="524 5.2.4 Mailing list expansion problem"
> Jan 12 12:24:05 nuc smtpd[59733]: af9c7141cd28962a mta delivery
> evpid=f80c92380ac5a4ea from= to=
> rcpt= source="127.0.0.1" relay="127.0.0.1
> (localhost)" delay=0s result="PermFail" stat="524 5.2.4 Mailing list
> expansion problem"
> Jan 12 12:24:06 nuc smtpd[59733]: af9c714308ca58b6 smtp connected
> address=local host=nuc.example.com
> Jan 12 12:24:06 nuc smtpd[59733]: af9c714308ca58b6 smtp message
> address=local host=nuc.example.com msgid=43ded801 from=<> to=<
> fa...@nuc.joubbi.se> size=3553 ndest=1 proto=ESMTP
> Jan 12 12:24:06 nuc smtpd[59733]: af9c714308ca58b6 smtp disconnected
> address=local host=nuc.example.com reason=quit
> Jan 12 12:24:07 nuc smtpd[59733]: af9c7142ff99ae87 smtp failed-command
> address=127.0.0.1 host=localhost command="RCPT TO:"
> result="524 5.2.4 Mailing list expansion problem"
> Jan 12 12:24:07 nuc smtpd[59733]: af9c7141cd28962a mta delivery
> evpid=43ded8014be1c057 from=<> to= rcpt=<
> fa...@nuc.joubbi.se> source="127.0.0.1" relay="127.0.0.1 (localhost)"
> delay=1s result="PermFail" stat="524 5.2.4 Mailing list expansion problem"
> Jan 12 12:24:07 nuc smtpd[21379]: warn: queue: no return path!
> Jan 12 12:24:17 nuc smtpd[59733]: af9c7142ff99ae87 smtp disconnected
> address=127.0.0.1 host=localhost reason=quit
> Jan 12 12:24:17 nuc smtpd[59733]: af9c7141cd28962a mta disconnected
> reason=quit messages=0
> Jan 12 12:25:26 nuc smtpd[59733]: af9c714553dbc567 smtp connected
> address=local host=nuc.example.com
> Jan 12 12:25:26 nuc smtpd[59733]: af9c714553dbc567 smtp message
> address=local host=nuc.example.com msgid=a5518f63 from=<
> fa...@nuc.joubbi.se> to= size=1078 ndest=1 proto=ESMTP
> Jan 12 12:25:26 nuc smtpd[59733]: af9c714553dbc567 smtp disconnected
> address=local host=nuc.example.com reason=quit
> Jan 12 12:25:26 nuc smtpd[59733

Re: Mail to root not working anymore with 6.4

2019-01-12 Thread Farid Joubbi
It doesnt seem to give more information.

This is with "action lmtp-local lmtp "/var/dovecot/lmtp" rcpt-to":
Jan 12 12:12:29 nuc smtpd[91698]: f4addfe2dfdc0dee smtp connected
address=local host=nuc.example.com
Jan 12 12:12:29 nuc smtpd[91698]: f4addfe2dfdc0dee smtp message
address=local host=nuc.example.com msgid=7701f750 from=<
fa...@nuc.example.com> to= size=2268 ndest=1
proto=ESMTP
Jan 12 12:12:29 nuc smtpd[91698]: f4addfe2dfdc0dee smtp disconnected
address=local host=nuc.example.com reason=quit
Jan 12 12:12:29 nuc dovecot: lmtp(9123): Connect from local
Jan 12 12:12:29 nuc dovecot: lmtp(9123): Disconnect from local: Connection
closed (in RCPT TO)
Jan 12 12:12:29 nuc smtpd[91698]:  mda delivery
evpid=7701f7508063f43e from= to=
rcpt= user=farid delay=0s result=PermFail stat=Error
("mail.lmtp: LMTP server error: 550 5.1.1  User
doesn't exist: r...@nuc.joubbi.se\^M")
Jan 12 12:12:30 nuc smtpd[91698]: f4addfe6604e447f smtp connected
address=local host=nuc.example.com
Jan 12 12:12:30 nuc smtpd[91698]: f4addfe6604e447f smtp message
address=local host=nuc.example.com msgid=9efcaf84 from=<> to=<
fa...@nuc.example.com> size=3621 ndest=1 proto=ESMTP
Jan 12 12:12:30 nuc smtpd[91698]: f4addfe6604e447f smtp disconnected
address=local host=nuc.example.com reason=quit
Jan 12 12:12:30 nuc dovecot: lmtp(9123): Connect from local
Jan 12 12:12:30 nuc dovecot: lmtp(9123): Disconnect from local: Connection
closed (in RCPT TO)
Jan 12 12:12:30 nuc smtpd[91698]:  mda delivery
evpid=9efcaf8480e8b1a5 from=<> to= rcpt=<
fa...@nuc.example.com> user=farid delay=0s result=PermFail stat=Error
("mail.lmtp: LMTP server error: 550 5.1.1  User
doesn't exist: fa...@nuc.example.com\^M")
Jan 12 12:12:30 nuc smtpd[28280]: warn: queue: no return path!

This is with "action lmtp-local lmtp "/var/dovecot/lmtp" alias ":
Jan 12 12:23:43 nuc smtpd[58396]: info: OpenSMTPD 6.4.0 starting
Jan 12 12:24:05 nuc smtpd[59733]: af9c713d7d262539 smtp connected
address=local host=nuc.example.com
Jan 12 12:24:05 nuc smtpd[59733]: af9c713d7d262539 smtp message
address=local host=nuc.example.com msgid=f80c9238 from=
to= size=2268 ndest=1 proto=ESMTP
Jan 12 12:24:05 nuc smtpd[59733]: af9c713d7d262539 smtp disconnected
address=local host=nuc.example.com reason=quit
Jan 12 12:24:05 nuc smtpd[59733]: af9c7141cd28962a mta connecting
address=smtp://127.0.0.1:10025 host=localhost
Jan 12 12:24:05 nuc smtpd[59733]: af9c7141cd28962a mta connected
Jan 12 12:24:05 nuc smtpd[59733]: af9c7142ff99ae87 smtp connected
address=127.0.0.1 host=localhost
Jan 12 12:24:05 nuc smtpd[59733]: af9c7142ff99ae87 smtp failed-command
address=127.0.0.1 host=localhost command="RCPT TO:"
result="524 5.2.4 Mailing list expansion problem"
Jan 12 12:24:05 nuc smtpd[59733]: af9c7141cd28962a mta delivery
evpid=f80c92380ac5a4ea from= to=
rcpt= source="127.0.0.1" relay="127.0.0.1 (localhost)"
delay=0s result="PermFail" stat="524 5.2.4 Mailing list expansion problem"
Jan 12 12:24:06 nuc smtpd[59733]: af9c714308ca58b6 smtp connected
address=local host=nuc.example.com
Jan 12 12:24:06 nuc smtpd[59733]: af9c714308ca58b6 smtp message
address=local host=nuc.example.com msgid=43ded801 from=<> to=<
fa...@nuc.joubbi.se> size=3553 ndest=1 proto=ESMTP
Jan 12 12:24:06 nuc smtpd[59733]: af9c714308ca58b6 smtp disconnected
address=local host=nuc.example.com reason=quit
Jan 12 12:24:07 nuc smtpd[59733]: af9c7142ff99ae87 smtp failed-command
address=127.0.0.1 host=localhost command="RCPT TO:"
result="524 5.2.4 Mailing list expansion problem"
Jan 12 12:24:07 nuc smtpd[59733]: af9c7141cd28962a mta delivery
evpid=43ded8014be1c057 from=<> to= rcpt=<
fa...@nuc.joubbi.se> source="127.0.0.1" relay="127.0.0.1 (localhost)"
delay=1s result="PermFail" stat="524 5.2.4 Mailing list expansion problem"
Jan 12 12:24:07 nuc smtpd[21379]: warn: queue: no return path!
Jan 12 12:24:17 nuc smtpd[59733]: af9c7142ff99ae87 smtp disconnected
address=127.0.0.1 host=localhost reason=quit
Jan 12 12:24:17 nuc smtpd[59733]: af9c7141cd28962a mta disconnected
reason=quit messages=0
Jan 12 12:25:26 nuc smtpd[59733]: af9c714553dbc567 smtp connected
address=local host=nuc.example.com
Jan 12 12:25:26 nuc smtpd[59733]: af9c714553dbc567 smtp message
address=local host=nuc.example.com msgid=a5518f63 from=
to= size=1078 ndest=1 proto=ESMTP
Jan 12 12:25:26 nuc smtpd[59733]: af9c714553dbc567 smtp disconnected
address=local host=nuc.example.com reason=quit
Jan 12 12:25:26 nuc smtpd[59733]: af9c7149e986a51f mta connecting
address=smtp://127.0.0.1:10025 host=localhost
Jan 12 12:25:26 nuc smtpd[59733]: af9c7149e986a51f mta connected
Jan 12 12:25:26 nuc smtpd[59733]: af9c714a3d709f50 smtp connected
address=127.0.0.1 host=localhost
Jan 12 12:25:26 nuc smtpd[59733]: af9c714a3d709f50 smtp failed-command
address=127.0.0.1 host=localhost command="RCPT TO:"
result="524 5.2.4 Mailing list expansion problem"
Jan 12 12:25:26 nuc smtpd[59733]: af9c7149e986a51f mta delivery
evpid=a5518f639a0456d6 from= to=
rcpt= source="127.0.0.1" relay="127.0.0

Re: Mail to root not working anymore with 6.4

2019-01-12 Thread Farid Joubbi
The user farid has a $HOME on the server.

You are right about the aliases.
I created it that way so that I have only one place to change if I for some
reason would want to change the address of fa...@example.com.
The alias file worked fine that way with 6.3 and earlier. Is it not
recommended to do it that way?

On Sat, Jan 12, 2019 at 1:40 AM  wrote:

> On Fri, Jan 11, 2019 at 11:27:53PM +0100, Farid Joubbi wrote:
> > Hello fellow opensmtpd admins!
> >
> > I have been running smtpd on OpenBSD for several years without problems.
> > Now after upgrading to release 6.4 I have an issue with local system
> > e-mails not coming through.
> >
> > My hostname is nuc.example.com.
> > My normal e-mail address is fa...@example.com.
> > All system generated e-mails sent to root go to r...@nuc.example.com,
> which
> > was properly translated to fa...@example.com in 6.3, but not anymore.
> > I can't figure out how to fix this.
> >
> > This is from the log:
> > Jan 11 22:45:02 nuc smtpd[3]: e5cfc1fdf14d2d33 smtp connected
> > address=local host=nuc.example.com
> > Jan 11 22:45:02 nuc smtpd[3]: e5cfc1fdf14d2d33 smtp message
> > address=local host=nuc.example.com msgid=4d7fc17d from=<> to=<
> > r...@nuc.example.com> size=1991 ndest=1 proto=ESMTP
> > Jan 11 22:45:02 nuc smtpd[3]: e5cfc1fdf14d2d33 smtp disconnected
> > address=local host=nuc.example.com reason=quit
> > Jan 11 22:45:02 nuc dovecot: lmtp(72696): Connect from local
> > Jan 11 22:45:02 nuc dovecot: lmtp(72696): Disconnect from local:
> Connection
> > closed (in RCPT TO)
> > Jan 11 22:45:02 nuc smtpd[3]:  mda delivery
> > evpid=4d7fc17d08076b4e from=<> to= rcpt=<
> > r...@nuc.example.com> user=farid delay=0s result=PermFail stat=Error
> > ("mail.lmtp: LMTP server error: 550 5.1.1  User
> > doesn't exist: r...@nuc.example.com\^M")
> > Jan 11 22:45:02 nuc smtpd[43925]: warn: queue: no return path!
> >
> > /etc/mail/aliases is configured to translate root to farid and farid to
> > fa...@example.com.
> > This worked in 6.3.
>
> I'm guessing that means your aliases looks like:
>
> root: farid
> farid: fa...@example.com
>
> Why not just do:
> root: fa...@example.com
>
> I'm betting user farid doesn't have a $HOME on the system and smtpd
> doesn't like that when its looking for a .forward. Just a guess though.
>
> Edgar
>
> >
> >
> > nuc# cat /etc/mail/smtpd.conf
> >
> >
> >
> > # pki setup
> > pki mail.example.com cert "/etc/ssl/mail.example.com.fullchain.pem"
> > pki mail.example.com key "/etc/ssl/private/mail.example.com.key"
> >
> > # tables setup
> > table aliases db:/etc/mail/aliases.db
> > #table aliases file:/etc/mail/aliases
> > table domains file:/etc/mail/domains
> > table passwd passwd:/etc/mail/passwd
> > table virtuals file:/etc/mail/virtuals
> > table secrets file:/etc/mail/secrets
> >
> > # listen ports setup
> > listen on lo0
> > listen on lo0 port 10026 tag DKIM_CHECKED
> > listen on lo0 port 10028 tag DKIM
> > listen on egress port 25 tls pki mail.example.com
> > listen on egress port 587 tls-require pki mail.example.com auth 
> >
> > action lmtp-local lmtp "/var/dovecot/lmtp" rcpt-to
> > #action lmtp-local lmtp "/var/dovecot/lmtp" rcpt-to alias 
> > action "relay" relay host smtp+tls://smtp...@mail.smtp2go.com:2525 auth
> > 
> > action "relay_dkim" relay host smtp://127.0.0.1:10027
> > action "relay_incoming" relay host smtp://127.0.0.1:10025
> >
> > match for local action "lmtp-local"
> > match tag DKIM_CHECKED from any for domain  action "lmtp-local"
> > match tag DKIM for any action "relay"
> > match from any for domain  action "relay_incoming"
> > match from local for any action "relay_dkim"
> > match auth from any for any action "relay_dkim"
> >
> > (My real domain name is censored to protect the innocent).
> >
> > Any help is greatly appreciated.
> >
> > Regards,
> > Farid
>
> --
> You received this mail because you are subscribed to misc@opensmtpd.org
> To unsubscribe, send a mail to: misc+unsubscr...@opensmtpd.org
>
>


Re: Mail to root not working anymore with 6.4

2019-01-12 Thread Farid Joubbi
Yes The mailbox of farid is on the host nuc.example.com.
At least several years ago when I set the server up, I had to have the
alias from farid to fa...@example.com.
Otherwise the email headers had traces of fa...@nuc.example.com.
I could maybe have solved it in another way, but this did the trick back
then.

I don't know why the from field is empty.
I sent the test e-mail by doing this: "/bin/sh /etc/daily".
That is since I noticed the problem when I didn't receive the daily e-mails
after the upgrade to 6.4.

On Sat, Jan 12, 2019 at 1:14 AM Thomas Bohl 
wrote:

> I reread you first Mail and I'm not sure any more if I understand what
> you try to achieve.
>
> Is the mailbox of farid on nuc.example.com?
> If yes, I see no need for a further alias from farid to
> fa...@example.com (I assume there is a farid user on dovecot's site.)
>
> Secondly, why are our from=<>s empty? How are you sending your test mails?
> $ echo test | sendmail root
>
> --
> You received this mail because you are subscribed to misc@opensmtpd.org
> To unsubscribe, send a mail to: misc+unsubscr...@opensmtpd.org
>
>


Re: Mail to root not working anymore with 6.4

2019-01-11 Thread edgar
On Fri, Jan 11, 2019 at 11:27:53PM +0100, Farid Joubbi wrote:
> Hello fellow opensmtpd admins!
> 
> I have been running smtpd on OpenBSD for several years without problems.
> Now after upgrading to release 6.4 I have an issue with local system
> e-mails not coming through.
> 
> My hostname is nuc.example.com.
> My normal e-mail address is fa...@example.com.
> All system generated e-mails sent to root go to r...@nuc.example.com, which
> was properly translated to fa...@example.com in 6.3, but not anymore.
> I can't figure out how to fix this.
> 
> This is from the log:
> Jan 11 22:45:02 nuc smtpd[3]: e5cfc1fdf14d2d33 smtp connected
> address=local host=nuc.example.com
> Jan 11 22:45:02 nuc smtpd[3]: e5cfc1fdf14d2d33 smtp message
> address=local host=nuc.example.com msgid=4d7fc17d from=<> to=<
> r...@nuc.example.com> size=1991 ndest=1 proto=ESMTP
> Jan 11 22:45:02 nuc smtpd[3]: e5cfc1fdf14d2d33 smtp disconnected
> address=local host=nuc.example.com reason=quit
> Jan 11 22:45:02 nuc dovecot: lmtp(72696): Connect from local
> Jan 11 22:45:02 nuc dovecot: lmtp(72696): Disconnect from local: Connection
> closed (in RCPT TO)
> Jan 11 22:45:02 nuc smtpd[3]:  mda delivery
> evpid=4d7fc17d08076b4e from=<> to= rcpt=<
> r...@nuc.example.com> user=farid delay=0s result=PermFail stat=Error
> ("mail.lmtp: LMTP server error: 550 5.1.1  User
> doesn't exist: r...@nuc.example.com\^M")
> Jan 11 22:45:02 nuc smtpd[43925]: warn: queue: no return path!
> 
> /etc/mail/aliases is configured to translate root to farid and farid to
> fa...@example.com.
> This worked in 6.3.

I'm guessing that means your aliases looks like:

root: farid
farid: fa...@example.com

Why not just do:
root: fa...@example.com

I'm betting user farid doesn't have a $HOME on the system and smtpd
doesn't like that when its looking for a .forward. Just a guess though.

Edgar

> 
> 
> nuc# cat /etc/mail/smtpd.conf
> 
> 
> 
> # pki setup
> pki mail.example.com cert "/etc/ssl/mail.example.com.fullchain.pem"
> pki mail.example.com key "/etc/ssl/private/mail.example.com.key"
> 
> # tables setup
> table aliases db:/etc/mail/aliases.db
> #table aliases file:/etc/mail/aliases
> table domains file:/etc/mail/domains
> table passwd passwd:/etc/mail/passwd
> table virtuals file:/etc/mail/virtuals
> table secrets file:/etc/mail/secrets
> 
> # listen ports setup
> listen on lo0
> listen on lo0 port 10026 tag DKIM_CHECKED
> listen on lo0 port 10028 tag DKIM
> listen on egress port 25 tls pki mail.example.com
> listen on egress port 587 tls-require pki mail.example.com auth 
> 
> action lmtp-local lmtp "/var/dovecot/lmtp" rcpt-to
> #action lmtp-local lmtp "/var/dovecot/lmtp" rcpt-to alias 
> action "relay" relay host smtp+tls://smtp...@mail.smtp2go.com:2525 auth
> 
> action "relay_dkim" relay host smtp://127.0.0.1:10027
> action "relay_incoming" relay host smtp://127.0.0.1:10025
> 
> match for local action "lmtp-local"
> match tag DKIM_CHECKED from any for domain  action "lmtp-local"
> match tag DKIM for any action "relay"
> match from any for domain  action "relay_incoming"
> match from local for any action "relay_dkim"
> match auth from any for any action "relay_dkim"
> 
> (My real domain name is censored to protect the innocent).
> 
> Any help is greatly appreciated.
> 
> Regards,
> Farid

-- 
You received this mail because you are subscribed to misc@opensmtpd.org
To unsubscribe, send a mail to: misc+unsubscr...@opensmtpd.org



Re: Mail to root not working anymore with 6.4

2019-01-11 Thread edgar
On Sat, Jan 12, 2019 at 12:20:04AM +0100, Farid Joubbi wrote:
> Jan 12 00:15:54 nuc smtpd[83365]: 6c4299ad25a4b1e6 mta delivery
> evpid=375cdf2cafbebee9 from=<> to= rcpt=<
> fa...@nuc.example.com> source="127.0.0.1" relay="127.0.0.1 (localhost)"
> delay=1s result="PermFail" stat="524 5.2.4 Mailing list expansion problem"
> 

Perhaps try `smtpctl trace expand' and see if you get a little more
context.

Edgar
> I get that now after changing to this:
> 
> #action lmtp-local lmtp "/var/dovecot/lmtp" rcpt-to
> action lmtp-local lmtp "/var/dovecot/lmtp" alias 
> 
> What does that mean?
> 
> On Sat, Jan 12, 2019 at 12:09 AM Thomas Bohl 
> wrote:
> 
> > Hello,
> >
> > > action lmtp-local lmtp "/var/dovecot/lmtp" rcpt-to
> > > #action lmtp-local lmtp "/var/dovecot/lmtp" rcpt-to alias 
> >
> > Looks like you commented the wrong line out.
> >
> > --
> > You received this mail because you are subscribed to misc@opensmtpd.org
> > To unsubscribe, send a mail to: misc+unsubscr...@opensmtpd.org
> >
> >

-- 
You received this mail because you are subscribed to misc@opensmtpd.org
To unsubscribe, send a mail to: misc+unsubscr...@opensmtpd.org



Re: Mail to root not working anymore with 6.4

2019-01-11 Thread Thomas Bohl
I reread you first Mail and I'm not sure any more if I understand what 
you try to achieve.


Is the mailbox of farid on nuc.example.com?
If yes, I see no need for a further alias from farid to 
fa...@example.com (I assume there is a farid user on dovecot's site.)


Secondly, why are our from=<>s empty? How are you sending your test mails?
$ echo test | sendmail root

--
You received this mail because you are subscribed to misc@opensmtpd.org
To unsubscribe, send a mail to: misc+unsubscr...@opensmtpd.org



Re: Mail to root not working anymore with 6.4

2019-01-11 Thread Farid Joubbi
Jan 12 00:15:54 nuc smtpd[83365]: 6c4299ad25a4b1e6 mta delivery
evpid=375cdf2cafbebee9 from=<> to= rcpt=<
fa...@nuc.example.com> source="127.0.0.1" relay="127.0.0.1 (localhost)"
delay=1s result="PermFail" stat="524 5.2.4 Mailing list expansion problem"

I get that now after changing to this:

#action lmtp-local lmtp "/var/dovecot/lmtp" rcpt-to
action lmtp-local lmtp "/var/dovecot/lmtp" alias 

What does that mean?

On Sat, Jan 12, 2019 at 12:09 AM Thomas Bohl 
wrote:

> Hello,
>
> > action lmtp-local lmtp "/var/dovecot/lmtp" rcpt-to
> > #action lmtp-local lmtp "/var/dovecot/lmtp" rcpt-to alias 
>
> Looks like you commented the wrong line out.
>
> --
> You received this mail because you are subscribed to misc@opensmtpd.org
> To unsubscribe, send a mail to: misc+unsubscr...@opensmtpd.org
>
>


Re: Mail to root not working anymore with 6.4

2019-01-11 Thread Thomas Bohl

Hello,


action lmtp-local lmtp "/var/dovecot/lmtp" rcpt-to
#action lmtp-local lmtp "/var/dovecot/lmtp" rcpt-to alias 


Looks like you commented the wrong line out.

--
You received this mail because you are subscribed to misc@opensmtpd.org
To unsubscribe, send a mail to: misc+unsubscr...@opensmtpd.org