postfix doesn't want create the users directories

Discussion in 'Server Operation' started by redem, Jun 29, 2008.

  1. redem

    redem New Member

    Hi all!

    I have followed this guide http://www.howtoforge.com/virtual_users_and_domains_with_postfix_debian_etch but at the end, when I insert a domain and a user in the database, i can't access to my mailbox (using SquirrelMail) because no user directory is created.
    The directory /home/vmail is empty.

    mail.log error:

    Code:
    imapd: Connection, ip=[::ffff:127.0.0.1]
    imapd: chdir xxxxx.com/admin/: No such file or directory
    
    Sorry for my bad english, thanks.
     
    Last edited: Jun 29, 2008
  2. topdog

    topdog Active Member

    The directory is created when the first email is received
     
  3. redem

    redem New Member

    There is any method to create the directory automatically?
     
  4. redem

    redem New Member

    Ok, i have sended to my account some emails, but still not working.

    Code:
    Jun 29 20:03:18 xxxxxxxx postfix/smtpd[1625]: fatal: proxymap service is not configured for table "unix:passwd.byname"
    Jun 29 20:03:19 xxxxxxxx postfix/master[1130]: warning: process /usr/lib/postfix/smtpd pid 1625 exit status 1
    Jun 29 20:03:19 xxxxxxxx postfix/master[1130]: warning: /usr/lib/postfix/smtpd: bad command startup -- throttling
    Jun 29 20:04:19 xxxxxxxx postfix/proxymap[1631]: warning: request for unapproved table: "unix:passwd.byname"
    Jun 29 20:04:19 xxxxxxxx postfix/proxymap[1631]: warning: to approve this table for proxymap access, list proxy:unix:passwd.byname in main.cf:proxy_read_maps
    Jun 29 20:04:19 xxxxxxxx postfix/smtpd[1630]: fatal: proxymap service is not configured for table "unix:passwd.byname"
    Jun 29 20:04:20 xxxxxxxx postfix/master[1130]: warning: process /usr/lib/postfix/smtpd pid 1630 exit status 1
    Jun 29 20:04:20 xxxxxxxx postfix/master[1130]: warning: /usr/lib/postfix/smtpd: bad command startup -- throttling
    
    What mean these errors?
     
  5. redem

    redem New Member

    Ok, I fixed the main.cf :p, but now i getting these errors :confused:

    Code:
    Jun 30 15:05:36 xxxxxxxx postfix/master[9501]: terminating on signal 15
    Jun 30 15:05:37 xxxxxxxx postfix/master[9630]: daemon started -- version 2.3.8, configuration /etc/postfix
    Jun 30 15:05:58 xxxxxxxx postfix/smtpd[9637]: connect from hu-out-0506.google.com[72.14.214.238]
    Jun 30 15:05:58 xxxxxxxx postfix/trivial-rewrite[9641]: warning: do not list domain xxxxxxxx.net in BOTH mydestination and virtual_mailbox_domains
    Jun 30 15:05:58 xxxxxxxx postfix/trivial-rewrite[9641]: warning: do not list domain xxxxxxxx.net in BOTH mydestination and virtual_mailbox_domains
    Jun 30 15:05:58 xxxxxxxx postfix/smtpd[9637]: 5401A4E9FC: client=hu-out-0506.google.com[72.14.214.238]
    Jun 30 15:05:58 xxxxxxxx postfix/cleanup[9642]: 5401A4E9FC: message-id=<[email protected]>
    Jun 30 15:05:58 xxxxxxxx postfix/qmgr[9636]: 5401A4E9FC: from=<[email protected]>, size=1760, nrcpt=1 (queue active)
    Jun 30 15:05:58 xxxxxxxx postfix/smtp[9644]: connect to 127.0.0.1[127.0.0.1]: Connection refused (port 10024)
    Jun 30 15:05:58 xxxxxxxx postfix/smtp[9644]: 5401A4E9FC: to=<[email protected]>, relay=none, delay=0.19, delays=0.18/0.01/0/0, dsn=4.4.1, status=deferred (connect to 127.0.0.1[127.0.0.1]: Connection refused)
    Jun 30 15:06:07 xxxxxxxx imapd: Connection, ip=[::ffff:127.0.0.1]
    Jun 30 15:06:07 xxxxxxxx imapd: chdir xxxxxxxx.net/user/: No such file or directory
    Jun 30 15:06:10 xxxxxxxx imapd: Connection, ip=[::ffff:127.0.0.1]
    Jun 30 15:06:10 xxxxxxxx imapd: chdir xxxxxxxx.net/user/: No such file or directory
    Jun 30 15:06:28 xxxxxxxx postfix/smtpd[9637]: disconnect from hu-out-0506.google.com[72.14.214.238]
    
    
     
  6. falko

    falko Super Moderator Howtoforge Staff

  7. redem

    redem New Member

    Sorry, im a n00b, still not working :(

    here my main.cf

    Code:
    # See /usr/share/postfix/main.cf.dist for a commented, more complete version
    
    
    # Debian specific:  Specifying a file name will cause the first
    # line of that file to be used as the name.  The Debian default
    # is /etc/mailname.
    #myorigin = /etc/mailname
    
    smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
    biff = no
    
    # appending .domain is the MUA's job.
    append_dot_mydomain = no
    
    # Uncomment the next line to generate "delayed mail" warnings
    #delay_warning_time = 4h
    
    # TLS parameters
    smtpd_tls_cert_file = /etc/postfix/smtpd.cert
    smtpd_tls_key_file = /etc/postfix/smtpd.key
    smtpd_use_tls = yes
    smtpd_tls_session_cache_database = btree:${queue_directory}/smtpd_scache
    smtp_tls_session_cache_database = btree:${queue_directory}/smtp_scache
    
    # See /usr/share/doc/postfix/TLS_README.gz in the postfix-doc package for
    # information on enabling SSL in the smtp client.
    
    myhostname = mail.xxxxxxxxx.net
    alias_maps = hash:/etc/aliases
    alias_database = hash:/etc/aliases
    myorigin = /etc/mailname
    mydestination = $myhostname, localhost, localhost.localdomain
    relayhost =
    mynetworks = 127.0.0.0/8
    mailbox_size_limit = 0
    recipient_delimiter = +
    inet_interfaces = all
    virtual_alias_domains =
    virtual_alias_maps = proxy:mysql:/etc/postfix/mysql-virtual_forwardings.cf, mysql:/etc/postfix/mysql-virtual_email2email.cf
    virtual_mailbox_domains = proxy:mysql:/etc/postfix/mysql-virtual_domains.cf
    virtual_mailbox_maps = proxy:mysql:/etc/postfix/mysql-virtual_mailboxes.cf
    virtual_mailbox_base = /home/vmail
    virtual_uid_maps = static:5000
    virtual_gid_maps = static:5000
    smtpd_sasl_auth_enable = yes
    broken_sasl_auth_clients = yes
    smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination
    transport_maps = proxy:mysql:/etc/postfix/mysql-virtual_transports.cf
    virtual_create_maildirsize = yes
    virtual_mailbox_extended = yes
    virtual_mailbox_limit_maps = proxy:mysql:/etc/postfix/mysql-virtual_mailbox_limit_maps.cf
    virtual_mailbox_limit_override = yes
    virtual_maildir_limit_message = "The user you are trying to reach is over quota."
    virtual_overquota_bounce = yes
    proxy_read_maps = $local_recipient_maps $mydestination $virtual_alias_maps $virtual_alias_domains $virtual_mailbox_maps $virtual_mailbox_domains $relay_reci$...
    content_filter = amavis:[127.0.0.1]:10024
    receive_override_options = no_address_mappings
    
    mail.log

    Code:
    Jun 30 18:03:59 xxxxxxxx postfix/master[2117]: terminating on signal 15
    Jun 30 18:03:59 xxxxxxxx postfix/master[2223]: daemon started -- version 2.3.8, configuration /etc/postfix
    Jun 30 18:03:59 xxxxxxxx postfix/qmgr[2225]: 9B55F4E9FA: from=<[email protected]>, size=2058, nrcpt=1 (queue active)
    Jun 30 18:03:59 xxxxxxxx postfix/qmgr[2225]: C16E94EA05: from=<[email protected]>, size=2064, nrcpt=1 (queue active)
    Jun 30 18:03:59 xxxxxxxx postfix/smtp[2230]: connect to 127.0.0.1[127.0.0.1]: Connection refused (port 10024)
    Jun 30 18:03:59 xxxxxxxx postfix/smtp[2232]: connect to 127.0.0.1[127.0.0.1]: Connection refused (port 10024)
    Jun 30 18:03:59 xxxxxxxx postfix/smtp[2230]: 9B55F4E9FA: to=<[email protected]>, relay=none, delay=3916, delays=3916/0.01/0/0, dsn=4.4.1, status=deferred (connect to 127.0.0.1[127.0.0.1]: Connection refused)
    Jun 30 18:03:59 xxxxxxxx postfix/smtp[2232]: C16E94EA05: to=<[email protected]>, relay=none, delay=3745, delays=3745/0.03/0/0, dsn=4.4.1, status=deferred (connect to 127.0.0.1[127.0.0.1]: Connection refused)
    Jun 30 18:04:13 xxxxxxxx postfix/smtpd[2234]: connect from wa-out-1112.google.com[209.85.146.182]
    Jun 30 18:04:14 xxxxxxxx imapd: Connection, ip=[::ffff:127.0.0.1]
    Jun 30 18:04:14 xxxxxxxx imapd: chdir xxxxxxxx.net/user/: No such file or directory
    Jun 30 18:04:14 xxxxxxxx postfix/smtpd[2234]: F16CF4EA2B: client=wa-out-1112.google.com[209.85.146.182]
    Jun 30 18:04:15 xxxxxxxx postfix/cleanup[2240]: F16CF4EA2B: message-id=<[email protected]>
    Jun 30 18:04:15 xxxxxxxx postfix/qmgr[2225]: F16CF4EA2B: from=<[email protected]>, size=2064, nrcpt=1 (queue active)
    Jun 30 18:04:15 xxxxxxxx postfix/smtp[2232]: connect to 127.0.0.1[127.0.0.1]: Connection refused (port 10024)
    Jun 30 18:04:15 xxxxxxxx postfix/smtp[2232]: F16CF4EA2B: to=<[email protected]>, relay=none, delay=0.56, delays=0.56/0/0/0, dsn=4.4.1, status=deferred (connect to 127.0.0.1[127.0.0.1]: Connection refused)
    Jun 30 18:04:16 xxxxxxxx imapd: Connection, ip=[::ffff:127.0.0.1]
    Jun 30 18:04:16 xxxxxxxx imapd: chdir xxxxxxxx.net/user/: No such file or directory
    Jun 30 18:04:18 xxxxxxxx imapd: Connection, ip=[::ffff:127.0.0.1]
    Jun 30 18:04:18 xxxxxxxx imapd: chdir xxxxxxxx.net/user/: No such file or directory
    Jun 30 18:04:19 xxxxxxxx imapd: Connection, ip=[::ffff:127.0.0.1]
    Jun 30 18:04:19 xxxxxxxx imapd: chdir xxxxxxxx.net/user/: No such file or directory
    Jun 30 18:04:21 xxxxxxxx imapd: Connection, ip=[::ffff:127.0.0.1]
    Jun 30 18:04:21 xxxxxxxx imapd: chdir xxxxxxxx.net/user/: No such file or directory
    Jun 30 18:04:23 xxxxxxxx imapd: Connection, ip=[::ffff:127.0.0.1]
    Jun 30 18:04:23 xxxxxxxx imapd: chdir xxxxxxxx.net/user/: No such file or directory
    Jun 30 18:04:24 xxxxxxxx imapd: Connection, ip=[::ffff:127.0.0.1]
    Jun 30 18:04:24 xxxxxxxx imapd: chdir xxxxxxxx.net/user/: No such file or directory
    Jun 30 18:04:45 xxxxxxxx postfix/smtpd[2234]: disconnect from wa-out-1112.google.com[209.85.146.182]
    
     
    Last edited: Jun 30, 2008
  8. redem

    redem New Member

    any idea? :confused:
     
  9. falko

    falko Super Moderator Howtoforge Staff

    It seems as if amavisd isn't running. Please restart it.
     
  10. redem

    redem New Member

    Thank you very much Falko, i have found an error in the file 15-content_filter_mode :p

    Now all is working fine :)
     

Share This Page