Daniel Watrous
2015-02-19 14:49:51 UTC
Hi,
I am running an Ubuntu server inside virtualbox on Windows (created using Vagrant). The server is configured to run a LEMP stack and I would like the mail function in PHP to work, so I installed postfix.
Unfortunately it won't send any email. Here's the command line I ran to send a test email.
***@vagrant-ubuntu-trusty-64:~$ echo "This is the body of the email" | mail -s "This is the subject line" ***@gmail.com
Here are the logs:
Feb 19 14:41:09 vagrant-ubuntu-trusty-64 postfix/pickup[10527]: BE65C408C6: uid=1000 from=<***@vagrant-ubuntu-trusty-64>
Feb 19 14:41:09 vagrant-ubuntu-trusty-64 postfix/cleanup[10904]: BE65C408C6: message-id=<***@vagrant-ubuntu-trusty-64>
Feb 19 14:41:09 vagrant-ubuntu-trusty-64 postfix/qmgr[10528]: BE65C408C6: from=<***@vagrant-ubuntu-trusty-64>, size=409, nrcpt=1 (queue active)
Feb 19 14:41:39 vagrant-ubuntu-trusty-64 postfix/smtp[10906]: connect to gmail.com[74.125.21.19]:25: Connection timed out
Feb 19 14:42:09 vagrant-ubuntu-trusty-64 postfix/smtp[10906]: connect to gmail.com[74.125.21.17]:25: Connection timed out
Feb 19 14:42:39 vagrant-ubuntu-trusty-64 postfix/smtp[10906]: connect to gmail.com[74.125.21.83]:25: Connection timed out
Feb 19 14:43:09 vagrant-ubuntu-trusty-64 postfix/smtp[10906]: connect to gmail.com[74.125.21.18]:25: Connection timed out
Feb 19 14:43:09 vagrant-ubuntu-trusty-64 postfix/smtp[10906]: BE65C408C6: to=<***@gmail.com>, relay=none, delay=120, delays=0.01/0/120/0, dsn=4.4.1, status=deferred (connect to gmail.com[74.125.21.18]:25: Connection timed out)
I have found a lot of people with the same issue, but none of the solutions mentioned have helped. I would appreciate any assistance you can offer.
I am running an Ubuntu server inside virtualbox on Windows (created using Vagrant). The server is configured to run a LEMP stack and I would like the mail function in PHP to work, so I installed postfix.
Unfortunately it won't send any email. Here's the command line I ran to send a test email.
***@vagrant-ubuntu-trusty-64:~$ echo "This is the body of the email" | mail -s "This is the subject line" ***@gmail.com
Here are the logs:
Feb 19 14:41:09 vagrant-ubuntu-trusty-64 postfix/pickup[10527]: BE65C408C6: uid=1000 from=<***@vagrant-ubuntu-trusty-64>
Feb 19 14:41:09 vagrant-ubuntu-trusty-64 postfix/cleanup[10904]: BE65C408C6: message-id=<***@vagrant-ubuntu-trusty-64>
Feb 19 14:41:09 vagrant-ubuntu-trusty-64 postfix/qmgr[10528]: BE65C408C6: from=<***@vagrant-ubuntu-trusty-64>, size=409, nrcpt=1 (queue active)
Feb 19 14:41:39 vagrant-ubuntu-trusty-64 postfix/smtp[10906]: connect to gmail.com[74.125.21.19]:25: Connection timed out
Feb 19 14:42:09 vagrant-ubuntu-trusty-64 postfix/smtp[10906]: connect to gmail.com[74.125.21.17]:25: Connection timed out
Feb 19 14:42:39 vagrant-ubuntu-trusty-64 postfix/smtp[10906]: connect to gmail.com[74.125.21.83]:25: Connection timed out
Feb 19 14:43:09 vagrant-ubuntu-trusty-64 postfix/smtp[10906]: connect to gmail.com[74.125.21.18]:25: Connection timed out
Feb 19 14:43:09 vagrant-ubuntu-trusty-64 postfix/smtp[10906]: BE65C408C6: to=<***@gmail.com>, relay=none, delay=120, delays=0.01/0/120/0, dsn=4.4.1, status=deferred (connect to gmail.com[74.125.21.18]:25: Connection timed out)
I have found a lot of people with the same issue, but none of the solutions mentioned have helped. I would appreciate any assistance you can offer.