?
Solved

mailx clear message in queue - solaris

Posted on 2009-04-16
19
Medium Priority
?
3,010 Views
Last Modified: 2013-12-27
I have a problem in application that we use mailx but often the message are not received.. this is solaris and I checked /var/log/syslog and also tried mailq to see the queue, mailq shows -
$ mailq
/var/spool/mqueue is empty
                Total requests: 0
how to clear mailx messages?
0
Comment
Question by:mahjag
  • 10
  • 9
19 Comments
 
LVL 40

Expert Comment

by:omarfarid
ID: 24157830
do you mean for incoming ones?

when you run mailx you can use d to delete messages
0
 

Author Comment

by:mahjag
ID: 24157960
No I am sending mails from solaris to outlook box and some support team complains that they do not receive emails
0
 
LVL 40

Expert Comment

by:omarfarid
ID: 24158112
can you check if there are bouncing messages?
0
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 

Author Comment

by:mahjag
ID: 24158158
No bouncing messages - I already checked with the support team..is there any way to clear the queue and send the message again, I see message queued in /var/adm/syslog and I dont know how to clear the queue using mailx command
0
 
LVL 40

Expert Comment

by:omarfarid
ID: 24158194
there could be a problem in connecting to remote domains mail servers
0
 

Author Comment

by:mahjag
ID: 24158249
since I am the sender and I can log to see mail in queue, is there any command to send the mail again - thanks omarfarid for your response..
0
 
LVL 40

Expert Comment

by:omarfarid
ID: 24158397
I am not sure how to do so, but what you said before that you did not find any messages in the queue

can you check the dir

/var/spool/mqueue

if it contains any files
0
 

Author Comment

by:mahjag
ID: 24158422
I am getting permission denied going into mqueue subdirectory
0
 
LVL 40

Expert Comment

by:omarfarid
ID: 24158449
try as root
0
 

Author Comment

by:mahjag
ID: 24158518
I am a developer and do not have root access - sorry
0
 
LVL 40

Expert Comment

by:omarfarid
ID: 24158554
can you ask administrator to check?

by the way the system will retry by itself to resend messages if not delivered due to a problem on the receiving party

0
 

Author Comment

by:mahjag
ID: 24158800
when will the resend happen - I already emailed unix admin but did not get any reply - wanted to see if I can resend from my end..
0
 
LVL 40

Expert Comment

by:omarfarid
ID: 24158841
as normal non priveliged user you can not manage the mail queue.
0
 

Author Comment

by:mahjag
ID: 24159196
I tried sending another mailx command and it again went to the queue but if I do mailq it again says /var/spool/mqueue is empty - I think that command means nothing since the syslog shows the message is in the queue and nobody received my mail again
0
 
LVL 40

Accepted Solution

by:
omarfarid earned 450 total points
ID: 24159240
it means that the message was sent but not being delivered could be due to many reasons like your system ip is not trusted (could be a dynamic ip or do not have a reverse lookup) or on a blocking list used by other mail servers
0
 

Author Comment

by:mahjag
ID: 24159712
This is actually working environment where the same worked before - I am trying to debug as to what went wrong - the network system did not change - I can check on blocking list but I can assure that these kind of mails do not go to junk folder..
0
 
LVL 40

Expert Comment

by:omarfarid
ID: 24159769
what about ip address of the system does it change?
0
 

Author Comment

by:mahjag
ID: 24160557
no this is static
0
 

Author Comment

by:mahjag
ID: 24160573
Increased the points to 150 since it needs little more investigation
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Installing FreeBSD… FreeBSD is a darling of an operating system. The stability and usability make it a clear choice for servers and desktops (for the cunning). Savvy?  The Ports collection makes available every popular FOSS application and packag…
I promised to write further about my project, and here I am.  First, I needed to setup the Primary Server.  You can read how in this article: Setup FreeBSD Server with full HDD encryption (http://www.experts-exchange.com/OS/Unix/BSD/FreeBSD/A_3660-S…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
Suggested Courses

830 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question