Re: Support of Dovecot LDA for local delivery
Mohammad H. Al Shami mshami@... writes: You have to use relay via instead of deliver because with deliver, OpenSMTPD needs to convert the full email address to a local user you are like a god to my it took weeks trying to fix my server thanks -- You received this mail because you are subscribed to misc@opensmtpd.org To unsubscribe, send a mail to: misc+unsubscr...@opensmtpd.org
RE: Support of Dovecot LDA for local delivery
Hello, Yes OpenSMTPD can work with Dovecot via LDA, but from my experience LMTP is much faster. With LDA, the LDA process is spawned for every incoming connection. With LMTP, you have a single process listening which accepts connections via TCP. I've seen my server load drop significantly after switching from LDA to LMTP. To set up LMTP, you can do this in smtpd.conf: #Accept email for these domains and recipients table vdomains file:/usr/local/etc/mail/vdomains table recipients file:/usr/local/etc/mail/recipients #Other accept lines included to show where to place the LMTP line accept from any for domain vdomains recipient recipients relay via lmtp://127.0.0.1:2525 accept for local alias aliases deliver to mbox accept tagged DKIM for any relay source fromIPs hostnames hostnamelist accept for any relay via smtp://127.0.0.1:10027 In vdomains, just list every virtual domain you have, one domain per line For recipients, list of virtual users, one user per line (u...@domain.tld) You have to use relay via instead of deliver because with deliver, OpenSMTPD needs to convert the full email address to a local user. Also, relay via can only communicate with LMTP via TCP, sadly UNIX sockets don't work. Of course if you have a high load don't forget to include this in dovecot.conf so it won't be the bottleneck service lmtp { inet_listener lmtp { address = 127.0.0.1 port = 2525 } #This is here to handle high traffic process_min_avail = 10 } Hope this helps, and sorry for the long email -Original Message- From: Adam Thompson [mailto:athom...@athompso.net] Sent: Sunday, November 2, 2014 2:27 AM To: Eric Kom; misc@opensmtpd.org Subject: Re: Support of Dovecot LDA for local delivery On 14-11-01 02:27 AM, Eric Kom wrote: Good day all, I'm running a Mail server based on Dovecot and Postfix for 2 years now without problem and would like to try OpenSMTPD instead of Sendmail. Where can I find an user documentation? It is possible for OpenSMTPD to support a MDA like LDA from Dovecot? Absolutely. In smtpd.conf, use something like: delivery = mda \/usr/local/libexec/dovecot/dovecot-lda -a %{rcpt} -d %{user.username} -e -f %{sender} -m INBOX\ then: accept from local for local alias aliases deliver to $delivery (etc.) RTFM: man smtpd.conf -- -Adam Thompson athom...@athompso.net -- You received this mail because you are subscribed to misc@opensmtpd.org To unsubscribe, send a mail to: misc+unsubscr...@opensmtpd.org
Re: Support of Dovecot LDA for local delivery
You have to use relay via instead of deliver because with deliver, OpenSMTPD needs to convert the full email address to a local user. Also, relay via can only communicate with LMTP via TCP, sadly UNIX sockets don't work. Delivery via unix socket works at least with version: OpenSMTPD 201406192229. -- You received this mail because you are subscribed to misc@opensmtpd.org To unsubscribe, send a mail to: misc+unsubscr...@opensmtpd.org
RE: Support of Dovecot LDA for local delivery
Could be, I'm using opensmtpd-5.4.2_4,1 (From FreeBSD ports, prefer to stick with the stable versions) and according to the docs I found when I set it up it doesn't work. I tried to do it with the version I have and it didn't work. I think the version you have is newer, seems the docs need to be updated. That said I do prefer to use the UNIX socket and will be implementing it when it comes to the stable version. -Original Message- From: Denis Fondras [mailto:open...@ledeuns.net] Sent: Sunday, November 2, 2014 11:02 AM To: misc@opensmtpd.org Subject: Re: Support of Dovecot LDA for local delivery You have to use relay via instead of deliver because with deliver, OpenSMTPD needs to convert the full email address to a local user. Also, relay via can only communicate with LMTP via TCP, sadly UNIX sockets don't work. Delivery via unix socket works at least with version: OpenSMTPD 201406192229. -- You received this mail because you are subscribed to misc@opensmtpd.org To unsubscribe, send a mail to: misc+unsubscr...@opensmtpd.org
Re: Support of Dovecot LDA for local delivery
On 14-11-02 01:09 AM, Mohammad H. Al Shami wrote: Hello, Yes OpenSMTPD can work with Dovecot via LDA, but from my experience LMTP is much faster. With LDA, the LDA process is spawned for every incoming connection. With LMTP, you have a single process listening which accepts connections via TCP. I've seen my server load drop significantly after switching from LDA to LMTP. Yes... I stopped using LMTP because it inexplicably refused to work over local TCP sockets. IIRC there was some other feature the command-line gave me that LMTP didn't, as well, but I haven't gone back and re-tested since I got it working - it's entirely possible it now works perfectly. Perhaps I was using deliver instead of relay, which would not be obvious. Agreed that LMTP over UNIX socket should, in theory, be the fastest/lowest-overhead way to deliver local mail through dovecot. -- -Adam Thompson athom...@athompso.net
Re: Support of Dovecot LDA for local delivery
Hi Eric, I'm running a Mail server based on Dovecot and Postfix for 2 years now without problem and would like to try OpenSMTPD instead of Sendmail. Where can I find an user documentation? The best documentation you will find is man smtpd.conf. You may find some tricks on the mailing-list archive. It is possible for OpenSMTPD to support a MDA like LDA from Dovecot? Yes, it is : -8- table local_user_list passwd:/usr/local/etc/dovecot/users.db table local_domain_list { mydomain.tld, myotherdomain.tld } table local_address_list /etc/mail/address.list [...] accept from any for domain local_domain_list virtual local_address_list userbase local_user_list deliver to lmtp /var/spool/smtpd/dovecot-lmtp -8- -- You received this mail because you are subscribed to misc@opensmtpd.org To unsubscribe, send a mail to: misc+unsubscr...@opensmtpd.org
Re: Support of Dovecot LDA for local delivery
On 01/11/2014 10:30, Denis Fondras wrote: Hi Eric, Hi Denis, I'm running a Mail server based on Dovecot and Postfix for 2 years now without problem and would like to try OpenSMTPD instead of Sendmail. Where can I find an user documentation? The best documentation you will find is man smtpd.conf. You may find some tricks on the mailing-list archive. Thanks, May you give me the link for the mailing list archive? It is possible for OpenSMTPD to support a MDA like LDA from Dovecot? Yes, it is : -8- table local_user_list passwd:/usr/local/etc/dovecot/users.db table local_domain_list { mydomain.tld, myotherdomain.tld } table local_address_list /etc/mail/address.list [...] accept from any for domain local_domain_list virtual local_address_list userbase local_user_list deliver to lmtp /var/spool/smtpd/dovecot-lmtp -8- I will try it -- You received this mail because you are subscribed to misc@opensmtpd.org To unsubscribe, send a mail to: misc+unsubscr...@opensmtpd.org
Re: Support of Dovecot LDA for local delivery
Thanks, May you give me the link for the mailing list archive? http://marc.info/?l=opensmtpd-misc -- You received this mail because you are subscribed to misc@opensmtpd.org To unsubscribe, send a mail to: misc+unsubscr...@opensmtpd.org
Re: Support of Dovecot LDA for local delivery
On 14-11-01 02:27 AM, Eric Kom wrote: Good day all, I'm running a Mail server based on Dovecot and Postfix for 2 years now without problem and would like to try OpenSMTPD instead of Sendmail. Where can I find an user documentation? It is possible for OpenSMTPD to support a MDA like LDA from Dovecot? Absolutely. In smtpd.conf, use something like: delivery = mda \/usr/local/libexec/dovecot/dovecot-lda -a %{rcpt} -d %{user.username} -e -f %{sender} -m INBOX\ then: accept from local for local alias aliases deliver to $delivery (etc.) RTFM: man smtpd.conf -- -Adam Thompson athom...@athompso.net -- You received this mail because you are subscribed to misc@opensmtpd.org To unsubscribe, send a mail to: misc+unsubscr...@opensmtpd.org