Receiving emails but not able to sent

Discussion in 'Installation/Configuration' started by Akhilleus, Jul 7, 2019.

  1. Akhilleus

    Akhilleus Member

    Hello
    I had the same problem on my first VPS , now that I have switched it again it happens , but I'm not able to find the problem . ( I'm using ISPConfig )
    Doing tests , from gmail/hotmail I am able to receive , but to send emails no. From roundcube shows that the message has been sent , but nothing happens .
    Following my old thread , I will link some logs so maybe you can find where the problem is coming from .
    ##### cat /var/log/mail.log #I'm replacing my domain by xxxxx #####
    Jul 7 14:15:31 server1 dovecot: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=22603, secured, session=<jCwWchWNgNB/AAAB>
    Jul 7 14:15:31 server1 dovecot: imap([email protected]): Logged out in=70 out=649
    Jul 7 14:15:32 server1 dovecot: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=22605, secured, session=<wfEmchWNgtB/AAAB>
    Jul 7 14:15:32 server1 dovecot: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=22607, secured, session=<CKQnchWNhNB/AAAB>
    Jul 7 14:15:32 server1 dovecot: imap([email protected]): Logged out in=318 out=4500
    Jul 7 14:15:32 server1 dovecot: imap([email protected]): Logged out in=233 out=1058
    Jul 7 14:15:33 server1 postfix/qmgr[1312]: D3139809EF: from=<[email protected]>, size=1752, nrcpt=1 (queue active)
    Jul 7 14:15:34 server1 dovecot: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=22612, secured, session=<NuFBchWNjNB/AAAB>
    Jul 7 14:15:34 server1 dovecot: imap([email protected]): Logged out in=32 out=485
    Jul 7 14:15:34 server1 dovecot: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=22614, secured, session=<gctDchWNjtB/AAAB>
    Jul 7 14:15:34 server1 dovecot: imap([email protected]): Logged out in=44 out=592
    Jul 7 14:15:55 server1 postfix/smtpd[22628]: connect from localhost[127.0.0.1]
    Jul 7 14:15:55 server1 postfix/trivial-rewrite[22608]: warning: do not list domain xxxxx..com in BOTH virtual_mailbox_domains and relay_domains
    Jul 7 14:15:55 server1 postfix/trivial-rewrite[22608]: warning: do not list domain xxxxx..com in BOTH virtual_mailbox_domains and relay_domains
    Jul 7 14:15:55 server1 postfix/smtpd[22628]: NOQUEUE: filter: RCPT from localhost[127.0.0.1]: <[email protected]>: Sender address triggers FILTER amavis:[127.0.0.1]:10026; from=<[email protected]> to=<[email protected]> proto=ESMTP helo=<www.xxxxx.com>
    Jul 7 14:15:55 server1 postfix/smtpd[22628]: 9676C80A7E: client=localhost[127.0.0.1], sasl_method=LOGIN, [email protected]
    Jul 7 14:15:55 server1 postfix/cleanup[22629]: 9676C80A7E: message-id=<[email protected]>
    Jul 7 14:15:55 server1 postfix/qmgr[1312]: 9676C80A7E: from=<[email protected]>, size=626, nrcpt=1 (queue active)
    Jul 7 14:15:55 server1 postfix/smtpd[22628]: disconnect from localhost[127.0.0.1] ehlo=1 auth=1 mail=1 rcpt=1 data=1 quit=1 commands=6
    Jul 7 14:15:55 server1 dovecot: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=22632, secured, session=<XVKIcxWNoNB/AAAB>
    Jul 7 14:15:55 server1 dovecot: imap([email protected]): Logged out in=470 out=648
    Jul 7 14:15:55 server1 postfix/smtpd[22635]: connect from localhost[127.0.0.1]
    Jul 7 14:15:55 server1 postfix/trivial-rewrite[22608]: warning: do not list domain xxxxx..com in BOTH virtual_mailbox_domains and relay_domains
    Jul 7 14:15:55 server1 postfix/smtpd[22635]: E13A380A82: client=localhost[127.0.0.1]
    Jul 7 14:15:55 server1 postfix/cleanup[22629]: E13A380A82: message-id=<[email protected]>
    Jul 7 14:15:55 server1 postfix/qmgr[1312]: E13A380A82: from=<[email protected]>, size=1577, nrcpt=1 (queue active)
    Jul 7 14:15:55 server1 amavis[1723]: (01723-01) Passed CLEAN {RelayedOutbound}, ORIGINATING LOCAL [127.0.0.1]:37698 <[email protected]> -> <[email protected]>, Queue-ID: 9676C80A7E, Message-ID: <[email protected]>, mail_id: y2Y7m1NAv6Po, Hits: -1, size: 626, queued_as: E13A380A82, dkim_new=default:xxxxx..com, 262 ms
    Jul 7 14:15:55 server1 postfix/smtp[22630]: 9676C80A7E: to=<[email protected]>, relay=127.0.0.1[127.0.0.1]:10026, delay=0.36, delays=0.08/0.01/0.03/0.24, dsn=2.0.0, status=sent (250 2.0.0 from MTA(smtp:[127.0.0.1]:10027): 250 2.0.0 Ok: queued as E13A380A82)
    Jul 7 14:15:55 server1 postfix/qmgr[1312]: 9676C80A7E: removed
    Jul 7 14:15:56 server1 dovecot: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=22639, secured, session=<Z0iTcxWNqtB/AAAB>
    Jul 7 14:15:56 server1 dovecot: imap([email protected]): Logged out in=70 out=633
    Jul 7 14:15:56 server1 dovecot: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=22641, secured, session=<sT+acxWNrNB/AAAB>
    Jul 7 14:15:56 server1 dovecot: imap([email protected]): Logged out in=318 out=4484
    Jul 7 14:15:56 server1 dovecot: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=22644, secured, session=<lMCacxWNrtB/AAAB>
    Jul 7 14:15:56 server1 dovecot: imap([email protected]): Logged out in=120 out=766
    Jul 7 14:16:03 server1 postfix/smtp[22610]: connect to gmail-smtp-in.l.google.com[108.177.119.26]:25: Connection timed out
    Jul 7 14:16:03 server1 postfix/smtp[22610]: connect to gmail-smtp-in.l.google.com[2a00:1450:4013:c05::1b]:25: Network is unreachable
    Jul 7 14:16:03 server1 postfix/smtp[22610]: connect to alt1.gmail-smtp-in.l.google.com[2404:6800:4003:c00::1b]:25: Network is unreachable
    ######## cat /etc/postfix/master.cf #######
    VKIcxWNoNB/AAAB>
    bash: syntax error near unexpected token `newline'
    [email protected]:~# Jul 7 14:15:55 server1 dovecot: imap([email protected]): Logged out in=470 out=648
    bash: syntax error near unexpected token `('
    [email protected]:~# Jul 7 14:15:55 server1 postfix/smtpd[22635]: connect from localhost[127.0.0.1]
    bash: Jul: command not found
    [email protected]:~# Jul 7 14:15:55 server1 postfix/trivial-rewrite[22608]: warning: do not list domain xxxx.com in BOTH virtual_mailbox_domains and relay_domains
    bash: Jul: command not found
    [email protected]:~# Jul 7 14:15:55 server1 postfix/smtpd[22635]: E13A380A82: client=localhost[127.0.0.1]
    bash: Jul: command not found
    [email protected]:~# Jul 7 14:15:55 server1 postfix/cleanup[22629]: E13A380A82: message-id=<[email protected]>
    bash: syntax error near unexpected token `newline'
    [email protected]:~# Jul 7 14:15:55 server1 postfix/qmgr[1312]: E13A380A82: from=<[email protected]>, size=1577, nrcpt=1 (queue active)
    bash: syntax error near unexpected token `('
    [email protected]:~# Jul 7 14:15:55 server1 amavis[1723]: (01723-01) Passed CLEAN {RelayedOutbound}, ORIGINATING LOCAL [127.0.0.1]:37698 <[email protected]> -> <[email protected]>, Queue-ID: 9676C80A7E, Message-ID: <[email protected]>, mail_id: y2Y7m1NAv6Po, Hits: -1, size: 626, queued_as: E13A380A82, dkim_new=default:xxxx.com, 262 ms
    bash: syntax error near unexpected token `('
    [email protected]:~# Jul 7 14:15:55 server1 postfix/smtp[22630]: 9676C80A7E: to=<[email protected]>, relay=127.0.0.1[127.0.0.1]:10026, delay=0.36, delays=0.08/0.01/0.03/0.24, dsn=2.0.0, status=sent (250 2.0.0 from MTA(smtp:[127.0.0.1]:10027): 250 2.0.0 Ok: queued as E13A380A82)
    bash: syntax error near unexpected token `('
    [email protected]:~# Jul 7 14:15:55 server1 postfix/qmgr[1312]: 9676C80A7E: removed
    bash: Jul: command not found
    [email protected]:~# Jul 7 14:15:56 server1 dovecot: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=22639, secured, session=<Z0iTcxWNqtB/AAAB>
    bash: syntax error near unexpected token `newline'
    [email protected]:~# Jul 7 14:15:56 server1 dovecot: imap([email protected]): Logged out in=70 out=633
    bash: syntax error near unexpected token `('
    [email protected]:~# Jul 7 14:15:56 server1 dovecot: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=22641, secured, session=<sT+acxWNrNB/AAAB>
    bash: syntax error near unexpected token `newline'
    [email protected]:~# Jul 7 14:15:56 server1 dovecot: imap([email protected]): Logged out in=318 out=4484
    bash: syntax error near unexpected token `('
    [email protected]:~# Jul 7 14:15:56 server1 dovecot: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=22644, secured, session=<lMCacxWNrtB/AAAB>
    bash: syntax error near unexpected token `newline'
    [email protected]:~# Jul 7 14:15:56 server1 dovecot: imap([email protected]): Logged out in=120 out=766
    bash: syntax error near unexpected token `('
    [email protected]:~# Jul 7 14:16:03 server1 postfix/smtp[22610]: connect to gmail-smtp-in.l.google.com[108.177.119.26]:25: Connection timed out
    bash: Jul: command not found
    [email protected]:~# Jul 7 14:16:03 server1 postfix/smtp[22610]: connect to gmail-smtp-in.l.google.com[2a00:1450:4013:c05::1b]:25: Network is unreachable
    bash: Jul: command not found
    [email protected]:~# Jul 7 14:16:03 server1 postfix/smtp[22610]: connect to alt1.gmail-smtp-in.l.google.com[2404:6800:4003:c00::1b]:25: Network is unreachable

    Thanks for the help and your time.
     
  2. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    Is port 25 open both ways on your e-mail server host?
     
  3. Akhilleus

    Akhilleus Member

    Hello @Taleman , Sadly I found that Google blocks the port 25 ( for all his products ) , apparently to eliminate any kind of mail spamming and to keep the IP '' reputation '' . So I have to take a look about third party mail services .
    Thank you for taking a look :)
     
  4. adamjedgar

    adamjedgar Member

    I was using sendgrid for mail relay with google cloud...they have free plans.

    Or you could change vps service provider to Vultr (if in your country), they don't block ports and are half the price
     
  5. Akhilleus

    Akhilleus Member

    Thank you so much for the information :)
     

Share This Page