• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 358
  • Last Modified:

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?
0
huangjian
Asked:
huangjian
1 Solution
 
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
 
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
[Webinar] Kill tickets & tabs using PowerShell

Are you tired of cycling through the same browser tabs everyday to close the same repetitive tickets? In this webinar JumpCloud will show how you can leverage RESTful APIs to build your own PowerShell modules to kill tickets & tabs using the PowerShell command Invoke-RestMethod.

 
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

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now