Web Hosting Talk







View Full Version : Sendmail to send using MX record


NetMongol
01-23-2002, 03:14 PM
I have a client who has been using our services for a while now and recently moved to his own dedicated server. His MX records are correct, he can receive e-mail (actually it gets routed to NetMongol where he can read it). But the problem is that when his forum users send him e-mail (via the forum mail functions) using sendmail then it goes to the local account and not to the account on my server.

I need help with what changes can be made to sendmail so that when it sends to addresses that it thinks are local then it actually sends them OUTSIDE of the server using the proper MX record. That way it arrives on my server and is available to him.

He's running Linux. (don't know which flavor)
The following files are in his sendmail folder (if is helps)

add_access
add_responder
list_access
list_aliases
remove_access
responder.pyc
sendmailconf.pm
sendmail.pm
update_alias

Isn't there a way he can configure sendmail so when it sees user@local then it makes it user@domain.com (so it is forced to ue the MX)


He tried using a simple formmail cgi script (which uses sendmail) and it works fine for anyaddress@otherdomain.com but if it tries to use address@hisdomain.com it never gets there (meaning it never leaves the server to go to NetMongol )

Thanks a lot for any help

Pilgrim
01-23-2002, 10:19 PM
...? Maybe I didn't fully understand your problem or I am thinking too simple here, but sendmail is only the instrument. Sendmail does not decide where to actually send the mail.

Did you take a look at the settings of his forum? Did he set it up correctly? If mail from his forum is not going to the right email address then my best bet is that he didn't set the forum up right.

I had the same problem for a while with a customer. All the email send through the board went to root@. He fixed it. I was happy.