• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1290
  • Last Modified:

Configure SMTP on sendmail to send email from unix to outlook


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!
  • 2
1 Solution
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.
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)
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:


where is either your local dns server (if you have one) or your ISP's. You can always use Level3's:
> 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.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: CompTIA Cloud+

The CompTIA Cloud+ Basic training course will teach you about cloud concepts and models, data storage, networking, and network infrastructure.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now