Link to home
Start Free TrialLog in
Avatar of dinos1979
dinos1979

asked on

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!
Avatar of jar3817
jar3817

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.
Avatar of dinos1979

ASKER

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)
ASKER CERTIFIED SOLUTION
Avatar of jar3817
jar3817

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Arty K
> 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.