Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1287
  • 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

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

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