How to relay email to other accounts through RH6.0

I have setup a RedHat Linux6.0 server and use sendmail 8.9.3
 as mail server.Now I use the linux box for virtual host and
 want to relay email to other existing email accounts on the
 Internet.I configured the virtusertable and makemap,but it
 alse return "Error550:Relay denied".What's wrong with that?
huangjianAsked:
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.

vbirdCommented:
In your inetd.conf take the # comment off of smtp you may also need to run netconf and let it relay smtp.
0
ahoffmannCommented:
# in your sendmail.cf
FR-o /etc/mail/relay_domains

# in /etc/mail/relay_domains define your domains which are allowed
# refer to the docs which came with sendmail 8.9.3, they are perfect
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
huangjianAuthor Commented:
The file "sendmail.cf " is ok and I also created the file
"relay-domains",but I still got error messages:
"Remote host said: 550 ... Relaying denied"
I don't know whether my config file is wrong.
Can you explain more clearly?
Thanks a lot!
0
Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

ahoffmannCommented:
does this message appear when a client tries to send mail via your Linux box, or when the Linux bok itself tries to deliver?
0
huangjianAuthor Commented:
I made the tests from yahoo's web email system.
The message is sent by yahoo's mail deamon.
0
ahoffmannCommented:
do you really want to allow clients comming from naywhere (yahoo for example) to use your Linux box as relay?
0
huangjianAuthor Commented:
I just want to redirect some virtual email addresses(on
 my linux box) to other real email email addresses.
For example,my linux box's hostname is www.abc.com,the
virtual host is 123.com.Now I want to make some email
addresses @123.com,and then redirect them to other addresses
such as david@yahoo.com,vincent@hotmail.com,etc.
0
huangjianAuthor Commented:
I just want to redirect some virtual email addresses(on
 my linux box) to other real email email addresses.
For example,my linux box's hostname is www.abc.com,the
virtual host is 123.com.Now I want to make some email
addresses @123.com,and then redirect them to other addresses
such as david@yahoo.com,vincent@hotmail.com,etc.
0
tgreaserCommented:
you  want to use your virtusertable..

this maps a local or virtual email accout to a diff
email server
first you need to have this feature turned on in your /etc/sendmail.mc
FEATURE(`virtusertable',`hash -o /etc/mail/virtusertable')


remake your sendmail.cf
COPY YOUR CURRENT /etc/sendmail.cf for a backup

 m4 /etc/sendmail.mc > /etc/sendmail.cf

your virtual hosting me an account on
tgreaser@www.abc.com  and redirect it to xmas@cbs.com

edit your /etc/mail/virtusertable
<syntax>
Destination Address tab  Relay Address

tgreaser@www.abc.com     xmas@cbs.com

your now can restart sendmail or just rebuild the virtusertable database by typing

#makemap hash /etc/mail/virtusertable.db < /etc/mail/virtusertable

look on www.sendmail.org .. they have a lot more detail on this..

hope this helps
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
Linux Networking

From novice to tech pro — start learning today.