You can have your exchange email forwarded to your gmail account. Just log into Outlook Web Access and setup a rule to forward all your mail to your gmail account.
To solve the problem of sending mail, I suggest making a second gmail account for sending only. I'm not sure about android phone, but you will either have to a) setup the account's reply-to address with the exchange's address, or b) setup the replay-to address on the phone.
And with Gmail, it is easy to link the accounts and send mail as a different account, using that account's reply-to address.
However, I want to make sure that my server is not compromised as I've heard that having smtp/mail installed opens up new options for hackers
Any service can "open up new options for hackers" if it's poorly written. But for mail, both Postfix or Exim4 are very secure.
(In general, you'll be fine as long as you don't use a ten-year-old Sendmail. Current versions are secure, but I would recommend staying away from Sendmail anyway – the configuration file isn't exactly human-readable.)
Is there a tool that does not receive emails, but is only able to send them?
Any MTA (Postfix, Exim4, Sendmail) can work this way – just configure it to listen on loopback addresses only (::1
and 127.0.0.1
). You can even disable the SMTP compontent entirely – most Unix programs do not require it and send mail through /usr/sbin/sendmail
1, making SMTP unnecessary.
It's really not necessary against "hackers", though. The worst you can get with a decent MTA is leaving it open for relaying – and the default configurations already take care of that.
Another option is msmtp
, which doesn't even have full SMTP support – all it can do is relay mail through another mail server, such as Gmail's or your ISP's. But while it's useful for a personal computer, it doesn't really fit into a server environment.
1 "/usr/sbin/sendmail
" is a program that comes with all MTAs, while "Sendmail" is the name of a specific MTA.
Best Answer
Gmail can be used for sending mail by any mail program and from any network.
Some command-line mail products for Windows are:
SendEmail
mailsend
(I have no first-hand experience with these products.)
See also this article : How to use Gmail as your SMTP server.