E-mails not being delivered

Discussion in 'Server Operation' started by N3RVE, Apr 7, 2015.

  1. N3RVE

    N3RVE New Member

    I used the Perfect Server Guide for Ubuntu 14.04 with Apache.

    E-mails worked fine and I don't know when this problem started. I can send e-mails to myself (within the server) from squirrelmail / roundcube and those will deliver without a problem. I logged into my Google account and sent an e-mail to the account hosted on the server while tailing mail.err and mail.log and this is what both files presented:

    Code:
    ==> mail.log <==
    Apr  7 22:04:58 n3rve dovecot: imap([email protected]): Disconnected: Logged out in=79 out=780
    Apr  7 22:05:01 n3rve dovecot: imap-login: Disconnected (no auth attempts in 0 secs): user=<>, rip=::1, lip=::1, secured, session=<wY2XxCgT5AAAAAAAAAAAAAAAAAAAAAAB>
    Apr  7 22:05:01 n3rve dovecot: pop3-login: Disconnected (no auth attempts in 0 secs): user=<>, rip=::1, lip=::1, secured, session=<YJWXxCgTSAAAAAAAAAAAAAAAAAAAAAAB>
    Apr  7 22:05:01 n3rve postfix/smtpd[14433]: warning: cannot get RSA certificate from file /etc/ssl/certs/server.crt: disabling TLS support
    Apr  7 22:05:01 n3rve postfix/smtpd[14433]: warning: TLS library problem: error:02001002:system library:fopen:No such file or directory:bss_file.c:398:fopen('/etc/ssl/certs/server.crt','r'):
    Apr  7 22:05:01 n3rve postfix/smtpd[14433]: warning: TLS library problem: error:20074002:BIO routines:FILE_CTRL:system lib:bss_file.c:400:
    Apr  7 22:05:01 n3rve postfix/smtpd[14433]: warning: TLS library problem: error:140DC002:SSL routines:SSL_CTX_use_certificate_chain_file:system lib:ssl_rsa.c:722:
    Apr  7 22:05:01 n3rve postfix/smtpd[14433]: connect from localhost[127.0.0.1]
    Apr  7 22:05:01 n3rve postfix/smtpd[14433]: lost connection after CONNECT from localhost[127.0.0.1]
    Apr  7 22:05:01 n3rve postfix/smtpd[14433]: disconnect from localhost[127.0.0.1]
    
    ==> mail.err <==
    
    ==> mail.log <==
    Apr  7 22:05:52 n3rve postfix/smtpd[14433]: connect from mail-wi0-f170.google.com[209.85.212.170]
    Apr  7 22:05:52 n3rve postfix/smtpd[14433]: lost connection after STARTTLS from mail-wi0-f170.google.com[209.85.212.170]
    Apr  7 22:05:52 n3rve postfix/cleanup[14486]: C75A412049: message-id=<[email protected]>
    Apr  7 22:05:52 n3rve postfix/qmgr[2921]: C75A412049: from=<[email protected]>, size=877, nrcpt=1 (queue active)
    Apr  7 22:05:52 n3rve postfix/smtpd[14433]: disconnect from mail-wi0-f170.google.com[209.85.212.170]
    Apr  7 22:05:52 n3rve postfix/pipe[14490]: C75A412049: to=<[email protected]>, orig_to=<postmaster>, relay=dovecot, delay=0.06, delays=0.04/0.01/0/0.01, dsn=5.1.1, status=bounced (user unknown)
    Apr  7 22:05:52 n3rve postfix/bounce[14492]: warning: C75A412049: undeliverable postmaster notification discarded
    Apr  7 22:05:52 n3rve postfix/qmgr[2921]: C75A412049: removed
    Apr  7 22:05:58 n3rve dovecot: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=::1, lip=::1, mpid=14499, secured, session=<wd0ByCgT7AAAAAAAAAAAAAAAAAAAAAAB>
    Apr  7 22:05:58 n3rve dovecot: imap([email protected]): Disconnected: Logged out in=79 out=778
    Apr  7 22:05:58 n3rve dovecot: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=::1, lip=::1, mpid=14501, secured, session=<gaQCyCgT7QAAAAAAAAAAAAAAAAAAAAAB>
    Apr  7 22:05:58 n3rve dovecot: imap([email protected]): Disconnected: Logged out in=297 out=8843
    Apr  7 22:08:40 n3rve postfix/smtpd[14590]: warning: cannot get RSA certificate from file /etc/ssl/certs/server.crt: disabling TLS support
    Apr  7 22:08:40 n3rve postfix/smtpd[14590]: warning: TLS library problem: error:02001002:system library:fopen:No such file or directory:bss_file.c:398:fopen('/etc/ssl/certs/server.crt','r'):
    Apr  7 22:08:40 n3rve postfix/smtpd[14590]: warning: TLS library problem: error:20074002:BIO routines:FILE_CTRL:system lib:bss_file.c:400:
    Apr  7 22:08:40 n3rve postfix/smtpd[14590]: warning: TLS library problem: error:140DC002:SSL routines:SSL_CTX_use_certificate_chain_file:system lib:ssl_rsa.c:722:
    Apr  7 22:08:40 n3rve postfix/smtpd[14590]: connect from mail-wi0-f196.google.com[209.85.212.196]
    Apr  7 22:08:40 n3rve postfix/smtpd[14590]: lost connection after STARTTLS from mail-wi0-f196.google.com[209.85.212.196]
    Apr  7 22:08:40 n3rve postfix/cleanup[14596]: 9AF7B12049: message-id=<[email protected]>
    Apr  7 22:08:40 n3rve postfix/qmgr[2921]: 9AF7B12049: from=<[email protected]>, size=877, nrcpt=1 (queue active)
    Apr  7 22:08:40 n3rve postfix/smtpd[14590]: disconnect from mail-wi0-f196.google.com[209.85.212.196]
    Apr  7 22:08:40 n3rve postfix/pipe[14600]: 9AF7B12049: to=<[email protected]>, orig_to=<postmaster>, relay=dovecot, delay=0.05, delays=0.02/0.01/0/0.02, dsn=5.1.1, status=bounced (user unknown)
    Apr  7 22:08:40 n3rve postfix/bounce[14604]: warning: 9AF7B12049: undeliverable postmaster notification discarded
    Apr  7 22:08:40 n3rve postfix/qmgr[2921]: 9AF7B12049: removed
    Apr  7 22:10:01 n3rve postfix/smtpd[14590]: connect from localhost[127.0.0.1]
    Apr  7 22:10:01 n3rve postfix/smtpd[14590]: lost connection after CONNECT from localhost[127.0.0.1]
    Apr  7 22:10:01 n3rve postfix/smtpd[14590]: disconnect from localhost[127.0.0.1]
    Apr  7 22:10:01 n3rve dovecot: imap-login: Disconnected (no auth attempts in 0 secs): user=<>, rip=::1, lip=::1, secured, session=<XpB31igT+gAAAAAAAAAAAAAAAAAAAAAB>
    Apr  7 22:10:01 n3rve dovecot: pop3-login: Disconnected (no auth attempts in 0 secs): user=<>, rip=::1, lip=::1, secured, session=<n5N31igTXgAAAAAAAAAAAAAAAAAAAAAB>
    Apr  7 22:13:03 n3rve dovecot: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=::1, lip=::1, mpid=14822, secured, session=<z0FM4SgT/wAAAAAAAAAAAAAAAAAAAAAB>
    Apr  7 22:13:03 n3rve dovecot: imap([email protected]): Disconnected: Logged out in=29 out=472
    Apr  7 22:13:03 n3rve dovecot: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=::1, lip=::1, mpid=14824, secured, session=<PjJR4SgTAAAAAAAAAAAAAAAAAAAAAAAB>
    Apr  7 22:13:03 n3rve dovecot: imap([email protected]): Disconnected: Logged out in=70 out=655
    Apr  7 22:13:04 n3rve dovecot: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=::1, lip=::1, mpid=14826, secured, session=<565l4SgTAQAAAAAAAAAAAAAAAAAAAAAB>
    Apr  7 22:13:04 n3rve dovecot: imap([email protected]): Disconnected: Logged out in=307 out=17725
    Apr  7 22:13:04 n3rve dovecot: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=::1, lip=::1, mpid=14828, secured, session=<dTNn4SgTAgAAAAAAAAAAAAAAAAAAAAAB>
    Apr  7 22:13:04 n3rve dovecot: imap([email protected]): Disconnected: Logged out in=233 out=892
    Apr  7 22:13:08 n3rve dovecot: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=::1, lip=::1, mpid=14833, secured, session=<YgGd4SgTAwAAAAAAAAAAAAAAAAAAAAAB>
    Apr  7 22:13:08 n3rve dovecot: imap([email protected]): Disconnected: Logged out in=303 out=2584
    Apr  7 22:13:12 n3rve dovecot: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=::1, lip=::1, mpid=14835, secured, session=<FDvV4SgTBAAAAAAAAAAAAAAAAAAAAAAB>
    Apr  7 22:13:12 n3rve dovecot: imap([email protected]): Disconnected: Logged out in=307 out=17725
    Apr  7 22:13:12 n3rve postfix/smtpd[14836]: warning: cannot get RSA certificate from file /etc/ssl/certs/server.crt: disabling TLS support
    Apr  7 22:13:12 n3rve postfix/smtpd[14836]: warning: TLS library problem: error:02001002:system library:fopen:No such file or directory:bss_file.c:398:fopen('/etc/ssl/certs/server.crt','r'):
    Apr  7 22:13:12 n3rve postfix/smtpd[14836]: warning: TLS library problem: error:20074002:BIO routines:FILE_CTRL:system lib:bss_file.c:400:
    Apr  7 22:13:12 n3rve postfix/smtpd[14836]: warning: TLS library problem: error:140DC002:SSL routines:SSL_CTX_use_certificate_chain_file:system lib:ssl_rsa.c:722:
    Apr  7 22:13:12 n3rve postfix/smtpd[14836]: connect from mail-wg0-f48.google.com[74.125.82.48]
    Apr  7 22:13:13 n3rve postfix/smtpd[14836]: lost connection after STARTTLS from mail-wg0-f48.google.com[74.125.82.48]
    Apr  7 22:13:13 n3rve postfix/cleanup[14840]: 11F9B12049: message-id=<[email protected]>
    Apr  7 22:13:13 n3rve postfix/qmgr[2921]: 11F9B12049: from=<[email protected]>, size=873, nrcpt=1 (queue active)
    Apr  7 22:13:13 n3rve postfix/smtpd[14836]: disconnect from mail-wg0-f48.google.com[74.125.82.48]
    Apr  7 22:13:13 n3rve postfix/pipe[14844]: 11F9B12049: to=<[email protected]>, orig_to=<postmaster>, relay=dovecot, delay=0.04, delays=0.02/0.01/0/0.01, dsn=5.1.1, status=bounced (user unknown)
    Apr  7 22:13:13 n3rve postfix/bounce[14846]: warning: 11F9B12049: undeliverable postmaster notification discarded
    Apr  7 22:13:13 n3rve postfix/qmgr[2921]: 11F9B12049: removed
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Your ssl cert /etc/ssl/certs/server.crt is missing.
     
  3. N3RVE

    N3RVE New Member

    Thank you very much, till. I confirmed the /etc/ssl directory didn't exist. I don't know how that happened as this was working before now. I also confirmed from the main.cf file was looking in the missing directory for the certificate.
    Code:
    $~: cat /etc/postfix/main.cf | grep crt
    smtpd_tls_cert_file = /etc/ssl/certs/server.crt
    I manually recreated the missing directories and attempted to create new certificates, but ran into another issue:
    Code:
    $~: mkdir -p /etc/ssl/certs
    $~: openssl req -new -x509 -days 3650 -nodes -out /etc/ssl/certs/postfix.pem -keyout /etc/ssl/private/postfix.pem
    WARNING: can't open config file: /usr/lib/ssl/openssl.cnf
    Unable to load config info from /usr/lib/ssl/openssl.cnf
    I believe there's something wrong with my OpenSSL installation. Any help on this one?
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    try to reinstall openssl with:

    apt-get install --reinstall openssl
     

Share This Page