Alan McKay wrote: >> 220 FBCMCL01B06.fbc.local Microsoft ESMTP MAIL Service, Version: >> 6.0.3790.3959 ready at Sun, 22 Nov 2009 01:02:20 +0100 > > I'm confused. This seems to be running MS mail server - what does > that have to do with Centos? That is the response from my ISP's mail-server. > You've got 2 boxes? 1 is a MS mail server and the other is Centos? I only have 1 box in this context, which is running Centos-5.4 . Thanks for your reply. Actually, the mail was sent after a couple of hours. I think the reason for the delay was that I gave my home email address in the From line. Now I've changed it (as below) the mail is sent at once. > Is sendmail running on Centos? Yes > Are you sure it is running? Yes > Is this the system from which you attempted to send mail? Yes > How did you attempt to send it? I sent it with a tiny python program (below) > Did you check the "mailq" command on that system? No. But I checked that the files in /var/spool/* were all empty. > Does that system have a public IP? No, the IP address changes quite often. > Or is it behind a firewall? No ---------------------------------------------- [tim at althea ~]$ cat ip.py SENDMAIL = "/usr/sbin/sendmail" import os import socket import urllib2 import sys import time tt = time.ctime() ipaddr = "192.168.5.22" p = os.popen("%s -t -fgayleard at alice.it" % SENDMAIL, "w") p.write("To: gayleard at eircom.net\r\n") p.write("From: Timothy Murphy <gayleard at alice.it>\r\n") p.write("Subject: Anghiari IP address\r\n") p.write("\r\n") p.write(ipaddr + "\r\n") p.close() sys.exit() ---------------------------------------------- -- Timothy Murphy e-mail: gayleard /at/ eircom.net tel: +353-86-2336090, +353-1-2842366 s-mail: School of Mathematics, Trinity College, Dublin 2, Ireland