[Dovecot] hardlinks deliver not work

Arnaud Yonnet arnaud.yonnet at mdl29.net
Wed Apr 6 08:30:55 EEST 2011

ho yes it's work with script
thanks you

hum I have one more question,
i create the script for replace dovecot deliver. it's work .cool :)
but if it's crash for many raison, for exemple the hard disk full, 
Postfix Bounce the mail.

with deliver dovecot, Postfix not bounce, it defer.
I don't want postfix Bounce. I prefer it defer.

I changed the code error in my script but nothing.

tanks you for your help.

this my script it's not finish

$ID_mail_interne = rand(10000000);
open(PDBFILE, ">$Mail") ;

if ( $? != 1 )
         print "open file  $Mail failed: $!\n";
         exit 64;
         while ($STDIN = <STDIN>) {
                 print PDBFILE $STDIN;
         foreach $Recepient (@ARGV){

                 system("/usr/lib/dovecot/deliver -p $Mail -d $Recepient");
                 if ( $? == -1 )
                         print "command failed: $!\n";
                         printf "command exited with value %d", $? >> 8;

On 04/04/2011 15:18, Timo Sirainen wrote:
> On Mon, 2011-04-04 at 14:43 +0200, Arnaud Yonnet wrote:
>> hello,
>> I try to use the deliver dovecot with hardlinks.
>> in command line, it's work with this command
>> /usr/lib/dovecot/deliver  -p themail -d user
> Yes, it works only when you use the -p parameter.
>> when i send mail with postfix. I received the mail for all users but it
>> doesn't create hardlinks.
> ..
>>       user=utilisateurmail:utilisateurmail argv=/usr/lib/dovecot/deliver
>> -d ${user}
> Because there is no -p parameter. You'd need to write a script to do
> this. I know some people have done that, but no one's made their script
> publicly available.
> A far easier solution would be to use Dovecot v2.0 and deliver mails via
> LMTP. Then the hard linking happens automatically.

More information about the dovecot mailing list