Virtual Users And Domains With Postfix, Courier, MySQL And SquirrelMail Ubuntu 8.10

Discussion in 'HOWTO-Related Questions' started by slohning, Mar 1, 2009.

  1. slohning

    slohning New Member

    Hi all,
    I am trying to set up postfix mail as per the Virtual Users And Domains With Postfix, Courier, MySQL And SquirrelMail (Ubuntu 8.10) tutorial.
    I have the following error
    warning: do not list domain in BOTH virtual_alias_domain and virtual_mailbox_domains.

    This is what it sends back in email messages
    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]> (expanded from <[email protected]>): mail for loops back to myself

    Any one go any ideas what I am doing wrong?
  2. falko

    falko Super Moderator ISPConfig Developer

    What's in your
  3. slohning

    slohning New Member

    Hi all,
    I have posted the result of postconf -n
    hope you can see my mistake, thanks
    alias_database = hash:/etc/aliases
    alias_maps = hash:/etc/aliases
    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
    inet_protocols = all
    mailbox_command =
    mailbox_size_limit = 0
    mydestination = localhost, localhost.localdomain
    mydomain =
    myhostname =
    mynetworks =,
    myorigin = /etc/mailname
    proxy_interfaces =
    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 (Ubuntu)
    smtpd_client_restrictions = permit_mynetworks,
    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_limit = 51200000
    virtual_mailbox_limit_maps = proxy:mysql:/etc/postfix/
    virtual_mailbox_limit_override = yes
    virtual_mailbox_maps = proxy:mysql:/etc/postfix/
    virtual_maildir_limit_message = "The user you are trying to reach is over quota."
    virtual_minimum_uid = 5000
    virtual_overquota_bounce = yes
    virtual_transport = virtual
    virtual_uid_maps = static:5000
  4. falko

    falko Super Moderator ISPConfig Developer

    Looks ok. But why do you have
    proxy_interfaces =
  5. slohning

    slohning New Member


    Hi Falko,
    I though from reading the documentation that it may require this as the mail server is sitting behind a router which is natting the real IP address.

    Internet -->[router ]--->
  6. falko

    falko Super Moderator ISPConfig Developer

    No, please disable that line and try again.

Share This Page