mailq(1) General Commands Manual mailq(1)NAME
mailq - Displays the contents of the mail queue
SYNOPSIS
mailq [-v]
DESCRIPTION
The mailq command displays a list of messages in the mail queue. The mailq command is the same as the sendmail command with the -bp
option; see sendmail for more information.
EXAMPLES
The mailq command lists the mail queue as shown in the following example: Mail Queue (1 request) --QID----Size----Q-
Time------- --Sender/Recipient--- AA002508 3 Thu Dec 17 10:01 root The mailq -v command lists the mail queue as shown in the
following example: Mail Queue (1 request) --QID----Size--Priority----Q-Time---- -Sender/Recipient- AA002508
3 1005 Dec 17 10:01 root
(Output might be formatted differently on your system.)
The fields have the following meaning: Contains the message queue ID of the message. Contains the number of bytes in the body of
the message (header information not included). Contains the priority of the message. Contains the date that the message entered
the queue. Contains the user ID of the sender (first), and then the user ID of the receiver of the message. In this example, a
message also indicates the status of the message.
FILES
Contains the log file and temporary files associated with the messages in the mail queue.
SEE ALSO
Commands: sendmail(8)mailq(1)
Check Out this Related Man Page
CANCELMSG(1) Double Precision, Inc. CANCELMSG(1)NAME
cancelmsg - Cancel an E-mail message
SYNOPSIS
cancelmsg {msgid} ["reason"]
DESCRIPTION
cancelmsg removes a message from the mail queue. There will be no more attempts to deliver this message, and a standard delivery failure
notice is sent to the return address listed on the message. You can only cancel your own messages. The superuser can cancel any message. An
attempt to cancel a message will fail if the message has already been sent (of course), or if a delivery attempt is currently in progress.
Because a delivery attempt is usually started as soon as an E-mail message is added to the mail queue, a cancellation attempt is only
effective if the message cannot be immediately delivered for some reason, or if the system is very busy and is working on a mail backlog.
cancelmsg works by marking all pending recipients as undeliverable. A non-delivery report is then generated and sent in the normal fashion.
msgid is the message queue id that can be obtained from the mailq(1)[1], command. A reason is optional. The message does not disappear into
a black void. The message will be returned as undeliverable, citing reason. A generic error message will be used if reason is not
specified.
BUGS
A non-delivery report may not be sent immediately, but delayed until the message's turn comes up in the scheduling queue.
There is no immediate indication if the message cancellation worked. A subsequent non-delivery report is the only indication of a
successful cancel. If it doesn't come, it means the message wasn't cancelled in time.
A non-delivery report will not be sent for recipients whose delivery status notification does not include the FAIL notice.
SEE ALSO mailq(1)[1], courier(8)[2].
AUTHOR
Sam Varshavchik
Author
NOTES
1.
mailq(1)
[set $man.base.url.for.relative.links]/mailq.html
2.
courier(8)
[set $man.base.url.for.relative.links]/courier.html
Courier Mail Server 08/30/2011 CANCELMSG(1)
Hi all:
I have a problem with this simple script. It appears that it should work, but I am getting an error message.
I am trying to pass a file through a filter to grep for "urgent" and forward the message to me.
Here it is.
#!/bin/ksh
#
if (`grep urgent /tmp/test.tmp| wc -l` -gt 0)... (13 Replies)
I have a NCR 4300 server with Unix and i have the problem with the reboot and the shutdown y think one proccess is the problem but i don´t now which one is? when i write "ps -A" i detect the idleproc with value of 9550:00. Which command can i use for verify my problem.
Thanks
Carlos Rodríguez. (12 Replies)
hi Everybody
while using the mail command , i sent a mail within the organization, it worked perfectly.
Example of mail id
victor@dev.unix.com
But when i gave the mail command outside the intranet it failed and no responses of acknowledgement
this is the example of mail id
... (8 Replies)
We just put in a new Solaris machine and whenever we try to run a job (these are cron jobs), we get the following message:
ibasdb02:/ # May 14 14:10:12 ibasdb02 sendmail: l4
EIABQa022219: Losing ./qfl4EIABQa022219: savemail panic
Any ideas on what this means? The cron job worked without a... (8 Replies)
Dear all,
how can i send mail using mailx or mail command?do i need to configure anything for sending mail?please help me.Its urgent.
the version i use is
Linux TDM 2.4.21-4.EL #1 Fri Oct 3 18:13:58 EDT 2003 i686 i686 i386 GNU/Linux
Thanks
Regards,
Pankaj (15 Replies)
When i run this command on my linux machine:
mail -s "CVS ALERT-CRITCAL" sandy@xyz.com
The system hangs up producing a dead letter. What should i do to resolve this.
I am using :
mailx -s "CVS ALERT-CRITCAL" sandy@xyz.com
This cammnd works fine on another Linux machine but says"... (14 Replies)
I'm running sendmail (8.13.8+Sun/8.13.8/Submit) solaris 10.
When I send mail to root at the command line (whether I use a full-qualified address or just root), I get the error message
root... User address required.
Sending mail to root (either at the command line or in a cron job),... (10 Replies)
Can someone please help me with this script, I'm trying to create system backup on AIX, for this I want to first mount the filesystem if it is not mounted, then create the backup and unmount the filesystem but I'm having problem while using the mail command to notify the status of filesystem... (9 Replies)
hello,
I need to configure our AIX 5.3 to relay mail to exchange.
I have got this working with no issues yet, I can not send mail to root@localhost.
# uname -a
AIX Blade1 3 5 0000E6DAD400
# oslevel -s
5300-07-01-0748
# mailq
/var/spool/mqueue (2 requests)... (14 Replies)
Hi,
I would like to process one file which looks like this :
09-04-16-17:11:53 -> count 1
NAME CHAN QID NMSGS NBYTES MAXBYTES P/T
W_DEALNUM 105 123508770 1 10 14 P
W_APPSTAT 106 123508771 1 12 35 P... (8 Replies)
Hello,
I have input file with queue names
No.esprd.Queue|No.esdev.Queue|||n|120|No_User||No_User|
No.esdev.Queue|No.esdev.Queue|||n|120|No_User||No_User|
I have to check if the input file contains word "esprd" and the number of times it occurs. I will have to do further... (22 Replies)
We use Redhat server , we always use mailq to check any pending mail in mailq , when run the command mailq , it shows all existing pending mail would advise how to write a script to show the pending mails which are older than 24 hours , ( if possible , then send this pending mail info to... (9 Replies)
Hello Experts,
I have been trying to send a test mail in our linux server with sendmail command.But I am getting command not found error message.
-->when I tried whether sendmail installed or not with the command
rpm -qa sendmail* I got the below,
sendmail-cf-8.14.4-8.el6.noarch... (26 Replies)
Hello Guys,
developing a monitoring shell script to have my queue depth count over mail .
here is the sample input file to the script which has all the queue names 1 : DISPLAY QUEUE(*) WHERE (CURDEPTH GT 0)
ZFC8409: Display Queue details.
QUEUE(QL.GVR.ATA.CACHE.01) ... (10 Replies)