Shabnam Niroomand wrote:
Hi Shabnam,
> If you are familiar with sendmail, you could find that it handles such issues.
> For example it "queues" (what you refer as "save") these mails
> in the queue dir on your system (check /etc/[mail]/sendmail.cf) e.g.
> /var/spool/mqueue. Also sendmail is responsible to review the queue
> again in a manner which is defined for it, and try to `redeliver' the
> messages. But final delivery would be done by cyrus programs/processes.
i finally found the reason why messages to overquota mailboxes silently
disappear. deliver wasn´t invoked directly by sendmail. It was wrapped
into the /usr/sbin/scanmail skript (from the Amavis project). Scanmails
checks the mail for viruses and if none found forwards the mail to the
original delivery agent. But scanmails completely ignores the return
code from deliver and always return 0. I now patched scanmails so that
the return code from the final delivery agent is returned and now mail
to an overquota mailbox stays in the queue with status deferred.
Greetings, Jörg