Mailinglist Archive: opensuse-edu (73 mails)
| < Previous | Next > |
Sendmail nearly there but...
- From: "Sisulu, Seku" <seku@xxxxxxxxxxxxxxxxxxx>
- Date: Wed, 6 Jun 2001 15:24:56 +0000 (UTC)
- Message-id: <200106061629.AA21825106@xxxxxxxxxxxxxxxxxxx>
Thanks Gary
Ive been using sendmail to mail a user with an account on my SMTP server. The user does not have a password on my LINUX box, mail to users on the same host works ok. Should i need aliuses for all users or passwords for all users on my LINUX box, i hope not.
Do i need to customise my sendmail.cf file more?Should i use my ISPs DNS domain in my sendmail.cw file?
Does this smarthost line still sound possible? The DNS server is working better now i took the server host name of the MX record (NT Optional field) and points to the ISP's DNS with the relevent MX config.
Getting there but so near but so far!
Hi Seku
On Tuesday 05 June 2001 11:33 am, Sisulu, Seku wrote:
> 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
What do you mean by internal address? on the same host, or on your
network? This sounds like the user you're sending to doesn't exist and
doesn't have an alias entry.
> external address will search through the domains DNS servers and then
> sais "Defered:Network unreachable". Interestingly (or maybe
This sounds more like a network config problem - sendmail can't find a
route to the remote host. Have you got your static routes and
defaultroute set? Can you traceroute to the host pointed to by the MX
> 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.
Is this box your main mail relay, or are you using this to send mail
only from this host? If you have another mail server, did you try
setting the smarthost line.
>
> 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.
>
If you could give us some more details about your network topology we
may be able to provice more info.
> 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@xxxxxxxxxxxxxxxxxxx
====================================================
Highgate Wood School, Montenotte Road, London N8 8RN
Visit our school website at http://www.hws.uk.com
====================================================
Ive been using sendmail to mail a user with an account on my SMTP server. The user does not have a password on my LINUX box, mail to users on the same host works ok. Should i need aliuses for all users or passwords for all users on my LINUX box, i hope not.
Do i need to customise my sendmail.cf file more?Should i use my ISPs DNS domain in my sendmail.cw file?
Does this smarthost line still sound possible? The DNS server is working better now i took the server host name of the MX record (NT Optional field) and points to the ISP's DNS with the relevent MX config.
Getting there but so near but so far!
Hi Seku
On Tuesday 05 June 2001 11:33 am, Sisulu, Seku wrote:
> 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
What do you mean by internal address? on the same host, or on your
network? This sounds like the user you're sending to doesn't exist and
doesn't have an alias entry.
> external address will search through the domains DNS servers and then
> sais "Defered:Network unreachable". Interestingly (or maybe
This sounds more like a network config problem - sendmail can't find a
route to the remote host. Have you got your static routes and
defaultroute set? Can you traceroute to the host pointed to by the MX
> 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.
Is this box your main mail relay, or are you using this to send mail
only from this host? If you have another mail server, did you try
setting the smarthost line.
>
> 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.
>
If you could give us some more details about your network topology we
may be able to provice more info.
> 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@xxxxxxxxxxxxxxxxxxx
====================================================
Highgate Wood School, Montenotte Road, London N8 8RN
Visit our school website at http://www.hws.uk.com
====================================================
| < Previous | Next > |