unable to send mail from postfix on Ubuntu 12.04

Posted by gilmad on Ask Ubuntu See other posts from Ask Ubuntu or by gilmad
Published on 2012-12-14T08:43:46Z Indexed on 2012/12/14 11:20 UTC
Read the original article Hit count: 260

Filed under:
|
|
|

I'm trying to send an email through Google from my localhost. (via PHP5.3)

But Google keeps on blocking my requests.

I tried to follow the solutions given to a few similar questions, but for some reason they do not work.

I followed these instructions to configure it - http://www.dnsexit.com/support/mailrelay/postfix.html

Now for the config data:

  • my main.cf file looks like that:

relayhost = [smtp.gmail.com]:587
smtp_fallback_relay = [relay.google.com]
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
smtp_sasl_security_options =

  • my sasl_passwd looks like that:

[smtp.gmail.com]:587 [email protected]:password

  • and that is how the mail.log rows look like:

Dec 14 10:24:50 COMP-NAME postfix/pickup[5185]: 1C3987E0EDD: uid=33 from=

Dec 14 10:24:50 COMP-NAME postfix/cleanup[5499]: 1C3987E0EDD: message-id=<[email protected]>

Dec 14 10:24:50 COMP-NAME postfix/qmgr[5186]: 1C3987E0EDD: from=, size=483, nrcpt=1 (queue active)

Dec 14 10:24:50 COMP-NAME postfix/smtp[5501]: 1C3987E0EDD: to=, relay=smtp.gmail.com[173.194.70.109]:587, delay=0.61, delays=0.19/0/0.32/0.1, dsn=5.7.0, status=bounced (host smtp.gmail.com[173.194.70.109] said: 530 5.7.0 Must issue a STARTTLS command first. w3sm8024250eel.17 (in reply to MAIL FROM command))

Dec 14 10:24:50 COMP-NAME postfix/cleanup[5499]: C20677E0EDE: message-id=<[email protected]>

Dec 14 10:24:50 COMP-NAME postfix/bounce[5502]: 1C3987E0EDD: sender non-delivery notification: C20677E0EDE

Dec 14 10:24:50 COMP-NAME postfix/qmgr[5186]: C20677E0EDE: from=<>, size=2532, nrcpt=1 (queue active)

Dec 14 10:24:50 COMP-NAME postfix/qmgr[5186]: 1C3987E0EDD: removed

© Ask Ubuntu or respective owner

Related posts about 12.04

Related posts about php