System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

point to smtp servers to send out emails.

 
SOLVED
Go to solution
kenken_3
Regular Advisor

point to smtp servers to send out emails.

hello,

within my lan, we have a windows smtp server setup already. How can I configure my linux box to point to my smtp servers so that I can use "mail" or "mailx" to send out emails to outside.

thanks
kenken
wang & wang
3 REPLIES
Stuart Browne
Honored Contributor
Solution

Re: point to smtp servers to send out emails.

You need to configure 'sendmail' on your Linux box to have a 'SMART_HOST'.

Simple steps:

Modify '/etc/mail/sendmail.mc'.
- Change: define(`SMART_HOST',`[your.windows.machine.ip]')
- cd /etc/mail
- make
- service sendmail restart

On a RedHat machine, this should forward all outbound mail out through the Windows SMTP server.

Yes, this requires that the 'sendmail' service be running so that the MSP runs.

Depending on how your DNS is set up, you may also want to look at things like the 'accept_unresolvable_domain' feature.
One long-haired git at your service...
Steven E. Protter
Exalted Contributor

Re: point to smtp servers to send out emails.

Shalom,

Make sure the windows smtp server permits relay to the linux host

DShostnamewindowserver

or
DS
[192.168.0.10]

in sendmail.cf where the ip address is the ip of the windows server.

service sendmail restart

Why go with the IP address? Prevents DNS delays.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
kenken_3
Regular Advisor

Re: point to smtp servers to send out emails.

it is closed.
wang & wang