I am learning how to host a postfix server (Beginner), i have been able to receive email from gmail, but i am trying to send to Gmail, this is my "tail /var/log/mail.log"
Dec 15 14:24:49 thepocketmerlin postfix/smtp[25424]: connect to gmail-smtp-in.l.google.com[172.253.112.27]:25: Connection timed out
Dec 15 14:24:49 thepocketmerlin postfix/smtp[25424]: connect to gmail-smtp-in.l.google.com[2607:f8b0:4024:c00::1a]:25: Network is unreachable
Dec 15 14:24:49 thepocketmerlin postfix/smtp[25424]: connect to alt1.gmail-smtp-in.l.google.com[2607:f8b0:4002:c08::1a]:25: Network is unreachable
Dec 15 14:25:19 thepocketmerlin postfix/smtp[25424]: connect to alt1.gmail-smtp-in.l.google.com[64.233.177.26]:25: Connection timed out
Dec 15 14:25:49 thepocketmerlin postfix/smtp[25424]: connect to alt2.gmail-smtp-in.l.google.com[173.194.68.27]:25: Connection timed out
Dec 15 14:25:49 thepocketmerlin postfix/smtp[25424]: 528BB3F132: to=<[email protected]>, relay=none, delay=90, delays=0.03/0.01/90/0, dsn=4.4.1, status=deferred (connect to alt2.gmail-smtp in.l.google.com[173.194.68.27]:25: Connection timed out)
mailq (result)
528BB3F132 372 Tue Dec 15 14:24:19 [email protected]
(connect to alt2.gmail-smtp-in.l.google.com[173.194.68.27]:25: Connection timed out)
[email protected]
Any Ideas?.
Connection timed out
suggests you don't have connectivity on SMTP port 25. Probably you are trying to host the server on a connection that doesn't either allow hosting mail servers or blocks SMTP by default. Call your service provider.