Den 02.09.2025 23:30, skrev Benny Pedersen via dovecot:
Håkon Alstadheim via dovecot skrev den 2025-09-02 23:19:
Den 02.09.2025 22:44, skrev Benny Pedersen via dovecot:
Kenneth Irving via dovecot skrev den 2025-09-02 22:14:
Probably the simpest solution is to use fetchmail
with lda set in fetchmailrc
Fetchmail will automatically delete on the server after successful
local delivery. I have fetchmail use the socket for dovecot-lmtp
like so:
/etc/fetchmailrc: smtphost /var/spool/postfix/dovecot-lmtp
make a smtpd listner in postfix for this, or does fetchmail realy do
smtpd to lmtp ?
No, I had the socket set up anyway, for local delivery from postfix, so
why not let fetchmail use the same?
Note: small typo in my post cited below: The socket is obviously meant
to be THE SAME for dovecot and fetchmail, so remove the "-local-deliver"
crud from that dovecot.conf snippet. I.e.
/var/spool/postfix/dovecot-lmtp both places, and then, for completeness, in
/etc/postfix/main.cf: mailbox_transport = lmtp:unix:dovecot-lmtp
For further completeness, that dovecot-lmtp will barf on SMTPUTF8.
Consider yourselves warned, so maybe better use
/usr/lib/dovecot/dovecot-lda. I've never tried that with fetchmail, so
will defer to others on that.
but lda in fetchmail is intended to be direct to dovecot-lda without
needing postfix
/etc/dovecot/dovecot.conf (or some included file):
service lmtp {
process_limit = 512
unix_listener /var/spool/postfix-local-deliver/dovecot-lmtp {
group = postfix
mode = 0660
user = postfix
}
}
thats ok with postfix :)
to deliver locally. Very easy setup in fetchmailrc for several remote
mail-accounts allowing to deliver to the corresponding local mail
address. This has been working more or less unchanged for 20 years on
my box.
i just stopped using fetchmail
_______________________________________________
dovecot mailing list -- dovecot@dovecot.org
To unsubscribe send an email to dovecot-le...@dovecot.org
_______________________________________________
dovecot mailing list -- dovecot@dovecot.org
To unsubscribe send an email to dovecot-le...@dovecot.org