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 07-31-2014, 04:20 AM   #1
dmikam
LQ Newbie
 
Registered: Sep 2011
Posts: 9

Rep: Reputation: Disabled
Postfix confirmation mail to sender based on delivery status code


Hi,
I have a postfix running on my server, but I need to make it to send confirmation mail to the sender (local sender). I mean, if the mail was delivered and not rejected, the sender needs to receive a confirmation like "Your message was delivered".

I suppouse it could be made with some rule in master.cf triggering some external script, passing to it delivery status code, and both directions (of the sender and the recipient).

Some suggestion, please ?
If there is some other solution - it is welcome also.
Thanks
 
Old 07-31-2014, 01:56 PM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,689

Rep: Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972
Quote:
Originally Posted by dmikam View Post
Hi,
I have a postfix running on my server, but I need to make it to send confirmation mail to the sender (local sender). I mean, if the mail was delivered and not rejected, the sender needs to receive a confirmation like "Your message was delivered".

I suppouse it could be made with some rule in master.cf triggering some external script, passing to it delivery status code, and both directions (of the sender and the recipient).
I think what you're looking for can be obtained by following this as a guide:
http://www.howtoforge.com/configure-...ounce-messages

It is also pointless. The email may be ACCEPTED by the remote server, but thrown out by a spam filter (either server-wide or client specific). They could also have an email rule to automatically delete any messages coming from your domain. Anything you do won't be effective at all in this instance. Same goes for read-receipts...unless the RECEIVER allows them, you have no idea if they got your message or not.
 
Old 08-01-2014, 03:21 AM   #3
dmikam
LQ Newbie
 
Registered: Sep 2011
Posts: 9

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by TB0ne View Post
I think what you're looking for can be obtained by following this as a guide:
http://www.howtoforge.com/configure-...ounce-messages

It is also pointless. The email may be ACCEPTED by the remote server, but thrown out by a spam filter (either server-wide or client specific). They could also have an email rule to automatically delete any messages coming from your domain. Anything you do won't be effective at all in this instance. Same goes for read-receipts...unless the RECEIVER allows them, you have no idea if they got your message or not.
First of all, thanks for replying ! But I think I already have tryed this manual - look's like it bounces these messages only to the postmaster and not to the sender... But I'll give it another try.

And, Yes, I understand that this type of confirmation doesn't confirm almost enything, but you know how are the bosses like - they just want to receive an "OK-mail" and that's it :P

So, resuming - I'll give it another try to the integrated bounce funcionality, but if somebody has other thoughts - you are welcome !
 
Old 08-01-2014, 09:04 AM   #4
dmikam
LQ Newbie
 
Registered: Sep 2011
Posts: 9

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by TB0ne View Post
I think what you're looking for can be obtained by following this as a guide:
http://www.howtoforge.com/configure-...ounce-messages

It is also pointless. The email may be ACCEPTED by the remote server, but thrown out by a spam filter (either server-wide or client specific). They could also have an email rule to automatically delete any messages coming from your domain. Anything you do won't be effective at all in this instance. Same goes for read-receipts...unless the RECEIVER allows them, you have no idea if they got your message or not.
No, for some reason, the integrated bounce funcionality doesn't work in my Ubuntu Server machine. It just never bounces on success.

Some other suggestions ?
 
Old 08-04-2014, 02:34 AM   #5
dmikam
LQ Newbie
 
Registered: Sep 2011
Posts: 9

Original Poster
Rep: Reputation: Disabled
Some other suggestions, please ?
Still need it.
 
Old 08-04-2014, 09:06 AM   #6
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,689

Rep: Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972
Quote:
Originally Posted by dmikam View Post
Some other suggestions, please ?
Still need it.
Please don't post 'bumps' to your own thread, unless you have new information to add. You may still need it, but unless there's additional information to add, there's not much point to asking again. All you said previously was:
Quote:
Originally Posted by dmikam
No, for some reason, the integrated bounce funcionality doesn't work in my Ubuntu Server machine. It just never bounces on success
..yet you don't tell us what version of Ubuntu server, if you're running the right version of Postfix to support custom bouncing (as noted in that link), or what you've seen in the logs. Just saying "for some reason", gives us nothing to go on.

The link you were sent previously tells you how to modify the bounce behavior of messages. The first response also told you that it was pointless, since unless you control the RECEIVING SYSTEM ALSO, things may not bounce AT ALL.
 
1 members found this post helpful.
Old 08-04-2014, 01:16 PM   #7
dmikam
LQ Newbie
 
Registered: Sep 2011
Posts: 9

Original Poster
Rep: Reputation: Disabled
Unhappy

Quote:
Originally Posted by TB0ne View Post
Please don't post 'bumps' to your own thread, unless you have new information to add. You may still need it, but unless there's additional information to add, there's not much point to asking again.
Ok, my bad. I'm sorry. Thanks for pointing to my errors.

Quote:
Originally Posted by TB0ne View Post
..yet you don't tell us what version of Ubuntu server, if you're running the right version of Postfix to support custom bouncing (as noted in that link), or what you've seen in the logs. Just saying "for some reason", gives us nothing to go on.

The link you were sent previously tells you how to modify the bounce behavior of messages. The first response also told you that it was pointless, since unless you control the RECEIVING SYSTEM ALSO, things may not bounce AT ALL.
OS: Ubuntu Server 12.04
Postfix version: 2.9.1 (default for Ubuntu Server 12.04)

In logs I can see the DSN code and status=sent of "delivered to local mailbox", but nothing at all about bouncing on success (I'v added success to notification classes and created and added the bounce template's file). Yes I receive a bounce to the sender's mail and of the webmaster when the mail is sent to unexistent mailbox, but no when the message is sent successfully.

Now I'm trying to find a way using rsyslog to make some workaround, but would preffer to use integrated funcionality of postfix if so possible.
 
Old 08-04-2014, 01:27 PM   #8
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,689

Rep: Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972
Quote:
Originally Posted by dmikam View Post
Ok, my bad. I'm sorry. Thanks for pointing to my errors.

OS: Ubuntu Server 12.04 Postfix version: 2.9.1 (default for Ubuntu Server 12.04)

In logs I can see the DSN code and status=sent of "delivered to local mailbox", but nothing at all about bouncing on success (I'v added success to notification classes and created and added the bounce template's file). Yes I receive a bounce to the sender's mail and of the webmaster when the mail is sent to unexistent mailbox, but no when the message is sent successfully.
...which brings us back full-circle to "what you're trying to do is pointless". It remains so...unless the receiving server allows it, you will NOT be able to see anything past the delivered message.

Following the documentation on the link sent initially, and using/compiling the bounce.cf file is your only real choice. Restarting postfix when you're done makes it take effect. Did you follow those instructions exactly?
Quote:
Now I'm trying to find a way using rsyslog to make some workaround, but would preffer to use integrated funcionality of postfix if so possible.
The bounce.cf is all you can do...again, only if it's allowed by the receiving server, and the client themselves allows receipts.
 
Old 08-04-2014, 02:42 PM   #9
dmikam
LQ Newbie
 
Registered: Sep 2011
Posts: 9

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by TB0ne View Post
...which brings us back full-circle to "what you're trying to do is pointless". It remains so...unless the receiving server allows it, you will NOT be able to see anything past the delivered message.

Following the documentation on the link sent initially, and using/compiling the bounce.cf file is your only real choice. Restarting postfix when you're done makes it take effect. Did you follow those instructions exactly?

The bounce.cf is all you can do...again, only if it's allowed by the receiving server, and the client themselves allows receipts.
Yes, I think I followed instructions pretty well (the instructions are as simple as create a file bounce.cf, and the bounce_template_file to the main.conf). postconf -b /etc/postfix/bounce.cf shows the content of my newly created file. I have restarted postfix dozens of times - every time I change something.
Also I have default delay_warning_time = 0h and maximal_queue_lifetime = 5d - I don't think it would be a problem.

Also the manual says
Quote:
It is absolutely important that the file ends with an empty line!
so have I.
 
  


Reply

Tags
delivery, postfix, server, status, ubuntu



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
Opensuse :postfix error: sender non-delivery notification , Email bounced xlimonta Linux - Software 6 07-17-2013 01:21 AM
[SOLVED] Postfix as a mail delivery server fails (status bounced loops back to myself) Larry James Linux - Server 8 07-18-2011 06:42 PM
Postfix: redirect e-mail based on Sender and Recipient andy2008 Linux - Software 6 07-14-2011 08:36 AM
Mail delivery failed: returning message to sender kwaslee Linux - Server 1 11-11-2010 03:11 AM
Postfix: priority on delivery based on sender coolster Linux - Server 2 11-26-2008 03:23 PM

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

All times are GMT -5. The time now is 12:20 PM.

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