Question
Can not send mail with postfix
Hi everyone, I’m trying to config sending email from application thought this tutorial.
But when I try to send an test email to my emails, its not work, I also try to sen one or another.
looking for log file its show
Oct 11 16:41:32 mail postfix/pickup[4727]: 81676819B8: uid=1000 from=<myuser@mydomain.com>
Oct 11 16:41:32 mail postfix/cleanup[5349]: 81676819B8: message-id=<20171011164132.81676819B8@mydomain.com >
Oct 11 16:41:32 mail postfix/qmgr[4728]: 81676819B8: from=<myuser@mydomain.com >, size=396, nrcpt=1 (queue active)
Oct 11 16:41:41 mail postfix/qmgr[4728]: 8CF22819B5: from=<myuser@mydomain.com >, size=396, nrcpt=1 (queue active)
Oct 11 16:42:02 mail postfix/smtp[5351]: connect to gmail-smtp-in.l.google.com[173.194.68.27]:25: Connection timed out
Oct 11 16:42:02 mail postfix/smtp[5351]: connect to gmail-smtp-in.l.google.com[2607:f8b0:400d:c0c::1b]:25: Network is unreachable
Oct 11 16:42:02 mail postfix/smtp[5351]: connect to alt1.gmail-smtp-in.l.google.com[2800:3f0:4003:c01::1a]:25: Network is unreachable
Oct 11 16:42:11 mail postfix/smtp[5354]: connect to gmail-smtp-in.l.google.com[209.85.201.26]:25: Connection timed out
Oct 11 16:42:11 mail postfix/smtp[5354]: connect to gmail-smtp-in.l.google.com[2607:f8b0:400d:c03::1b]:25: Network is unreachable
Oct 11 16:42:11 mail postfix/smtp[5354]: connect to alt1.gmail-smtp-in.l.google.com[2800:3f0:4003:c01::1a]:25: Network is unreachable
Oct 11 16:42:32 mail postfix/smtp[5351]: connect to alt1.gmail-smtp-in.l.google.com[64.233.190.26]:25: Connection timed out
Oct 11 16:42:32 mail postfix/smtp[5351]: connect to alt2.gmail-smtp-in.l.google.com[2a00:1450:400b:c03::1a]:25: Network is unreachable
Oct 11 16:42:32 mail postfix/smtp[5351]: 81676819B8: to=<myemail@gmail.com>, relay=none, delay=60, delays=0.01/0.01/60/0, dsn=4.4.1, status=deferred (connect to alt2.gmail-smtp-in.l.google.com[2a00:1450:400b:c03::1a]:25: Network is unreachable)
Oct 11 16:42:41 mail postfix/smtp[5354]: connect to alt1.gmail-smtp-in.l.google.com[64.233.190.26]:25: Connection timed out
Oct 11 16:42:41 mail postfix/smtp[5354]: connect to alt2.gmail-smtp-in.l.google.com[2a00:1450:400b:c03::1a]:25: Network is unreachable
Oct 11 16:42:41 mail postfix/smtp[5354]: 8CF22819B5: to=<myemail@gmail.com>, relay=none, delay=1535, delays=1475/0.01/60/0, dsn=4.4.1, status=deferred (connect to alt2.gmail-smtp-in.l.google.com[2a00:1450:400b:c03::1a]:25: Network is unreachable)
I already using zoho mail service, could it be the reason.
Every thing I work on ubuntu 17.04
Thanks for any help.
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
×
@thanhtunguyen0608
It looks like you have connection problems try this command
nc -zv 209.85.201.26 25
if it times out then you are being blocked by DO.Also make sure to use latest LTS version from ubuntu that is Ubuntu 16.04, 17.04 will end its life in three months from now.
hi Mohsen.
it seem to be I’m being blocked by DO. How can I fix it.
Thanks anyway.