• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 3149
  • Last Modified:

mailx clear message in queue - solaris

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
mahjag
Asked:
mahjag
  • 10
  • 9
1 Solution
 
omarfaridCommented:
do you mean for incoming ones?

when you run mailx you can use d to delete messages
0
 
mahjagAuthor Commented:
No I am sending mails from solaris to outlook box and some support team complains that they do not receive emails
0
 
omarfaridCommented:
can you check if there are bouncing messages?
0
Cloud Class® Course: Microsoft Exchange Server

The MCTS: Microsoft Exchange Server 2010 certification validates your skills in supporting the maintenance and administration of the Exchange servers in an enterprise environment. Learn everything you need to know with this course.

 
mahjagAuthor Commented:
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
 
omarfaridCommented:
there could be a problem in connecting to remote domains mail servers
0
 
mahjagAuthor Commented:
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
 
omarfaridCommented:
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
 
mahjagAuthor Commented:
I am getting permission denied going into mqueue subdirectory
0
 
omarfaridCommented:
try as root
0
 
mahjagAuthor Commented:
I am a developer and do not have root access - sorry
0
 
omarfaridCommented:
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
 
mahjagAuthor Commented:
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
 
omarfaridCommented:
as normal non priveliged user you can not manage the mail queue.
0
 
mahjagAuthor Commented:
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
 
omarfaridCommented:
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
 
mahjagAuthor Commented:
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
 
omarfaridCommented:
what about ip address of the system does it change?
0
 
mahjagAuthor Commented:
no this is static
0
 
mahjagAuthor Commented:
Increased the points to 150 since it needs little more investigation
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: Python 3 Fundamentals

This course will teach participants about installing and configuring Python, syntax, importing, statements, types, strings, booleans, files, lists, tuples, comprehensions, functions, and classes.

  • 10
  • 9
Tackle projects and never again get stuck behind a technical roadblock.
Join Now