I'm trying to find out the source of a delay in postfix processing
some mail. I have a web app that sends a notification email to users
but there is a delay when PHP calls the mail() function. I remove the
call to mail() and the delay goes away. I turned on debuggering_peer
for localhost to see if I could spot the delay in the logs:
http://dn.playr.co.uk/delay.log
Here's a sample log of the transaction. The delay happens towards the
bottom:
Aug 15 12:22:27 dn postfix/smtpd[13962]: >
localhost.localdomain[127.0.0.1]: 354 End data with <CR><LF>.<CR><LF>
Aug 15 12:22:36 dn postfix/smtpd[13962]: public/cleanup socket: wanted
attribute: status
That 9 second delay is presented to the user as the web page hanging
while the call to mail() completes. There doesn't seem to be anything
wrong in the config but I would like to eliminate the delay if
possible. Where should I start? This might help:
[EMAIL PROTECTED] public_html]# /usr/sbin/postconf -n
alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
command_directory = /usr/sbin
config_directory = /etc/postfix
daemon_directory = /usr/libexec/postfix
debug_peer_list = 127.0.0.1
default_privs = nobody
home_mailbox = Maildir/
html_directory = no
inet_interfaces = localhost
mail_owner = postfix
mail_spool_directory = /var/spool/mail
mailq_path = /usr/bin/mailq.postfix
manpage_directory = /usr/share/man
mydestination = $myhostname, localhost.$mydomain, localhost
mydomain = playr.co.uk
myhostname = dn.playr.co.uk
mynetworks = 127.0.0.0/8
mynetworks_style = host
myorigin = $myhostname
newaliases_path = /usr/bin/newaliases.postfix
queue_directory = /var/spool/postfix
readme_directory = /usr/share/doc/postfix-2.2.10/README_FILES
relay_domains = $mydestination
sample_directory = /usr/share/doc/postfix-2.2.10/samples
sendmail_path = /usr/sbin/sendmail.postfix
setgid_group = postdrop
smtpd_banner = $myhostname ESMTP $mail_name
smtpd_recipient_restrictions = permit_mynetworks, reject
soft_bounce = no
unknown_local_recipient_reject_code = 550
Many thanks,
Gaby.
--
Uganda Maximum - Enemy of the English Thrust
http://www.playr.co.uk/