mailserver not receiving mails

Discussion in 'HOWTO-Related Questions' started by NovaMoon, Jan 13, 2016.

  1. NovaMoon

    NovaMoon New Member

    hello! i set up a mailserver today usingt this guide
    https://www.howtoforge.com/tutorial...l-pureftpd-bind-postfix-doveot-and-ispconfig/
    i think i set eveything correct up but i can only send them. i tried "mailq" and got

    Code:
    root@ts:~# mailq
    -Queue ID- --Size-- ----Arrival Time---- -Sender/Recipient-------
    57485E0C04     2211 Wed Jan 13 04:01:35  [email protected]
                                                               (temporary failure)
                                                          [email protected]
    -- 2 Kbytes in 1 Request.
    here is also my postconf -n

    Code:
    alias_database = hash:/etc/aliases, hash:/var/lib/mailman/data/aliases
    alias_maps = hash:/etc/aliases, hash:/var/lib/mailman/data/aliases
    append_dot_mydomain = no
    biff = no
    body_checks = regexp:/etc/postfix/body_checks
    broken_sasl_auth_clients = yes
    config_directory = /etc/postfix
    content_filter = amavis:[127.0.0.1]:10024
    dovecot_destination_recipient_limit = 1
    header_checks = regexp:/etc/postfix/header_checks
    html_directory = /usr/share/doc/postfix/html
    inet_interfaces = all
    inet_protocols = all
    mailbox_size_limit = 0
    maildrop_destination_concurrency_limit = 1
    maildrop_destination_recipient_limit = 1
    message_size_limit = 0
    mime_header_checks = regexp:/etc/postfix/mime_header_checks
    mydestination = domain.com, localhost, localhost.localdomain
    myhostname = domain.com
    mynetworks = 127.0.0.0/8 [::1]/128
    myorigin = /etc/mailname
    nested_header_checks = regexp:/etc/postfix/nested_header_checks
    owner_request_special = no
    proxy_read_maps = $local_recipient_maps $mydestination $virtual_alias_maps $virtual_alias_domains $virtual_mailbox_maps $virtual_mailbox_domains $relay_recipient_maps $relay_domains $canonical_maps $sender_canonical_maps $recipient_canonical_maps $relocated_maps $transport_maps $mynetworks
    readme_directory = /usr/share/doc/postfix
    receive_override_options = no_address_mappings
    recipient_delimiter = +
    relay_domains = mysql:/etc/postfix/mysql-virtual_relaydomains.cf
    relay_recipient_maps = mysql:/etc/postfix/mysql-virtual_relayrecipientmaps.cf
    relayhost =
    smtp_tls_protocols = !SSLv2,!SSLv3
    smtp_tls_security_level = may
    smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
    smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
    smtpd_client_message_rate_limit = 100
    smtpd_client_restrictions = check_client_access mysql:/etc/postfix/mysql-virtual_client.cf
    smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination, check_recipient_access mysql:/etc/postfix/mysql-virtual_recipient.cf
    smtpd_relay_restrictions = permit_mynetworks permit_sasl_authenticated defer_unauth_destination
    smtpd_sasl_auth_enable = yes
    smtpd_sasl_authenticated_header = yes
    smtpd_sasl_path = private/auth
    smtpd_sasl_type = dovecot
    smtpd_sender_restrictions = check_sender_access regexp:/etc/postfix/tag_as_originating.re, permit_mynetworks, permit_sasl_authenticated, check_sender_access mysql:/etc/postfix/mysql-virtual_sender.cf, check_sender_access regexp:/etc/postfix/tag_as_foreign.re
    smtpd_tls_cert_file = /etc/postfix/smtpd.cert
    smtpd_tls_key_file = /etc/postfix/smtpd.key
    smtpd_tls_mandatory_protocols = !SSLv2, !SSLv3
    smtpd_tls_protocols = !SSLv2,!SSLv3
    smtpd_tls_security_level = may
    smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
    smtpd_use_tls = yes
    transport_maps = hash:/var/lib/mailman/data/transport-mailman, proxy:mysql:/etc/postfix/mysql-virtual_transports.cf
    virtual_alias_domains =
    virtual_alias_maps = hash:/var/lib/mailman/data/virtual-mailman, proxy:mysql:/etc/postfix/mysql-virtual_forwardings.cf, proxy:mysql:/etc/postfix/mysql-virtual_email2email.cf
    virtual_gid_maps = static:5000
    virtual_mailbox_base = /var/vmail
    virtual_mailbox_domains = proxy:mysql:/etc/postfix/mysql-virtual_domains.cf
    virtual_mailbox_maps = proxy:mysql:/etc/postfix/mysql-virtual_mailboxes.cf
    virtual_transport = dovecot
    virtual_uid_maps = static:5000
    

    i ran the site through mxtoolbox.com and everything was fine there.
     
    charan likes this.
  2. till

    till Super Moderator Staff Member ISPConfig Developer

  3. NovaMoon

    NovaMoon New Member

    its a remote server
     
  4. NovaMoon

    NovaMoon New Member

    also there seems to be permission errors going on too...i had to chmod 777 the vmail directory before i could even access the webmail and now i still get permission errors here.

    Code:
    Jan 13 14:10:24 ts dovecot: lda([email protected]): Fatal: setresgid(5000,5000,150(vmail)) failed with euid=150(vmail): Operation not permitted
     
  5. NovaMoon

    NovaMoon New Member

    after a fresh install without changing anything post installation. i logged in with thunderbird and was able to send a mail. but not receive. when i try to login in roundcube it says "connection to the server failed"
    mail.log has this here.

    Code:
    Jan 13 15:25:02 ts dovecot: imap-login: Disconnected (no auth attempts in 0 secs): user=<>, rip=::1, lip=::1, secured, session=<kJeI7zcpOAAAAAAAAAAAAAAAAAAAAAAB>
    Jan 13 15:25:02 ts dovecot: pop3-login: Disconnected (no auth attempts in 0 secs): user=<>, rip=::1, lip=::1, secured, session=<ZquI7zcpZgAAAAAAAAAAAAAAAAAAAAAB>
    Jan 13 15:25:02 ts postfix/smtpd[2091]: connect from localhost[::1]
    Jan 13 15:25:02 ts postfix/smtpd[2091]: lost connection after CONNECT from localhost[::1]
    Jan 13 15:25:02 ts postfix/smtpd[2091]: disconnect from localhost[::1]
    Jan 13 15:25:24 ts postfix/smtpd[2091]: connect from mail-wm0-f47.google.com[74.125.82.47]
    Jan 13 15:25:24 ts postfix/smtpd[2091]: NOQUEUE: filter: RCPT from mail-wm0-f47.google.com[74.125.82.47]: <[email protected]>: Sender address triggers FILTER amavis:[127.0.0.1]:10026; from=<[email protected]> to=<[email protected]> proto=ESMTP helo=<mail-wm0-f47.google.com>
    Jan 13 15:25:24 ts postfix/smtpd[2091]: NOQUEUE: filter: RCPT from mail-wm0-f47.google.com[74.125.82.47]: <[email protected]>: Sender address triggers FILTER amavis:[127.0.0.1]:10024; from=<[email protected]> to=<[email protected]> proto=ESMTP helo=<mail-wm0-f47.google.com>
    Jan 13 15:25:24 ts postfix/smtpd[2091]: B757BE05CA: client=mail-wm0-f47.google.com[74.125.82.47]
    Jan 13 15:25:24 ts postfix/cleanup[2157]: B757BE05CA: message-id=<CAEai0afivfkaL0kbaG-Afh20z7kkBOGqSOrFdYwO7o04LNXFGw@mail.gmail.com>
    Jan 13 15:25:26 ts postfix/qmgr[1633]: B757BE05CA: from=<[email protected]>, size=3108, nrcpt=1 (queue active)
    Jan 13 15:25:26 ts postfix/smtpd[2091]: disconnect from mail-wm0-f47.google.com[74.125.82.47]
    Jan 13 15:25:29 ts postfix/smtpd[1693]: C9F79E05C3: client=localhost[127.0.0.1]
    Jan 13 15:25:29 ts postfix/cleanup[2157]: C9F79E05C3: message-id=<CAEai0afivfkaL0kbaG-Afh20z7kkBOGqSOrFdYwO7o04LNXFGw@mail.gmail.com>
    Jan 13 15:25:29 ts postfix/smtpd[1693]: disconnect from localhost[127.0.0.1]
    Jan 13 15:25:29 ts postfix/qmgr[1633]: C9F79E05C3: from=<[email protected]>, size=3628, nrcpt=1 (queue active)
    Jan 13 15:25:29 ts amavis[2008]: (02008-02) Passed CLEAN {RelayedInbound}, [74.125.82.47]:34347 [74.125.82.47] <[email protected]> -> <[email protected]>, Queue-ID: B757BE05CA, Message-ID: <CAEai0afivfkaL0kbaG-Afh20z7kkBOGqSOrFdYwO7o04LNXFGw@mail.gmail.com>, mail_id: UG0KZ_ZCS-d9, Hits: 0.143, size: 3108, queued_as: C9F79E05C3, dkim_sd=20120113:gmail.com, 3448 ms
    Jan 13 15:25:29 ts postfix/smtp[2158]: B757BE05CA: to=<[email protected]>, relay=127.0.0.1[127.0.0.1]:10024, delay=5.2, delays=1.7/0.01/0/3.4, 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 C9F79E05C3)
    Jan 13 15:25:29 ts postfix/qmgr[1633]: B757BE05CA: removed
    Jan 13 15:25:29 ts dovecot: lda([email protected]): Fatal: setresgid(5000,5000,150(vmail)) failed with euid=150(vmail): Operation not permitted
    Jan 13 15:25:29 ts postfix/pipe[2161]: C9F79E05C3: to=<[email protected]>, relay=dovecot, delay=0.14, delays=0.08/0.01/0/0.05, dsn=4.3.0, status=deferred (temporary failure)
    Jan 13 15:26:35 ts dovecot: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=::1, lip=::1, mpid=2230, secured, session=<6Bwc9TcpVAAAAAAAAAAAAAAAAAAAAAAB>
    Jan 13 15:26:35 ts dovecot: imap([email protected]): Error: chdir(/var/vmail/ts.3v.fi/novamoon/) failed: Permission denied (euid=5000(<unknown>) egid=5000(<unknown>) missing +x perm: /var/vmail/ts.3v.fi, dir owned by 150:150 mode=0700)
    Jan 13 15:26:35 ts dovecot: imap([email protected]): Error: chdir(/var/vmail/ts.3v.fi/novamoon) failed: Permission denied
    Jan 13 15:26:35 ts dovecot: imap([email protected]): Error: User initialization failed: Initializing mail storage from mail_location setting failed: stat(/var/vmail/ts.3v.fi/novamoon/Maildir) failed: Permission denied (euid=5000(<unknown>) egid=5000(<unknown>) missing +x perm: /var/vmail/ts.3v.fi, dir owned by 150:150 mode=0700)
    Jan 13 15:26:35 ts dovecot: imap([email protected]): Error: Invalid user settings. Refer to server log for more information.
    Jan 13 15:27:45 ts postfix/smtpd[2029]: timeout after END-OF-MESSAGE from localhost[127.0.0.1]
    Jan 13 15:27:45 ts postfix/smtpd[2029]: disconnect from localhost[127.0.0.1]
    Jan 13 15:27:46 ts postfix/qmgr[1633]: D5A0CE0F6C: from=<[email protected]>, size=1288, nrcpt=1 (queue active)
    Jan 13 15:27:46 ts dovecot: lda([email protected]): Fatal: setresgid(5000,5000,150(vmail)) failed with euid=150(vmail): Operation not permitted
    Jan 13 15:27:46 ts postfix/pipe[2247]: D5A0CE0F6C: to=<[email protected]>, relay=dovecot, delay=343, delays=343/0.01/0/0.07, dsn=4.3.0, status=deferred (temporary failure)
     
  6. till

    till Super Moderator Staff Member ISPConfig Developer

    Seems as if the mail system can not create the mail folders on the harddisk of your server. Please post the output of:

    ls -la /var/vmail

    and

    df -h
     
  7. NovaMoon

    NovaMoon New Member

    ls -la /var/vmail

    Code:
    root@ts:~# ls -la /var/vmail
    total 20
    drwxr-xr-x  4 root  root  4096 Jan 13 15:22 .
    drwxr-xr-x 15 root  root  4096 Jan 13 15:16 ..
    -rw-------  1 vmail vmail 1454 Jan 13 15:16 .mailfilter
    drwxr-xr-x  2 root  root  4096 Jan 13 15:16 mailfilters
    drwx------  3 vmail vmail 4096 Jan 13 15:22 ts.3v.fi
    
    df -h
    Code:
    root@ts:~# df -h
    Filesystem      Size  Used Avail Use% Mounted on
    udev            1.5G     0  1.5G   0% /dev
    tmpfs           301M   18M  284M   6% /run
    /dev/vda1        27G  6.6G   19G  26% /
    tmpfs           1.5G   76K  1.5G   1% /dev/shm
    tmpfs           5.0M     0  5.0M   0% /run/lock
    tmpfs           1.5G     0  1.5G   0% /sys/fs/cgroup
    cgmfs           100K     0  100K   0% /run/cgmanager/fs
    tmpfs           301M   16K  301M   1% /run/user/1001
    root@ts:~#
    
     
  8. till

    till Super Moderator Staff Member ISPConfig Developer

    Thats ok so far. Please login to the webmail client on this server, then send an email to the same address that you used for webmail login from the webmail client, wait a minute and refresh the view to see if this email arrives in webmail. If thats the case, then the internal mail system works, if it is not the case, then please post the new lines that got added to the mail.log file.

    Beside that, post the output of the system test script: https://www.howtoforge.com/community/threads/please-read-before-posting.58408/
     
  9. NovaMoon

    NovaMoon New Member

    here the script you asked me to do~
    Code:
    root@ts:~# cat htf_report.txt | more
    
    ##### SERVER #####
    IP-address (as per hostname): ***.***.***.***
    IP-address(es) (as per ifconfig): ***.***.***.***
    [INFO] ISPConfig is installed.
    
    ##### ISPCONFIG #####
    ISPConfig version is 3.0.5.4p8
    
    
    ##### VERSION CHECK #####
    
    [INFO] php (cli) version is 5.6.11-1ubuntu3.1
    
    ##### PORT CHECK #####
    
    
    ##### MAIL SERVER CHECK #####
    
    
    ##### RUNNING SERVER PROCESSES #####
    
    [INFO] I found the following web server(s):
        Apache 2 (PID 1802)
    [INFO] I found the following mail server(s):
        Postfix (PID 1630)
    [INFO] I found the following pop3 server(s):
        Dovecot (PID 1329)
    [INFO] I found the following imap server(s):
        Dovecot (PID 1329)
    [INFO] I found the following ftp server(s):
        PureFTP (PID 1423)
    
    ##### LISTENING PORTS #####
    (only        ()
    Local        (Address)
    [anywhere]:110        (1329/dovecot)
    [anywhere]:143        (1329/dovecot)
    [anywhere]:465        (1630/master)
    ***.***.***.***:53        (1431/named)
    [localhost]:53        (1431/named)
    [anywhere]:21        (1423/pure-ftpd)
    [localhost]:5910        (9092/Xvnc)
    [localhost]:3350        (661/xrdp-sesman)
    [anywhere]:22        (653/sshd)
    [anywhere]:25        (1630/master)
    [localhost]:953        (1431/named)
    [anywhere]:3389        (659/xrdp)
    [anywhere]:993        (1329/dovecot)
    [anywhere]:995        (1329/dovecot)
    [localhost]:10024        (1999/amavisd-new)
    [localhost]:10025        (1630/master)
    [localhost]:10026        (1999/amavisd-new)
    [localhost]:10027        (1630/master)
    [anywhere]:587        (1630/master)
    [localhost]:11211        (12869/memcached)
    [localhost]10        (1329/dovecot)
    [localhost]43        (1329/dovecot)
    *:*:*:*::*:8080        (1802/apache2)
    *:*:*:*::*:80        (1802/apache2)
    *:*:*:*::*:8081        (1802/apache2)
    *:*:*:*::*:465        (1630/master)
    *:*:*:*::*:53        (1431/named)
    *:*:*:*::*:21        (1423/pure-ftpd)
    *:*:*:*::*:22        (653/sshd)
    *:*:*:*::*:25        (1630/master)
    *:*:*:*::*:953        (1431/named)
    *:*:*:*::*:443        (1802/apache2)
    *:*:*:*::*:993        (1329/dovecot)
    *:*:*:*::*:995        (1329/dovecot)
    *:*:*:*::*:3306        (955/mysqld)
    *:*:*:*::*:587        (1630/master)
    
    
    
    
    ##### IPTABLES #####
    Chain INPUT (policy ACCEPT)
    target     prot opt source               destination       
    f2b-dovecot-pop3imap  tcp  --  [anywhere]/0            [anywhere]/0            multiport dports 110,995,143,993
    f2b-pureftpd  tcp  --  [anywhere]/0            [anywhere]/0            multiport dports 21
    f2b-postfix-sasl  tcp  --  [anywhere]/0            [anywhere]/0            multiport dports 25
    f2b-sshd   tcp  --  [anywhere]/0            [anywhere]/0            multiport dports 22
    
    Chain FORWARD (policy ACCEPT)
    target     prot opt source               destination       
    
    Chain OUTPUT (policy ACCEPT)
    target     prot opt source               destination       
    
    Chain f2b-dovecot-pop3imap (1 references)
    target     prot opt source               destination       
    RETURN     all  --  [anywhere]/0            [anywhere]/0         
    
    Chain f2b-postfix-sasl (1 references)
    target     prot opt source               destination       
    RETURN     all  --  [anywhere]/0            [anywhere]/0         
    
    Chain f2b-pureftpd (1 references)
    target     prot opt source               destination       
    RETURN     all  --  [anywhere]/0            [anywhere]/0         
    
    Chain f2b-sshd (1 references)
    target     prot opt source               destination       
    RETURN     all  --  [anywhere]/0            [anywhere]/0  
    is it ok if i chmod 777 the vmail directories? otherwise i cant login
     
  10. NovaMoon

    NovaMoon New Member

    chmod 755 seemed to work just fine. i was able to login the webmail but when i press the "send" button nothing happens.
     
  11. florian030

    florian030 ISPConfig Developer ISPConfig Developer

    The permissions for /var/vmail are wrong. /var/vmail must be owned by vmail.vmail and not by root.root.
    You can also run "postfix check".
     
  12. NovaMoon

    NovaMoon New Member

    my mail.log is filled with this error now after i tried to send an email from thunderbird to the server
    Code:
    Jan 13 17:20:50 ts dovecot: imap([email protected]): Error: creat(/var/vmail/ts.3v.fi/novamoon/Maildir/dovecot-uidvalidity.56967b05) failed: Permission denied
    Jan 13 17:20:50 ts dovecot: imap([email protected]): Error: file_dotlock_create(/var/vmail/ts.3v.fi/novamoon/Maildir/.Sent/dovecot-uidlist) failed: Permission denied (euid=5000(<unknown>) egid=5000(<unknown>) missing +w perm: /var/vmail/ts.3v.fi/novamoon/Maildir/.Sent, dir owned by 150:150 mode=0755)
    Jan 13 17:20:50 ts dovecot: imap([email protected]): Error: file_dotlock_open(/var/vmail/ts.3v.fi/novamoon/Maildir/.Drafts/dovecot.index.log) failed: Permission denied (euid=5000(<unknown>) egid=5000(<unknown>) missing +w perm: /var/vmail/ts.3v.fi/novamoon/Maildir/.Drafts, dir owned by 150:150 mode=0755)
    Jan 13 17:20:50 ts dovecot: imap([email protected]): Error: file_dotlock_create(/var/vmail/ts.3v.fi/novamoon/Maildir/.Drafts/dovecot-uidlist) failed: Permission denied (euid=5000(<unknown>) egid=5000(<unknown>) missing +w perm: /var/vmail/ts.3v.fi/novamoon/Maildir/.Drafts, dir owned by 150:150 mode=0755)
    Jan 13 17:20:50 ts dovecot: imap([email protected]): Error: file_dotlock_create(/var/vmail/ts.3v.fi/novamoon/Maildir/.Drafts/dovecot-uidlist) failed: Permission denied (euid=5000(<unknown>) egid=5000(<unknown>) missing +w perm: /var/vmail/ts.3v.fi/novamoon/Maildir/.Drafts, dir owned by 150:150 mode=0755)
    Jan 13 17:20:50 ts dovecot: imap([email protected]): Error: creat(/var/vmail/ts.3v.fi/novamoon/Maildir/dovecot-uidvalidity.56967b06) failed: Permission denied
    Jan 13 17:20:50 ts dovecot: imap([email protected]): Error: file_dotlock_create(/var/vmail/ts.3v.fi/novamoon/Maildir/.Drafts/dovecot-uidlist) failed: Permission denied (euid=5000(<unknown>) egid=5000(<unknown>) missing +w perm: /var/vmail/ts.3v.fi/novamoon/Maildir/.Drafts, dir owned by 150:150 mode=0755)
    Jan 13 17:20:50 ts dovecot: imap([email protected]): Error: file_dotlock_open(/var/vmail/ts.3v.fi/novamoon/Maildir/.Junk/dovecot.index.log) failed: Permission denied (euid=5000(<unknown>) egid=5000(<unknown>) missing +w perm: /var/vmail/ts.3v.fi/novamoon/Maildir/.Junk, dir owned by 150:150 mode=0755)
    Jan 13 17:20:50 ts dovecot: imap([email protected]): Error: file_dotlock_create(/var/vmail/ts.3v.fi/novamoon/Maildir/.Junk/dovecot-uidlist) failed: Permission denied (euid=5000(<unknown>) egid=5000(<unknown>) missing +w perm: /var/vmail/ts.3v.fi/novamoon/Maildir/.Junk, dir owned by 150:150 mode=0755)
    Jan 13 17:20:50 ts dovecot: imap([email protected]): Error: file_dotlock_create(/var/vmail/ts.3v.fi/novamoon/Maildir/.Junk/dovecot-uidlist) failed: Permission denied (euid=5000(<unknown>) egid=5000(<unknown>) missing +w perm: /var/vmail/ts.3v.fi/novamoon/Maildir/.Junk, dir owned by 150:150 mode=0755)
    Jan 13 17:20:50 ts dovecot: imap([email protected]): Error: creat(/var/vmail/ts.3v.fi/novamoon/Maildir/dovecot-uidvalidity.56967b07) failed: Permission denied
    Jan 13 17:20:50 ts dovecot: imap([email protected]): Error: file_dotlock_create(/var/vmail/ts.3v.fi/novamoon/Maildir/.Junk/dovecot-uidlist) failed: Permission denied (euid=5000(<unknown>) egid=5000(<unknown>) missing +w perm: /var/vmail/ts.3v.fi/novamoon/Maildir/.Junk, dir owned by 150:150 mode=0755)
    Jan 13 17:20:50 ts dovecot: imap([email protected]): Error: file_dotlock_open(/var/vmail/ts.3v.fi/novamoon/Maildir/dovecot.index.log) failed: Permission denied (euid=5000(<unknown>) egid=5000(<unknown>) missing +w perm: /var/vmail/ts.3v.fi/novamoon/Maildir, dir owned by 150:150 mode=0755)
    Jan 13 17:20:50 ts dovecot: imap([email protected]): Error: file_dotlock_create(/var/vmail/ts.3v.fi/novamoon/Maildir/dovecot-uidlist) failed: Permission denied (euid=5000(<unknown>) egid=5000(<unknown>) missing +w perm: /var/vmail/ts.3v.fi/novamoon/Maildir, dir owned by 150:150 mode=0755)
    Jan 13 17:20:50 ts dovecot: imap([email protected]): Error: file_dotlock_create(/var/vmail/ts.3v.fi/novamoon/Maildir/dovecot-uidlist) failed: Permission denied (euid=5000(<unknown>) egid=5000(<unknown>) missing +w perm: /var/vmail/ts.3v.fi/novamoon/Maildir, dir owned by 150:150 mode=0755)
    Jan 13 17:20:50 ts dovecot: imap([email protected]): Error: creat(/var/vmail/ts.3v.fi/novamoon/Maildir/dovecot-uidvalidity.56967b08) failed: Permission denied
    Jan 13 17:20:50 ts dovecot: imap([email protected]): Error: file_dotlock_create(/var/vmail/ts.3v.fi/novamoon/Maildir/dovecot-uidlist) failed: Permission denied (euid=5000(<unknown>) egid=5000(<unknown>) missing +w perm: /var/vmail/ts.3v.fi/novamoon/Maildir, dir owned by 150:150 mode=0755)
    Jan 13 17:20:50 ts dovecot: imap([email protected]): Error: file dict commit: file_dotlock_open(/var/vmail/ts.3v.fi/novamoon/.quotausage) failed: Permission denied
    Jan 13 17:20:50 ts dovecot: imap([email protected]): Error: file_dotlock_create(/var/vmail/ts.3v.fi/novamoon/Maildir/.Junk/dovecot-uidlist) failed: Permission denied (euid=5000(<unknown>) egid=5000(<unknown>) missing +w perm: /var/vmail/ts.3v.fi/novamoon/Maildir/.Junk, dir owned by 150:150 mode=0755)
    Jan 13 17:20:50 ts dovecot: imap([email protected]): Error: file_dotlock_create(/var/vmail/ts.3v.fi/novamoon/Maildir/.Junk/dovecot-uidlist) failed: Permission denied (euid=5000(<unknown>) egid=5000(<unknown>) missing +w perm: /var/vmail/ts.3v.fi/novamoon/Maildir/.Junk, dir owned by 150:150 mode=0755)
    Jan 13 17:20:50 ts dovecot: imap([email protected]): Error: file_dotlock_open(/var/vmail/ts.3v.fi/novamoon/Maildir/.Trash/dovecot.index.log) failed: Permission denied (euid=5000(<unknown>) egid=5000(<unknown>) missing +w perm: /var/vmail/ts.3v.fi/novamoon/Maildir/.Trash, dir owned by 150:150 mode=0755)
    Jan 13 17:20:50 ts dovecot: imap([email protected]): Error: file_dotlock_create(/var/vmail/ts.3v.fi/novamoon/Maildir/.Trash/dovecot-uidlist) failed: Permission denied (euid=5000(<unknown>) egid=5000(<unknown>) missing +w perm: /var/vmail/ts.3v.fi/novamoon/Maildir/.Trash, dir owned by 150:150 mode=0755)
    Jan 13 17:20:50 ts dovecot: imap([email protected]): Error: file_dotlock_create(/var/vmail/ts.3v.fi/novamoon/Maildir/.Trash/dovecot-uidlist) failed: Permission denied (euid=5000(<unknown>) egid=5000(<unknown>) missing +w perm: /var/vmail/ts.3v.fi/novamoon/Maildir/.Trash, dir owned by 150:150 mode=0755)
    Jan 13 17:20:50 ts dovecot: imap([email protected]): Error: creat(/var/vmail/ts.3v.fi/novamoon/Maildir/dovecot-uidvalidity.56967a88) failed: Permission denied
    Jan 13 17:20:50 ts dovecot: imap([email protected]): Error: file_dotlock_create(/var/vmail/ts.3v.fi/novamoon/Maildir/.Trash/dovecot-uidlist) failed: Permission denied (euid=5000(<unknown>) egid=5000(<unknown>) missing +w perm: /var/vmail/ts.3v.fi/novamoon/Maildir/.Trash, dir owned by 150:150 mode=0755)
    Jan 13 17:20:50 ts dovecot: imap([email protected]): Error: file_dotlock_open(/var/vmail/ts.3v.fi/novamoon/Maildir/.Sent/dovecot.index.log) failed: Permission denied (euid=5000(<unknown>) egid=5000(<unknown>) missing +w perm: /var/vmail/ts.3v.fi/novamoon/Maildir/.Sent, dir owned by 150:150 mode=0755)
    Jan 13 17:20:50 ts dovecot: imap([email protected]): Error: file_dotlock_create(/var/vmail/ts.3v.fi/novamoon/Maildir/.Sent/dovecot-uidlist) failed: Permission denied (euid=5000(<unknown>) egid=5000(<unknown>) missing +w perm: /var/vmail/ts.3v.fi/novamoon/Maildir/.Sent, dir owned by 150:150 mode=0755)
    Jan 13 17:20:50 ts dovecot: imap([email protected]): Error: file_dotlock_create(/var/vmail/ts.3v.fi/novamoon/Maildir/.Sent/dovecot-uidlist) failed: Permission denied (euid=5000(<unknown>) egid=5000(<unknown>) missing +w perm: /var/vmail/ts.3v.fi/novamoon/Maildir/.Sent, dir owned by 150:150 mode=0755)
    Jan 13 17:20:50 ts dovecot: imap([email protected]): Error: creat(/var/vmail/ts.3v.fi/novamoon/Maildir/dovecot-uidvalidity.56967a89) failed: Permission denied
    Jan 13 17:20:50 ts dovecot: imap([email protected]): Error: file_dotlock_create(/var/vmail/ts.3v.fi/novamoon/Maildir/.Sent/dovecot-uidlist) failed: Permission denied (euid=5000(<unknown>) egid=5000(<unknown>) missing +w perm: /var/vmail/ts.3v.fi/novamoon/Maildir/.Sent, dir owned by 150:150 mode=0755)
    Jan 13 17:20:50 ts dovecot: imap([email protected]): Error: file_dotlock_open(/var/vmail/ts.3v.fi/novamoon/Maildir/.Drafts/dovecot.index.log) failed: Permission denied (euid=5000(<unknown>) egid=5000(<unknown>) missing +w perm: /var/vmail/ts.3v.fi/novamoon/Maildir/.Drafts, dir owned by 150:150 mode=0755)
    Jan 13 17:20:50 ts dovecot: imap([email protected]): Error: file_dotlock_create(/var/vmail/ts.3v.fi/novamoon/Maildir/.Drafts/dovecot-uidlist) failed: Permission denied (euid=5000(<unknown>) egid=5000(<unknown>) missing +w perm: /var/vmail/ts.3v.fi/novamoon/Maildir/.Drafts, dir owned by 150:150 mode=0755)
    Jan 13 17:20:50 ts dovecot: imap([email protected]): Error: file_dotlock_create(/var/vmail/ts.3v.fi/novamoon/Maildir/.Drafts/dovecot-uidlist) failed: Permission denied (euid=5000(<unknown>) egid=5000(<unknown>) missing +w perm: /var/vmail/ts.3v.fi/novamoon/Maildir/.Drafts, dir owned by 150:150 mode=0755)
    Jan 13 17:20:50 ts dovecot: imap([email protected]): Error: creat(/var/vmail/ts.3v.fi/novamoon/Maildir/dovecot-uidvalidity.56967a8a) failed: Permission denied
    Jan 13 17:20:50 ts dovecot: imap([email protected]): Error: file_dotlock_create(/var/vmail/ts.3v.fi/novamoon/Maildir/.Drafts/dovecot-uidlist) failed: Permission denied (euid=5000(<unknown>) egid=5000(<unknown>) missing +w perm: /var/vmail/ts.3v.fi/novamoon/Maildir/.Drafts, dir owned by 150:150 mode=0755)
    Jan 13 17:20:50 ts dovecot: imap([email protected]): Error: file_dotlock_open(/var/vmail/ts.3v.fi/novamoon/Maildir/.Junk/dovecot.index.log
     
  13. florian030

    florian030 ISPConfig Developer ISPConfig Developer

    check "virtual_uid_maps" and "virtual_gid_maps" in /etc/postfix/main.cf
     
  14. NovaMoon

    NovaMoon New Member

    virtual_uid_maps = static:5000
    virtual_gid_maps = static:5000
     
  15. NovaMoon

    NovaMoon New Member

    i tried to send an email to myself back using thunderbird because webmail wont send the mail at all. - im not sure if that is all you need
    Code:
    Jan 13 17:37:38 ts amavis[2008]: (02008-04) Passed CLEAN {RelayedInternal}, ORIGINATING LOCAL [91.39.248.102]:39342 [91.39.248.102] <[email protected]> -> <[email protected]>, Queue-ID: 50578E0F82, Message-ID: <[email protected]>, mail_id: 4R8oQw41YfAK, Hits: -1, size: 605, queued_as: CFFDFE0F83, dkim_new=default:ts.3v.fi, 432 ms
    Jan 13 17:37:38 ts postfix/smtp[5706]: 50578E0F82: to=<[email protected]>, relay=127.0.0.1[127.0.0.1]:10026, delay=0.62, delays=0.18/0.01/0/0.43, dsn=2.0.0, status=sent (250 2.0.0 from MTA(smtp:[127.0.0.1]:10027): 250 2.0.0 Ok: queued as CFFDFE0F83)
    Jan 13 17:37:38 ts postfix/qmgr[1633]: 50578E0F82: removed
    Jan 13 17:37:38 ts dovecot: lda([email protected]): Fatal: setresgid(5000,5000,150(vmail)) failed with euid=150(vmail): Operation not permitted
    Jan 13 17:37:38 ts postfix/pipe[5710]: CFFDFE0F83: to=<[email protected]>, relay=dovecot, delay=0.11, delays=0.04/0.01/0/0.06, dsn=4.3.0, status=deferred (temporary failure)
    Jan 13 17:37:45 ts dovecot: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=::1, lip=::1, mpid=5714, secured, session=<kf0zyjkpvAAAAAAAAAAAAAAAAAAAAAAB>
    Jan 13 17:37:45 ts dovecot: imap([email protected]): Disconnected: Logged out in=50 out=476
    Jan 13 17:37:47 ts postfix/qmgr[1633]: EAFCFE0F7C: from=<[email protected]>, size=1804, nrcpt=1 (queue active)
    Jan 13 17:37:47 ts postfix/qmgr[1633]: C3126E0F7D: from=<[email protected]>, size=1805, nrcpt=1 (queue active)
    Jan 13 17:37:47 ts dovecot: lda([email protected]): Fatal: setresgid(5000,5000,150(vmail)) failed with euid=150(vmail): Operation not permitted
    Jan 13 17:37:47 ts dovecot: lda([email protected]): Fatal: setresgid(5000,5000,150(vmail)) failed with euid=150(vmail): Operation not permitted
    Jan 13 17:37:48 ts postfix/pipe[5710]: EAFCFE0F7C: to=<[email protected]>, relay=dovecot, delay=600, delays=600/0/0/0.15, dsn=4.3.0, status=deferred (temporary failure)
    Jan 13 17:37:48 ts postfix/pipe[5715]: C3126E0F7D: to=<[email protected]>, relay=dovecot, delay=1037, delays=1037/0.02/0/0.14, dsn=4.3.0, status=deferred (temporary failure)
    Jan 13 17:38:45 ts dovecot: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=::1, lip=::1, mpid=5729, secured, session=<d9HHzTkpwAAAAAAAAAAAAAAAAAAAAAAB>
    Jan 13 17:38:46 ts dovecot: imap([email protected]): Disconnected: Logged out in=50 out=476
    Jan 13 17:38:49 ts dovecot: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=::1, lip=::1, mpid=5731, secured, session=<X3gAzjkpwgAAAAAAAAAAAAAAAAAAAAAB>
    Jan 13 17:38:49 ts dovecot: imap([email protected]): Disconnected: Logged out in=272 out=1337
    Jan 13 17:38:50 ts dovecot: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=::1, lip=::1, mpid=5733, secured, session=<pXUIzjkpxAAAAAAAAAAAAAAAAAAAAAAB>
    Jan 13 17:38:50 ts dovecot: imap([email protected]): Disconnected: Logged out in=315 out=1819
    Jan 13 17:38:50 ts dovecot: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=::1, lip=::1, mpid=5735, secured, session=<9ZQVzjkpxgAAAAAAAAAAAAAAAAAAAAAB>
    Jan 13 17:38:51 ts dovecot: imap([email protected]): Disconnected: Logged out in=78 out=582
    Jan 13 17:38:51 ts dovecot: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=::1, lip=::1, mpid=5737, secured, session=<ZOMdzjkpyAAAAAAAAAAAAAAAAAAAAAAB>
    Jan 13 17:38:51 ts dovecot: imap([email protected]): Disconnected: Logged out in=76 out=580
    Jan 13 17:39:45 ts dovecot: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=::1, lip=::1, mpid=5873, secured, session=<+x5b0TkpygAAAAAAAAAAAAAAAAAAAAAB>
    Jan 13 17:39:45 ts dovecot: imap([email protected]): Disconnected: Logged out in=50 out=476
    Jan 13 17:40:02 ts dovecot: imap-login: Disconnected (no auth attempts in 0 secs): user=<>, rip=::1, lip=::1, secured, session=<tlhU0jkp1AAAAAAAAAAAAAAAAAAAAAAB>
    Jan 13 17:40:02 ts dovecot: pop3-login: Disconnected (no auth attempts in 0 secs): user=<>, rip=::1, lip=::1, secured, session=<Zm5U0jkpAgAAAAAAAAAAAAAAAAAAAAAB>
    Jan 13 17:40:02 ts postfix/smtpd[5902]: connect from localhost[::1]
    Jan 13 17:40:02 ts postfix/smtpd[5902]: lost connection after CONNECT from localhost[::1]
    Jan 13 17:40:02 ts postfix/smtpd[5902]: disconnect from localhost[::1]
    
     
  16. florian030

    florian030 ISPConfig Developer ISPConfig Developer

    grep 5000 /etc/passwd /etc/group

    and

    postfix check
     
  17. NovaMoon

    NovaMoon New Member

    Code:
    Jan 13 17:56:32 ts postfix/smtpd[9341]: connect from mail-wm0-f47.google.com[74.125.82.47]
    Jan 13 17:56:32 ts postfix/smtpd[9341]: NOQUEUE: filter: RCPT from mail-wm0-f47.google.com[74.125.82.47]: <[email protected]>: Sender address triggers FILTER amavis:[127.0.0.1]:10026; from=<[email protected]> to=<[email protected]> proto=ESMTP helo=<mail-wm0-f47.google.com>
    Jan 13 17:56:32 ts postfix/smtpd[9341]: NOQUEUE: filter: RCPT from mail-wm0-f47.google.com[74.125.82.47]: <[email protected]>: Sender address triggers FILTER amavis:[127.0.0.1]:10024; from=<[email protected]> to=<[email protected]> proto=ESMTP helo=<mail-wm0-f47.google.com>
    Jan 13 17:56:32 ts postfix/smtpd[9341]: 77713E0C40: client=mail-wm0-f47.google.com[74.125.82.47]
    Jan 13 17:56:32 ts postfix/cleanup[9415]: 77713E0C40: message-id=<CAEai0afQz_qXJ8M490t6YMSW_MjSCw41FWZVMRMRF9HnWEiA_w@mail.gmail.com>
    Jan 13 17:56:32 ts postfix/qmgr[9218]: 77713E0C40: from=<[email protected]>, size=2487, nrcpt=1 (queue active)
    Jan 13 17:56:32 ts postfix/smtpd[9341]: disconnect from mail-wm0-f47.google.com[74.125.82.47]
    Jan 13 17:56:32 ts postfix/smtpd[9420]: connect from localhost[127.0.0.1]
    Jan 13 17:56:32 ts postfix/smtpd[9420]: F0EE7E0C44: client=localhost[127.0.0.1]
    Jan 13 17:56:32 ts postfix/cleanup[9415]: F0EE7E0C44: message-id=<CAEai0afQz_qXJ8M490t6YMSW_MjSCw41FWZVMRMRF9HnWEiA_w@mail.gmail.com>
    Jan 13 17:56:33 ts postfix/qmgr[9218]: F0EE7E0C44: from=<[email protected]>, size=3007, nrcpt=1 (queue active)
    Jan 13 17:56:33 ts amavis[1795]: (01795-01) Passed CLEAN {RelayedInbound}, [74.125.82.47]:37911 [74.125.82.47] <[email protected]> -> <[email protected]>, Queue-ID: 77713E0C40, Message-ID: <CAEai0afQz_qXJ8M490t6YMSW_MjSCw41FWZVMRMRF9HnWEiA_w@mail.gmail.com>, mail_id: C_z4ZsKgH5XB, Hits: 0.131, size: 2487, queued_as: F0EE7E0C44, dkim_sd=20120113:gmail.com, 436 ms
    Jan 13 17:56:33 ts postfix/smtp[9416]: 77713E0C40: to=<[email protected]>, relay=127.0.0.1[127.0.0.1]:10024, delay=0.57, delays=0.12/0.01/0.01/0.43, 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 F0EE7E0C44)
    Jan 13 17:56:33 ts postfix/qmgr[9218]: 77713E0C40: removed
    Jan 13 17:56:33 ts dovecot: lda([email protected]): Fatal: setresgid(5000,5000,150(vmail)) failed with euid=150(vmail): Operation not permitted
    Jan 13 17:56:33 ts postfix/pipe[9421]: F0EE7E0C44: to=<[email protected]>, relay=dovecot, delay=0.12, delays=0.05/0.01/0/0.06, dsn=4.3.0, status=deferred (temporary failure)
    
    did both codes above
     
  18. florian030

    florian030 ISPConfig Developer ISPConfig Developer

    And the output from the commands?
     
  19. till

    till Super Moderator Staff Member ISPConfig Developer

    Please run:

    chown -R vmail:vmail /var/vmail
     
  20. NovaMoon

    NovaMoon New Member

    there where no outputs
     

Share This Page