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:

does_not_like_recipient

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

link|improve this question

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

closed as not a real question by mailq, Tom O'Connor, John Gardeniers, sysadmin1138 Jan 14 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. See the FAQ for guidance on how to improve it.

1 Answer

up vote 2 down vote accepted

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

link|improve this answer
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
feedback

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