Re: Problem with Dovecot LMTP delivery

2021-03-17 Thread David Favor

Thomas Bohl wrote:

Hi,

action remote_delivery lmtp "/usr/lib/dovecot/lmtp" rcpt-to virtual 




Camping - inotifywait -mrq /usr/lib/dovecot - show the
lmtp executable is never touched, when Dovecot is running.


You have to call the LMTP server by IP:Port or UNIX socket, not by 
executable.


On OpenBSD it would look like this:
action remote_delivery lmtp "/var/dovecot/lmtp" rcpt-to virtual 


With
# doveconf | grep lmtp
you can look if your config uses "unix_listener lmtp"

# doveconf | grep state_dir
should tell you the directory of the lmtp unix socket.



2) Also there doesn't seem to be a working Dovecot LMTP
example, anywhere I can find. If someone can point me
to an example (using new syntax), that would be great.


https://prefetch.eu/blog/2020/email-server/


Thanks Thomas for resolving this problem!




Re: Problem with Dovecot LMTP delivery

2020-08-09 Thread David Favor

David Favor wrote:

 Config File

ipv4addr  = 192.99.135.223
hostn = mail.newswire.net

pki $hostn cert "/etc/letsencrypt/live/mail.newswire.net/fullchain.pem"
pki $hostn key  "/etc/letsencrypt/live/mail.newswire.net/privkey.pem"

table domains file:/etc/mail/domains
table users   file:/etc/mail/users

listen on localhost
listen on $ipv4addr port 25 tls pki $hostn hostname $hostn

action remote_delivery lmtp "/usr/lib/dovecot/lmtp" rcpt-to virtual 

match  from any for domain  action remote_delivery

 /etc/mail/users entry

# grep ^supp...@newswire.net /etc/mail/users
supp...@newswire.net vmail

 Error Message

f03ef7cfdfb050bb mda delivery evpid=f259e1c3f4f1acb0 
from= to= 
rcpt= user=vmail delay=0s result=TempFail 
stat=Error (temporary failure: "mail.lmtp: connect: Permission denied")


1) Same error occurs whether Dovecot is running or stopped.

   Camping - inotifywait -mrq /usr/lib/dovecot - show the
   lmtp executable is never touched, when Dovecot is running.

   Be great if someone can let me know how to fix this.

2) Also there doesn't seem to be a working Dovecot LMTP
   example, anywhere I can find. If someone can point me
   to an example (using new syntax), that would be great.

Thanks.



Still be great if someone can point me to a working Dovecot LMTP
example using new syntax...
___

Figured out the problem.

Appears to be an Ubuntu package problem.

Fix sequence...

1) In /etc/dovecot/conf.d/10-master.conf change to...

service lmtp {
  ### unix_listener lmtp {
  unix_listener /var/lib/dovecot/lmtp {
mode = 0660
user  = vmail
group = vmail
  }

  # Create inet listener only if you can't use the above UNIX socket
  #inet_listener lmtp {
# Avoid making LMTP visible for the entire internet
#address =
#port =
  #}
}

2) Restart Dovecot to create the socket.

3) Change opensmtpd to use correct socket path.

4) Restart opensmtpd



Problem with Dovecot LMTP delivery

2020-08-09 Thread David Favor

 Config File

ipv4addr  = 192.99.135.223
hostn = mail.newswire.net

pki $hostn cert "/etc/letsencrypt/live/mail.newswire.net/fullchain.pem"
pki $hostn key  "/etc/letsencrypt/live/mail.newswire.net/privkey.pem"

table domains file:/etc/mail/domains
table users   file:/etc/mail/users

listen on localhost
listen on $ipv4addr port 25 tls pki $hostn hostname $hostn

action remote_delivery lmtp "/usr/lib/dovecot/lmtp" rcpt-to virtual 

match  from any for domain  action remote_delivery

 /etc/mail/users entry

# grep ^supp...@newswire.net /etc/mail/users
supp...@newswire.net vmail

 Error Message

f03ef7cfdfb050bb mda delivery evpid=f259e1c3f4f1acb0 from= to= rcpt= user=vmail delay=0s result=TempFail stat=Error (temporary 
failure: "mail.lmtp: connect: Permission denied")


1) Same error occurs whether Dovecot is running or stopped.

   Camping - inotifywait -mrq /usr/lib/dovecot - show the
   lmtp executable is never touched, when Dovecot is running.

   Be great if someone can let me know how to fix this.

2) Also there doesn't seem to be a working Dovecot LMTP
   example, anywhere I can find. If someone can point me
   to an example (using new syntax), that would be great.

Thanks.



Re: Newbie config question

2020-06-13 Thread David Favor

David Favor wrote:

I've been wrestling with this for days with no progress.

Can someone drop me a v6.6.4 config to do something similar to the 
following.


   da...@davidfavor.com   - maildir
   i...@davidfavor.com- forward to da...@davidfavor.com
   supp...@davidfavor.com - forward to f...@helpdesk.com using MailGun 
Relay Service


   supp...@radicalhealth.com - maildir
   i...@radicalhealth.com- forward to supp...@radicalhealth.com
   da...@radicalhealth.com   - send natively to da...@davidfavor.com (no 
Smarthost or Relay Service)


Just a raw config file will be fine, I can remove
whatever I don't require right now, like DKIM signing,
which I'll add later.

I'm just trying to get basic OpenSMTPD delivery working.

Thanks.


Still be great to have a working config.

No requirement for long explanation, just a copy of
a working config, that handles all the above.

Thanks.



Newbie config question

2020-06-05 Thread David Favor

I've been wrestling with this for days with no progress.

Can someone drop me a v6.6.4 config to do something similar to the following.

   da...@davidfavor.com   - maildir
   i...@davidfavor.com- forward to da...@davidfavor.com
   supp...@davidfavor.com - forward to f...@helpdesk.com using MailGun Relay 
Service

   supp...@radicalhealth.com - maildir
   i...@radicalhealth.com- forward to supp...@radicalhealth.com
   da...@radicalhealth.com   - send natively to da...@davidfavor.com (no 
Smarthost or Relay Service)

Just a raw config file will be fine, I can remove
whatever I don't require right now, like DKIM signing,
which I'll add later.

I'm just trying to get basic OpenSMTPD delivery working.

Thanks.