1828390 Members
3594 Online
109977 Solutions
New Discussion

sendmail

 
SOLVED
Go to solution
dennis bergman
Occasional Advisor

sendmail

I need to set up sendmail on a couple boxes( 10.20 & 11). They should just be relays. Ive never configured sendmail before so any info would be great.

Thanks in advance
3 REPLIES 3
Kevin Wright
Honored Contributor
Solution

Re: sendmail

See sendmail.org for help.
but most likely you just want to set your DS variable to your 'smart relay'..maybe an exchange server.
stop and restart the daemon and you should be able to send mail.
Dan Bonham
Advisor

Re: sendmail

Yes,
You do want to change your DS line. it is in the /etc/mail/sendmail.cf file. You will also want to check a few lines above the DS entry.

it may default as Dj$w.foo.com. but you can change it to Dj$w. But you might have to add an alias with a period at the end in your /etc/hosts file. i.e.

11.11.11.11. localhost localhost.

Rusty Sapper
Shannon Petry
Honored Contributor

Re: sendmail

I think the more proper way of doing this is to modify an entry in "/etc/rc.config.d/mailsvrs" which says "MAIL_SERVER=" to "MAIL_SERVER={your mail server}" and then stop and start sendmail. This should then forward all mail to that server without modifying macros. The rc.config.d files are not messed with at upgrade, where sendmail.cf may be replaced with a patch upgrading sendmail!

Regards,
Shannon
Microsoft. When do you want a virus today?