Ralf,

> I'm using amavisd-new as smtpd_proxy_filter. How can I change the
> rejection message D_REJECT is producing? It should include something
> like "SPAM - contact postmas...@... in case of problems"
> instead of just "SPAM".

It is currently not configurable, you'll have to modify the code
near line 11029 in:


      } else {  # recipient does not want this content
        # supply RFC 3463 enhanced codes
        my($status_and_reason) = setting_by_given_contents_category(
          $blocking_ccat,
          { CC_VIRUS,
              ["554 5.7.0", "VIRUS: " . join(", ", @virusname)],
            CC_BANNED,
              ["554 5.7.0", "BANNED: " . $r->banning_reason_short],
            CC_UNCHECKED,
              ["554 5.7.0", "UNCHECKED"],
            CC_SPAM,
              ["554 5.7.0", "SPAM". ($r->recip_blacklisted_sender ?
                                                 ', sender blacklisted' : '')],
            CC_SPAMMY.",1",
              ["554 5.7.0", "SPAMMY (tag3)"],
            CC_SPAMMY,
              ["554 5.7.0", "SPAMMY"],  # tag2
            CC_BADH.",2",  # nonencoded 8-bit character
              ["554 5.6.3", "BAD_HEADER: ".(split(/\n/,$bad_headers[0]))[0]],
            CC_BADH,
              ["554 5.6.0", "BAD_HEADER: ".(split(/\n/,$bad_headers[0]))[0]],
            CC_OVERSIZED,
              ["552 5.3.4", "Message size ($mail_size B) ".
                                             "exceeds recipient's size limit"],
            CC_CATCHALL,    ["554 5.7.0", "CLEAN"],
          });


You can change the:
            CC_SPAM,
              ["554 5.7.0", "SPAM". ($r->recip_blacklisted_sender ?
                                                 ', sender blacklisted' : '')],
into a:
            CC_SPAM,
              ["554 5.7.0", "SPAM - contact postmast...@..."],

Mark

------------------------------------------------------------------------------
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT 
is a gathering of tech-side developers & brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing, & 
iPhoneDevCamp as they present alongside digital heavyweights like Barbarian 
Group, R/GA, & Big Spaceship. http://p.sf.net/sfu/creativitycat-com 
_______________________________________________
AMaViS-user mailing list
AMaViS-user@lists.sourceforge.net 
https://lists.sourceforge.net/lists/listinfo/amavis-user 
 AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3 
 AMaViS-HowTos:http://www.amavis.org/howto/ 

Reply via email to