Page 2 of 5 FirstFirst 1234 ... LastLast
Results 11 to 20 of 41
  1. #11
    Join Date
    Nov 2006
    Location
    Papworth, Cambridgeshire, UK
    Posts
    731
    Plugin Contributions
    3

    Default Re: Home Linux Server - Gmail help

    No need to apologise for any lack of knowledge. Postfix mail log is called mail.log and hopefully is in /var/log/ along with a whole host of other log files.

    When you set to PHP and hit send, do you get the mail sent message in admin? If so, thats a very good sign, and don't worry about sendmail, etc at this stage, not important.

    When you set the mail transport to PHP, it uses PHP code in PHPMailer to send the mail from the Apache server, usually as a mythical user called www-data, who is the Apache servers phantom persona to do such things. The question at present is whether Postfix is prepared to accept mail from this ethereal fellow.

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

    Default Re: Home Linux Server - Gmail help

    Admin?

    How would I go about finding that out?

    I have never received an email or anything for that matter when I have tried sending them from my web server.

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

    Default Re: Home Linux Server - Gmail help

    Sorry, I meant Zen Cart admin, under Tools, the send email function there

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

    Default Re: Home Linux Server - Gmail help

    Ok.

    Just found the error log. Have no idea what it all means.

    You can view it at http://84.66.109.245/errorlog.txt

    I will try your other suggestion as soon as poss.

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

    Default Re: Home Linux Server - Gmail help

    OK, we make progress. Postfix looks like it is accepting mail from the Apache server, which is what we wanted to accomplish.

    Apr 14 17:00:30 server postfix/qmgr[5290]: 71FA0694062: from=<www-data@mail.gameitus.com>, size=912, nrcpt=1 (queue active)
    Apr 14 21:09:59 server postfix/qmgr[5290]: AA245694068: from=<www-data@mail.gameitus.com>, size=912, nrcpt=1 (queue active)
    Apr 14 21:12:20 server postfix/qmgr[5290]: 71FA0694062: from=<www-data@mail.gameitus.com>, size=912, nrcpt=1 (queue active)

    And Postfix is trying furiously to talk to gmail to pass the mail on, but I suspect that the port 25 block is preventing it.

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

    Default Re: Home Linux Server - Gmail help

    Well gmail say's that it's port for smtp is 465 or 587 as you can see here

    I used to try and send email's with Thunderbird through port 25 and they got blocked but when I started using gmail and used port 587 the e-mails sent without a problem.

    I am sure there must be a way in which postfix can send e-mails out through this port so the google server.

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

    Default Re: Home Linux Server - Gmail help

    There is indeed, which is our potential next step. Couple of questions first, as consistency becomes important in the near future.

    Did you see any mail sent confirmation messages from the ZC admin send email?
    Then,
    Firstly, if you do a

    cat /etc/hosts

    from the command line, what does it give you on the 127.0.0.1 line output?

    Should be something like

    127.0.0.1 localhost something.mydomain.com

    Secondly, the mail.gameitus.com name, is that a real name, or an assumption that mail servers are called mail.something?

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

    Default Re: Home Linux Server - Gmail help

    Well in the 127.0.0.1 output it just said localhost.

    Is this wrong. And when I installed postfix I called it mail.gameitus.com.
    Not sure if that was right. But I have done some other config since after looking at more tutorials on How to forge.

    Maybe I overwrote the host name.

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

    Default Re: Home Linux Server - Gmail help

    Not the end of the world, however you should edit /etc/hosts at some stage and add the full name of your server after the word localhost ( a space between localhost and the name is good).
    e.g. 127.0.0.1 localhost myserver.mydomain.com

    There may well be a line below that with the IP address of the machine together with the machine name.
    e.g.

    192.168.0.1 myserver

    and ideally that should be

    192.168.0.1 myserver.mydomain.com myserver

    None of that is anything other than dotting i's and crossing t's, and can wait till we are done.

    There is a file in /etc/postfix/ called master.cf Near the top is a line that should read something like

    smtp inet n - - - - smtpd

    This tells Postfix that for smtp port 25 it must use the secure authentication daemon. You want to duplicate that line on a new line immediately below that but replace the smtp with the port number 587
    i.e.

    587 inet n - - - - smtpd

    and save the file.

    I have also seen comments that uncommenting the line immediately below the smtp line (the one starting submission - remove the #) will do the same thing.

    You will then need to restart Postfix,

    /etc/init.d/postfix restart

    and try sending email from ZC admin, then post the mail log.

    We may well have to do some DNS edits and fixup to make everybody happy, but we're getting closer

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

    Default Re: Home Linux Server - Gmail help

    I think this is why people get nervous about using Linux. I enjoy playing around and getting things to work but the other people I know would run a mile. But then again they can't even use the internet properly.

    Right, I made all the changes Master Chuckl and I have restarted postfix. I tried to send a mail through admin and it said the email was sent.

    Nothing arrived but I have updated the error log that I posted a little while back. http://84.66.109.245/errorlog.txt

    Now the error at the bottom looks interesting. I think we are making progress .

    Chuckl you should be called Master Zen. Of the e-mail section anyway.

 

 
Page 2 of 5 FirstFirst 1234 ... LastLast

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
  •