Thanks for your prompt reply! I have my domain entry in my sendmail.cw file however, and i havent even started testing the cgi script at the moment, im just testing sendmail. If i email (form the root user) an internal address, the address comes up with the message "user not known". Sendmail to an external address will search through the domains DNS servers and then sais "Defered:Network unreachable". Interestingly (or maybe uninterestingly!) an nslookup on my domins mx record just brings up my pdc ip address, if i lookup my pdc.domainname i get all the mx record info. Lookups on remote DNS including my ISP's all seem ok. Before my bash prompt i have "root@LinuxSrv" should this be "root@domain name" to work. I suspect my DNS config or my sendmail config now. Sorry to go on but i need this sorted! The idea behind it all is to use "Hot Potatoes" a free (to Schools, check it out! www.halfbakedsoftware.com ) windows package that can produce interactive media web forms and can email results to the teacher. Thanks Seku Sisulu Senior ICT Technician Highgate Wood School firstly, it will not have anything to do with Samba. Mail (SMTP), is a purely IP based protocol and does not interact with Samba. What you need to do is find out if the problem is with the CGI, or with sendmail. The easiest way to do this is to log in using telnet/ssh etc. and try sending a message using mail. Next, try sending a message using sendmail, by emulating the cgi (probably by feeding a message to sendmail using the '-t' and maybe even the '-f <email_addr>' parameters. Finally, re-test your cgi and then look at the apache and sendmail logs. If all else fails, (and asuming you're using perl), try the Mail::Sender module available from CPAN. It completely bypasses sendmail and send the message itself. Having said that, it probably is your sendmail config that is the problem. You probably haven't told sendmail how to handle mail not for the host it's on. If you want sendmail to handle mail for other domains besides the one it's on, then you need to add them to the /etc/sendmail.cw. For instance if you want it to handle network.co.uk as well as host.network.co.uk you need to add network.co.uk to the file. Alternatively, add a 'DS' line to /etc/sendmail.cf. e.g. DSmail.network.co.uk This tells sendmail to send all mail not destined for itself (sendmail.cw) to a Smart host who will then forward the message to the destination. Gary On Monday 04 June 2001 2:33 pm, Sisulu, Seku wrote: > Hi i am a newcomer,althogh i have been listening in for a while now. > I want to run the formmail cgi script on my apache server so i can > email on an intranet page. I need sendmail to send the emails to my > smtp server (IMAIL6). I have set up a Linux APACHE server that seems > to be working fine as an internal web server, samba seems to be ok, > but.... When i test my sendmail cf file all i seem to be able to > email is users on my computer. /usr/sbin/sendmail -v -oQ/tmp > -Ctest.cf recipient < /dev/null it cannot find users on my domain or > externaly. > Sounds like DNS > but i have an mx table on my NT pdc > and lookups all look good > Is it the samba config > Help > > Seku Sisulu > Senior ICT Technician > Highgate Wood School ==================================================== If you are offended by the contents of this mailing, please return it to postmaster@hws.haringey.sch.uk ==================================================== Highgate Wood School, Montenotte Road, London N8 8RN Visit our school website at http://www.hws.uk.com ====================================================