Receiving emails but not able to send them

Discussion in 'Installation/Configuration' started by Akhilleus, Jul 8, 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. florian030

    florian030 ISPConfig Developer ISPConfig Developer

    are you sure, that you are allowed send mails? try
    Code:
    telnet gmail-smtp-in.l.google.com 25
     
    Akhilleus likes this.
  3. Akhilleus

    Akhilleus Member

  4. nhybgtvfr

    nhybgtvfr Active Member

    you don't say where your vps is hosted. they are likely blocking every outbound connection to any server with a destination port of 25.
    some hosting companies will allow it, but severely rate limit the connections.
    some such as aws, you can request them to configure a reverse lookup record for the vhost's ip. when they do that, they also remove the destination port 25 restrictions, so you can send as much email as you like to wherever you want.
    so it would be worth checking with your hosting provider if there's anything they can do to unblock outbound port 25 for you.
     

Share This Page