[SOLVED] message 'Relaying denied' when receving external e-mail
Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
As for now the the access database is being skipped I have the following FEATURE:
FEATURE(`access_db', , `skip')dnl
I'm obviously going to add a database in once I get sendmail working to this point. That's kind of the funny part because without it checking the database I would think at this point it would allow everyone to relay.
The part I am struggling with is the "relaying" aspect of this. I don't know why my server thinks the mail needs to be relayed because it should be the destination.
Well I figured it out. I had to add my domain to the /etc/mail/local-host-names
Looks like sendmail was trying to relay "firstname.lastname@example.org" to somedomail.com and since I'm behind a firewall with port forwarding the name was being resolved as the internet IP. I'm not sure of the resolving order, but it looks like sendmail uses this file first. I did have my full qualifed domain name in the file "mailserver.somedomain.com" but the mail coming in was address to "somedomain.com"
Thanks for your help it got the weels turning in my head!