Postfix & MailDir

Discussion in 'Server Operation' started by kez, Mar 14, 2007.

  1. kez

    kez New Member

    I've read most of the howtos about installing Postfix, and Postfix w/ MailDir, but I cannot get it to work.

    It seems as simple as
    home_mailbox = Maildir/

    But Postfix is still delivering mail into mbox format.
    Some of the howtos discuss creating the cur/new & tmp folders used in MailDir delivery manually.
    Is this what is required to get it to work?
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    No, postfix creates the Maildir when the first email arrives. Please post the content of your main.cf file, comments stripped.
     
  3. kez

    kez New Member

    Thanks for the reply.
    Here is the postfix config. I'm guessing something is conflicting somewhere.

    smtpd_banner = $myhostname ESMTP $mail_name
    biff = no
    append_dot_mydomain = no
    delay_warning_time = 4h
    myhostname = ----
    alias_maps = hash:/etc/aliases
    mydestination =
    relayhost =
    mynetworks = 127.0.0.0/8
    mynetworks_style = host
    mailbox_size_limit = 0
    recipient_delimiter = +
    inet_interfaces = all
    unknown_local_recipient_reject_code = 450
    maximal_queue_lifetime = 7d
    minimal_backoff_time = 1000s
    maximal_backoff_time = 8000s
    smtp_helo_timeout = 60s
    smtpd_recipient_limit = 16
    smtpd_soft_error_limit = 3
    smtpd_hard_error_limit = 12

    smtpd_helo_restrictions = permit_mynetworks, warn_if_reject reject_non_fqdn_hostname, reject_invalid_hostname, permit

    smtpd_sender_restrictions = permit_mynetworks, warn_if_reject reject_non_fqdn_sender, reject_unknown_sender_domain, reject_unauth_pipelining, permit

    smtpd_client_restrictions =
    reject_rbl_client sbl.spamhaus.org,
    reject_rbl_client blackholes.easynet.nl,
    reject_rbl_client dnsbl.njabl.org

    smtpd_recipient_restrictions =
    reject_unauth_pipelining,
    permit_mynetworks,
    permit_sasl_authenticated,
    reject_non_fqdn_recipient,
    reject_non_fqdn_hostname,
    reject_non_fqdn_sender,
    reject_unauth_pipelining,
    reject_invalid_hostname,
    reject_unknown_recipient_domain,
    reject_unauth_destination,
    reject_rbl_client opm.blitzed.org,
    reject_rbl_client list.dsbl.org,
    reject_rbl_client bl.spamcop.net,
    reject_rbl_client sbl-xbl.spamhaus.org
    permit

    smtpd_sasl_auth_enable = yes
    smtpd_sasl_authenticated_header = yes
    broken_sasl_auth_clients = yes
    smtpd_sasl_type = dovecot
    smtpd_sasl_path = private/auth

    smtpd_helo_required = yes
    smtpd_delay_reject = yes
    disable_vrfy_command = yes

    virtual_alias_maps = proxy:mysql:/etc/postfix/mysql_virtual_alias_maps.cf
    virtual_gid_maps = static:1001
    virtual_mailbox_base = /usr/local/virtual
    virtual_mailbox_domains = proxy:mysql:/etc/postfix/mysql_virtual_domains_maps.cf
    virtual_mailbox_limit = 51200000
    virtual_mailbox_maps = proxy:mysql:/etc/postfix/mysql_virtual_mailbox_maps.cf
    virtual_minimum_uid = 1001
    virtual_transport = virtual
    virtual_uid_maps = static:1001
    # Additional for quota support
    virtual_create_maildirsize = yes
    virtual_mailbox_extended = yes
    virtual_mailbox_limit_override = yes
    virtual_maildir_limit_message = Sorry, the user's maildir has overdrawn his diskspace quota, please try again later.
    virtual_overquota_bounce = yes

    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
    $virtual_mailbox_limit_maps


    readme_directory = no
    sample_directory = /etc/postfix
    sendmail_path = /usr/sbin/sendmail
    html_directory = no
    setgid_group = postdrop
    command_directory = /usr/sbin
    manpage_directory = /usr/local/man
    daemon_directory = /usr/libexec/postfix
    newaliases_path = /usr/bin/newaliases
    mailq_path = /usr/bin/mailq
    queue_directory = /var/spool/postfix
    mail_owner = postfix
    home_mailbox = Maildir/
     
  4. falko

    falko Super Moderator ISPConfig Developer

    Does this happen for system users, for virtual users, or for both?
     

Share This Page