LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 01-18-2017, 10:38 PM   #1
ddstyles
LQ Newbie
 
Registered: Nov 2001
Location: Auckland NZ
Distribution: Linux Mint
Posts: 18

Rep: Reputation: 0
Postfix bounce message remove logs


My Bounce email looks like this:
I'm sorry to have to inform you that your message could not
be delivered to one or more recipients. It's attached below.


<duncan2@xxxxxxxxxxx>: host xxxxxxx.localdomain[private/dovecot-lmtp]
said: 550 5.1.1 <duncan2@xxxxnz> User doesn't exist:
duncan2@xxxx (in reply to RCPT TO command)

Final-Recipient: rfc822; duncan2@xxxxxx
Original-Recipient: rfc822;duncan2@xxxxx
Action: failed
Status: 5.1.1
Remote-MTA: dns; xxxxxxx.localdomain
Diagnostic-Code: smtp; 550 5.1.1 <duncan2@xxxxxx> User doesn't exist:
duncan2@xxxxxxx


---------- Forwarded message ----------
xxxxxxxxx
Cc:
Date: Thu, 19 Jan 2017 17:06:23 +1300
How can I tell postfix to remove all the logs and diagnostics?
i.e. from the "it's attached below" down to the original email?

many thanks,
 
Old 01-20-2017, 12:45 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Hi,

Take a look here

Regards
 
Old 01-21-2017, 02:00 PM   #3
ddstyles
LQ Newbie
 
Registered: Nov 2001
Location: Auckland NZ
Distribution: Linux Mint
Posts: 18

Original Poster
Rep: Reputation: 0
thanks bathory - I followed that link to configure the bounce message. My post is asking if I can configure postfix to only send the fail message - without all the Diagnostics the come after it.

i.e. I'm trying to get the email to look like this:

Code:
I'm sorry to have to inform you that your message could not
be delivered to one or more recipients. It's attached below.

---------- Forwarded message ----------
xxxxxxxxx
Cc:
Date: Thu, 19 Jan 2017 17:06:23 +1300
 
Old 01-22-2017, 11:33 AM   #4
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Quote:
I followed that link to configure the bounce message. My post is asking if I can configure postfix to only send the fail message - without all the Diagnostics the come after it.
I don't run postfix, but you could try to create a failure template based on the instructions at the link above and see what you get.
From what I've read though, I think it's just changes the initial text to your linking and lets the diagnostic part intact, so it's not exactly what you want.
Most likely it's not possible to omit the 2nd part unless you recompile postfix sources.

You may ask your question to postfix lists and get a better answer

Regards
 
  


Reply

Tags
postfix postfixadmin



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
postfix/qmgr message in logs seems to indicate spam sent haymaker2000 Linux - Server 4 08-25-2010 03:53 PM
deferred error message in postfix logs linuxmandrake Linux - Server 3 02-19-2008 03:18 PM
custom bounce message with Sendmail shinepuppy Linux - Server 2 07-26-2007 09:12 PM
Postfix: why is 'Return-Path' of bounce message empty Chowroc Linux - Networking 1 12-28-2005 03:52 AM
Bounce back email with a message? tauras911 Linux - Newbie 3 02-10-2005 03:44 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 11:36 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration