I have a VPS which have a website on it. I purchased a mail server in register.com and my domain is also registered in register.com
Now I want to use register.com's smtp mail server in my VPS to send authenticated email which I have user/pass in register.com's mail server. it's mail.mydomain.com which is hosted in register.com
I tried to install sendmail and I configured php's php.ini to use sendmail. Till now it was OK.
I did some configurations on sendmail.mc and sendmail.cf and I corrupted them, then I deleted /etc/mail
Then I did
apt-get remove sendmail
apt-get install sendmail
again I don't have anything in /etc/mail
So now I can't reconfigure it.
Now please tell me:
a) how to install (reinstall) sendmail to have default configs in /etc/mail
b) How to configure sendmail to use remote SMTP server with user/pass I'll provide.
Thanks from now