Cannot send / receive email through Squirrel mail-get error

Discussion in 'Installation/Configuration' started by livetv, Aug 19, 2015.

  1. livetv

    livetv Member

    Debian GNU/Linux 7 \n \l
    getting error when sending mail
    tried to fix my problem and i found this thread so followed-
    https://www.howtoforge.com/community/threads/cannot-send-receive-email-through-squirrel-mail.61562/
    according, i have to edit /etc/postfix/master.cf and i did so...
    i tested my mail account at Squirrel mail - https:// my_1p_:8080/webmail/src/webmail.php
    now i can send with no error but still cand sen and resive.

    my mail.log & mail.warn are empty
    server and domain are not in blacklist
    chacking -
    dig mx my_domain.com

    ; <<>> DiG 9.8.4-rpz2+rl005.12-P1 <<>> mx my_domain.com
    ;; global options: +cmd
    ;; Got answer:
    ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 28227
    ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1

    ;; QUESTION SECTION:
    ;my_domain.com. IN MX

    ;; ANSWER SECTION:
    my_domain.com. 3600 IN MX 10 vps-1130913--myVPS.com.

    ;; ADDITIONAL SECTION:
    vps-1130913-myVPS.com. 3600 IN A xyz.xyz.97.85

    ;; Query time: 35 msec
    ;; SERVER: xyz.xyz.1.130#53(xyz.xyz.1.130)
    ;; WHEN: Wed Aug 19 16:47:40 2015
    ;; MSG SIZE rcvd: 96
    Thank you
     
    Last edited: Aug 19, 2015
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Please post the /etc/postfix/master.cf file from your server.
     
  3. livetv

    livetv Member

    Code:
    #
    # Postfix master process configuration file.  For details on the format
    # of the file, see the master(5) manual page (command: "man 5 master").
    #
    # Do not forget to execute "postfix reload" after editing this file.
    #
    # ==========================================================================
    # service type  private unpriv  chroot  wakeup  maxproc command + args
    #               (yes)   (yes)   (yes)   (never) (100)
    # ==========================================================================
    smtp      inet  n       -       -       -       -       smtpd
    #smtp      inet  n       -       -       -       1       postscreen
    #smtpd     pass  -       -       -       -       -       smtpd
    #dnsblog   unix  -       -       -       -       0       dnsblog
    #tlsproxy  unix  -       -       -       -       0       tlsproxy
    submission inet n       -       -       -       -       smtpd
      -o syslog_name=postfix/submission
      -o smtpd_tls_security_level=encrypt
      -o smtpd_sasl_auth_enable=yes
      -o smtpd_client_restrictions=permit_sasl_authenticated,reject
    #  -o milter_macro_daemon_name=ORIGINATING
    smtps     inet  n       -       -       -       -       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 milter_macro_daemon_name=ORIGINATING
    #628       inet  n       -       -       -       -       qmqpd
    pickup    fifo  n       -       -       60      1       pickup
    cleanup   unix  n       -       -       -       0       cleanup
    qmgr      fifo  n       -       n       300     1       qmgr
    #qmgr     fifo  n       -       n       300     1       oqmgr
    tlsmgr    unix  -       -       -       1000?   1       tlsmgr
    rewrite   unix  -       -       -       -       -       trivial-rewrite
    bounce    unix  -       -       -       -       0       bounce
    defer     unix  -       -       -       -       0       bounce
    trace     unix  -       -       -       -       0       bounce
    verify    unix  -       -       -       -       1       verify
    flush     unix  n       -       -       1000?   0       flush
    proxymap  unix  -       -       n       -       -       proxymap
    proxywrite unix -       -       n       -       1       proxymap
    smtp      unix  -       -       -       -       -       smtp
    relay     unix  -       -       -       -       -       smtp
    #       -o smtp_helo_timeout=5 -o smtp_connect_timeout=5
    showq     unix  n       -       -       -       -       showq
    error     unix  -       -       -       -       -       error
    retry     unix  -       -       -       -       -       error
    discard   unix  -       -       -       -       -       discard
    local     unix  -       n       n       -       -       local
    virtual   unix  -       n       n       -       -       virtual
    lmtp      unix  -       -       -       -       -       lmtp
    anvil     unix  -       -       -       -       1       anvil
    scache    unix  -       -       -       -       1       scache
    #
    # ====================================================================
    # 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
    
    127.0.0.1:10025 inet 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 mynetworks=127.0.0.0/8
            -o strict_rfc821_envelopes=yes
            -o receive_override_options=no_unknown_recipient_checks,no_header_body_checks
    
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    That's ok.

    Please login to webmail and send an email to the same address that you used for the webmail login. the email should appear after 30 - 60 seconds in the inbox of the webmail client. If it does not appear, then check the mail.log file and post all message that were added at the end of the log file for this sending attempt.
     
  5. livetv

    livetv Member

    send it with no error but didnt send or recive
    i can see the mail in the "sent" folder.
    my /var/log/mail.log are empty for this mail
    Code:
    Feb 14 10:30:17 vps-1130913-16121 sm-mta[726]: starting daemon (8.14.3): SMTP+queueing@00:10:00
    Feb 14 10:31:24 vps-1130913-16121 sm-mta[589]: starting daemon (8.14.3): SMTP+queueing@00:10:00
    Feb 14 10:40:00 vps-1130913-16121 sm-mta[1857]: starting daemon (8.14.3): SMTP+queueing@00:10:00
    
    my /var/log/mail.warn is empty
     
  6. till

    till Super Moderator Staff Member ISPConfig Developer

    try:

    service sendmail stop
    service postfix start

    and then retry email sending.
     
  7. livetv

    livetv Member

    The same
     
  8. livetv

    livetv Member

    Sir, How to know what is my default program my server using for sending mail as in my Openmeetings and moodle the system sending and reciving email with no problems...?
    Thank you
     
  9. till

    till Super Moderator Staff Member ISPConfig Developer

    All ispconfig perfect setup servers use postfix as email program. You linked in the first post to a thread about the ispconfig perfect server, so I assume that you use that tutorial if you applied a fix for it on your server.
     
  10. livetv

    livetv Member

    ok sir so what are my options?
     
  11. till

    till Super Moderator Staff Member ISPConfig Developer

    A mail server must log to the mail.log, as that's not the case on your server then either complete base system seems is broken or the Syslog daemon is not working anymore. Please post the link to the perfect server tutorial that you used to install ispconfig on your server.
     
  12. livetv

    livetv Member

  13. till

    till Super Moderator Staff Member ISPConfig Developer

    Ok. And this server worked before you upgraded the OS to wheezy?
     
  14. livetv

    livetv Member

    yes
    i tried to go over the tutorials and i notice that i get some error when apt-get update..
    "
    W: GPG error: http://ftp.de.debian.org wheezy Release: The following signatures were invalid: BADSIG 8B48AD6246925553 Debian Archive Automatic Signing Key (7.0/wheezy) <[email protected]>

    "
    my /etc/apt/source.list
    Code:
    deb http://ftp.de.debian.org/debian wheezy main contrib non-free
    deb-src http://ftp.de.debian.org/debian wheezy main contrib non-free
    deb http://ftp.de.debian.org/debian wheezy-updates main contrib non-free
    deb http://ftp.de.debian.org/debian-security wheezy/updates main contrib non-free
    deb http://deb-multimedia.org squeeze main
    
     
  15. till

    till Super Moderator Staff Member ISPConfig Developer

    Did you run the ispconfig update after you updated the os or did you run the ispconfig update first?
    Did you reboot the server after you updated the os?
     
  16. livetv

    livetv Member

    1.
    to avoid the GPG error, i googled and find solution -
    i clean my source.list (empty)
    apt-get update
    when adding the same repository
    apt-get update
    so know no GPG error

    2. for the problem with my mailbox:
    i update and then upgrade & upgrade ispconfig
    reboot
    getting the same result, can't send or recive email.

    3.
    so I thought maybe it is related to my domain DNS.
    Code:
         NS    MY_DOMAIN.com    ns.myhosting.com    3600    Auto     Active     Yes
         NS    MY_DOMAIN.com    ns2.myhosting.com    3600    Auto     Active     Yes
         NS    MY_DOMAIN.com    ns1.myhosting.com    3600    Auto     Active     Yes
        A    MY_DOMAIN.com.    MY_IP    3600    Manual     Active     Yes
        A    *.MY_DOMAIN.com.    MY_IP    3600    Manual     Active     Yes
        A    mail.MY_DOMAIN.com.    MY_IP    3600    Manual     Active     Yes
        A    www.MY_DOMAIN.com.    MY_IP    3600    Manual     Active     Yes
        MX    MY_DOMAIN.com.    40 mail.MY_DOMAIN.com.    3600    Manual     Active     Yes
        TXT    MY_DOMAIN.com.    "v=spf1 mx -all"    3600    Manual     Active     Yes

    AND WHEN CHECKING MY DNS IGET -
    Code:
    dns    MY_DOMAIN.com    SOA Serial Number Format is Invalid    
        smtp    mail.MY_DOMAIN.com    Reverse DNS does not contain the hostname        smtp    mail.MY_DOMAIN.com    Reverse DNS does not match SMTP Banner
    Thank you
     
  17. till

    till Super Moderator Staff Member ISPConfig Developer

    This can't be related to DNS as a local send & receive test always works even if there are no DNS records. Th first problem that we should try to solve is the loggins as errors can not be tracked without a log. Plesae try:

    apt-get install syslog-ng

    then restart the server and then try to send a email again from webmail to the saem address that you used for webmail login, afterwards check /var/log/mail.log and post the lines that should have been added there for the mail sending attempt now.
     
  18. livetv

    livetv Member

    Aug 21 14:28:37 vps-6121 postfix/error[4645]: 4BF33975801D: to=<[email protected]_HOST.com>, orig_to=<root>, relay=none, delay=50916, delays=50916/0.15/0/0, dsn=4.4.2, status=deferred (delivery temporarily suspended: lost connection with 127.0.0.1[127.0.0.1] while sending RCPT TO)
    Aug 21 14:30:01 vps-6121 dovecot: imap-login: Disconnected (disconnected before greeting, waited 0 secs): user=<>, rip=::1, lip=::1, secured, session=<t2ytltAdJQAAAAAAAAAAAAAAAAAAAAAB>
    Aug 21 14:30:01 vps-6121 dovecot: pop3-login: Disconnected (no auth attempts in 0 secs): user=<>, rip=::1, lip=::1, secured, session=<j6qtltAdwQAAAAAAAAAAAAAAAAAAAAAB>
    Aug 21 14:30:01 vps-6121 postfix/smtpd[4829]: cannot load Certificate Authority data: disabling TLS support
    Aug 21 14:30:01 vps-6121 postfix/smtpd[4829]: warning: TLS library problem: 4829:error:02001002:system library:fopen:No such file or directory:bss_file.c:169:fopen('/etc/ssl/certs/cacert.pem','r'):
    Aug 21 14:30:01 vps-6121 postfix/smtpd[4829]: warning: TLS library problem: 4829:error:2006D080:BIO routines:BIO_new_file:no such file:bss_file.c:172:
    Aug 21 14:30:01 vps-6121 postfix/smtpd[4829]: warning: TLS library problem: 4829:error:0B084002:x509 certificate routines:X509_load_cert_crl_file:system lib:by_file.c:274:
    Aug 21 14:30:01 vps-6121 postfix/smtpd[4829]: connect from localhost[::1]
    Aug 21 14:30:01 vps-6121 postfix/smtpd[4829]: lost connection after CONNECT from localhost[::1]
    Aug 21 14:30:01 vps-6121 postfix/smtpd[4829]: disconnect from localhost[::1]
    Aug 21 14:30:34 vps-6121 dovecot: auth-worker(4861): mysql(localhost): Connected to database dbispconfig
    Aug 21 14:30:34 vps-6121 dovecot: imap-login: Login: user=<support@MY_DOMAIN.com>, method=PLAIN, rip=::1, lip=::1, mpid=4863, secured, session=<bKOXmNAdnwAAAAAAAAAAAAAAAAAAAAAB>
    Aug 21 14:30:34 vps-6121 dovecot: imap(support@MY_DOMAIN.com): Disconnected: Logged out in=44 out=733
    Aug 21 14:30:34 vps-6121 dovecot: imap-login: Login: user=<support@MY_DOMAIN.com>, method=PLAIN, rip=::1, lip=::1, mpid=4865, secured, session=<pq6jmNAdqwAAAAAAAAAAAAAAAAAAAAAB>
    Aug 21 14:30:34 vps-6121 dovecot: imap(support@MY_DOMAIN.com): Disconnected: Logged out in=261 out=1670
    Aug 21 14:30:35 vps-6121 dovecot: imap-login: Login: user=<support@MY_DOMAIN.com>, method=PLAIN, rip=::1, lip=::1, mpid=4867, secured, session=</uinmNAdsAAAAAAAAAAAAAAAAAAAAAAB>
    Aug 21 14:30:35 vps-6121 dovecot: imap(support@MY_DOMAIN.com): Disconnected: Logged out in=117 out=1446
    Aug 21 14:30:51 vps-6121 dovecot: imap-login: Login: user=<support@MY_DOMAIN.com>, method=PLAIN, rip=::1, lip=::1, mpid=4869, secured, session=<KrSgmdAddAAAAAAAAAAAAAAAAAAAAAAB>
    Aug 21 14:30:51 vps-6121 dovecot: imap(support@MY_DOMAIN.com): Disconnected: Logged out in=79 out=710
    Aug 21 14:31:11 vps-6121 postfix/smtpd[4829]: connect from localhost[::1]
    Aug 21 14:31:11 vps-6121 postfix/smtpd[4829]: warning: table "mysql:/etc/postfix/mysql-virtual_client.cf": empty query string -- ignored
    Aug 21 14:31:11 vps-6121 postfix/smtpd[4829]: 5C26C6579401: client=localhost[::1]
    Aug 21 14:31:11 vps-6121 postfix/cleanup[4888]: 5C26C6579401: message-id=<[email protected]>
    Aug 21 14:31:11 vps-6121 postfix/smtpd[4829]: disconnect from localhost[::1]
    Aug 21 14:31:11 vps-6121 postfix/qmgr[4595]: 5C26C6579401: from=<support@MY_DOMAIN.com>, size=752, nrcpt=1 (queue active)
    Aug 21 14:31:11 vps-6121 dovecot: imap-login: Login: user=<support@MY_DOMAIN.com>, method=PLAIN, rip=::1, lip=::1, mpid=4891, secured, session=<nmbSmtAdTgAAAAAAAAAAAAAAAAAAAAAB>
    Aug 21 14:31:11 vps-6121 postfix/error[4889]: 5C26C6579401: to=<support@MY_DOMAIN.com>, relay=none, delay=0.08, delays=0.07/0.01/0/0.01, dsn=4.4.2, status=deferred (delivery temporarily suspended: lost connection with 127.0.0.1[127.0.0.1] while sending RCPT TO)
    Aug 21 14:31:11 vps-6121 dovecot: imap(support@MY_DOMAIN.com): Disconnected: Logged out in=615 out=471
    Aug 21 14:31:12 vps-6121 dovecot: imap-login: Login: user=<support@MY_DOMAIN.com>, method=PLAIN, rip=::1, lip=::1, mpid=4896, secured, session=<EfvcmtAdXQAAAAAAAAAAAAAAAAAAAAAB>
    Aug 21 14:31:12 vps-6121 dovecot: imap(support@MY_DOMAIN.com): Disconnected: Logged out in=117 out=1446
    Aug 21 14:31:35 vps-6121 dovecot: imap-login: Login: user=<support@MY_DOMAIN.com>, method=PLAIN, rip=::1, lip=::1, mpid=4898, secured, session=<rlxGnNAdagAAAAAAAAAAAAAAAAAAAAAB>
    Aug 21 14:31:35 vps-6121 dovecot: imap(support@MY_DOMAIN.com): Disconnected: Logged out in=79 out=710
    Aug 21 14:31:57 vps-6121 postfix/scache[4611]: statistics: start interval Aug 21 14:28:37
    Aug 21 14:31:57 vps-6121 postfix/scache[4611]: statistics: domain lookup hits=0 miss=2 success=0%
    Aug 21 14:31:57 vps-6121 postfix/scache[4611]: statistics: address lookup hits=0 miss=2 success=0%
     
  19. till

    till Super Moderator Staff Member ISPConfig Developer

    Ok, thats better :)

    Seems as if you load the ssl cert file /etc/ssl/certs/cacert.pem in postfix main.cf somewhere, this ssl file is missing. Please post th line from postfix main.cf that loads this file.
     
  20. livetv

    livetv Member

    smtpd_tls_CAfile = /etc/ssl/certs/cacert.pem
     

Share This Page