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

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!
0
dinos1979
Asked:
dinos1979
  • 2
1 Solution
 
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
 
NopiusCommented:
> 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
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