can not receive or send mail..

Discussion in 'General' started by murdocklawless, Feb 20, 2021.

  1. hi again,

    when I press send button, at the right below a red box appeared and said 220 authentication error.

    I also can not receive mails from my own gmail, hotmail addresses. e-mails I sent to my own mail server didn't come back to gmail. I beleive somehow they deleted by spam filter.

    here is the log for outgoing;
    Code:
    Feb 21 01:03:08 cxxxxl postfix/submission/smtpd[37118]: connect from localhost[127.0.0.1]
    Feb 21 01:03:08 cxxxxl postfix/submission/smtpd[37118]: SSL_accept error from localhost[127.0.0.1]: -1
    Feb 21 01:03:08 cxxxxl postfix/submission/smtpd[37118]: warning: TLS library problem: error:14094418:SSL routines:ssl3_read_bytes:tlsv1 alert unknown ca:../ssl/record/rec_layer_s3.c:1543:SSL alert number 48:
    Feb 21 01:03:08 cxxxxl postfix/submission/smtpd[37118]: lost connection after STARTTLS from localhost[127.0.0.1]
    Feb 21 01:03:08 cxxxxl postfix/submission/smtpd[37118]: disconnect from localhost[127.0.0.1] ehlo=1 starttls=0/1 commands=1/2
    
    and here is the log for incoming;
    Code:
    Feb 21 01:10:47 cxxxxl postfix/smtpd[37510]: connect from mail-ej1-f52.google.com[209.85.218.52]
    Feb 21 01:10:47 cxxxxl postfix/trivial-rewrite[37518]: warning: do not list domain cxxxxl.com in BOTH mydestination and virtual_mailbox_domains
    Feb 21 01:10:47 cxxxxl postfix/smtpd[37510]: NOQUEUE: filter: RCPT from mail-ej1-f52.google.com[209.85.218.52]: <[email protected]>: Sender address triggers FILTER lmtp:[127.0.0.1]:10026; from=<[email protected]> to=<[email protected]> proto=ESMTP helo=<mail-ej1-f52.google.com>
    Feb 21 01:10:47 cxxxxl postfix/smtpd[37510]: NOQUEUE: filter: RCPT from mail-ej1-f52.google.com[209.85.218.52]: <[email protected]>: Sender address triggers FILTER lmtp:[127.0.0.1]:10024; from=<[email protected]> to=<[email protected]> proto=ESMTP helo=<mail-ej1-f52.google.com>
    Feb 21 01:10:47 cxxxxl postfix/smtpd[37510]: 58AA2C2FCA: client=mail-ej1-f52.google.com[209.85.218.52]
    Feb 21 01:10:47 cxxxxl postfix/cleanup[37522]: 58AA2C2FCA: message-id=<CAG2yXvcj8jtUULwHkKykJSbAGL6_1_guqeWNfr5EW7yvJuN3Rw@mail.gmail.com>
    Feb 21 01:10:47 cxxxxl postfix/qmgr[16105]: 58AA2C2FCA: from=<[email protected]>, size=2488, nrcpt=1 (queue active)
    Feb 21 01:10:47 cxxxxl postfix/smtpd[37510]: disconnect from mail-ej1-f52.google.com[209.85.218.52] ehlo=2 starttls=1 mail=1 rcpt=1 bdat=1 quit=1 commands=7
    Feb 21 01:10:47 cxxxxl amavis[3936]: (03936-02) NOTICE: reconnecting in response to: err=2006, HY000, DBD::mysql::st execute failed: MySQL server has gone away at (eval 110) line 173.
    Feb 21 01:10:50 cxxxxl postfix/smtpd[37526]: connect from localhost[127.0.0.1]
    Feb 21 01:10:50 cxxxxl postfix/trivial-rewrite[37518]: warning: do not list domain cxxxxl.com in BOTH mydestination and virtual_mailbox_domains
    Feb 21 01:10:50 cxxxxl postfix/smtpd[37526]: 2F89BC2FCB: client=localhost[127.0.0.1]
    Feb 21 01:10:50 cxxxxl postfix/cleanup[37522]: 2F89BC2FCB: message-id=<CAG2yXvcj8jtUULwHkKykJSbAGL6_1_guqeWNfr5EW7yvJuN3Rw@mail.gmail.com>
    Feb 21 01:10:50 cxxxxl postfix/smtpd[37526]: disconnect from localhost[127.0.0.1] ehlo=1 mail=1 rcpt=1 data=1 quit=1 commands=5
    Feb 21 01:10:50 cxxxxl postfix/qmgr[16105]: 2F89BC2FCB: from=<[email protected]>, size=2996, nrcpt=1 (queue active)
    Feb 21 01:10:50 cxxxxl postfix/trivial-rewrite[37518]: warning: do not list domain cxxxxl.com in BOTH mydestination and virtual_mailbox_domains
    Feb 21 01:10:50 cxxxxl postfix/local[37529]: 2F89BC2FCB: to=<[email protected]>, relay=local, delay=0.05, delays=0.02/0.02/0/0.01, dsn=5.1.1, status=bounced (unknown user: "cem")
    Feb 21 01:10:50 cxxxxl postfix/cleanup[37522]: 3BAA4C3006: message-id=<[email protected]>
    Feb 21 01:10:50 cxxxxl postfix/qmgr[16105]: 3BAA4C3006: from=<>, size=4774, nrcpt=1 (queue active)
    Feb 21 01:10:50 cxxxxl postfix/bounce[37530]: 2F89BC2FCB: sender non-delivery notification: 3BAA4C3006
    Feb 21 01:10:50 cxxxxl postfix/qmgr[16105]: 2F89BC2FCB: removed
    Feb 21 01:10:50 cxxxxl amavis[3936]: (03936-02) Passed CLEAN {RelayedInbound}, [127.0.0.1] [209.85.218.52] <[email protected]> -> <[email protected]>, Message-ID: <CAG2yXvcj8jtUULwHkKykJSbAGL6_1_guqeWNfr5EW7yvJuN3Rw@mail.gmail.com>, mail_id: YHylwpORP9uG, Hits: -0.218, size: 2488, queued_as: 2F89BC2FCB, dkim_sd=20161025:gmail.com, 2779 ms
    Feb 21 01:10:50 cxxxxl postfix/lmtp[37523]: 58AA2C2FCA: to=<[email protected]>, relay=127.0.0.1[127.0.0.1]:10024, delay=3, delays=0.08/0.02/0.34/2.6, dsn=2.0.0, status=sent (250 2.0.0 from MTA(smtp:[127.0.0.1]:10025): 250 2.0.0 Ok: queued as 2F89BC2FCB)
    Feb 21 01:10:50 cxxxxl postfix/qmgr[16105]: 58AA2C2FCA: removed
    master.cf settings;
    Code:
    # ==========================================================================
    # service type  private unpriv  chroot  wakeup  maxproc command + args
    #               (yes)   (yes)   (no)    (never) (100)
    # ==========================================================================
    smtp      inet  n       -       y       -       -       smtpd
    #smtp      inet  n       -       y       -       1       postscreen
    #smtpd     pass  -       -       y       -       -       smtpd
    #dnsblog   unix  -       -       y       -       0       dnsblog
    #tlsproxy  unix  -       -       y       -       0       tlsproxy
    submission inet n       -       y       -       -       smtpd
       -o syslog_name=postfix/submission
       -o smtpd_tls_security_level=encrypt
       -o smtpd_sasl_auth_enable=yes
       -o smtpd_tls_auth_only=yes
       -o smtpd_client_restrictions=permit_sasl_authenticated,reject
    #  -o smtpd_reject_unlisted_recipient=no
    #  -o smtpd_client_restrictions=$mua_client_restrictions
    #  -o smtpd_helo_restrictions=$mua_helo_restrictions
    #  -o smtpd_sender_restrictions=$mua_sender_restrictions
    #  -o smtpd_recipient_restrictions=
    #  -o smtpd_relay_restrictions=permit_sasl_authenticated,reject
    #  -o milter_macro_daemon_name=ORIGINATING
    smtps     inet  n       -       y       -       -       smtpd
       -o syslog_name=postfix/smtps
       -o smtpd_tls_wrappermode=yes
       -o smtpd_sasl_auth_enable=yes
       -o smtpd_client_restrictions=permit_sasl_authenticated,reject
    #  -o smtpd_reject_unlisted_recipient=no
    #  -o smtpd_client_restrictions=$mua_client_restrictions
    #  -o smtpd_helo_restrictions=$mua_helo_restrictions
    #  -o smtpd_sender_restrictions=$mua_sender_restrictions
    #  -o smtpd_recipient_restrictions=
    #  -o smtpd_relay_restrictions=permit_sasl_authenticated,reject
    #  -o milter_macro_daemon_name=ORIGINATING
    #628       inet  n       -       y       -       -       qmqpd
    pickup    unix  n       -       y       60      1       pickup
    cleanup   unix  n       -       y       -       0       cleanup
    qmgr      unix  n       -       n       300     1       qmgr
    #qmgr     unix  n       -       n       300     1       oqmgr
    tlsmgr    unix  -       -       y       1000?   1       tlsmgr
    rewrite   unix  -       -       y       -       -       trivial-rewrite
    bounce    unix  -       -       y       -       0       bounce
    defer     unix  -       -       y       -       0       bounce
    trace     unix  -       -       y       -       0       bounce
    verify    unix  -       -       y       -       1       verify
    flush     unix  n       -       y       1000?   0       flush
    proxymap  unix  -       -       n       -       -       proxymap
    proxywrite unix -       -       n       -       1       proxymap
    smtp      unix  -       -       y       -       -       smtp
    relay     unix  -       -       y       -       -       smtp
            -o syslog_name=postfix/$service_name
    #       -o smtp_helo_timeout=5 -o smtp_connect_timeout=5
    showq     unix  n       -       y       -       -       showq
    error     unix  -       -       y       -       -       error
    retry     unix  -       -       y       -       -       error
    discard   unix  -       -       y       -       -       discard
    local     unix  -       n       n       -       -       local
    virtual   unix  -       n       n       -       -       virtual
    lmtp      unix  -       -       y       -       -       lmtp
    anvil     unix  -       -       y       -       1       anvil
    scache    unix  -       -       y       -       1       scache
    postlog   unix-dgram n  -       n       -       1       postlogd
    #
    # ====================================================================
    # Interfaces to non-Postfix software. Be sure to examine the manual
    # pages of the non-Postfix software to find out what options it wants.
    #
    # Many of the following services use the Postfix pipe(8) delivery
    # agent.  See the pipe(8) man page for information about ${recipient}
    # and other message envelope options.
    # ====================================================================
    #
    # maildrop. See the Postfix MAILDROP_README file for details.
    # Also specify in main.cf: maildrop_destination_recipient_limit=1
    #
    maildrop  unix  -       n       n       -       -       pipe
      flags=DRhu user=vmail argv=/usr/bin/maildrop -d vmail ${extension} ${recipient} ${user} ${nexthop} ${sender}
    #
    # ====================================================================
    #
    # Recent Cyrus versions can use the existing "lmtp" master.cf entry.
    #
    # Specify in cyrus.conf:
    #   lmtp    cmd="lmtpd -a" listen="localhost:lmtp" proto=tcp4
    #
    # Specify in main.cf one or more of the following:
    #  mailbox_transport = lmtp:inet:localhost
    #  virtual_transport = lmtp:inet:localhost
    #
    # ====================================================================
    #
    # Cyrus 2.1.5 (Amos Gouaux)
    # Also specify in main.cf: cyrus_destination_recipient_limit=1
    #
    #cyrus     unix  -       n       n       -       -       pipe
    #  user=cyrus argv=/cyrus/bin/deliver -e -r ${sender} -m ${extension} ${user}
    #
    # ====================================================================
    # Old example of delivery via Cyrus.
    #
    #old-cyrus unix  -       n       n       -       -       pipe
    #  flags=R user=cyrus argv=/cyrus/bin/deliver -e -m ${extension} ${user}
    #
    # ====================================================================
    #
    # See the Postfix UUCP_README file for configuration details.
    #
    uucp      unix  -       n       n       -       -       pipe
      flags=Fqhu user=uucp argv=uux -r -n -z -a$sender - $nexthop!rmail ($recipient)
    #
    # Other external delivery methods.
    #
    ifmail    unix  -       n       n       -       -       pipe
      flags=F user=ftn argv=/usr/lib/ifmail/ifmail -r $nexthop ($recipient)
    bsmtp     unix  -       n       n       -       -       pipe
      flags=Fq. user=bsmtp argv=/usr/lib/bsmtp/bsmtp -t$nexthop -f$sender $recipient
    scalemail-backend unix   -   n   n   -   2   pipe
      flags=R user=scalemail argv=/usr/lib/scalemail/bin/scalemail-store ${nexthop} ${user} ${extension}
    mailman   unix  -       n       n       -       -       pipe
      flags=FR user=list argv=/usr/lib/mailman/bin/postfix-to-mailman.py
      ${nexthop} ${user}
    
    dovecot   unix  -       n       n       -       -       pipe
      flags=DRhu user=vmail:vmail argv=/usr/lib/dovecot/deliver -f ${sender} -d ${user}@${nexthop}
    
    amavis unix - - - - 2 smtp
            -o smtp_data_done_timeout=1200
            -o smtp_send_xforward_command=yes
           -o smtp_bind_address=
    
    
    127.0.0.1:10025 inet n - n - - smtpd
            -o content_filter=
            -o local_recipient_maps=
            -o relay_recipient_maps=
            -o smtpd_restriction_classes=
            -o smtpd_client_restrictions=
            -o smtpd_helo_restrictions=
            -o smtpd_sender_restrictions=
            -o smtpd_recipient_restrictions=permit_mynetworks,reject
            -o smtpd_end_of_data_restrictions=
            -o mynetworks=127.0.0.0/8
            -o strict_rfc821_envelopes=yes
            -o receive_override_options=no_unknown_recipient_checks,no_header_body_checks
            -o smtp_send_xforward_command=yes
            -o disable_dns_lookups=yes
    
    
    127.0.0.1:10027 inet n - n - - smtpd
            -o content_filter=
            -o local_recipient_maps=
            -o relay_recipient_maps=
            -o smtpd_restriction_classes=
            -o smtpd_client_restrictions=
            -o smtpd_helo_restrictions=
            -o smtpd_sender_restrictions=
            -o smtpd_recipient_restrictions=permit_mynetworks,reject
            -o smtpd_end_of_data_restrictions=
            -o mynetworks=127.0.0.0/8
            -o strict_rfc821_envelopes=yes
            -o receive_override_options=no_unknown_recipient_checks,no_header_body_checks
            -o smtp_send_xforward_command=yes
           -o milter_default_action=accept
           -o milter_macro_daemon_name=ORIGINATING
            -o disable_dns_lookups=yes
    roundcube settings;
    Code:
    $config['default_host'] = 'localhost';
    
    // SMTP server host (for sending mails).
    // Enter hostname with prefix ssl:// to use Implicit TLS, or use
    // prefix tls:// to use STARTTLS.
    // Supported replacement variables:
    // %h - user's IMAP hostname
    // %n - hostname ($_SERVER['SERVER_NAME'])
    // %t - hostname without the first part
    // %d - domain (http hostname $_SERVER['HTTP_HOST'] without the first part)
    // %z - IMAP domain (IMAP hostname without the first part)
    // For example %n = mail.domain.tld, %t = domain.tld
    $config['smtp_server'] = 'tls://%h';
    
    // SMTP port. Use 25 for cleartext, 465 for Implicit TLS, or 587 for STARTTLS (default)
    $config['smtp_port'] = 587;
    
    // SMTP username (if required) if you use %u as the username Roundcube
    // will use the current username for login
    $config['smtp_user'] = '%u';
    
    // SMTP password (if required) if you use %p as the password Roundcube
    // will use the current user's password for login
    $config['smtp_pass'] = '%p';

    thank you.
     
    Last edited: Feb 21, 2021
  2. Th0m

    Th0m ISPConfig Developer Staff Member ISPConfig Developer

  3. If the email does not arrive, post the error message(s) that you get in the mail log file when the problem occurs. The mail log file is in the folder /var/log/, it is named "mail.log" on Debian and Ubuntu Linux and named "maillog" on other distributions.

    isn't that exactly what I'm doing? I sent my mail.log and I also add my master.cf and roundcube settings at the first post.
     
    Last edited: Feb 21, 2021
  4. Th0m

    Th0m ISPConfig Developer Staff Member ISPConfig Developer

    You added those settings after I commented.

    If the SMTP server is on the same host, change
    Code:
    $config['smtp_server'] = 'tls://%h';
    to
    Code:
    $config['smtp_server'] = 'localhost';
    and
    Code:
    $config['smtp_port'] = 587;
    to
    Code:
    $config['smtp_port'] = 25;
     
  5. yes I added after your comment but the message is saying send only mail.log or I understand like this. anyway I learned how to ask help and this is the point.

    I changed roundcube config file as your directive and stmp is working now, thank you for this but I still can not receive mail even if I send myself with same account over roundcube.

    there is a log like below and I think incoming mails are removed somehow;
    Feb 21 01:10:50 cxxxxl postfix/qmgr[16105]: 58AA2C2FCA: removed

    you can see all incoming log files from the first message.

    thank you again.
     
  6. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    Have you already fixed this:
    Code:
    Feb 21 01:10:47 cxxxxl postfix/trivial-rewrite[37518]: warning: do not list domain cxxxxl.com in BOTH mydestination and virtual_mailbox_domains
    
     
  7. oh yes, I fixed and start working. thank you again.
     

Share This Page