Carlos Williams wrote on 07/31/2009: > When someone sends a message that is blocked / quarantined for banned > contents or viruses, I would like to get notification sent to > postmast...@$mydomain however I do not want notification sent to the > sender that their message was not delivered based on whatever reason. > Right now I am getting admin notifications but so are the senders. How > can I stop notifications to the sender that their incoming message was > not relayed to it's destination?
normally amavisd-new doesn't notify the sender of the message - but you can explicit turn-off the sender notifications with these settings in 50-user: $warnbadhsender = undef; $warnbannedsender = undef; $warnspamsender = undef; $warnbadhsender = undef; The above warn sender settings are used if the mail is passed to the recipient (final_*_destiny = D_PASS or if the recipient is in *_lover. When you use D_BOUNCE or D_REJECT as final_*_destiny the sender gets notified even if the above warn sender settings are disabled. If you would like to get notified about spam/virus... then you can also set these options in 50-user: $virus_admin = "postmast...@$mydomain"; $spam_admin = "postmast...@$mydomain"; > Second issue is when the sender receives a notification that their > message was rejected, the message is sent from > <postmas...@mail.iamghost.com> rather than just > <postmas...@iamghost.com>. I guess this does not really matter since I > wont to stop sending out notifications to the sender that their emails > have not been delivered. I don't want to let someone who is trying to > sneak malisous code into my LAN know that they should try again... > Does anyone know how I can resolve the above or what I need to look for? Maybe you could set your domain name in 50-user with: $mydomain = 'example.com'; and maybe $myhostname = 'fqdn.example.com'; Some settings uses the variable "mydomain" so it's important that this setting is correct. -- Daniel ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ 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/