Welcome to Linux Knowledge Base and Tutorial
"The place where you learn linux"
Child Fund

 Create an AccountHome | Submit News | Your Account  

Tutorial Menu
Linux Tutorial Home
Table of Contents

· Introduction to Operating Systems
· Linux Basics
· Working with the System
· Shells and Utilities
· Editing Files
· Basic Administration
· The Operating System
· The X Windowing System
· The Computer Itself
· Networking
· System Monitoring
· Solving Problems
· Security
· Installing and Upgrading
· Linux and Windows

Glossary
MoreInfo
Man Pages
Linux Topics
Test Your Knowledge

Site Menu
Site Map
FAQ
Copyright Info
Terms of Use
Privacy Info
Disclaimer
WorkBoard
Thanks
Donations
Advertising
Masthead / Impressum
Your Account

Communication
Feedback
Forums
Private Messages
Surveys

Features
HOWTOs
News Archive
Submit News
Topics
User Articles
Web Links

Google
Google


The Web
linux-tutorial.info

Who's Online
There are currently, 189 guest(s) and 0 member(s) that are online.

You are an Anonymous user. You can register for free by clicking here

  

postsuper



SYNOPSIS

       postsuper [-psv] [-c config_dir] [-d queue_id] [-h
       queue_id] [-H queue_id] [-r queue_id] [directory ...]


DESCRIPTION

       The postsuper command does maintenance jobs on the Postfix
       queue.  Use of the command is restricted to the superuser.
       See the postqueue command for  unprivileged  queue  opera­
       tions such as listing or flushing the mail queue.

       By  default,  postsuper  performs the operations requested
       with the -s and -p command-line  options  on  all  Postfix
       queue directories - this includes the incoming, active and
       deferred directories with mail files and the bounce, defer
       and flush directories with log files.

       Options:

       -c config_dir
              The  main.cf  configuration  file  is  in the named
              directory  instead  of  the  default  configuration
              directory.  See  also  the  MAIL_CONFIG environment
              setting below.

       -d queue_id
              Delete one message with the named queue ID from the
              named   mail  queue(s)  (default:  hold,  incoming,
              active and deferred).  If a queue_id of - is speci­
              fied,  the  program  reads  queue IDs from standard
              input. For example, to delete all mail from  or  to
              user@example.com:

              mailq | tail +2 | awk  ´BEGIN { RS = "" } \
                  / user@example\.com$/ { print $1 } \
              ´ | tr -d '*!' | postsuper -d -

              Specify -d ALL to remove all messages; for example,
              specify -d ALL  deferred  to  delete  mail  in  the
              deferred  queue.  As a safety measure, the word ALL
              must be specified in upper case.

              Postfix queue IDs are  reused.   There  is  a  very
              small  possibility that postsuper deletes the wrong
              message file when it is executed while the  Postfix
              mail system is running.

              The scenario is as follows:

              1)     The  Postfix  queue manager deletes the mes­
                     sage that postsuper is supposed  to  delete,
                     because  Postfix  is  finished with the mes­
                     sage.

              Put mail "on hold" so that no attempt  is  made  to
              deliver  it.  Move one message with the named queue
              ID from the named mail queue(s) (default: incoming,
              active  and  deferred)  to  the  hold  queue.  If a
              queue_id of - is specified, the program reads queue
              IDs from standard input.

              Specify  -h  ALL to hold all messages; for example,
              specify  -h  ALL  deferred  to  hold  mail  in  the
              deferred  queue.  As a safety measure, the word ALL
              must be specified in upper case.

              Note: mail that is put "on hold"  will  not  expire
              when  its  time  in  the  queue  exceeds  the maxi­
              mal_queue_lifetime setting.

       -H queue_id
              Release mail that was put "on hold".  Move one mes­
              sage  with  the  named queue ID from the named mail
              queue(s) (default: hold) to the deferred queue.  If
              a  queue_id  of  -  is specified, the program reads
              queue IDs from standard input.

              Specify -H ALL to release  all  mail  that  is  "on
              hold".   As  a safety measure, the word ALL must be
              specified in upper case.

       -p     Purge old temporary files that are left over  after
              system or software crashes.

       -r queue_id
              Requeue  the  message  with the named queue ID from
              the named mail queue(s) (default:  hold,  incoming,
              active  and  deferred).   To  requeue multiple mes­
              sages, specify multiple  -r  command-line  options.
              Alternatively, if a queue_id of - is specified, the
              program reads queue IDs from standard input.

              Specify -r ALL to requeue all messages. As a safety
              measure,  the  word  ALL must be specified in upper
              case.

              A requeued message is moved to the maildrop  queue,
              from  where  it is copied by the pickup daemon to a
              new file whose name is guaranteed to match the  new
              queue file inode number. The new queue file is sub­
              jected again to mail address rewriting and  substi­
              tution. This is useful when rewriting rules or vir­
              tual mappings have changed.

              Postfix queue IDs are  reused.   There  is  a  very
              small possibility that postsuper requeues the wrong
                     directories that are no longer needed.  File
                     position rearrangements are necessary  after
                     a  change  in  the  hash_queue_names  and/or
                     hash_queue_depth configuration parameters.

       -v     Enable verbose logging for debugging purposes. Mul­
              tiple  -v  options  make  the software increasingly
              verbose.


DIAGNOSTICS

       Problems are reported to the standard error stream and  to
       syslogd.

       postsuper  reports the number of messages deleted with -d,
       the number of messages requeued with -r, and the number of
       messages  whose  queue  file  name  was fixed with -s. The
       report is written to the standard error stream and to sys­
       logd.


ENVIRONMENT

       MAIL_CONFIG
              Directory with the main.cf file.


BUGS

       Mail  that  is  not sanitized by Postfix (i.e. mail in the
       maildrop queue) cannot be placed "on hold".


CONFIGURATION PARAMETERS

       See the Postfix main.cf file for syntax  details  and  for
       default values.

       hash_queue_depth
              Number of subdirectory levels for hashed queues.

       hash_queue_names
              The  names of queues that are organized into multi­
              ple levels of subdirectories.


SEE ALSO

       sendmail(1) sendmail-compatible user interface
       postqueue(1) unprivileged queue operations


LICENSE

       The Secure Mailer license must be  distributed  with  this
       software.


AUTHOR(S)

       Wietse Venema
       IBM T.J. Watson Research
       P.O. Box 704
       Yorktown Heights, NY 10598, USA

  
Help us cut cost by not downloading the whole site!
Use of automated download sofware ("harvesters") such as wget, httrack, etc. causes the site to quickly exceed its bandwidth limitation and therefore is expressedly prohibited. For more details on this, take a look here

Login
Nickname

Password

Security Code
Security Code
Type Security Code


Don't have an account yet? You can create one. As a registered user you have some advantages like theme manager, comments configuration and post comments with your name.

Help if you can!


Amazon Wish List

Did You Know?
You can help in many different ways.


Friends



Tell a Friend About Us

Bookmark and Share



Web site powered by PHP-Nuke

Is this information useful? At the very least you can help by spreading the word to your favorite newsgroups, mailing lists and forums.
All logos and trademarks in this site are property of their respective owner. The comments are property of their posters. Articles are the property of their respective owners. Unless otherwise stated in the body of the article, article content (C) 1994-2013 by James Mohr. All rights reserved. The stylized page/paper, as well as the terms "The Linux Tutorial", "The Linux Server Tutorial", "The Linux Knowledge Base and Tutorial" and "The place where you learn Linux" are service marks of James Mohr. All rights reserved.
The Linux Knowledge Base and Tutorial may contain links to sites on the Internet, which are owned and operated by third parties. The Linux Tutorial is not responsible for the content of any such third-party site. By viewing/utilizing this web site, you have agreed to our disclaimer, terms of use and privacy policy. Use of automated download software ("harvesters") such as wget, httrack, etc. causes the site to quickly exceed its bandwidth limitation and are therefore expressly prohibited. For more details on this, take a look here

PHP-Nuke Copyright © 2004 by Francisco Burzi. This is free software, and you may redistribute it under the GPL. PHP-Nuke comes with absolutely no warranty, for details, see the license.
Page Generation: 0.09 Seconds