Debian Sqeeuze virtual users and domains with postfix... Postfix problem.

Discussion in 'Server Operation' started by knology, Mar 17, 2011.

  1. knology

    knology New Member


    I've just followed this tutorial:

    hostname -f:
    [email protected]
    [email protected]

    I've send a welcome mail to these 2 users to create a mailbox, but i won't work for

    ls /var/vmail:
    Send a testmail:

    root@neptune:/home/bknol# mailx [email protected]
    Subject: Test
    cat /var/mail/bknol
    From MAILER-DAEMON  Thu Mar 17 14:16:31 2011
    Return-Path: <>
    X-Original-To: [email protected]
    Delivered-To: [email protected]
    Received: by (Postfix)
    	id 450A4CE1CA; Thu, 17 Mar 2011 14:16:31 +0100 (CET)
    Date: Thu, 17 Mar 2011 14:16:31 +0100 (CET)
    From: [email protected] (Mail Delivery System)
    Subject: Undelivered Mail Returned to Sender
    To: [email protected]
    Auto-Submitted: auto-replied
    MIME-Version: 1.0
    Content-Type: multipart/report; report-type=delivery-status;
    Content-Transfer-Encoding: 7bit
    Message-Id: <[email protected]>
    This is a MIME-encapsulated message.
    Content-Description: Notification
    Content-Type: text/plain; charset=us-ascii
    This is the mail system at host
    I'm sorry to have to inform you that your message could not
    be delivered to one or more recipients. It's attached below.
    For further assistance, please send mail to postmaster.
    If you do so, please include this problem report. You can
    delete your own text from the attached returned message.
                       The mail system
    <[email protected]>: mail for loops back to myself
    Content-Description: Delivery report
    Content-Type: message/delivery-status
    Reporting-MTA: dns;
    X-Postfix-Queue-ID: 2136BCE14F
    X-Postfix-Sender: rfc822; [email protected]
    Arrival-Date: Thu, 17 Mar 2011 14:16:31 +0100 (CET)
    Final-Recipient: rfc822; [email protected]
    Original-Recipient: rfc822;[email protected]
    Action: failed
    Status: 5.4.6
    Diagnostic-Code: X-Postfix; mail for loops back to myself
    Content-Description: Undelivered Message
    Content-Type: message/rfc822
    Content-Transfer-Encoding: 7bit
    Return-Path: <[email protected]>
    Received: from localhost (localhost.localdomain [])
    	by (Postfix) with ESMTP id 2136BCE14F
    	for <[email protected]>; Thu, 17 Mar 2011 14:16:31 +0100 (CET)
    X-Virus-Scanned: Debian amavisd-new at
    Received: from ([])
    	by localhost ( []) (amavisd-new, port 10024)
    	with ESMTP id Nbgidj12BOkm for <[email protected]>;
    	Thu, 17 Mar 2011 14:16:28 +0100 (CET)
    Received: by (Postfix, from userid 0)
    	id B60D4CE1C9; Thu, 17 Mar 2011 14:16:28 +0100 (CET)
    To: [email protected]
    Subject: Test
    Message-Id: <[email protected]>
    Date: Thu, 17 Mar 2011 14:16:28 +0100 (CET)
    From: [email protected] (root)
    I think this is the problem:
    mail for loops back to myself

    In my from postfix i have the following.
    alias_database = hash:/etc/aliases
    alias_maps = hash:/etc/aliases
    append_dot_mydomain = no
    biff = no
    broken_sasl_auth_clients = yes
    config_directory = /etc/postfix
    content_filter = amavis:[]:10024
    html_directory = /usr/share/doc/postfix/html
    inet_interfaces = all
    mailbox_command = procmail -a "$EXTENSION"
    mailbox_size_limit = 0
    mydestination =, localhost, localhost.localdomain
    myhostname =
    mynetworks =
    myorigin = /etc/mailname
    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 = /usr/share/doc/postfix
    receive_override_options = no_address_mappings
    recipient_delimiter = +
    relayhost =
    smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
    smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
    smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination
    smtpd_sasl_auth_enable = yes
    smtpd_sasl_authenticated_header = yes
    smtpd_tls_cert_file = /etc/postfix/smtpd.cert
    smtpd_tls_key_file = /etc/postfix/smtpd.key
    smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
    smtpd_use_tls = yes
    transport_maps = proxy:mysql:/etc/postfix/
    virtual_alias_domains = 
    virtual_alias_maps = proxy:mysql:/etc/postfix/, mysql:/etc/postfix/
    virtual_gid_maps = static:5000
    virtual_mailbox_base = /home/vmail
    virtual_mailbox_domains = proxy:mysql:/etc/postfix/
    virtual_mailbox_maps = proxy:mysql:/etc/postfix/
    virtual_uid_maps = static:5000
    so that was a lot of information. By the way, [email protected] works good (sending and receiving). Can anyone help me with this problem??

    Bart Knol
  2. falko

    falko Super Moderator ISPConfig Developer

    Please add to the mydestination line in /etc/postfix/ and restart Postfix.
  3. knology

    knology New Member

    Thank you for support,

    I've solved my problem by removing from my transport record in my mysql database. Now i have a second problem, when i send a mail, it comes always about one hour later on destination. Can you help me with that?

    Bart Knol
  4. falko

    falko Super Moderator ISPConfig Developer

    Please check the mail logs on both servers.

Share This Page