ubuntu PostFix + Dovecot mail server

Discussion in 'Server Operation' started by mraheel83, Jun 24, 2014.

  1. mraheel83

    mraheel83 New Member

    /log/mail.log
    HTML:
    Jun 24 06:23:40 mail postfix/pickup[2428]: 05EB422240: uid=33 from=<[email protected]>
    Jun 24 06:23:40 mail dovecot: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=2695, secured, session=<GJMoAI/8igB/AAAB>
    Jun 24 06:23:40 mail postfix/cleanup[2692]: 05EB422240: message-id=<[email protected]>
    Jun 24 05:23:30 mail postfix/qmgr[65416]: message repeated 5 times: [ 8365721A8F: from=<[email protected]>, size=610, nrcpt=1 (queue active)]
    Jun 24 06:23:40 mail postfix/qmgr[65416]: 05EB422240: from=<[email protected]>, size=742, nrcpt=1 (queue active)
    Jun 24 06:23:40 mail postfix/smtp[2698]: connect to gmail-smtp-in.l.google.com[2a00:1450:400c:c03::1b]:25: Network is unreachable
    Jun 24 06:23:40 mail dovecot: imap([email protected]): Disconnected: Logged out in=676 out=569
    Jun 24 06:23:40 mail postfix/smtp[2698]: 05EB422240: to=<[email protected]>, relay=gmail-smtp-in.l.google.com[173.194.66.26]:25, delay=0.51, delays=0.07/0.02/0.16/0.27, dsn=5.7.1, status=bounced (host gmail-smtp-in.l.google.com[173.194.66.26] said: 550-5.7.1 [137.116.226.50      12] Our system has detected that this message is 550-5.7.1 likely unsolicited mail. To reduce the amount of spam sent to Gmail, 550-5.7.1 this message has been blocked. Please visit 550-5.7.1 http://support.google.com/mail/bin/answer.py?hl=en&answer=188131 for 550 5.7.1 more information. m2si6411715wix.100 - gsmtp (in reply to end of DATA command))
    Jun 24 06:23:40 mail postfix/cleanup[2692]: 81E8A2226C: message-id=<[email protected]>
    Jun 24 06:23:40 mail postfix/qmgr[65416]: 81E8A2226C: from=<>, size=3293, nrcpt=1 (queue active)
    Jun 24 06:23:40 mail postfix/bounce[2699]: 05EB422240: sender non-delivery notification: 81E8A2226C
    Jun 24 06:23:40 mail postfix/qmgr[65416]: 05EB422240: removed
    Jun 24 06:23:40 mail dovecot: lda([email protected]): msgid=<[email protected]>: saved mail to INBOX
    Jun 24 06:23:40 mail postfix/pipe[2700]: 81E8A2226C: to=<[email protected]>, relay=dovecot, delay=0.14, delays=0.03/0.01/0/0.1, dsn=2.0.0, status=sent (delivered via dovecot service)
    Jun 24 06:23:40 mail postfix/qmgr[65416]: 81E8A2226C: removed
    Jun 24 06:23:40 mail dovecot: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=2703, secured, session=<kek1AI/8kQB/AAAB>
    Jun 24 06:23:40 mail dovecot: imap([email protected]): Disconnected: Logged out in=12 out=403
    Jun 24 06:23:41 mail dovecot: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=2705, secured, session=<XhJFAI/8kwB/AAAB>
    Jun 24 06:23:41 mail dovecot: imap([email protected]): Disconnected: Logged out in=315 out=3773
    

    /log/mail.err
    HTML:
    Jun 23 10:45:03 mail postfix[60676]: fatal: usage: postfix [-c config_dir] [-Dv] command
    Jun 23 10:45:29 mail postfix[60678]: fatal: usage: postfix [-c config_dir] [-Dv] command
    Jun 23 12:58:21 mail dovecot: auth: Error: read(anvil-auth-penalty) failed: EOF
    Jun 23 12:58:21 mail dovecot: auth: Error: net_connect_unix(anvil-auth-penalty) failed: Permission denied
    Jun 23 16:08:15 mail postfix/smtpd[64088]: fatal: chdir("/var/spool/postfix/private/auth"): Not a directory
    Jun 23 16:09:16 mail postfix/smtpd[64112]: fatal: chdir("/var/spool/postfix/private/auth"): Not a directory
    Jun 23 16:10:17 mail postfix/smtpd[64165]: fatal: chdir("/var/spool/postfix/private/auth"): Not a directory
    Jun 23 16:13:05 mail postfix/smtpd[64626]: fatal: no SASL authentication mechanisms
    Jun 23 16:15:06 mail postfix/smtpd[64747]: fatal: no SASL authentication mechanisms
    Jun 23 16:17:08 mail postfix/smtpd[64872]: fatal: no SASL authentication mechanisms

    Dovecot Configuration: (dovecot -n)
    HTML:
    # 2.2.9: /etc/dovecot/dovecot.conf
    # OS: Linux 3.13.0-29-generic x86_64 Ubuntu 14.04 LTS ext4
    auth_mechanisms = plain login
    first_valid_uid = 150
    last_valid_uid = 150
    mail_gid = mail
    mail_location = maildir:/var/vmail/%d/%n
    mail_uid = vmail
    namespace inbox {
      inbox = yes
      location =
      mailbox Drafts {
        special_use = \Drafts
      }
      mailbox Junk {
        special_use = \Junk
      }
      mailbox Sent {
        special_use = \Sent
      }
      mailbox "Sent Messages" {
        special_use = \Sent
      }
      mailbox Trash {
        special_use = \Trash
      }
      prefix =
    }
    passdb {
      args = /etc/dovecot/dovecot-sql.conf.ext
      driver = sql
    }
    postmaster_address = [email protected]
    protocols = " imap pop3"
    service auth {
      unix_listener /var/spool/postfix/private/auth {
        group = postfix
        mode = 0666
        user = postfix
      }
      unix_listener auth-userdb {
        group = mail
        mode = 0666
        user = vmail
      }
    }
    ssl_cert = </etc/ssl/certs/ssl-cert-snakeoil.pem
    ssl_key = </etc/ssl/private/ssl-cert-snakeoil.key
    userdb {
      args = /etc/dovecot/dovecot-sql.conf.ext
      driver = sql
    }
    
    PostFix Configuration:
    HTML:
    alias_maps = hash:/etc/aliases
    append_dot_mydomain = no
    biff = no
    broken_sasl_auth_clients = yes
    config_directory = /etc/postfix
    content_filter = amavis:[127.0.0.1]:10024
    disable_vrfy_command = yes
    dovecot_destination_recipient_limit = 1
    enable_original_recipient = no
    header_checks = regexp:/etc/postfix/header_checks
    inet_interfaces = all
    mailbox_size_limit = 0
    maximal_backoff_time = 8000s
    maximal_queue_lifetime = 7d
    minimal_backoff_time = 1000s
    mydestination =
    myhostname = mail.domain.asia
    mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
    mynetworks_style = host
    myorigin = /etc/hostname
    queue_directory = /var/spool/postfix
    readme_directory = no
    recipient_delimiter = +
    smtp_helo_timeout = 60s
    smtp_tls_note_starttls_offer = yes
    smtp_tls_security_level = may
    smtpd_banner = $myhostname ESMTP $mail_name
    smtpd_client_restrictions = reject_rbl_client sbl.spamhaus.org, reject_rbl_client blackholes.easynet.nl, reject_rbl_client dnsbl.njabl.org
    smtpd_data_restrictions = reject_unauth_pipelining
    smtpd_delay_reject = yes
    smtpd_hard_error_limit = 12
    smtpd_helo_required = yes
    smtpd_helo_restrictions = permit_mynetworks, warn_if_reject reject_non_fqdn_hostname, reject_invalid_hostname, permit
    smtpd_recipient_limit = 16
    smtpd_recipient_restrictions = reject_unauth_pipelining, permit_mynetworks, permit_sasl_authenticated, reject_non_fqdn_recipient, reject_unknown_recipient_domain, reject_unauth_destination, check_policy_service inet:127.0.0.1:10023, permit
    smtpd_relay_restrictions = reject_unauth_pipelining, permit_mynetworks, permit_sasl_authenticated, reject_non_fqdn_recipient, reject_unknown_recipient_domain, reject_unauth_destination, check_policy_service inet:127.0.0.1:10023, permit
    smtpd_sasl_auth_enable = yes
    smtpd_sasl_authenticated_header = yes
    smtpd_sasl_local_domain =
    smtpd_sasl_path = private/auth
    smtpd_sasl_security_options = noanonymous
    smtpd_sasl_type = dovecot
    smtpd_sender_restrictions = permit_sasl_authenticated, permit_mynetworks, warn_if_reject reject_non_fqdn_sender, reject_unknown_sender_domain, reject_unauth_pipelining, permit
    smtpd_soft_error_limit = 3
    smtpd_tls_cert_file = /etc/ssl/certs/ssl-cert-snakeoil.pem
    smtpd_tls_key_file = /etc/ssl/private/ssl-cert-snakeoil.key
    smtpd_tls_loglevel = 1
    smtpd_tls_received_header = yes
    smtpd_tls_security_level = may
    smtpd_tls_session_cache_timeout = 3600s
    tls_random_source = dev:/dev/urandom
    unknown_local_recipient_reject_code = 450
    virtual_alias_maps = mysql:/etc/postfix/mysql_virtual_alias_maps.cf, mysql:/etc/postfix/mysql_virtual_alias_domainaliases_maps.cf
    virtual_gid_maps = static:8
    virtual_mailbox_base = /var/vmail
    virtual_mailbox_domains = mysql:/etc/postfix/mysql_virtual_domains_maps.cf
    virtual_mailbox_maps = mysql:/etc/postfix/mysql_virtual_mailbox_maps.cf, mysql:/etc/postfix/mysql_virtual_mailbox_domainaliases_maps.cf
    virtual_transport = dovecot
    virtual_uid_maps = static:150
    


    I'm unable to create an email account in email client. It gives an authentication error. when I'm sending an email from telnet then email send properly.

    Can you please guide me?

    Thanks
     

Share This Page