Forums / General Questions / Home Linux Server - Gmail help -- how to forward through gmail if using postfix

Home Linux Server - Gmail help -- how to forward through gmail if using postfix

Locked

Views: 16,973

Results 21 to 40 of 41
This thread is locked. New replies are disabled.
15 Apr 2007, 11:04 AM
#21
chuckl avatar

chuckl

Totally Zenned

Join Date:
Nov 2006
Location:
Papworth, Cambridgeshire, UK
Posts:
717
Plugin Contributions:
0

Home Linux Server - Gmail help -- how to forward through gmail if using postfix

Compliments will get you everywhere!! Lets just say that matters are not harmed by the fact that I have 5 servers running Ubuntu Linux in the conservatory...

OK, I've been doing some digging, and the best approach I was hoping to use is unfortunately blocked by Google. Blocked in the sense that if you want to use what they call an email gateway, they want you to subscribe to the premium apps accounts $$$$$

That said, we do make progress.

So instead we will have to configure Postfix to pretend it is you with an email client sending from your machine. I'm busy putting together the details of that and I'll post it shortly.

Rgds,
Chuck

15 Apr 2007, 11:14 AM
#22
revsie avatar

revsie

New Zenner

Join Date:
Apr 2007
Location:
Crawley, West Sussex, UK
Posts:
23
Plugin Contributions:
0

Re: Home Linux Server - Gmail help -- how to forward through gmail if using postfix

Thanks Chuckl.

I really appreciate this. The compliments are well deserved after all the people I see you are helping on this forum.

I don't see how you have time for anything else.

Just a quick one if google is not gonna happen how would you suggest to get round this?

Are there any e-mail services that you use or can suggest?

I work for a software company but they just use windows and I know more about Linux than anybody else who works there.

I think I am moving over to the linux way of thinking but if only you could play commercial games on it. They need a Linux directx.

And 5 servers. You are busy. Conservatories are hot enough places in the summer without 5 servers in them. How do you keep them cool?

15 Apr 2007, 11:58 AM
#23
chuckl avatar

chuckl

Totally Zenned

Join Date:
Nov 2006
Location:
Papworth, Cambridgeshire, UK
Posts:
717
Plugin Contributions:
0

Re: Home Linux Server - Gmail help -- how to forward through gmail if using postfix

Right, lets try some tests on port 587. You will need to add some postfix configuration settings from a command line, but first I need a couple of things

Firstly, when you set up Google Apps, you specified a prefix to use? Something like mail, or urban or whatever. Could you post that.
Secondly, when you access via thunderbird, what do you put into thunderbird as the mail server? e.g. mail.gameitus.com
Thirdly, I presume that the account supposedly sending the mail from Zen Cart (smmsp?) is a valid account on the Google Apps/gmail servers.
Finally, what is the actual email domain we are trying to talk to - is it gameitus.com or something.gameitus.com

15 Apr 2007, 12:19 PM
#24
revsie avatar

revsie

New Zenner

Join Date:
Apr 2007
Location:
Crawley, West Sussex, UK
Posts:
23
Plugin Contributions:
0

Re: Home Linux Server - Gmail help -- how to forward through gmail if using postfix

When I send e-mail from Thunderbird the smtp details are:

server: smtp.gmail.com
port: 587

When I set up google apps it never asked me for a prefix.

I tested this out by applying for a google apps account for my personal web site.

[email protected] is the only account open on google apps and is the only I have been using.

Email domain? I am not sure where to find this out. When I set postfix up I set it up as mail.gameitus.com

15 Apr 2007, 12:32 PM
#25
chuckl avatar

chuckl

Totally Zenned

Join Date:
Nov 2006
Location:
Papworth, Cambridgeshire, UK
Posts:
717
Plugin Contributions:
0

Re: Home Linux Server - Gmail help -- how to forward through gmail if using postfix

then I guess the next question is how do you retrieve mail for [email protected]?

15 Apr 2007, 12:38 PM
#26
revsie avatar

revsie

New Zenner

Join Date:
Apr 2007
Location:
Crawley, West Sussex, UK
Posts:
23
Plugin Contributions:
0

Re: Home Linux Server - Gmail help -- how to forward through gmail if using postfix

I can receive them through the web mail interface or through pop with Thunderbird which uses ssl on port 995.

15 Apr 2007, 1:05 PM
#27
chuckl avatar

chuckl

Totally Zenned

Join Date:
Nov 2006
Location:
Papworth, Cambridgeshire, UK
Posts:
717
Plugin Contributions:
0

Re: Home Linux Server - Gmail help -- how to forward through gmail if using postfix

I think you need to create a couple more accounts there if we are trying to test logons and mail transfer. Mail servers are usually not too happy with you logging on as [email protected] to send mail to themself. Maybe create an admin@ or something like that?

15 Apr 2007, 1:21 PM
#28
revsie avatar

revsie

New Zenner

Join Date:
Apr 2007
Location:
Crawley, West Sussex, UK
Posts:
23
Plugin Contributions:
0

Re: Home Linux Server - Gmail help -- how to forward through gmail if using postfix

I have set up another account [email protected].

This is all now working.

15 Apr 2007, 1:29 PM
#29
revsie avatar

revsie

New Zenner

Join Date:
Apr 2007
Location:
Crawley, West Sussex, UK
Posts:
23
Plugin Contributions:
0

Re: Home Linux Server - Gmail help -- how to forward through gmail if using postfix

revsie:

I have set up another account [email protected].

This is all now working.

The admin account that is.

15 Apr 2007, 2:48 PM
#30
revsie avatar

revsie

New Zenner

Join Date:
Apr 2007
Location:
Crawley, West Sussex, UK
Posts:
23
Plugin Contributions:
0

Re: Home Linux Server - Gmail help -- how to forward through gmail if using postfix

Although zen cart is still not sending e-mails.

15 Apr 2007, 2:58 PM
#31
revsie avatar

revsie

New Zenner

Join Date:
Apr 2007
Location:
Crawley, West Sussex, UK
Posts:
23
Plugin Contributions:
0

Re: Home Linux Server - Gmail help -- how to forward through gmail if using postfix

Now I have had an idea.

I have heard about this pop over or before smtp when you have to log in with pop details before you can send email's. Is that what is happening here?

Is that even possable to setup within postfix?

15 Apr 2007, 6:46 PM
#32
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Home Linux Server - Gmail help -- how to forward through gmail if using postfix

I'm going to interject a question from the sidelines ... just an observation and I'm sure others would be interested in knowing ...

... what is the rationale behind hosting this yourself vs on a commercially-hosted webserver ?

A commercial webserver wouldn't have the port 25 limitation. It would have a built-in mailserver which would allow you to send emails directly from your own domain. It would have faster bandwidth access. And technical administration wouldn't have to be handled by yourself.

Just a thought. Some like to handle it directly. I would think that you'd maybe rather spend your time running the store than managing the server. Not to mention the improved performance of having the server sit directly on a public ISP backbone.

To each his own of course.

*We now return to our regularly scheduled programming ... *

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

15 Apr 2007, 7:49 PM
#33
revsie avatar

revsie

New Zenner

Join Date:
Apr 2007
Location:
Crawley, West Sussex, UK
Posts:
23
Plugin Contributions:
0

Re: Home Linux Server - Gmail help -- how to forward through gmail if using postfix

This is a good question and I am happy to answer.

I am new to Zen Cart and I have heard a lot of great things about it.
I would like to test it out before I start using it properly and using a home server makes this learning curve more financially viable.

It is a large piece of software and learning how to adapt and control the aspects of Zen Cart is not gonna happen overnight and it is very helpful to have this at home.

Also having these little problems and resolving them makes the forum a better place for people wanting to find resolutions for their problems so in turn makes it possible for more people to use Zen Cart who may not have because of their problems.

Also the home server thing was a personal project of my own and so now I have it why not use it.

I understand Web Hosting services are a much better idea and once I know how to use Zen Cart I will move over to them but for now I am happy learning here on my home server.

And I would just like to add that this all makes for a better community. I have really enjoyed the forum here and I am very grateful to Chuckl for all the help.

15 Apr 2007, 8:05 PM
#34
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Home Linux Server - Gmail help -- how to forward through gmail if using postfix

Understood. Those are good reasons. And they are the kinds of reasons I'd hoped you'd mention ... because that's the rationale a future reader of this thread needs to see ... and compare with ... to determine whether this is the right approach for them or not, and possibly understand better some of the challenges they might face in continuing down this road.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

16 Apr 2007, 9:37 AM
#35
chuckl avatar

chuckl

Totally Zenned

Join Date:
Nov 2006
Location:
Papworth, Cambridgeshire, UK
Posts:
717
Plugin Contributions:
0

Re: Home Linux Server - Gmail help -- how to forward through gmail if using postfix

I'm back, one DSLAM and one router later. Line suddenly went away, amazing how it always happens out of support hours...
I noticed tho, there's a whole world out there during the day, sun, plants, birds animals...

Revsie, there's a zip attached with some sample postfix files, could you PM me with an email add. if you would, for some extra files.
I've tested these to gmail and they work fine.

16 Apr 2007, 11:18 AM
#36
revsie avatar

revsie

New Zenner

Join Date:
Apr 2007
Location:
Crawley, West Sussex, UK
Posts:
23
Plugin Contributions:
0

Re: Home Linux Server - Gmail help -- how to forward through gmail if using postfix

Thanks Chuckl. It's good to see you back. It wouldn't be the same without you.

I will send everything over as soon as I can.

16 Apr 2007, 7:44 PM
#37
revsie avatar

revsie

New Zenner

Join Date:
Apr 2007
Location:
Crawley, West Sussex, UK
Posts:
23
Plugin Contributions:
0

Re: Home Linux Server - Gmail help -- how to forward through gmail if using postfix

Hi,

I tried everything you asked but still nothing although the mail.log makes for interesting reading.

Looks like there maybe some more setting up to do.

What do you suggest?

16 Apr 2007, 7:55 PM
#38
revsie avatar

revsie

New Zenner

Join Date:
Apr 2007
Location:
Crawley, West Sussex, UK
Posts:
23
Plugin Contributions:
0

Re: Home Linux Server - Gmail help -- how to forward through gmail if using postfix

I have looked at the main.cf file and it looks like it might have something to do with the line: mydestination = /etc/postfix/local-host-names.

I am unsure how to fix it or what it should be.

18 Apr 2007, 9:00 PM
#39
revsie avatar

revsie

New Zenner

Join Date:
Apr 2007
Location:
Crawley, West Sussex, UK
Posts:
23
Plugin Contributions:
0

Re: Home Linux Server - Gmail help -- how to forward through gmail if using postfix

Just a quick one for anyone following this post.

Chuckl has got it working. If you have a gmail account you should be able to forward your e-mails through your account.

Chuckl has been busy setting all this up and I believe he is gonna post a how to at some point.

The guy is a genius and I take my hat off to him and offer him all my thanks.

Well done Chuckl. :clap:

21 Apr 2007, 7:35 PM
#40
chuckl avatar

chuckl

Totally Zenned

Join Date:
Nov 2006
Location:
Papworth, Cambridgeshire, UK
Posts:
717
Plugin Contributions:
0

Re: Home Linux Server - Gmail help -- how to forward through gmail if using postfix

For anyone interested in this, I've attached some config files and notes on the setup.

Rgds,

Chuck