Sendmail or Postfix to send to ISP hosted SMTP server

Sendmail or Postfix to send to ISP hosted SMTP server

Post by Neal Zimmerm » Tue, 10 Jun 2003 23:03:07



I am setting up an intranet site. Our smtp server is hosted by our ISP
(smtp.ourdomain.com).

on the intranet, I have a cgi-script for form processing. I need to
configure either sendmail or postfix to send the form results to an
email account hosted by our ISP.

Can this be done? I do not need to receive mail on this box. It is RH
8.0.

How do I configure this?

Thanks

 
 
 

Sendmail or Postfix to send to ISP hosted SMTP server

Post by iwumgv.. » Tue, 10 Jun 2003 23:54:22


|on the intranet, I have a cgi-script for form processing. I need to
|configure either sendmail or postfix to send the form results to an
|email account hosted by our ISP.

For sendmail look in the config file for the phrase smart relay. For
postfix look in the config file for the word relayhost. Lots of online
doco for both servers.

 
 
 

Sendmail or Postfix to send to ISP hosted SMTP server

Post by Michael Heimin » Wed, 11 Jun 2003 03:20:23



> I am setting up an intranet site. Our smtp server is hosted by our ISP
> (smtp.ourdomain.com).
> on the intranet, I have a cgi-script for form processing. I need to
> configure either sendmail or postfix to send the form results to an
> email account hosted by our ISP.
> Can this be done? I do not need to receive mail on this box. It is RH
> 8.0.

Edit /etc/mail/sendmail.mc and add:

define(`SMART_HOST',`smtp.ourdomain.com')dnl

Now run:

cp /etc/mail/sendmail.cf /etc/mail/sendmail.cf.old
m4 /etc/mail/sendmail.mc > /etc/mail/sendmail.cf

Or where ever your sendmail expects its .cf.

Restart sendmail and every mail that isn't considered to be local
should be routed through your smart_host.

Try the README for more info:
/usr/share/sendmail-cf/README

Something similar, can be done somewhere in main.cf, used by postfix, read
the comments in the file or and check postfix.org for FAQ.

--
Michael Heiming

Remove +SIGNS and www. if you expect an answer, sorry for
inconvenience, but I get tons of SPAM