Sendmail delay is observed when php formmail is used to send mails for high security sites. When the mail is sent it shows the status as deferred but after sometime the same mail is delivered successfully.
To resolve this issue perform the following steps:
1. cd /home/virtual/siteNN/etc/mail (where siteNN is the site id of the domain with the issue).
2. Edit submit.mc and comment out the line by adding dnl in front of it:
3. Then add the folowing line:
4. Now run:
m4 submit.mc > submit.cf
5. Restart sendmail service:
service sendmail restart