LinuxQuestions.org
Help answer threads with 0 replies.
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 02-19-2008, 04:37 AM   #1
repolona
LQ Newbie
 
Registered: Nov 2004
Posts: 12

Rep: Reputation: 0
1 week delay of the postfix notification if recipient is undeliverable


Hi,

how can i setup my postfix to email me a Mailer Daemon in just 1 hour if the recipient is undeliverable. currently it took me 1 week just to know its undeliverable.

this is my current settings in main.cf
==================================================================
==================================================================
queue_directory = /var/spool/postfix
command_directory = /usr/sbin
daemon_directory = /usr/libexec/postfix

myhostname = testtest.com
mydomain = testtest.com

mail_owner = postfix

inet_interfaces = all
mydestination = $myhostname, localhost.$mydomain, localhost

unknown_local_recipient_reject_code = 550
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
debug_peer_level = 2
debugger_command =
PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin
xxgdb $daemon_directory/$process_name $process_id & sleep 5

sendmail_path = /usr/sbin/sendmail.postfix
newaliases_path = /usr/bin/newaliases.postfix
mailq_path = /usr/bin/mailq.postfix
setgid_group = postdrop
html_directory = no
manpage_directory = /usr/share/man
sample_directory = /usr/share/doc/postfix-2.1.5/samples
readme_directory = /usr/share/doc/postfix-2.1.5/README_FILES
smtpd_sasl_local_domain =
smtpd_sasl_auth_enable = yes
smtpd_sasl_security_options = noanonymous
broken_sasl_auth_clients = yes
smtpd_recipient_restrictions = permit_sasl_authenticated,permit_mynetworks,reject_unauth_destination
mynetworks = 127.0.0.0/8
smtpd_tls_auth_only = no
smtp_use_tls = yes
smtpd_use_tls = yes
smtp_tls_note_starttls_offer = yes
smtpd_tls_key_file = /etc/postfix/ssl/smtpd.key
smtpd_tls_cert_file = /etc/postfix/ssl/smtpd.crt
smtpd_tls_CAfile = /etc/postfix/ssl/cacert.pem
smtpd_tls_loglevel = 1
smtpd_tls_received_header = yes
smtpd_tls_session_cache_timeout = 3600s
tls_random_source = dev:/dev/urandom
home_mailbox = Maildir/
mailbox_command =
==================================================================
==================================================================




thanks
Ronald Repolona
 
Old 02-19-2008, 04:53 AM   #2
billymayday
Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
maximal_queue_lifetime = 1h

will do that. One hour is pretty short though if there's a problem along the way
 
Old 02-20-2008, 08:50 PM   #3
Berhanie
Senior Member
 
Registered: Dec 2003
Location: phnom penh
Distribution: Fedora
Posts: 1,625

Rep: Reputation: 165Reputation: 165
Quote:
how can i setup my postfix to email me a Mailer Daemon in just 1 hour if the recipient is undeliverable. currently it took me 1 week just to know its undeliverable.
As Billymayday implies, you probably shouldn't fool with the queue lifetime. Adding delay to the notify_classes parameter might be of interest to you.

Edit: I just saw that you're using 2.1. Not sure if my advice applies to that version.

Last edited by Berhanie; 02-20-2008 at 08:52 PM.
 
Old 02-21-2008, 04:04 AM   #4
repolona
LQ Newbie
 
Registered: Nov 2004
Posts: 12

Original Poster
Rep: Reputation: 0
thanks for your help!! billy and berhanie :-)
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 whitelisting by recipient address? carlmarshall Linux - Server 4 12-07-2006 07:12 AM
Postfix on RH 9 'No Recipient' in queue rangert Linux - Server 3 10-25-2006 11:57 AM
postfix and php : recipient unknown jodaog Linux - Software 1 03-13-2005 09:25 AM
postfix - wrong recipient address iliah Linux - Networking 2 09-26-2004 09:34 AM
Postfix: warning when undeliverable for x hours nielchiano Linux - Software 2 04-23-2004 10:04 AM


All times are GMT -5. The time now is 06:37 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration