Mail send QMail Server get Greylisted

when we try to send mails to qmail servers we get this response:
450 4.7.1 : Recipient address rejected: Greylisted for 300 seconds


Greylisting is an anti-spam measure employed by some email providers like Gmail.

http://en.wikipedia.org/wiki/Greylisting

The receiving server rejects the message and waits for the sending server to re-send it for a time interval (5 minutes for Gmail). If it receives it for a second time inside this interval, then it whitelists the sending server, which from then onwards can send emails to the receiving server without further rejections.

If the receiving server does not receive the message for a second time inside the predetermined time interval, it rejects the message and the whole procedure repeats itself. It looks like this is the case with your problem, you got these messages stuck in a loop.

Try to find out the greylisting timeframe for Qmail, then adjust your Exchange server's re-send period accordingly (by default it is 10 mins.)

Working with qmail logs files

I have just sent a mail, can you check if mail has gone? A user ask me....Opps...How can i check this? which file should i check first?


Yeah, there many case when you need to check if mail has gone or not? Here qmail Log files which you need to check.


vi /var/qmail/supervise/qmail-send/log/main/current | tai64nlocal

this file logs all send mail & using tai64nlocal you can convert qmail log time to local time zone.

a sample output is here

.......
...
2005-02-12 18:17:18.381291500 delivery 16691: success: 68.17.2.4_accepted_message./Remote_host_said:_75_42.0.0_Message_recd_OK/
....
...

Above sample log tell the a message on date 12th Feb 2005 on 06:17 PM was sent to 68.17.2.4 IP ( a remote mail server IP) successfully.

How to disable the web access in Squirrel Mail?

Open the Vqadmin page, tick on "Disable web access" and "Disable IMAP access". Thats it. This will disable web access for that user.

Alternatively you can use squirrel mail plugins to do the same. Check for plugins like Lockout,