Link to home
Start Free TrialLog in
Avatar of Mark
Mark

asked on

Permit personal workstation to relay mail with sendmail

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?
Avatar of Jan Bacher
Jan Bacher
Flag of United States of America image

modify /etc/mail/access and add your internal subnet:

i.e.,
  Connect:192.168.1                  RELAY

when done:

  makemap hash access < access
Avatar of Mark
Mark

ASKER

Hmmm, is there nothing else to filter on? The Outlook client is a laptop which can travel and may get different IPs.
ASKER CERTIFIED SOLUTION
Avatar of Jan Bacher
Jan Bacher
Flag of United States of America image

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 Mark

ASKER

Well, I guess I need some help setting this up. I've created a certificate using CAcert.org, which I've used successfully before. And I've configured sendmail as I've done before. According to checktls.com, 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?
Avatar of Mark

ASKER

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