Configure SMTP on sendmail to send email from unix to outlook

hi,

i have sendmail installed on linux machine however, im not sure how and where to configure smtp in order to be able to send email to my work mail. Do i need to have the mail host in etc/hosts or is this something that can be configured in /etc/mail/sendmail.cf?
If this is too complicated  (for a unix beginner) please let me know if programs such as postfix would be more straight forward.

Much appreciated!
dinos1979Asked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

jar3817Commented:
What exactly are you trying to do? Send all incoming mail to your work account? Or just be able to send email to your work account?

Assuming you have relay access (set in /etc/mail/access), your mail server will find the incoming smtp server for your work email via DNS, there isn't any config you need to set.
0
dinos1979Author Commented:
The latter...to be able to send email to my work account. Can't find etc/mail/access.

i can see the following in syslog after attempting to send an email with sendmail:

DSN: Host unknown (Name server: mailhost: host not found)
0
jar3817Commented:
Can this server do DNS resolution? At a console type:

host google.com
host yahoo.com
host ebay.com

See if you can get IP addresses for any of those names. If not, check the IP of your resolver in /etc/resolv.conf

It should look something like:

nameserver 1.2.3.4

where 1.2.3.4 is either your local dns server (if you have one) or your ISP's. You can always use Level3's: 4.2.2.2
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Artysystem administratorCommented:
> DSN: Host unknown (Name server: mailhost: host not found)

You either have no working network/DNS (as jar3817 said or assumed), or you have SMART_HOST definition in your /etc/mail/sendmail.mc

To be sure, please post here your /etc/mail/sendmail.mc

Normally you need to:
1) make DNS and Internet connectivity work
2) allow your LAN users to send mail through your Linux (edit /etc/mail/access and regenerate access.db)

that's all. If you have no LAN and only Linux itself, 2) is not needed.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
System Programming

From novice to tech pro — start learning today.