Permit personal workstation to relay mail with sendmail

Posted on 2014-07-21
Last Modified: 2015-05-26
I am self-hosting my domain email on Linux using sendmail. I want my laptop to be able to use this email server as the smtp/pop server, including being able to cc: to other recipients.

I've set up the Outlook outgoing server to require authentication and I've put my Linux ID and password in the "Log on using" section. This permits mail send from my laptop to be delivered to my Linux account, but anyone I cc on some other domain gets reject with "relaying denied".

How do I fix this?
Question by:jmarkfoley
    LVL 28

    Expert Comment

    by:Jan Springer
    modify /etc/mail/access and add your internal subnet:

      Connect:192.168.1                  RELAY

    when done:

      makemap hash access < access
    LVL 1

    Author Comment

    Hmmm, is there nothing else to filter on? The Outlook client is a laptop which can travel and may get different IPs.
    LVL 28

    Accepted Solution

    then you need to configure SMTP AUTH by creating a self-signed certificate, installing sasld and modifying the to reflect the changes.
    LVL 1

    Author Comment

    Well, I guess I need some help setting this up. I've created a certificate using, which I've used successfully before. And I've configured sendmail as I've done before. According to, I'm OK.
    However, My Android mail program says
    Username or password incorrect.
    (535 5.7.0 authentication failed)

    Open in new window

    I've run `saslauthd -a shadow` and the user is in the /etc/shadow file. I've re-enter the userid and password multiple times. I'm *sure* it is correct.

    Any idea how to fix this?
    LVL 1

    Author Closing Comment

    I figured out all of Jan's "things I need to do" on my own.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    6 Surprising Benefits of Threat Intelligence

    All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

    This short article will present "How to import ICS Calendar onto Office 365 Calendar". I was searching for free (or not free) tools to convert ICS to CSV without success. The only tools I found & working well were online tools...this was too hard to…
    The purpose of this article is to demonstrate how we can use conditional statements using Python.
    To show how to create a transport rule in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: First we need to log into the Exchange Admin Center. Navigate to the Mail Flow >> Rules tab.:  To cr…
    In this Micro Video tutorial you will learn the basics about Database Availability Groups and How to configure one using a live Exchange Server Environment. The video tutorial explains the basics of the Exchange server Database Availability grou…

    737 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now