Quote:
I want to know how to enable mailing and also if I need to use a local SMTP server on my PC. I would like to avoid using this becoz I already have an account on my main email server and would like to use that.
|
Ok, it seems that I'm getting your problem?
First, you need working mail null client (which will forward mail from local workstation/server to real mail server). In your case all you need to do is tell your mail server to route mail using your mailserver. For example add following line to sendmail /etc/mail/mailertable
Code:
127.0.0.1 smtp:p5smtpout.mymailserver.net
127.0.0.2 Above line force to use existing mail server called
p5smtpout.mymailserver.net
For postfix edit /etc/postfix/main.cf and add/append line:
Code:
relayhost = p5smtpout.mymailserver.net
Restart the server. Now mail will be forwarded to p5smtpout.mymailserver.net. Please note that to avoid spam problem many mail servers are (p5smtpout.mymailserver.net) configured to reject mail. So make sure your server accept the mail.