Notification of emails in Postfix queue

11 posts / 0 new
Last post
#1 Wed, 03/04/2009 - 09:44
mdtiberi

Notification of emails in Postfix queue

If an email is stuck in the postfix queue, say it's not deliverable for a legitimate reason, how can I setup an email notice sent back to the original sender that the email was not sent for whatever reason.

Wed, 03/04/2009 - 09:55
mdtiberi

I found this under Postix General Options:

"Time in hours before sending a warning for no delivery"

I set this to 4 hours and the saved it. When I returned to the menu the option setting was blank. As if it didn't accept the change.

Wed, 03/04/2009 - 10:39
mdtiberi

Ok, I see that it relates to the delay_warning_time directive which as I mentioned doesn't seem to stick. What other options must be changed as well to inform the sender?

Wed, 03/04/2009 - 10:43 (Reply to #3)
Joe
Joe's picture

If making a change in the Postfix module doesn't "stick", as you say, then it's a bug. File a ticket, and it'll get fixed.

--

Check out the forum guidelines!

Wed, 03/04/2009 - 11:28
mdtiberi

What if I added it manually to the main.cf file? What is the exact syntax then.

delay_warning_time = 4h (this is just a guess)

Are there any directives that need modification?

Wed, 03/04/2009 - 11:48 (Reply to #5)
Joe
Joe's picture

Yes. That's correct. I don't think there are any other changes needed.

In the main.cf the comment for this option is:

# Uncomment the next line to generate "delayed mail" warnings
#delay_warning_time = 4h

So, I'd say that'll do it. (Restart postfix after, of course.)

--

Check out the forum guidelines!

Wed, 03/04/2009 - 11:52
mdtiberi

Well this is interesting. When I add the line "delay_warning_time = 4h" to main.cf and return to the General Options GUI it is disabled. If I re-enable then the directive is deleted from main.cf.

Perhaps there are other directives that need modification for this to work. main.cf is the default from from the original install.

Wed, 03/04/2009 - 12:00 (Reply to #7)
Joe
Joe's picture

<div class='quote'>When I add the line &quot;delay_warning_time = 4h&quot; to main.cf and return to the General Options GUI it is disabled. If I re-enable then the directive is deleted from main.cf.</div>

Bug. File a ticket.

<div class='quote'>Perhaps there are other directives that need modification for this to work.</div>

I don't understand what you mean? The GUI is wholly separate from the functioning of the mail server. You've found a bug in the GUI. The workaround is to edit the file directly (and file a bug in the tracker, so the GUI can be fixed).

--

Check out the forum guidelines!

Fri, 03/06/2009 - 10:28
mdtiberi

The issue came down to simply labeling I believe. If &quot;Disabled&quot; is on and a value is in the field it really doesn't mean that the directive is not enabled. It is in fact enabled with the said value.

Sat, 03/07/2009 - 13:12
mdtiberi

Finally read Jamie's email on this ticket. He points out that is should read &quot;Default&quot;.

Sat, 03/07/2009 - 14:59 (Reply to #10)
Joe
Joe's picture

Yep, and he's applied a patch for the next Webmin release, so this mislabeling will be fixed soon.

--

Check out the forum guidelines!

Topic locked