postfix: sender non-delivery notifications go to root, not the sender

Discussion in 'Server Operation' started by vmos, Nov 3, 2010.

  1. vmos

    vmos Member

    Hi there, I'm porting a couple of our anti-virus servers from debian lenny to ubuntu 10.04.

    On the old server, if you send a virus, it stuffs the mail in a black hole somewhere and then sends notification to the sender.

    What I'd really like it to do is send a message to the intended recipient but right now the new server sends the notification to the root user.

    I can't figure out why this is happening, I've got the same aliases, postfix, amavis, clamav and spamassassin configs.
    I've run newaliases and rebooted about a billion times

    any suggestions?
  2. vmos

    vmos Member

    I seem to have figured it out, but I don't quite understand it.

    In my amavis/conf.d/20_debian_defaults, on the debian server I have this line

    $final_virus_destiny = D_DISCARD;

    according to this page

    that means it should dump the mail and tell no-one, however it dumps the mail and tells the sender

    On the ubuntu server, D_Discard behaves as it should (IE, telling no-one) so I've changed that to D_BOUNCE and now the sender is getting notifications.

    Anyway, does anyone have an idea about how to send notifications to the reicipient?

Share This Page