Problems using LMTP in PMG

kienvt

New Member
Jun 6, 2023
6
1
3
Hello
In the shipping of pmg there is an LMTP option, I don't see much mention of this in the documentation nor is it mentioned in the service firewall section. How to use LMTP properly to optimize sending and receiving of mail on mail server?
 
what do you mean exactly?

if your downstream server can receive mails via ltmp you can configure that in the transport to quote from the git log where the feature was implemeneted:
new feature lmtp support for simplifying setups
with lmtp capable downstream servers (e.g. dovecot)
Postfix support lmtp out of the box and can now deliver
mails directly to internal mailbox servers without
one more smtp connection
 
  • Like
Reactions: kienvt
what do you mean exactly?

if your downstream server can receive mails via ltmp you can configure that in the transport to quote from the git log where the feature was implemeneted:
I used the LMTP protocol to transport mail from PGM (version 6.2-3) to the mail server but it failed.
Transport with LMTP port 25
Code:
Jul 3 16:38:50 mailgw postfix/lmtp[15537]: B8AED851F1: to=<test2@evexx.com>, relay=127.0.0.1[127.0.0.1]:10024, delay=1.1, delays=0.09/0/0.29/0.77, dsn=2.5.0, status=sent (250 2.5.0 OK (850F264A2972A0CD9D))
Jul 3 16:38:50 mailgw postfix/qmgr[2325]: B8AED851F1: removed
Jul 3 16:38:50 mailgw postfix/lmtp[15574]: C66B085174: to=<test2@evxx.com>, relay=x.x.x.20[x.x.x.20]:25, delay=0.09, delays=0/0.02/0.06/0, dsn=5.5.2, status=bounced (host x.x.x.20[x.x.x.20] refused to talk to me: 502 5.5.2 Error: command not recognized)
Jul 3 16:38:50 mailgw postfix/qmgr[2325]: C66B085174: removedl

Transport with SMTP port 25
Code:
Jul 3 16:49:22 mailgw postfix/lmtp[24302]: 3DEB9166136: to=<test2@evxx.com>, relay=127.0.0.1[127.0.0.1]:10024, delay=6.2, delays=0.18/0/4.1/2, dsn=2.5.0, status=sent (250 2.5.0 OK (164A5E64A299A04D4E9))
Jul 3 16:49:22 mailgw postfix/qmgr[22775]: 3DEB9166136: removed
Jul 3 16:49:22 mailgw postfix/smtp[23053]: 3FB751661DB: to=<test2@evxx.com>, relay=x.x.x.20[x.x.x.20]:25, delay=0.43, delays=0/0/0.12/0.3, dsn=2.0.0, status=sent (250 2.0.0 Ok: queued as 9D5A81FCCF530)
Jul 3 16:49:22 mailgw postfix/qmgr[22775]: 3FB751661DB: removed
 
It seems that the server that listens on port 25 at IP x.x.x.20 does not speak LMTP...
 
  • Like
Reactions: kienvt
Thank you, this is helpful feedback. I think the documentation needs more detailed information on this.
How would you phrase it? - glad to improve our documentation - but currently am not sure how to express that you need an LMTP capable downstream server if you want to use LMTP?
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!