Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I want to switch to Gmail from Google apps to handle my email. I have some internal programs that send emails to me like cronjobs, logwatch, and php applications.

Is there a way to sill have the internal programs send email. The emails will be sent to account from gmail.

I will close all incoming email ports on my system, and only have the outgoing ports open.

share|improve this question

4 Answers 4

up vote 1 down vote accepted

I had a similar question here the other day and solved it using this. It looks simple and it is and it works, I can send email from my VPS only and receive mail at my Google apps address. just make you setup you MX records (setting an SPF record is also a good idea to help with anti spam measures), set a hostname in postfix (main.cf) , make the changes suggested in the link and your good to go. You dont need any firewall rules because you dont need an open port to send mail (at least i dont seem to need anyway) (I think and wait to be corrected by someone more knowledgeable if wrong)

share|improve this answer
    
Thank you I will look into it. –  Saif Bechan Apr 13 '10 at 22:22

Either direct the apps to send mail to the Gmail account, or set up an alias in your local MTA that points to the Gmail account.

share|improve this answer

Sure. Its a fairly common setup for linux distros to configure sendmail by default to only listen to the loopback interface. Then its just a matter of either configuring your apps to email the gmail address, or use something like /etc/aliases to redirect local delivery addresses to the gmail account you desire.

Without details its hard to be much more specific.

share|improve this answer

Another simple method would be to setup Simple SMTP (SSMTP). It can impersonate sendmail and relay mail to any other valid SMTP server including Gmail's servers.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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