relay-domains

I woule get a "Relaying denied" error after I try to send email through sendmail in FreeBSD 3.3 even though I add "mydomain.com" to "/etc/mail/relay-domains" !(it is ok when I add the IP Address of the machines) Why ? Do I need to add some more thing ?

Or can I allow the sendmail be a relay for all machine on Internet ?

Andrew
andrewyuAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

mohammedgCommented:
It looks like sendmail can not resolve the domain name to an IP Address.

Put the following entry in your DNS database.

aaa.bbb.ccc.ddd IN A mydomain.com
aaa.bbb.ccc.ddd MX 10 mydomain.com

aaa.bbb.ccc.ddd is your mail server address.

Then make sure you can resolve your domain to the mail server address.

try ping mydomain.com

0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
andrewyuAuthor Commented:
I will try to add "aaa.bbb.ccc.ddd IN A mydomain.com" first !

thx,
Andrew
0
andrewyuAuthor Commented:
Anyway, how can I turn-off the relaying checking ?

Andrew
0
mohammedgCommented:
I do not advice that you do that, since spammers can use your machine as a gateway. Everybody is stopping relaying.

I think just commenting the line that says relay-domains in the sendmail.cf file should do it. try it I am not sure.
0
andrewyuAuthor Commented:
Ok, Thank you very much !

Andrew
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Networking

From novice to tech pro — start learning today.