| |||||||||||||||||||||||||||||||
|
i'm implementig postfix with amavis/spamassasin/clamav and it works fine but i need to remove some information in "Undelivered mail" reply or in "Delivery Status Notification" reply Infact, if i try to send a mail from an external user to a non existent user of my domain i receive a "Undelivered Mail" information with a lot of information of my internal networks and of my postfix server From the exaple that you can see below i need to remove or change with other text: In <xxx1.yyy>: host 192.168.1.2[192.168.1.2] said: 550 xxx1.yyy... No such user (in reply to RCPT TO command) i need to change with something like: <xxx1.yyy>: host mailer.sitgroup.it[1.2.3.4] said: 550 xxx1.yyy... No such user (in reply to RCPT TO command) In X-Virus-Scanned: by amavisd-new-2.4.5 (20070130) (Debian) at example.com change with X-Virus-Scanned: by amavisd at example.com Remove Remote-MTA: dns; 192.168.1.2 Change all 127.0.0.1 with 1.2.3.4 Remove all Debian text Thanks to all and sorry for this big email/request Regards Riccardo ------------------------------ Reply Example: Delivered-To: xxx.yyy Received: by 10.114.241.15 with SMTP id o15cs551544wah; Tue, 15 May 2007 01:20:00 -0700 (PDT) Received: by 10.67.28.2 with SMTP id f2mr5785138ugj.1179217199800; Tue, 15 May 2007 01:19:59 -0700 (PDT) Return-Path: <> Received: from mailer.example.com ([1.2.3.4]) by mx.google.com with ESMTP id l40si12535785ugc.2007.05.15.01.19.58; Tue, 15 May 2007 01:19:59 -0700 (PDT) Received-SPF: neutral (google.com: 1.2.3.4 is neither permitted nor denied by best guess record for domain of mailer.example.com) Received: by mailer.example.com (Postfix) id 82E3E58C079; Tue, 15 May 2007 10:19:55 +0200 (CEST) Date: Tue, 15 May 2007 10:19:55 +0200 (CEST) From: MAILER-DAEMON (Mail Delivery System) Subject: Undelivered Mail Returned to Sender To: xxx.yyy Auto-Submitted: auto-replied MIME-Version: 1.0 Content-Type: multipart/report; report-type=delivery-status; boundary="45C0E58C074.1179217195/mailer.example.com" Message-Id: <20070515081955.82E3E58C079> This is a MIME-encapsulated message. --45C0E58C074.1179217195/mailer.example.com Content-Description: Notification Content-Type: text/plain; charset=us-ascii This is the Mail System at host mailer.example.com. I'm sorry to have to inform you that your message could not be delivered to one or more recipients. It's attached below. For further assistance, please send mail to <postmaster> If you do so, please include this problem report. You can delete your own text from the attached returned message. The Mail System program <xxx1.yyy>: host 192.168.1.2[192.168.1.2] said: 550 xxx1.yyy... No such user (in reply to RCPT TO command) --45C0E58C074.1179217195/mailer.example.com Content-Description: Delivery report Content-Type: message/delivery-status Reporting-MTA: dns; mailer.example.com X-Postfix-Queue-ID: 45C0E58C074 X-Postfix-Sender: rfc822; xxx.yyy Arrival-Date: Tue, 15 May 2007 10:19:55 +0200 (CEST) Final-Recipient: rfc822; xxx1.yyy Original-Recipient: rfc822;xxx1.yyy Action: failed Status: 5.0.0 Remote-MTA: dns; 192.168.1.2 Diagnostic-Code: smtp; 550 xxx1.yyy... No such user --45C0E58C074.1179217195/mailer.example.com Content-Description: Undelivered Message Content-Type: message/rfc822 Received: from localhost (localhost [127.0.0.1]) by mailer.example.com (Postfix) with ESMTP id 45C0E58C074 for <xxx1.yyy>; Tue, 15 May 2007 10:19:55 +0200 (CEST) X-Virus-Scanned: by amavisd-new-2.4.5 (20070130) (Debian) at example.com Received: from mailer.example.com ([127.0.0.1]) by localhost (mailer.example.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id rbr9H2j7LWHe for <xxx1.yyy>; Tue, 15 May 2007 10:19:54 +0200 (CEST) Subject:
| ||||||||||||||||||||||||||||||
© 2004-2008 readlist.com