Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Zimbra Collaboration Suite > Administrators

Welcome to the Zimbra :: Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 05-28-2007, 09:55 AM
Moderator
 
Posts: 6,236
Default Automatically Drop Deffered Mail -PM to thread

PM converted into thread:

Quote:
haniko
Automatically Drop Deffered Mail
Dear Sir

How can I dropped email from deferred email, if destination mail not found.
Thank

Regards
Hendri
You don't want mail to be re-tried for delivery?
Keep in mind all the possible things that could be in the way of mail delivery, a net outage on your end, ISP outage, power outages, heavy traffic on either end, someone down for weekend maintenance, etc.

The mail in the deferred queue will retry for about 4 days (I believe).
(there's a number of max retries you can set with that-but by default it appears to be spaced out to 4 days.)

Define 'Automatically Drop Deffered'
Do you want to lower the number of retries?
Lower the number of days it attempts those retries?
Shorten the time that it retries? (ie every minute vs every hr etc)

You can also delete them manually via the admin console.
Reply With Quote
  #2 (permalink)  
Old 05-28-2007, 06:58 PM
Junior Member
 
Posts: 7
Default Automatically Drop Deffered Mail

Dear Sir

I want this, if the destination mail server not found in 1 day, all
mail on deferred mail automatically deleted.
How can I do this option Sir ?
Thanks.

Regards
Hendri
Reply With Quote
  #3 (permalink)  
Old 05-29-2007, 06:39 PM
Moderator
 
Posts: 6,236
Default Deferred queue lifetime - maximal_queue_lifetime

maximal_queue_lifetime (default: 5d) The maximal time a message is queued before it is sent back as undeliverable.
Time units: s (seconds), m (minutes), h (hours), d (days), w (weeks). The default time unit is d (days).
Specify 0 when mail delivery should be tried only once.

---
You essentially want maximal_queue_lifetime in postfix's main.conf
However, you cannot edit main.conf directly-it will overwrite on every startup. (essentially you will never get a change to apply it via a postfix refresh.)

so:

>su zimbra
and read up on maximal_queue_lifetime via:
>man 5 postconf (scroll down/search for the maximal_queue_lifetime section)
to learn how postconf works also read:
>man postconf

----
also kinda relevant to you/anyone else searching this thread later:

queue_run_delay (default: 300s) The time between deferred queue scans by the queue manager; prior to Postfix 2.4 the default value was 1000s.
This parameter should be set less than or equal to $minimal_backoff_time.
Time units: s (seconds), m (minutes), h (hours), d (days), w (weeks). The default time unit is s (seconds).

minimal_backoff_time (default: 300s) The minimal time between attempts to deliver a deferred message; prior to Postfix 2.4 the default value was 1000s.
This parameter also limits the time an unreachable destination is kept in the short-term, in-memory, destination status cache.
This parameter should be set greater than or equal to $queue_run_delay.
Time units: s (seconds), m (minutes), h (hours), d (days), w (weeks). The default time unit is s (seconds).

maximal_backoff_time (default: 4000s) The maximal time between attempts to deliver a deferred message.
This parameter should be set to a value greater than or equal to $minimal_backoff_time.
Time units: s (seconds), m (minutes), h (hours), d (days), w (weeks). The default time unit is s (seconds).

Last edited by mmorse; 05-29-2007 at 06:55 PM..
Reply With Quote
  #4 (permalink)  
Old 05-30-2007, 02:37 AM
Junior Member
 
Posts: 7
Default Automatically Drop Deffered Mail

Dear Sir

I try using the command line

postconf -e maximal_queue_lifetime 1d

but I Found the error message

/opt/zimbra/postfix-2.2.9/sbin/postconf: fatal: missing '=' after attribute name: "maximal_queue_lifetime"

what wrong for this command
Reply With Quote
  #5 (permalink)  
Old 05-30-2007, 08:02 AM
Zimbra Consultant & Moderator
 
Posts: 19,639
Default

Quote:
Originally Posted by haniko View Post
fatal: missing '=' after attribute name: "maximal_queue_lifetime"
It tells you in the error message, there's a missing '=' sign i.e. = 1d
__________________
Regards


Bill
Reply With Quote
  #6 (permalink)  
Old 05-30-2007, 07:40 PM
Junior Member
 
Posts: 7
Default Automatically Drop Deffered Mail -PM to thread

After I write

postconf -e maximal_queue_lifetime='1d'

I run this command :

$ zmcontrol shutdown
$ zmcontrol restart
$ postconf -d

but

the parameter in main.cf not change

maximal_queue_lifetime = 5d

what wrong sir ?
Reply With Quote
  #7 (permalink)  
Old 05-31-2007, 12:38 AM
Zimbra Consultant & Moderator
 
Posts: 19,639
Default

The format of the command is wrong: postconf -e maximal_queue_lifetime = 1d
__________________
Regards


Bill
Reply With Quote
  #8 (permalink)  
Old 05-31-2007, 04:52 AM
Junior Member
 
Posts: 7
Default Automatically Drop Deffered Mail -PM to thread

what the right command line sir ?
Reply With Quote
  #9 (permalink)  
Old 05-31-2007, 05:37 AM
Zimbra Consultant & Moderator
 
Posts: 19,639
Default

Quote:
Originally Posted by haniko View Post
what the right command line sir ?
I've already given it to you in the post above. You could always look at the postfix manual for the correct format!
__________________
Regards


Bill

Last edited by phoenix; 06-01-2007 at 06:52 AM..
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

blog.zimbra.com




 

SEO by vBSEO ©2011, Crawlability, Inc.