Hi,
I don’t have problems delivering email but looking at procmail.log I see all reports end as
procmail: Error while writing to “/usr/libexec/dovecot/deliver”
What could be causing that?
Thank you
Disk space or quotas.
Note that if you’re using quotas, both the user and the domain (group) have a quota and either one could be full, which would prevent any operations that require writing to fail.
Hi Joe,
No disk space problem, more than 200GB free.
Virtual servers using mail have ‘unlimited’ quota, same as groups and users using mail. Soft and hard limits are ‘unlimited’
Thank you
Where is the free space mounted ?
If the mail is delivered it probably shouldn’t even try that method from what I see?
lrwxrwxrwx 1 root root 11 Aug 27 2024 deliver -> dovecot-lda
The Dovecot LDA is a mail delivery agent, which takes mail from an MTA and delivers it to a user’s mailbox, while keeping Dovecot index files up to date. Nowadays you should probably use the LMTP server instead, because it’s somewhat easier to configure (especially related to permissions) and gives better performance.
I know I have LMTP on my server for Mailman3. I was looking for where I saw it. I can’t find it but what do you have under Server>Postfix>Local Delivery?
/usr/bin/procmail-wrapper -o -a $DOMAIN -d $LOGNAME
Oh, I didn’t even notice OP was trying to deliver to a Dovecot thing. That’s an unusual configuration. Virtualmin does not configure any Dovecot delivery agent. We deliver directly with Procmail.
@DanielStonek is this a Virtualmin system? Why are you delivering to Dovecot instead of just delivering the mail to the user’s Maildir?
If you want easy to configure, the easiest is to just don’t do anything and let procmail deliver the mail as configured by default in a Virtualmin system. Dovecot LDA doesn’t need to be involved at all.
This server has been started from scratch around 2 years ago and installed Webmin/Virtualmin in AlmaLinux OS
Some configurations in /etc/dovecot (conf.d):
protocols = imap pop3 lmtp sieve
protocol lmtp {
mail_plugins = $mail_plugins sieve
}
protocol lda {
}
service lmtp {
unix_listener lmtp {
}
I had installed sieve that time but I am not using it, just procmail recipes.
Local Delivery has the same command as yours.
Hi Joe.
I try to make the few possible changes from the default Webmin/Virtualmin configurations.
My local delivery command is
/usr/bin/procmail-wrapper -o -a $DOMAIN -d $LOGNAME
I don’t know why is Dovecot involved
Some procmailrc is sending mail to Dovecot (either the system one or the one for the effected user(s)). So, check the procmail files you modified when you were tinkering with sieve
and undo those changes unless/until you’re going to figure out how to make it work.
Yeah, you have. “Append to file /usr/libexec/dovecot/deliver`” is absolutely not how mail is delivered by default.
Also that can’t work. That’s not a sensible thing to do with deliver
. That’s an executable, you’re not allowed to append to it, it’s not a mail spool.
Thanks Joe.
It is odd, such kind of changes/adds I wrote them in my notes but there’s nothing about that.
Thanks again.