PDA

View Full Version : [ubuntu] Postfix mail relay


das7002
March 22nd, 2009, 11:07 PM
I have two options that I can do and both are not working

Option 1: Configure postfix to relay mail to my Google Apps Account and then deliver from there

Option 2: Configure postfix to relay mail to another internal mail server that then sends it to Google for delivery (this one does not require any authentication)

Please can you assists I have spent hours trying to figure this out and have little experience in getting mail servers working since this is the first time I am having to do it any help is greatly appreciated

OS Intrepid Ibex 32bit

hyper_ch
March 23rd, 2009, 02:45 AM
I have this on one server to relay through the ISP there:

main.cf

smtp_sasl_auth_enable = yes
smtp_sasl_security_options = noanonymous
smtp_sasl_password_maps = hash:/etc/postfix/saslpasswd
smtp_always_send_ehlo = yes
relayhost = [smtpauth.bluewin.ch]:587

Mail needs to be sent to port 587 that's why the ISP smtp server is in brackets.

Then saslpasswd looks like

smtpauth.bluewin.ch USERNAME@EMAILDOMAIN.COM:PASSWORD


As this is a hashfile, you'll need to run

postmap saslpasswd


For google I think you need to get a certificate also.

windependence
March 23rd, 2009, 03:05 AM
I have two options that I can do and both are not working

Option 1: Configure postfix to relay mail to my Google Apps Account and then deliver from there

Option 2: Configure postfix to relay mail to another internal mail server that then sends it to Google for delivery (this one does not require any authentication)

Please can you assists I have spent hours trying to figure this out and have little experience in getting mail servers working since this is the first time I am having to do it any help is greatly appreciated

OS Intrepid Ibex 32bit
I may not be able to help you here but I am very curious as to why you want to do this? Can you not get your mail from Google? And can't you just send mail straight from your mail server instead of relaying it through their SMTP servers? Help me to understand why anyone would want to do this.

-Tim