V
V
Vyacheslav Kordienko2017-01-24 17:54:38
postfix
Vyacheslav Kordienko, 2017-01-24 17:54:38

Not sending mail with Rcube?

Hi all!
I can’t understand why mail is not sent from the RoundCube web interface
From clients (Moz Thbrd, eM Client) everything is ok
Telnet also passes
Permissions to folders

ls -lh /var/vmail
drwxrwx--- 4 vmail mail 4.0K Jan 20 12:19 site.ru

Error log var/log/mailog
spoiler
Jan 24 17:36:30 site dovecot: auth: Debug: auth client connected (pid=2450)
Jan 24 17:36:30 site dovecot: auth: Debug: client in: AUTH#0111#011CRAM-MD5#011service=imap#011secured#011lip=127.0.0.1#011rip=127.0.0.1#011lport=143#011rport=57114
Jan 24 17:36:30 site dovecot: auth: Debug: client out: CONT#0111#011PDA0MTk1NTc1MzkzMTcwODkuMTQ4NTI2ODU5MEBzdGF0dXM+
Jan 24 17:36:30 site dovecot: auth: Debug: client in: CONT#0111#011dGVzdGVyQGNhcmNhbS5ydSAzNzhhNTcwOWNiNzM0MDA4NzBkZGYwMWQ3NDdlNDExYw==
Jan 24 17:36:30 site dovecot: auth: Debug: sql([email protected],127.0.0.1): query: SELECT username as user, password, '/var/vmail/site.ru/tester' as userdb_home, 'maildir:/var/vmail/site.ru/tester' as userdb_mail, 1150 as userdb_uid, 12 asuserdb_gid FROM mailbox WHERE username = '[email protected]' AND active = '1'
Jan 24 17:36:30 site dovecot: auth: Debug: password([email protected],127.0.0.1): Credentials: 554ea298a95c70f4d47c3895501be1ed7031c27577aaee09bff3323754a0cc1b
Jan 24 17:36:30 site dovecot: auth: Debug: client out: OK#0111#[email protected]#011asuserdb_gid=12
Jan 24 17:36:30 site dovecot: auth: Debug: master in: REQUEST#011469893121#0112450#0111#011b523755b5865ae38f6278b03f9e0e5a3
Jan 24 17:36:30 site dovecot: auth: Debug: sql([email protected],127.0.0.1): SELECT '/var/vmail/site.ru/tester' as home, 'maildir:/var/vmail/site.ru/tester'as mail, 1150 AS uid, 12 AS gid, concat('dirsize:storage=', quota) AS quota FROM mailbox WHERE username = '[email protected]' AND active = '1'
Jan 24 17:36:30 site dovecot: auth: Debug: master out: USER#011469893121#[email protected]#011home=/var/vmail/site.ru/tester#011mail=maildir:/var/vmail/site.ru/tester#011uid=1150#011gid=12#011quota=dirsize:storage=0
Jan 24 17:36:30 site dovecot: imap-login: Login: user=<[email protected]>, method=CRAM-MD5, rip=127.0.0.1, lip=127.0.0.1, mpid=2451, secured
Jan 24 17:36:30 site dovecot: imap: Debug: Loading modules from directory: /usr/lib64/dovecot
Jan 24 17:36:30 site dovecot: imap: Debug: Module loaded: /usr/lib64/dovecot/lib20_autocreate_plugin.so
Jan 24 17:36:30 site dovecot: imap: Debug: Added userdb setting: mail=maildir:/var/vmail/site.ru/tester
Jan 24 17:36:30 site dovecot: imap: Debug: Added userdb setting: plugin/quota=dirsize:storage=0
Jan 24 17:36:30 site dovecot: imap([email protected]): Debug: Effective uid=1150, gid=12, home=/var/vmail/site.ru/tester
Jan 24 17:36:30 site dovecot: imap([email protected]): Debug: maildir++: root=/var/vmail/site.ru/tester, index=, control=, inbox=/var/vmail/site.ru/tester
Jan 24 17:36:30 site dovecot: imap([email protected]): Debug: Namespace : Using permissions from /var/vmail/site.ru/tester: mode=0770 gid=-1
Jan 24 17:36:30 site dovecot: imap([email protected]): Disconnected: Logged out bytes=44/531


Dovecot.conf
spoiler
auth_debug = yes
auth_debug_passwords = yes
auth_mechanisms = plain login cram-md5
auth_verbose = yes
base_dir = /var/run/dovecot/
disable_plaintext_auth = no

ssl = yes
ssl_cert = </etc/postfix/certs/cert.pem
ssl_key = </etc/postfix/certs/key.pem

first_valid_uid = 1150
last_valid_uid = 1150
log_timestamp = %Y-%m-%d %H:%M:%S
mail_debug = yes
mail_location = maildir:/var/vmail/%d/%u

passdb {
          args = /etc/dovecot/dovecot-sql.conf
          driver = sql
}

protocols = imap pop3

service auth {
   unix_listener /var/spool/postfix/private/dovecot-auth {
          user = postfix
          group = postfix
          mode = 0660
    }
   unix_listener auth-master {
          user = vmail
          group = mail
          mode = 0660
    }
   unix_listener auth-userdb {
          user = vmail
          group = mail
          mode = 0660
    }

#user=root
}

service imap-login {
    executable = /usr/libexec/dovecot/imap-login
           inet_listener imap {
           address = *
           port = 143
     }

           inet_listener imaps {
           port = 993
           ssl = yes
     }
}

service imap {
    executable = /usr/libexec/dovecot/imap
}

service pop3-login {
     executable = /usr/libexec/dovecot/pop3-login
           inet_listener pop3 {
           address = *
           port = 110
     }
           inet_listener pop3s {
           port = 995
           ssl = yes
     }
}

service pop3 {
           executable = /usr/libexec/dovecot/pop3
}

userdb {
           args = /etc/dovecot/dovecot-sql.conf
           driver = sql
} 

protocol lda {
            auth_socket_path = /var/run/dovecot/auth-master
            postmaster_address = [email protected]
}


protocol imap {
  mail_plugins = $mail_plugins autocreate
}

plugin {
    autocreate = INBOX
    autocreate2 = Sent
    autocreate3 = Trash
    autocreate4 = Drafts
    autocreate5 = Junk
    autosubscribe = INBOX
    autosubscribe2 = Sent
    autosubscribe3 = Trash
    autosubscribe4 = Drafts
    autosubscribe5 = Junk
}

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry Shitskov, 2017-01-24
@AmonTobin

You speak

mail is not sent
and post the IMAP log... Don't do it like that.
Post your postfix log when trying to send from RoundCube

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question