Results 1 to 10 of 41

Hybrid View

  1. #1
    Join Date
    Apr 2007
    Location
    Crawley, West Sussex, UK
    Posts
    23
    Plugin Contributions
    0

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

    Hi

    Now I know this all seems to be a little long in the tooth with the gmail thing.

    I have a home server and it runs Ubuntu Linux 6.06.
    I have installed zencart in my webspace and I am really excited about this program but my git of an ISP has blocked port 25 for spam reasons.

    I have been reading all the gmail posts and tried most things inc. usins sendmail, smtp, smtpauth. I have tried ports 587 and 465.

    Nothing seems to work. My gmail accout is a hosted account.

    It ask's for the starttls stuff that I have read zencart is unable to do at present but is there a way to run a mail server on my home server and relay it on to gmail using the starttls function?

    Also is there a way to alter the sendmail config to do this?

    Thanks for your help in advance.

    Revsie

  2. #2
    Join Date
    Nov 2006
    Location
    Papworth, Cambridgeshire, UK
    Posts
    731
    Plugin Contributions
    3

    Default Re: Home Linux Server - Gmail help

    The short answer is yes, you can install a mail server on an Ubuntu 6.06 home server. However, your post covers an awful lot of ground, so it is possibily not true to say that it will solve your problem. If your ISP is blocking port 25 your mail server might find it difficult to talk to any other mail servers.
    This can be solved if your domain registrar has default mail servers for your domain, by using port 587 or similar to transfer mail between your server and the domain servers.
    regarding Gmail, it sounds to me as if you are trying to get Gmail to relay mail on behalf of your domain, which is probably not going to impress Gmail very much. This may well not be the case with a Google Apps setup, but there are DNS MX record considerations at your domain reg. If I remember correctly, Gmail uses ports 465 and 995, not 587.
    Regarding a local mail server on your Ubuntu machine, a potential advantage is that it would enable your Zencart to use PHP for the mail transport, simplifying your local config. I'd suggest Postfix rather than sendmail, as sendmail is not for the faint hearted. howtoforge.com have a perfect ubuntu 6.06 setup that might be useful.

  3. #3
    Join Date
    Apr 2007
    Location
    Crawley, West Sussex, UK
    Posts
    23
    Plugin Contributions
    0

    Default Re: Home Linux Server - Gmail help

    Thanks for the advice Chuckl. I will try postfix but must admit I have not had much luck in the past.

    My server used to have windows running it but I decided to change to Linux for the experience and also the safer more secure OS that it is.

    I have been reading a lot on the How to Forge website which is where I got the info for setting my linux server up in the first place.

    I will give it a go but if you find a good step by step guide for a linux newbie on how to set this up please let me know.

    Thanks again Chuckl.

  4. #4
    Join Date
    Nov 2006
    Location
    Papworth, Cambridgeshire, UK
    Posts
    731
    Plugin Contributions
    3

    Default Re: Home Linux Server - Gmail help

    For the first Ubuntu server I set up to evaluate it, I simply followed the howtoforge perfect setup in toto, using IspConfig etc, and added Webmin as an alternate/additional admin frontend. That gets you a fairly solid and secure base.
    That said, if you get any funnies or error messages during that process, investigate and fix.
    You could also install VmWare and download the IspConfig appliance and install it, which gives a similar result, but a bit of computer horsepower is needed, and some knowledge of German is desirable to do the basic config. The default keyboard layout is German, for starters.

    On the mail server side, it is absolutely crucial to get the DNS MX records correct, and not just on your DNS server if you are running one.e.g. My domain registrars' mail servers will accept mail for my domains by defult, and the MX records define them as the definitive servers for that domain, typically set at a priority of 10 or 20 or so.
    The admin panel allows me to define email addresses for the domain, mail forwarding, catchall forwarding etc. Some of those settings have very unexpected results however, and can kill all mail for the domain.
    Once I had my mail server set up, it was necessary to add DNS name records there for the mail server, and an MX record for the mail server with a lower (numeric) priority than their servers. That way, their mail servers would still accept mail for the domain, but forward it to my server.
    Home router also had to be set with static IP and DMZ type forwarding to the server machine.

    Hope that helps a bit, and have fun.

  5. #5
    Join Date
    Apr 2007
    Location
    Crawley, West Sussex, UK
    Posts
    23
    Plugin Contributions
    0

    Default Re: Home Linux Server - Gmail help

    Ok. I have followed the tutorials on How To Forge website and everything seems to be working properly but I get this error. Warning it's a long one.

    ------------------- SMTP -> get_lines(): $data was "" SMTP -> get_lines(): $str is "220 mail.gameitus.com ESMTP Postfix (Ubuntu) " SMTP -> get_lines(): $data is "220 mail.gameitus.com ESMTP Postfix (Ubuntu) " SMTP -> FROM SERVER: 220 mail.gameitus.com ESMTP Postfix (Ubuntu) ------------------- SMTP -> get_lines(): $data was "" SMTP -> get_lines(): $str is "250-mail.gameitus.com " SMTP -> get_lines(): $data is "250-mail.gameitus.com " ------------------- SMTP -> get_lines(): $data was "250-mail.gameitus.com " SMTP -> get_lines(): $str is "250-PIPELINING " SMTP -> get_lines(): $data is "250-mail.gameitus.com 250-PIPELINING " ------------------- SMTP -> get_lines(): $data was "250-mail.gameitus.com 250-PIPELINING " SMTP -> get_lines(): $str is "250-SIZE 10240000 " SMTP -> get_lines(): $data is "250-mail.gameitus.com 250-PIPELINING 250-SIZE 10240000 " ------------------- SMTP -> get_lines(): $data was "250-mail.gameitus.com 250-PIPELINING 250-SIZE 10240000 " SMTP -> get_lines(): $str is "250-VRFY " SMTP -> get_lines(): $data is "250-mail.gameitus.com 250-PIPELINING 250-SIZE 10240000 250-VRFY " ------------------- SMTP -> get_lines(): $data was "250-mail.gameitus.com 250-PIPELINING 250-SIZE 10240000 250-VRFY " SMTP -> get_lines(): $str is "250-ETRN " SMTP -> get_lines(): $data is "250-mail.gameitus.com 250-PIPELINING 250-SIZE 10240000 250-VRFY 250-ETRN " ------------------- SMTP -> get_lines(): $data was "250-mail.gameitus.com 250-PIPELINING 250-SIZE 10240000 250-VRFY 250-ETRN " SMTP -> get_lines(): $str is "250-STARTTLS " SMTP -> get_lines(): $data is "250-mail.gameitus.com 250-PIPELINING 250-SIZE 10240000 250-VRFY 250-ETRN 250-STARTTLS " ------------------- SMTP -> get_lines(): $data was "250-mail.gameitus.com 250-PIPELINING 250-SIZE 10240000 250-VRFY 250-ETRN 250-STARTTLS " SMTP -> get_lines(): $str is "250-AUTH PLAIN LOGIN " SMTP -> get_lines(): $data is "250-mail.gameitus.com 250-PIPELINING 250-SIZE 10240000 250-VRFY 250-ETRN 250-STARTTLS 250-AUTH PLAIN LOGIN " ------------------- SMTP -> get_lines(): $data was "250-mail.gameitus.com 250-PIPELINING 250-SIZE 10240000 250-VRFY 250-ETRN 250-STARTTLS 250-AUTH PLAIN LOGIN " SMTP -> get_lines(): $str is "250-AUTH=PLAIN LOGIN " SMTP -> get_lines(): $data is "250-mail.gameitus.com 250-PIPELINING 250-SIZE 10240000 250-VRFY 250-ETRN 250-STARTTLS 250-AUTH PLAIN LOGIN 250-AUTH=PLAIN LOGIN " ------------------- SMTP -> get_lines(): $data was "250-mail.gameitus.com 250-PIPELINING 250-SIZE 10240000 250-VRFY 250-ETRN 250-STARTTLS 250-AUTH PLAIN LOGIN 250-AUTH=PLAIN LOGIN " SMTP -> get_lines(): $str is "250 8BITMIME " SMTP -> get_lines(): $data is "250-mail.gameitus.com 250-PIPELINING 250-SIZE 10240000 250-VRFY 250-ETRN 250-STARTTLS 250-AUTH PLAIN LOGIN 250-AUTH=PLAIN LOGIN 250 8BITMIME " SMTP -> FROM SERVER: 250-mail.gameitus.com 250-PIPELINING 250-SIZE 10240000 250-VRFY 250-ETRN 250-STARTTLS 250-AUTH PLAIN LOGIN 250-AUTH=PLAIN LOGIN 250 8BITMIME ------------------- SMTP -> get_lines(): $data was "" SMTP -> get_lines(): $str is "250 Ok " SMTP -> get_lines(): $data is "250 Ok " SMTP -> FROM SERVER: 250 Ok ------------------- SMTP -> get_lines(): $data was "" SMTP -> get_lines(): $str is "554 : Recipient address rejected: Relay access denied " SMTP -> get_lines(): $data is "554 : Recipient address rejected: Relay access denied " SMTP -> FROM SERVER: 554 : Recipient address rejected: Relay access denied SMTP -> ERROR: RCPT not accepted from server: 554 : Recipient address rejected: Relay access denied ------------------- SMTP -> get_lines(): $data was "" SMTP -> get_lines(): $str is "250 Ok " SMTP -> get_lines(): $data is "250 Ok " SMTP -> FROM SERVER: 250 Ok

    Email Error: SMTP Error: The following recipients failed: [email protected]

    Now I am not exactly sure what it all means but the Relay access denied seems pretty obvious. Now what exactly do you think I could do about that?

    I know that with Mozilla Thunderbird I am able to send messages through but it's not working with postfix for some reason.

    Any Ideas?

  6. #6
    Join Date
    Nov 2006
    Location
    Papworth, Cambridgeshire, UK
    Posts
    731
    Plugin Contributions
    3

    Default Re: Home Linux Server - Gmail help

    Whoa do you have logging cranked up 11 or so!! If the mail server and website are on the same server, change the mail transport to PHP and try that. i.e. the mail server should theoretically accept mail from a domain website on 'itself'. There is no point in using SMTP to talk from a website to a mail server on the same machine.
    There are a couple of setup issues that could put a spoke in however.
    In order for the outside world to be happy with the mailserver, you would need to add a couple of records to the definitive/authoritative name server for your domain - usually at your domain registrar. First a name record for mail.gameitus.com pointing to the IP address you are using for the server. This should be an IP that is visible to the internet - e.g. the external IP of your router, not a non routable Ip address of the machine - e.g. 192.168.0.xxx.
    Secondly, a DNS MX record for mail.gameitus.com with a priority that is numerically lower than any other gameitus.com mail server priorities. This flags your server as the chief honcho mail server for the domain.

 

 

Similar Threads

  1. v139f Re: Problems trying to send site email through gmail server....
    By osdparts in forum Basic Configuration
    Replies: 11
    Last Post: 15 Mar 2013, 06:48 AM
  2. Replies: 13
    Last Post: 15 Feb 2012, 10:04 PM
  3. through contact_us page, can not receive the gmail
    By ebloger in forum General Questions
    Replies: 1
    Last Post: 28 Feb 2011, 11:41 AM
  4. Email script troubles using Gmail
    By sirdouglas in forum General Questions
    Replies: 8
    Last Post: 16 Jun 2010, 06:31 PM
  5. Sending using my gmail account
    By HappyMom in forum Installing on a Linux/Unix Server
    Replies: 1
    Last Post: 24 Jun 2006, 06:34 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR