This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Customization of postmaster replies

I was told that it would be possible to configure the postmaster replies in ASL ver. 3 (e.g. translate the SMTP proxy's response to a virus-infected email).

Is this possible?
Which file(s) should I edit?

Thanks in advance!


This thread was automatically locked due to age.
Parents
  • look in /var/chroot-smtp/etc/exiscanv2.cf-default and locate the $sender_notification_text setting.

    You can change the "sender" response there.

    The notification sent to the postmaster is hardwired in /var/chroot-smtp/bin/exiscanv2.pl

    /tom
  • Thanks alot!

    I found the setting. But is there any limitations (variable length etc.)? I've made a Danish translation of the reply followed by the original reply. But now ASL seems to ignore viruses (that is, deliver virus-infected emails without scanning and quarantining them).

    ASL has been restartet completely, and there are no error messages etc.
  • then you made an error there.  [:)] 

    post the lines you changed here and I'll correct them  [:)]
  • Hi,

    I've changed the following lines:

    $fromaddress=$postmaster;

    $sender_notification_text = "return \"Din email til \@to vedrørende '\$subject' var inficeret med en virus, eller har andet skadeligt indhold. Emailen er derfor ikke blevet leveret til modtageren.\n\n Nedenfor ser du resultatet af virusscanningen. Hvis du har spørgsmål, er du meget velkommen til at kontakte os på adressen \$postmaster.\n\n\n-----------------------\nAn EMail directed to you, with subject '\$subject',\nfrom \$from, contained a virus or other harmful co... 

    $notification_footer = "return \"\n\n---- \nTabulex ApS - Tel. +45 7023 1415\"";

    Thanks again!
Reply
  • Hi,

    I've changed the following lines:

    $fromaddress=$postmaster;

    $sender_notification_text = "return \"Din email til \@to vedrørende '\$subject' var inficeret med en virus, eller har andet skadeligt indhold. Emailen er derfor ikke blevet leveret til modtageren.\n\n Nedenfor ser du resultatet af virusscanningen. Hvis du har spørgsmål, er du meget velkommen til at kontakte os på adressen \$postmaster.\n\n\n-----------------------\nAn EMail directed to you, with subject '\$subject',\nfrom \$from, contained a virus or other harmful co... 

    $notification_footer = "return \"\n\n---- \nTabulex ApS - Tel. +45 7023 1415\"";

    Thanks again!
Children
  • Hmm that looks correct  [:)] 

    Can you look into /var/log/mail while sending a virus and post the output here ? Thanks.

    Also try "ps axf" to see if the exiscanv2.pl processes are running.

    /tom
  • Here are the logging after posting a virus-infected email.

    Jul  9 14:22:59 wall1 exiscanv2[1154]: 17Ru19-0000oI-00 F: T:spam@mygent.dk R:clean, marked for dequeue
    Jul  9 14:23:01 wall1 exim[3153]: 2002-07-09 14:23:01 17Ru19-0000oI-00 => spam@mygent.dk R=lookuphost T=remote_smtp H=mail1.hostingservice2.dk [130.228.0.21]
    Jul  9 14:23:01 wall1 exim[3153]: 2002-07-09 14:23:01 17Ru19-0000oI-00 Completed

    The /bin/exiscanv2.pl is running.

    Any ideas?