I have a server with CentOS+Plesk+Qmail, I want to set it to send mail trough another server (CentOS+Sendmail).

What do I need to set at the second server end in order to accept and deliver email for first server ?

The first server is forwarding the email trough Qmail smtproutes but the other server is saying:


What I want to send is from noreply@server1 to gmail, yahoo, etc.

closed as not a real question by mailq, Tom O'Connor, John Gardeniers, sysadmin1138 Jan 14 '12 at 12:53

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. If this question can be reworded to fit the rules in the help center, please edit the question.

  • What's with the down votes? Seems like a reasonable question to me. – xofer Sep 29 '11 at 16:07

It sounds like you need to allow relaying from server1 on the second server. http://www.sendmail.org/tips/relaying

  • I got it to work but I wonder... if I replace the values of MX on server 1 to point to server 2, won't my server 1 know that it should send* email directly trough server 2 without having to edit things like smtproutes files in server 1? – adrianTNT Sep 29 '11 at 18:56
  • That sounds like a new question... But generally I'd say: No, you don't want to add DNS issues into this mix. Kick back and watch it work. :-) – xofer Sep 29 '11 at 19:06

Not the answer you're looking for? Browse other questions tagged or ask your own question.