cannot send but can receive mail

Started by AcemiPenguen, April 01, 2018, 12:47:30 PM

Previous topic - Next topic

AcemiPenguen

im using freedns on cwp

and sets like that

@                  A                  (my ip)
@                  MX        10    cwp.mydomain.com
@                  TXT               v=spf1 mx a
subdomain1   A                  (my ip)
cwp               A                  (my ip)
subdomain2   A                  (my ip)
subdomain3   A                  (my ip)
ftp                 A                  (my ip)
mail              A                   (my ip)
www             CNAME           @
_dmarc         TXT                v=DMARC1; p=none; rua=mailto:webmaster@mydomain.com


master.cf

added this line
2525         inet        n         -        n     -       -      smtpd

iptables added 2525 accept

forwarded 2525 port on modem to my server ip and open port check 2525 is success

when i try to send out mail, always queue and not complete to deliver. what shoud i do?

meanwhile, have two master.cf in server

first path
/etc/postfix/master.cf
and other way
/usr/libexec/postfix/master.cf

and i changed both of them 2525 inet line

please help..

24x7servermanagement

Are you getting any error message while sending an email?
https://www.24x7servermanagement.com/
Server Management, Server Security, Server Monitoring.
India's Leading Managed Service Provider !!

AcemiPenguen

roundcube says mail sent..

postfix status message this

Apr 01 13:21:06 cwp.rehacan.com postfix/smtp[1192]: 8149C409A86F: to=, relay=none, delay=174177, delays=174177/0.01/0.36/0, dsn=4.4.1, status=deferred (connect to alt2.gmail-smtp-in.l.google.com[2404:6800:4003:c00::1a]:25: Network is unreachable)
Apr 01 13:21:07 cwp.rehacan.com postfix/smtp[1195]: connect to hotmail-com.olc.protection.outlook.com[104.47.1.33]:25: No route to host
Apr 01 13:21:07 cwp.rehacan.com postfix/smtp[1195]: connect to hotmail-com.olc.protection.outlook.com[104.47.0.33]:25: No route to host
Apr 01 13:21:07 cwp.rehacan.com postfix/smtp[1193]: connect to gmail-smtp-in.l.google.com[108.177.15.26]:25: No route to host
Apr 01 13:21:07 cwp.rehacan.com postfix/smtp[1193]: connect to gmail-smtp-in.l.google.com[2a00:1450:400c:c0c::1b]:25: Network is unreachable
Apr 01 13:21:07 cwp.rehacan.com postfix/smtp[1193]: connect to alt1.gmail-smtp-in.l.google.com[2a00:1450:4010:c0f::1b]:25: Network is unreachable
Apr 01 13:21:07 cwp.rehacan.com postfix/smtp[1193]: connect to alt1.gmail-smtp-in.l.google.com[108.177.14.26]:25: No route to host
Apr 01 13:21:07 cwp.rehacan.com postfix/smtp[1193]: connect to alt2.gmail-smtp-in.l.google.com[2404:6800:4003:c00::1b]:25: Network is unreachable
Apr 01 13:21:07 cwp.rehacan.com postfix/smtp[1195]: 8D7EE409A851: to=, relay=none, delay=162171, delays=162169/0.01/1.3/0, dsn=4.4.1, status=deferred (connect to hotmail-com.olc.protection.outlook.com[104.47.0.33]:25: No route to host)
Apr 01 13:21:07 cwp.rehacan.com postfix/smtp[1193]: 854F5409A86A: to=, relay=none, delay=19033, delays=19032/0.01/1.4/0, dsn=4.4.1, status=deferred (connect to alt2.gmail-smtp-in.l.google.com[2404:6800:4003:c00::1b]:25: Network is unreachable)

AcemiPenguen

its still trying to use 25 port.. and its blocked in Turkey.

AcemiPenguen

[root@cwp postfix]# tail -f /var/log/maillog
Apr  1 16:44:32 cwp postfix/smtp[6109]: 11F63409AE12: to=<rcdursun@gmail.com>, relay=none, delay=175533, delays=175428/0.11/105/0, dsn=4.4.1, status=deferred (connect to alt4.gmail-smtp-in.l.google.com[74.125.199.27]:25: No route to host)
Apr  1 16:44:47 cwp postfix/smtp[6110]: connect to alt3.gmail-smtp-in.l.google.com[64.233.188.26]:25: Connection timed out
Apr  1 16:44:47 cwp postfix/smtp[6104]: connect to alt3.gmail-smtp-in.l.google.com[64.233.188.27]:25: Connection timed out
Apr  1 16:44:47 cwp postfix/smtp[6106]: connect to alt3.gmail-smtp-in.l.google.com[64.233.188.26]:25: Connection timed out
Apr  1 16:45:17 cwp postfix/smtp[6110]: connect to alt4.gmail-smtp-in.l.google.com[74.125.199.27]:25: Connection timed out
Apr  1 16:45:17 cwp postfix/smtp[6104]: connect to alt4.gmail-smtp-in.l.google.com[74.125.199.27]:25: Connection timed out
Apr  1 16:45:17 cwp postfix/smtp[6106]: connect to alt4.gmail-smtp-in.l.google.com[74.125.199.27]:25: Connection timed out
Apr  1 16:45:17 cwp postfix/smtp[6110]: F3BC6409ADED: to=<rcdursun@gmail.com>, relay=none, delay=174665, delays=174515/0.12/150/0, dsn=4.4.1, status=deferred (connect to alt4.gmail-smtp-in.l.google.com[74.125.199.27]:25: Connection timed out)
Apr  1 16:45:17 cwp postfix/smtp[6104]: DD6B9409ADF3: to=<rcdursun@gmail.com>, relay=none, delay=31283, delays=31133/0.06/150/0, dsn=4.4.1, status=deferred (connect to alt4.gmail-smtp-in.l.google.com[74.125.199.27]:25: Connection timed out)
Apr  1 16:45:17 cwp postfix/smtp[6106]: 05BBD409ADF9: to=<rcdursun@gmail.com>, relay=none, delay=186428, delays=186278/0.07/150/0, dsn=4.4.1, status=deferred (connect to alt4.gmail-smtp-in.l.google.com[74.125.199.27]:25: Connection timed out)


Jae

#6
Quote from: AcemiPenguen on April 01, 2018, 05:28:46 PM
its still trying to use 25 port.. and its blocked in Turkey.

Nothing you can do about it,
You need relay server to send out from your server if port 25 blocked

wahyder

Port 25 is not blocked but still I m not able to send

rcschaff

 No route to host
Says otherwise.  As for your "still using port 25". Correct.   Smtp ports really shouldnt be changed   if you prevent relaying your fine.  If you are receiving mail from the outside world, I'm amazed unless you use port redirection which is doing nothing for you.
Google Hangouts:  rcschaff82@gmail.com

Sandeep

`25: Connection timed out` is ISP/server provider level restriction kindly contact them.

wahyder

I have the following error

Jun  2 22:46:27 serve1 postfix/smtp[2069]: connect to alt4.gmail-smtp-in.l.googl                          e.com[74.125.129.26]:25: No route to host