Posts Tagged ‘reply’

Outlook Express hotkeys (short keys) list – Use your MS Outlook efficiently

Thursday, March 13th, 2014

I'm foced to use Microsoft Outlook Express daily for my daily work in Hewlett Packard. Thus I decided to learn the hotkeys to make my Mail use more efficient. Here are list of Outlook Express hotkeys, hopefully to be useful to others too:

Print the selected message –  Ctrl+P
Send and receive mail –  Ctrl+M
Delete a mail message - DEL or Ctrl+D
Open or post a new message –  Ctrl+N
Open the Address Book - Ctrl+SHIFT+B
Reply to the message author –  Ctrl+R
Reply to all –  Ctrl+Shitf+R, Ctrl+G (news only)
Refresh news message and headers –  F5
Forward a message - Ctrl+F
Find Text - F3
Find a message - CTRL+Shift+F
Close Message - ESC
Check Names - Ctrl+K, Alt+S
Go to your Inbox - Ctrl+I
Go to the next message in the list - Ctrl+> or Ctrl+SHIFT+>
Go to the previous message in the list - Ctrl+< or Ctrl+SHIFT+<
View properties of a selected message - ALT+ENTER
View the full source of the message - Ctrl+F3
Go to the next unread mail message - Ctrl+U
Go to the next unread news conversation - Ctrl+Shift+U
Go to a folder –  Ctrl+Y
Open a selected message – Ctrl+O or ENTER
Mark a message as read - Ctrl+ENTER or Ctrl+Q
Move between the Folders list (if on), message list, preview pane, and Contacts list (if on) - TAB
Mark all news messages as read - Ctrl+SHIFT+A
Check spelling – F7
Insert signature - Ctrl+SHIFT+S
Send (post) a message –  Ctrl+ENTER or ALT+S
Select all messages –  Ctrl+A

Enjoy 🙂


How to list and delete mail queue on Qmail / Sendmail / Postfix and Exim SMTP server

Wednesday, April 3rd, 2013

How to list and manage delete Qmail Postfix Sendmail Exim mail SMTP queue View-and delete manage Linux and FreeBSD mail server queue

I have to administrate different kind of mail servers. Different clients has different requirements so in daily job I had to take care for all major mail server platforms our there. Often I have to fix problems with mail servers one very useful thing is to check the mail server queue to see what is there holding to be delivered. Often problems with busy mail servers are rooted in overfilled queues with undelivered mails so checking the queue on Postfix / Exim / Sendmail and Qmail is among the first thing to do to diagnose a problem with improperly working SMTP. In this little article I will show how one can check what is in the queue even if he didn't have the technical background on how each of those mail delivery agents works.

1. How to check and manage queue of Qmail Mail Server

Essential info on how many messages are in the queue and to list this messages in Qmail are done with qmail-qstat and qmail-qread.

a) Checking how many messages are in Qmail queue undelivered to remote SMTPs

root@mail:~# qmail-qstat
messages in queue: 1
messages in queue but not yet preprocessed: 0

b) Listing undelivered e-mails held in Qmail queue

root@mail:~# qmail-qread
26 Mar 2013 01:33:07 GMT  #9609259  748  <>

One other useful command in dealing with Qmail queue is qmail-qread type it and see for yourself what it does.
c) Flushing qmail queue

Use a tiny shell script ( ), deleting all files in /var/qmail/queue/mess – directory where qmail stores undelivered messages in queue.

# ./

Though above script should be working in some cases, where there are permission problems with Queue or some other mess it is better to use more sophisticated Qmail Queue cleaining tool Qmail MailRemove. To use its necessary to have a working version of Python programming language. Once downloaded Qmail MailRemove, mkdir  /var/qmail/queue/filter (a directory needed for MailRemove to work). Then run script

# ./ email_to_remove

Other variant to clean messed qmail queue is to use qmailHandle.

2. How to check and delete mails from queue in Postfix SMTP

On postfix queue is checked using both postqueue command which is postfix's specific tool for viewing the queue or the standard sendmail mailq. mailq is actually – Postfix to sendmail compitability interface, i.e. this command is not the native way to view queue in Postfix but is just a wrapper binary which invokes postqueue with an option to visualize what is in queue for SMTP admins accustomed to work with sendmail.

a) Checking list of undelivered e-mails

Below is an examples:

mail:~# mailq

-Queue ID- –Size– —-Arrival Time—- -Sender/Recipient——-
4A22BBE1A3*     657 Mon Apr  1 18:46:01

25824BE18B*     660 Thu Mar 28 18:15:03

D2AA7BE1BF      652 Sun Mar 31 04:30:21
(host[] refused to talk to me: 421 Too many concurrent SMTP connections; please try again later.)

mail:~# postfix -p
-Queue ID- –Size– —-Arrival Time—- -Sender/Recipient——-
36911BE18D*     662 Mon Mar 25 11:08:01

C2439BE207*     662 Fri Mar 22 14:59:45

4A22BBE1A3*     657 Mon Apr  1 18:46:01

b) Checking the  number of undelivered mails living in Postfix queue

postfix:~#  postqueue -p|wc -l

c) Viewing content of specific mail held in Postfix queue

Whether you need to check content of specific undelivered mail kept in queue you should do it by its ID, to view last mail from earlier postfix -p example:

postfix:~# postcat -q 4A22BBE1A3

*** ENVELOPE RECORDS deferred/A/4A22BBE1A3 ***
message_size:             656             187               1               0             656
message_arrival_time: Tue Apr  2 14:25:34 2013
create_time: Tue Apr  2 14:25:35 2013
named_attribute: rewrite_context=local
sender_fullname: www-data
*** MESSAGE CONTENTS deferred/A/4A22BBE1A3 ***
Received: by postfix (Postfix, from userid 33)
        id AA379BE07A; Tue,  2 Apr 2013 14:25:34 +0100 (BST)
Subject: =?UTF8?B?QWNjb3VudCBpbmZvcm1hdGlvbiBmb3IgU09DQ0VSRkFNRQ==?=
X-PHP-Originating-Script: 1000:register_login_functions.php
Content-type:text/plain; charset=UTF8
Message-Id: <>
Date: Tue,  2 Apr 2013 14:25:34 +0100 (BST)

Please keep that email. It contains your username and password for postfix.
nick : hawtiene
pass : 1v7Upjw3nT

*** HEADER EXTRACTED deferred/A/4A22BBE1A3 ***
*** MESSAGE FILE END deferred/A/4A22BBE1A3 ***

d) Deleting mails in Postfix queue

To delete all mails in Postfix queue run:

postfix:~# postsuper -d ALL

If Postfix cannot deliver a message to a recipient it is placed in the deferred queue.  The queue manager will scan the deferred queue to see it if can place mail back into the active queue.  How often this scan occurs is determined by the queue_run_delay.
The queue_run_delay is by default 300s or 300 seconds. If you have a very busy mail server you may see a large deferred queue.
To delete all mails in deferred queue.

postfix:~# postsuper -d ALL deferred

3. How to check mail queue of Exim mail server

Viewing number of messages and list of undelivered messages in Exim queue is done using exim command by specifying arguments.

a) Checking the list of undelivered mails kept undelivered in Exim SMTP Queue


root@iqtestfb:/etc/exim4# exim -bp

4d 416 1UI1fS-00021I-1s <root@ETC_MAILNAME> *** frozen *** 4d 746 1UI1gc-00023T-0S <root@ETC_MAILNAME> *** frozen *** root@ETC_MAILNAME 4d 752 1UI1lR-0003H0-89 <root@ETC_MAILNAME> *** frozen *** root@ETC_MAILNAME 4d 894 1UI1lR-0003H5-I6 <www-data@ETC_MAILNAME> *** frozen *** www-data@ETC_MAILNAME

b) Counting number of Exim undelivered messages kept in Mail Queue
exim-smtp:/etc/exim4# exim -bpc 2063 c) Getting a summary of all messages in Exim Queue (Count, Volume, Oldest, Newest, Destination Domain)
exim-smtp:/etc/exim4# exim -bp| exiqsumm

Count Volume Oldest Newest Domain —– —— —— —— —— 1 862 22h 22h 2 1751 12h 5h 21 3111KB 4d 3h 2 766KB 42h 7h 1 383KB 7h 7h 1 383KB 4d 4d 1 383KB 3d 3d 2 766KB 20h 19h 1685 3291KB 4d 1m etc_mailname 1 383KB 70h 70h 1 383KB 66h 66h gaaa 81 22MB 4d 15m 1 564 3d 3d 1 383KB 3d 3d 1 383KB 64h 64h 33 10MB 4d 2h 25 9193KB 4d 79m 1 383KB 4d 4d hotmailcom 2 1128 24h 20h 2 766KB 67h 67h 11 3831KB 3d 7h 1 383KB 20h 20h 3 767KB 37h 3h 6 1916KB 67h 45h 1 552 28h 28h 1 383KB 67h 67h 1 383KB 67h 67h 1 383KB 33m 33m 2 389KB 56h 4h 1 383KB 66h 66h 1 383KB 39h 39h 1 562 7h 7h 1 383KB 4d 4d 2 1116 49h 47h 1 383KB 28h 28h 1 383KB 3d 3d 75 31KB 4d 3d 1 572 3d 3d 1 383KB 71h 71h 1 383KB 28h 28h 1 383KB 14m 14m 36 11KB 4d 3d 1 557 53h 53h 1 383KB 23h 23h 1 383KB 4d 4d 2 766KB 67h 44h 1 383KB 42h 42h 1 549 3d 3d yahoo 43 9213KB 4d 74m 2 766KB 70h 46h 1 383KB 71h 71h ————————————————————— 2068 76MB 4d 1m TOTAL


c)  List Exim queued messages sorted by recipient address and sender address

  To list e-mails in queue sorted by recipient address

exim-smtp:/etc/exim4# exim -bpr|grep -Eo "^\s*[^ ]*@[^ ]*$" |sort | uniq -c

To List queued messages grouped by address of sender
exim-smtp:/etc/exim4# exim -bpr | grep -Eo "<[^ ]*@[^ ]*>" | sort | uniq -c  

d) Forcing Exim  to attempt re-send e-mails kept inside

As Exim is relatively new SMTP its authors thought deeply before writting it and included options to do queue e-mail sent whether server is not under extremely high loads as well as send, regardless of load. Make Exim start sending queue e-mails if server is not overloaded (no extra-high server load)
exim-smtp:/etc/exim4# exim -q -v

  To make Exim force a queue run regardless of system load exim-smtp:/etc/exim4# exim -qf -v  

To make Exim deliver only e-mails sent from server to server (usually e-mails from local server monitoring software and log reports)
exim-smtp:/etc/exim4# exim -ql -v

e) Deleting e-mails from Exim mail queue

To Remove a message from queue identify by ID

exim-smtp:/etc/exim4# exim -Mrm <message-id>     Force Exim delivery of a message regardless of Frozen status

exim-smtp:/etc/exim4# exim -M<message-id >  

f) Removing Exim mails older than certain seconds or hours To remove all mails older than 12hrs (43000 seconds) exim-smtp:~# exiqgrep -o 43000 -i | xargs exim -Mrm

Deleting all frozen mails from queue is done with:

exim-smtp:~# exiqgrep -z -i | xargs exim -Mrm  

Removing all e-mails belonging to particular sender

exim-smtp:~# exiqgrep -i -f | xargs exim -Mrm

  Removing all mails from a sender that are older than 12hrs

exim-smtp:~# exiqgrep -o 43000 -i -f | xargs exim -Mrm

g) Flushing Exim mail queue

exim-smtp:~# runq

exim-smtp:~# exim -q

4. How to view and manage sendmail SMTP queue

a) Listing all e-mails stored in Sendmail queue

To list the mail queue in sendmail

sendmail:~# sendmail -bp
/var/spool/mqueue is empty
        Total requests: 0


sendmail:~# mailq

/var/spool/mqueue (3 requests) —–Q-ID—– –Size– —–Q-Time—– ————Sender/Recipient———– m9TMLQHG012749 1103 Thu Oct 30 11:21 <apache@localhost.localdomain> (host map: lookup ( deferred) <> m9TMLRB9012751 37113 Thu Oct 30 11:21 <apache@localhost.localdomain> (host map: lookup ( deferred) <> m9TMLPcg012747 240451 Thu Oct 30 11:21 <apache@localhost.localdomain> (host map: lookup ( deferred) <> Total requests: 3

b) Checking queue for specific mail sender or recipient

sendmail:~# mailq | grep -i -A 2 -B 2

c) Removing all e-mails from Sendmail queue

To delete everything stored in Sendmail queue delete files from directory where sendmail stores still undelivered mails. In sendmail this is /var/spool/mqueue and /var/mqueue

sendmail:~# rm /var/spool/mqueue/*.*
sendmail:~# rm /var/mqueue/*.*

Deleting all pending mails from queue

To remove / delete e-mails originating from certain domain / user or recipient

sendmail:~# sendmail -qS -v

To delete e-mail from certain user or recipieint

sendmail:~# sendmail -qR -v


How to configure mail server forwarding on Postfix – Email forwarding from one Postfix SMTP to another

Friday, March 1st, 2013

I needed to configure mail forwarding from one Postfix mail server with a correct MX and PTR record to another one for a reason the second mail server has filtered port 25, because of ISP policy. As it is recommended in such situations, I've configured mail forwarding from postfix host1 to host2 to use (submission) port number 587 which general purpose is for exactly situations like this. Mail forwarding is done via a simple /etc/postfix/, /usr/local/etc/postfix/ (depending where Postfix is installed).

Thus as my postfix configs are in /etc/postfix, I edited /etc/postfix/ on forwarding Postfix mail server, where mail comes in (host1) and added line:

relayhost = []:587

Where is IP address of host2

To load settings I had to do the usual postfix restart

postfix# /etc/rc.d/postfix restart

postfix/postfix-script: stopping the Postfix mail system
postfix/postfix-script: starting the Postfix mail system

On host2 – to which mail is forwarded, I had to add access for host1 to relay mail  in /etc/postfix/ had to include:

mynetworks =

and is IP of host1

One note to make is if mynetworks is not defined to host of host1 mail server, you will get in /var/log/maillog error:

Relay access denied (in reply to RCPT TO command))

Here is paste chunk from /var/log/maillog

Mar  1 08:57:01 host1 postfix/smtp[95236]: 88C8B11F911:
                    to=<>, relay=[]:587, delay=0.54,
                    delays=0.01/0/0.44/0.09, dsn=5.7.1, status=bounced (host[] said: 554 5.7.1
                    <>: Relay access denied (in reply to RCPT TO command))

Easy way to travel from Belarus to Holland hopping through Lithuania or other Shengen country

Friday, January 4th, 2013

Shengen tourist visa travel to Holland from belarus via Lithuania

Over the last 2 months or me and my girlfriend from Belarus, had quite a lot of pondering on how and if is easy possible to travel from Belarus to Holland. As with every new undertaking, obtaining enough information on how to proceed put a lot of stress on her and me.

I will explain in short the whole situation in hope that someone else who is in a situation like this can benefit out of our experience.

I am born in Bulgaria with Bulgarian nationality, but currently living in the Netherlands, because of my studies. I study here in Arnhem, Holland in Arnhem Business School. My Belarusian girlfriend is with Belarusian ID and since Belarus is not in EU. They're not allowed to freely travel within the EU without a VISA. To receive a VISA for EU Belarusians obliged to have first invitation send by a person – (priglashenie) as called in Russian language) and then it is up to government authorities to issue the Visa.

We wanted to meet each other here in Holland for the Christmas holidays somewhere in period 20 Dec – 05 January 2013 and thus she needed a tourist VISA. My first idea was to send her invitation through a Bulgarian friends family who live and work and have a registered company here in Netherlands. I asked them to check about if it is possible they somehow invite Svetlana, through their company, but it never happened I received an answer. Then failing this I thought about asking a Slovenian friend if it is possible, that he send Svetlana invitation using his Offshore Company which is already offering clients issuing Business VISAS for few destinations.

My logic was since Slovenia is within Shengen, it should be possible to invite Svetlana to Netherlands. However as I heard from him he contacted the embassy  of Germany / Netherlands to ask them but received a reply this is not possible. Failing this as an  option then  I thought of a friend of mine who is a citizen of the Netherlands – I asked him if he can send her invitation, but he refused to do so fearing maybe, Svetlana will stay as illegal emigrant here in Holland and he might have problems with police.

My next, idea was to ask the Slovenian guy to invite Svetlana to Slovenia and hence she make VISA for Slovenia; Slovenia is in the European Union and in Shengen agreement for Free re-location and work within all Shengen countries, thus she might first fly to ljubljana and then from ljubljana take another flight to Holland. This "doorway" is far away from convenient, even if possible (I was not sure if even possible it was just an idea), the ticket prices for flight from Minsk to Lubljana and Lubljana to somewhere in Holland costed around 400 EUR!

In one of our consequent Skype conversations with Svetlana, I've learned she researched on some Belarusian internet forums many people claim it is actually possible to travel from Lithuania to any of the 27 countries of the European Union. Meaning she needed to get a tourist (Shengen) VISA for Lithuania. Issuing VISA for Lithuania is comparatively easy cause Belarus and  Lithua are neighbor border countries and many people frequently travel from Belarus to Lithuania and vice versa.

Issuing a VISA from Belarus to Lithuania is possible through using few agencies in Belarus helping people to have a vacation trip to Western Europe. Svetla applied for one of those agencies, promising to issue a VISA for a week / week en a half or so. However as Belarus is still living on  a plenty of government structures inherited by the Communism which was until 1991 and which were kept after the fall of communism there and perestroika, it is necessery that a special government institution approves the Tourist Visa after the Lithuanian government  issues it. It seems there were plenty of people from Belarus who applied for Tourist Visa to western European countries, so Svetla was put in a queue line not knowing for sure  if the Visa will be possible to be issued until 22nd of December. The big trouble here was I already booked a flight ticket ticket from Lithuania capital Vilnius to Eindhoven Holland with low cost company – Wizzair. BTW I flight with Wizzair 2 times so far and the flight experience was pretty decent for its low ticket price.

Finally after the agency failed to confirm whether it will be able to help her in issuing the tickets before 22nd of Dec, she had to go herself to the Embassy  of Lithuania to sign up on a queue with other people to receive a VISA to Lithuania. The situation was quite uncertain, as it was not clear if this Embassy of Lithuania will issue her Visa or not or even if her queue turn will come before 22-nd. In theory it should have but it also depended on Belarusian governmental athorities who had to also approve the visa. Like in all complex situations like this, all left was we pray God to help us and hope it all will just run smoothly with issuing and approvel of visa.

One important note to make here is Svetla asked a lady in the Embassy of Lithuania, if she can use her Lithuanian VISA to travel within the rest of the member states of the European Union and she was given a negative response – a fact which discouraged and saddened both of us.
The encouraging thing was Svetla asked other people waiting for entering the embassy to request a Visa and as she spoke with them they all said it is possible to use the Lithuanian Visa to travel freely with no check to any country within the EU.

It was days of waiting and a lot of stress mainly for her because, I was in Holland and I couldn't help her (physically) in arranging the visa.

Praise God all went Okay and she was issued VISA few days before the flight date!!!! 🙂 🙂 🙂

Now to take the flight which was early in the morning of 22 of December 2012, Svetla had to travel quite a lot. First on a bus from Belarusian capital Minsk, she had to travel to Metro (if not mistaken), from Metro to Bus-Station, then take bus fr Minsk – Vilnius and after going down on Bus Station in Vilnius to take another bus to Vilnius Airport. After this long travel  finally had to check in on Airport and fly on Wizzair airplane in 06:15 morning.
She had to spend about 6 hours waiting for the check-in on Vilnius Airport, because the bus from Minsk arrived about midnight.

Thanksfully by God's Grace she met a nice Russian family travelling to Brussels, through Eindhoven and hence flying on same flight to Eindhoven like her, so she had a nice chat time on the Airport. Thanks God again, all went smoothly with the flight and about 08:30 she was on Eindhoven's airport waiting for me and I take her about 09:15.

There was no need for passport and security check on Eindhoven airport – as I heard from her, cause there is no border control of passengers travelling within the circle of Shengen EU country zone. In Vilnius she had the usual security check before entering the plane, but in Holland it was not needed. In Holland all she had to do is to collect her laggage from the luggage circling platform.

Hopefully this little post will help other Belarusians who need to travel to any country within the Shengen zone to meet friends, beloved or family.


Don’t revoke GoDaddy SSL certificate. (Expired) Revoked SSL is impossible to revert

Thursday, April 12th, 2012

One of our company SSL (https) Certificates recently expired so I needed to renew the SSL certificate.

I was in a hurry doing plenty of other stuffs so it seemed logical for me to Revoke the Certificate. I thought revoking the certificate will simply cancel it and afterwards, in Godaddy's SSL (Manager Certificates) interface the Revoked – Cancelled certificate will re-appear in the menu, ready to be generated in the same way as earlier I initially generated the Godaddy's bought SSL certificate

Hence I proceeded and used Revoke button:

Godaddy SSL certificate manager browser certificate Screenshot

Well guess what my calculations, were wrong.
 Revoking, just cancel it. The  revoked domain SSL certificate did not show up again in Godaddy's Cert Manager and I have no way from their interface to revert the changes.

To deal with the situation, I contacted Godaddy Support immediately with the following inquiry:

Other : Revoked SSL Certificate
Issue :
Hello we have revoked the SSL certificate for our domain
 Can we revert back the certificate as it was.
If not how to generate a new key for our domain
Thanks in Advance.
Kindest Regards

"My-Company-name" Tech Support

In 5 hours time I received the following tech support answer:

Dear Tech Support,

Thank you for contacting Online Support. It is not possible to reinstate a canceled certificate. You will need to purchase a new certificate. I have requested that a refund be applied to your account. Once the credit appears in your account, please allow 5-7 business days to see the funds applied to the associated payment method. Thank you for your patience and understanding in this matter.

Please let us know if we can help you in any other way.


Christian P.
Online Support Team
Customer Inquiry
Name : Cadia Tech Support
Domain Name :
ShopperID : xxxxxxxxx
Phone : xxxxxxxx
Shopper Validated : Yes
Browser : Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv: Gecko/20100401 Firefox/3.6.3

Apparently Godaddy, can work out a bit on their tech support answering time 5 hours for a simple reply is quite long.

Now taking in consideration, above reply from Godady, my only options are to either wait for 5 to 7 (business days) or buy a new credit for SSL certificate.

Buying a new credit will probably not happen as our company is experiencing some financial troubles because of the crisis. So I guess we will have to wait for this 7 days at worst. So again if you wonder to REVOKE or not an SSL certificate. Think again …

Just a small note to make here, that Godaddy has a very straight forward way to just renew an expered certificate, which I succesfully later have done for 4 domains. Well, if only I knew earlier what REVOKE SSL cert really does I wouldn't have ended in this mess …