LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Postfix not sending mail, using google apps (https://www.linuxquestions.org/questions/linux-server-73/postfix-not-sending-mail-using-google-apps-741791/)

scsa20 07-21-2009 04:57 PM

Postfix not sending mail, using google apps
 
Alright, I've searched and searched and searched and have decided to break down and ask my question on here. So here's the deal, I would like to have all my domains on my Linux server to be using google apps and the MX records and what not is all configured and is working (I can send an email from my normal GMail account (username@gmail.com) to my google apps email (username@domain.com) and vis versa and I can also email back to myself as long as I don't do the allies that I've made and this is all using Outlook). But what's happening is that some of the PHP scripts that I have uses the mail() call function and it's not sending the mail out but instead holding it in the mail queue doing nothing but rust.

I've searched all over the place on how to configure it for google apps from which one says to create a cert with openssl but when I try to for the last part it Keep getting an error about not finding a file (if I had the link of the steps I was following I would of been more then happy to link it). Plus it seems like most of those articles were out of date anyways and more likely for an older version of openssl is what I figure.

But, anyways, I've tried many different settings to get it working but seems to not want to work. If anyone can please help me out to get it to actually send mail I'll be really thankful, hell, I don't even care if we use my ISP's mail server (which is smtp.west.cox.net using SSL port 465 compare to google's TLS port 564 and more stubborn).

Here's my maillog information:

Code:

Jul 21 12:02:21 sakura postfix/postfix-script: stopping the Postfix mail system
Jul 21 12:02:21 sakura postfix/master[8210]: terminating on signal 15
Jul 21 12:02:21 sakura postfix/postfix-script: starting the Postfix mail system
Jul 21 12:02:21 sakura postfix/master[8720]: daemon started -- version 2.3.3, configuration /etc/postfix
Jul 21 12:05:57 sakura postfix/postsuper[8857]: 4F308AB03E1: removed
Jul 21 12:05:57 sakura postfix/postsuper[8857]: Deleted: 1 message
Jul 21 12:57:44 sakura postfix/postfix-script: refreshing the Postfix mail system
Jul 21 12:57:44 sakura postfix/master[8720]: reload configuration /etc/postfix
Jul 21 12:57:58 sakura postfix/postfix-script: fatal: usage: postfix start (or stop, reload, abort, flush, check, set-permissions, upgrade-configuration)
Jul 21 12:59:49 sakura postfix/postfix-script: stopping the Postfix mail system
Jul 21 12:59:49 sakura postfix/master[8720]: terminating on signal 15
Jul 21 12:59:49 sakura postfix/postfix-script: starting the Postfix mail system
Jul 21 12:59:49 sakura postfix/master[9358]: daemon started -- version 2.3.3, configuration /etc/postfix
Jul 21 13:00:22 sakura postfix/pickup[9359]: 52915AB03FC: uid=0 from=<root>
Jul 21 13:00:22 sakura postfix/cleanup[9366]: 52915AB03FC: message-id=<20090721200022.52915AB03FC@sakura.simon-soft.com>
Jul 21 13:00:22 sakura postfix/qmgr[9361]: 52915AB03FC: from=<root@sakura.simon-soft.com>, size=336, nrcpt=1 (queue active)
Jul 21 13:00:22 sakura postfix/smtpd[9372]: connect from unknown[127.0.0.1]
Jul 21 13:00:22 sakura postfix/smtp[9368]: 52915AB03FC: to=<scsa20@gmail.com>, relay=127.0.0.1[127.0.0.1]:10027, delay=0.09, delays=0.02/0.01/0.06/0, dsn=4.7.4, status=deferred (TLS is required, but was not offered by host 127.0.0.1[127.0.0.1])
Jul 21 20:00:22 sakura postfix/smtpd[9372]: lost connection after EHLO from unknown[127.0.0.1]
Jul 21 20:00:22 sakura postfix/smtpd[9372]: disconnect from unknown[127.0.0.1]
Jul 21 13:33:09 sakura postfix/qmgr[9361]: 52915AB03FC: from=<root@sakura.simon-soft.com>, size=336, nrcpt=1 (queue active)
Jul 21 13:33:09 sakura postfix/smtpd[9455]: connect from unknown[127.0.0.1]
Jul 21 13:33:09 sakura postfix/smtp[9452]: 52915AB03FC: to=<scsa20@gmail.com>, relay=127.0.0.1[127.0.0.1]:10027, delay=1968, delays=1968/0.01/0.06/0, dsn=4.7.4, status=deferred (TLS is required, but was not offered by host 127.0.0.1[127.0.0.1])
Jul 21 20:33:09 sakura postfix/smtpd[9455]: lost connection after EHLO from unknown[127.0.0.1]
Jul 21 20:33:09 sakura postfix/smtpd[9455]: disconnect from unknown[127.0.0.1]
Jul 21 13:54:50 sakura postfix/postfix-script: refreshing the Postfix mail system
Jul 21 13:54:50 sakura postfix/master[9358]: reload configuration /etc/postfix
Jul 21 13:55:08 sakura postfix/postfix-script: stopping the Postfix mail system
Jul 21 13:55:08 sakura postfix/master[9358]: terminating on signal 15
Jul 21 13:55:08 sakura postfix/postfix-script: starting the Postfix mail system
Jul 21 13:55:08 sakura postfix/master[9571]: daemon started -- version 2.3.3, configuration /etc/postfix
Jul 21 13:58:23 sakura postfix/postsuper[9645]: 52915AB03FC: removed
Jul 21 13:58:23 sakura postfix/postsuper[9645]: Deleted: 1 message
Jul 21 14:00:19 sakura postfix/pickup[9573]: AEE8FAB03FC: uid=0 from=<root>
Jul 21 14:00:19 sakura postfix/cleanup[9690]: AEE8FAB03FC: message-id=<20090721210019.AEE8FAB03FC@sakura.simon-soft.com>
Jul 21 14:00:19 sakura postfix/qmgr[9574]: AEE8FAB03FC: from=<root@sakura.simon-soft.com>, size=336, nrcpt=1 (queue active)
Jul 21 14:00:19 sakura postfix/smtpd[9695]: connect from unknown[127.0.0.1]
Jul 21 21:00:19 sakura postfix/smtpd[9695]: C2CD1AB03E1: client=unknown[127.0.0.1]
Jul 21 14:00:19 sakura before-remote[9694]: check handlers for addr: root@sakura.simon-soft.com
Jul 21 14:00:19 sakura before-remote[9694]: check handlers for addr: scsa20@gmail.com
Jul 21 14:00:19 sakura postfix/cleanup[9690]: C2CD1AB03E1: message-id=<20090721210019.AEE8FAB03FC@sakura.simon-soft.com>
Jul 21 14:00:19 sakura postfix/qmgr[9574]: C2CD1AB03E1: from=<root@sakura.simon-soft.com>, size=523, nrcpt=1 (queue active)
Jul 21 14:00:19 sakura postfix/smtp[9692]: AEE8FAB03FC: to=<scsa20@gmail.com>, relay=127.0.0.1[127.0.0.1]:10027, delay=0.14, delays=0.02/0.01/0.07/0.05, dsn=2.0.0, status=sent (250 2.0.0 Ok: queued as C2CD1AB03E1)
Jul 21 14:00:19 sakura postfix/qmgr[9574]: AEE8FAB03FC: removed
Jul 21 21:00:19 sakura postfix/smtpd[9695]: disconnect from unknown[127.0.0.1]
Jul 21 14:00:49 sakura postfix/smtp[9698]: connect to gmail-smtp-in.l.google.com[209.85.210.75]: Connection timed out (port 25)
Jul 21 14:00:50 sakura postfix/postfix-script: fatal: usage: postfix start (or stop, reload, abort, flush, check, set-permissions, upgrade-configuration)
Jul 21 14:01:19 sakura postfix/smtp[9698]: connect to alt1.gmail-smtp-in.l.google.com[209.85.218.40]: Connection timed out (port 25)
Jul 21 14:01:49 sakura postfix/smtp[9698]: connect to alt2.gmail-smtp-in.l.google.com[209.85.129.27]: Connection timed out (port 25)
Jul 21 14:02:19 sakura postfix/smtp[9698]: connect to alt3.gmail-smtp-in.l.google.com[209.85.135.114]: Connection timed out (port 25)
Jul 21 14:02:49 sakura postfix/smtp[9698]: connect to alt4.gmail-smtp-in.l.google.com[209.85.221.100]: Connection timed out (port 25)
Jul 21 14:02:49 sakura postfix/smtp[9698]: C2CD1AB03E1: to=<scsa20@gmail.com>, relay=none, delay=150, delays=0.04/0.01/150/0, dsn=4.4.1, status=deferred (connect to alt4.gmail-smtp-in.l.google.com[209.85.221.100]: Connection timed out)
Jul 21 14:03:08 sakura postfix/smtpd[9806]: connect from unknown[127.0.0.1]
Jul 21 21:03:08 sakura postfix/smtpd[9806]: disconnect from unknown[127.0.0.1]
Jul 21 14:28:28 sakura postfix/qmgr[9574]: C2CD1AB03E1: from=<root@sakura.simon-soft.com>, size=523, nrcpt=1 (queue active)
Jul 21 14:28:58 sakura postfix/smtp[9972]: connect to gmail-smtp-in.l.google.com[209.85.210.61]: Connection timed out (port 25)
Jul 21 14:29:28 sakura postfix/smtp[9972]: connect to alt1.gmail-smtp-in.l.google.com[209.85.133.27]: Connection timed out (port 25)
Jul 21 14:29:58 sakura postfix/smtp[9972]: connect to alt2.gmail-smtp-in.l.google.com[209.85.129.114]: Connection timed out (port 25)
Jul 21 14:30:28 sakura postfix/smtp[9972]: connect to alt3.gmail-smtp-in.l.google.com[209.85.217.42]: Connection timed out (port 25)
Jul 21 14:30:58 sakura postfix/smtp[9972]: connect to alt4.gmail-smtp-in.l.google.com[209.85.221.47]: Connection timed out (port 25)
Jul 21 14:30:58 sakura postfix/smtp[9972]: C2CD1AB03E1: to=<scsa20@gmail.com>, relay=none, delay=1839, delays=1689/0.01/150/0, dsn=4.4.1, status=deferred (connect to alt4.gmail-smtp-in.l.google.com[209.85.221.47]: Connection timed out)
Jul 21 14:35:45 sakura postfix/postsuper[10047]: C2CD1AB03E1: removed
Jul 21 14:35:45 sakura postfix/postsuper[10047]: Deleted: 1 message

Using CentOS 5
-- Linux Version 2.6.18-128.2.1.el5 (mockbuild@builder16.centos.org) (gcc version 4.1.2 20080704 (Red Hat 4.1.2-44))
Also using Plesk Panel 9.2.1 for controlling the domains and DNS records
Postfix version 2.3.3
OpenSSL version 0.9.8e

Any other information I need or missing to help let me know.

scsa20 07-24-2009 02:04 PM

Hate to double post here but still looking for some help on this matter.

scsa20 07-28-2009 05:29 PM

Alright, after digging in and pulling my hair out, I decided to give my hosting provider's smtp server a shot and made a few changes and got it going so it's working now.


All times are GMT -5. The time now is 07:38 PM.