Re: How to set from: for bounce mails from OpenSMTPD

2020-05-10 Thread Thomas Bohl

Hello,


Let me know if you upgrade and this fixes the issue. I would be really 
interested to know if this is a bug which has been fixed in a newer version of 
OpenSMTPD.



updating to OpenBSD 6.6 (OpenSMTPD 6.6.0) indeed fixed the issue. Now I 
receive bounce back messages.


From: mailer-dae...@mx.aloof.de

Hi!

This is the MAILER-DAEMON, please DO NOT REPLY to this email.

An error has occurred while attempting to deliver a message for
the following list of recipients:

bouncet...@tribulant.com: 550 No such person at this address.

Below is a copy of the original message:


Reporting-MTA: dns; mx.aloof.de

Final-Recipient: rfc822; bouncet...@tribulant.com
Action: failed
Status: 5.0.0

...

The maillog still has the from=<> thing though.
May 10 21:24:29 o3 smtpd[79692]: 23da0fd0c56b2c65 smtp envelope 
evpid=a6a961ff5fbfaf7b from=<> to=




Re: How to set from: for bounce mails from OpenSMTPD

2020-03-03 Thread mabi
‐‐‐ Original Message ‐‐‐
On Monday, February 24, 2020 9:03 PM, Thomas Bohl 
 wrote:

> Fully syspatched and 'pkg_add -u'ed
> OpenBSD 6.5
> OpenSMTPD 6.5.0
> dovecot-2.3.9.2v0

I use exactly the same versions.

> I usually upgrade in a timely manner to the latest stable, but due to
> circumstances I'm still on 6.5.

Same here, still on OpenBSD 6.5 due to time constraints. I hope to upgrade soon.

> Haven't found time to investigate further. I hope to find time in a view
> weeks to upgrade and look again into this topic. Will post an update if
> I find a solution.

Let me know if you upgrade and this fixes the issue. I would be really 
interested to know if this is a bug which has been fixed in a newer version of 
OpenSMTPD.




Re: How to set from: for bounce mails from OpenSMTPD

2020-02-24 Thread Thomas Bohl

I have the same problem (my logs look the same) and are very interested
in a solution.


I was wondering which version of OpenBSD are you using? and which version of 
Dovecot?


Fully syspatched and 'pkg_add -u'ed
OpenBSD 6.5
OpenSMTPD 6.5.0
dovecot-2.3.9.2v0

I usually upgrade in a timely manner to the latest stable, but due to 
circumstances I'm still on 6.5.




Have you found a solution in the mean time?


Haven't found time to investigate further. I hope to find time in a view 
weeks to upgrade and look again into this topic. Will post an update if 
I find a solution.




Re: How to set from: for bounce mails from OpenSMTPD

2020-02-24 Thread mabi
‐‐‐ Original Message ‐‐‐
On Friday, February 14, 2020 5:48 PM, Thomas Bohl 
 wrote:

> I have the same problem (my logs look the same) and are very interested
> in a solution.

I was wondering which version of OpenBSD are you using? and which version of 
Dovecot?

Have you found a solution in the mean time? I am still searching and no one 
really answered yet to this mail except you.



Re: How to set from: for bounce mails from OpenSMTPD

2020-02-14 Thread Thomas Bohl

Hello,


I am running OpenBSD 6.5 with OpenSMTPD and dovecot and if I send an email to 
an invalid email address, I do not get a bounce back from OpenSMTPD telling me 
that the email address is invalid. So this means I never know that I made a 
mistake in sending my email.



I have the same problem (my logs look the same) and are very interested 
in a solution.



$ cat /etc/mail/smtpd.conf
v4adr = 192.168.0.202
v6adr = 1:2:3:4:5:6:7:8
hostn = example.com

table aliases file:/etc/mail/aliases
table domains file:/etc/mail/domains
table ma2user file:/etc/mail/mail2user
table legladr file:/etc/mail/legal-mail-from
table loclonl file:/etc/mail/local-mail-only
table pwdauth file:/etc/mail/pwdauth
table passwd  file:/etc/mail/passwd

pki $hostn cert "/etc/mail/example.com_Cert.pem"
pki $hostn key "/etc/mail/example.com_Key.pem"

smtp max-message-size 150M

listen on lo0
listen on $v4adr port 465 smtps \
hostname $hostn pki $hostn \
mask-src auth  senders 
listen on $v6adr port 465 smtps \
hostname $hostn pki $hostn \
mask-src auth  senders 
listen on $v4adr port 587 tls-require \
hostname $hostn pki $hostn \
auth  senders 
listen on $v6adr port 587 tls-require \
hostname $hostn pki $hostn \
auth  senders 

action "receivedLocally" lmtp "/var/dovecot/lmtp" alias 
action "receivedRemotely" lmtp "/var/dovecot/lmtp" virtual 
action "relay2MX" relay \
host smtps://e...@mx.example.com:465 \
auth  \
helo $hostn \
src $v6adr

match for local action "receivedLocally"
match auth from any for domain  action "receivedRemotely"
match auth from any for any mail-from  action "receivedRemotely"
match auth from any for any action "relay2MX"