ISPconfig 3 - receiving email problem

Discussion in 'Installation/Configuration' started by SebastianK, Aug 6, 2021.

  1. SebastianK

    SebastianK New Member

    Hi!

    This time I have a problem with receiving email. Before it was ok - and it's not anymore - I don't know why.

    MX -> set correctly - eoglaszamy.pl

    External Server IP: 79.162.235.144
    Internal Server IP: 172.xx.xx.xx

    Sending email within one server works fine

    Receiving an email from an external server - no, nothing comes

    In logs from an external server:

    Aug 6 21:39:01 server1 postfix / smtpd [15127]: connect from localhost.localdomain [127.0.0.1]
    Aug 6 21:39:01 server1 postfix / smtpd [15127]: 520632E00BE: client = localhost.localdomain [127.0.0.1]
    Aug 6 21:39:01 server1 postfix / cleanup [13313]: 520632E00BE: message-id = <[email protected]>
    Aug 6 21:39:01 server1 postfix / smtpd [15127]: disconnect from localhost.localdomain [127.0.0.1] ehlo = 1 mail = 1 rcpt = 1 data = 1 quit = 1 commands = 5
    Aug 6 21:39:01 server1 amavis [16062]: (16062-09) Passed CLEAN {RelayedOutbound}, ORIGINATING LOCAL [79.162.235.144]: 61582 [79.162.235.144] <[email protected]> $
    Aug 6 21:39:01 server1 postfix / qmgr [1215]: 520632E00BE: from = <[email protected]>, size = 44999, nrcpt = 1 (queue active)
    Aug 6 21:39:01 server1 postfix / smtp [14909]: 5D83A2E00BD: to = <[email protected]>, relay = 127.0.0.1 [127.0.0.1]: 10026, delay = 36, delays = 1.4 / 0.03 / 0/35, dsn = 2.0.0, $ sta
    Aug 6 21:39:01 server1 postfix / qmgr [1215]: 5D83A2E00BD: removed
    Aug 6 21:39:01 server1 dovecot: lda ([email protected]): sieve: msgid = <[email protected]>: stored mail into mailbox 'INBOX'
    Aug 6 21:39:01 server1 postfix / pipe [15162]: 520632E00BE: to = <[email protected]>, relay = dovecot, delay = 0.23, delays = 0.13 / 0.02 / 0 / 0.09, dsn = 2.0.0 , status = sent (deli $
    Aug 6 21:39:01 server1 postfix / qmgr [1215]: 520632E00BE: removed

    From what I can see - email has arrived, but no trace on the target server ...

    best regards
     
  2. Jesse Norell

    Jesse Norell ISPConfig Developer Staff Member ISPConfig Developer

    Check the INBOX. Upon delivery that will be /var/vmail/eoglaszamy.pl/info/Maildir/new/ (and moves from "new" to "cur" once a mail program has read the message).
     
  3. SebastianK

    SebastianK New Member

    Hi,
    Code:
    [email protected]:/var/vmail/eoglaszamy.pl/info/Maildir/new# ls -a
    .  ..
    Folder is empty... I have request from gmail:
    Code:
    The recipient server did not accept our requests to connect. Learn more at https://support.google.com/mail/answer/7720 [eoglaszamy.pl. 79.162.235.144: unable to read banner]
     
  4. Jesse Norell

    Jesse Norell ISPConfig Developer Staff Member ISPConfig Developer

    Last edited: Aug 7, 2021
  5. SebastianK

    SebastianK New Member

    Hi,
    please look in my config:

    [​IMG]
    [​IMG]

    ISPconfig is set and named as s1.vfer.pl -> DNS settings of the domain in the same way as eoglszamy.pl

    Log in s1.vfer.pl -> mail.info
    Code:
    Aug  8 23:40:17 s1 postfix/smtpd[2059]: connect from kowalec.pl[86.105.52.240]
    Aug  8 23:41:46 s1 postfix/smtpd[1658]: timeout after CONNECT from kowalec.pl[86.105.52.240]
    Aug  8 23:41:46 s1 postfix/smtpd[1658]: disconnect from kowalec.pl[86.105.52.240] commands=0/0
     
    Last edited: Aug 8, 2021
  6. Chris_UK

    Chris_UK Active Member HowtoForge Supporter

    Where are the logs for the server with the problem? You seem to have shown the outbounds logs which you said you have no trouble with.

    The receiving server logs are what we need to see. Are there any mail logs? of no mail logs, are there any fail2ban or ufw logs to show.
     
  7. SebastianK

    SebastianK New Member

  8. Chris_UK

    Chris_UK Active Member HowtoForge Supporter

    Okay, I see nothing being banned in there so its not fail2ban causing an issue, no ufw logs suggest its not active.

    sudo ufw status

    You can use mxtoolbox (its a website) to look into mail problems, it does a whole lot more besides that but it will also give you useful information about your mail server. Could be it identifies the problem for you.

    https://mxtoolbox.com/

    As an aside so as not to divert from your issue: reconfigure your fail2ban ssh acl and set the max to no more than 3 that should cut out a lot of ssh calls. Personally I have my max set to 1 and they get banned. I also make sure my own ip doesn't get banned in the process should I mistype a password.
     
  9. nhybgtvfr

    nhybgtvfr Well-Known Member HowtoForge Supporter

    it looks like you're port forwarding from your firewall to the actual hosting server.
    is that actually working properly? is postfix running? is port 25 open on the server itself?
    i'm connecting, at least to the firewall, but it's not returning anything back.

    Code:
    telnet mail.eoglaszamy.pl  25
    Trying 79.162.235.144...
    Connected to mail.eoglaszamy.pl.
    Escape character is '^]'.
    ehlo scl.co.uk
    quit
    
    i would expect to see something like this:
    Code:
    telnet mail.scl.co.uk 25
    Trying 18.202.128.131...
    Connected to mail.scl.co.uk.
    Escape character is '^]'.
    220 mail.scl.co.uk ESMTP
    EHLO scl.co.uk
    250-mail.scl.co.uk
    250-PIPELINING
    250-SIZE
    250-VRFY
    250-ETRN
    250-STARTTLS
    250-AUTH PLAIN LOGIN
    250-AUTH=PLAIN LOGIN
    250-ENHANCEDSTATUSCODES
    250-8BITMIME
    250-DSN
    250 SMTPUTF8
    quit
    221 2.0.0 Bye
    Connection closed by foreign host.
    
     

Share This Page