Find the answer to your Linux question:
Results 1 to 4 of 4
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    Exclamation Postfix prioritizes aliases instead of mailboxes.


    I have postfix and mysql set up on FC9. Everything works fine, except if I add a wildcard adress to the `alias` table on mysql (i.e. (at)domain), any email I send to anything(at)domain will go to the alias, even though i have `anything(at)domain` in my `mailbox` table. Can't figure out why is that.

    Any help would be appreciated, thanks.

  2. #2
    Just Joined!
    Join Date
    Jan 2009
    North Shields, UK
    If you can share your config, It might help...

  3. #3
    inet_protocols = ipv4
    smtpd_sasl_local_domain =
    smtpd_sasl_auth_enable = yes
    smtpd_sasl_security_options = noanonymous
    broken_sasl_auth_clients = yes
    smtpd_sasl_authenticated_header = yes
    smtpd_recipient_restrictions = permit_sasl_authenticated,permit_mynetworks,reject _unauth_destination
    mynetworks =
    smtpd_tls_auth_only = no
    smtp_use_tls = yes
    smtpd_use_tls = yes
    smtp_tls_note_starttls_offer = yes
    smtpd_tls_key_file = /etc/postfix/ssl/smtpd.key
    smtpd_tls_cert_file = /etc/postfix/ssl/smtpd.crt
    smtpd_tls_CAfile = /etc/postfix/ssl/cacert.pem
    smtpd_tls_loglevel = 1
    smtpd_tls_received_header = yes
    smtpd_tls_session_cache_timeout = 3600s
    tls_random_source = dev:/dev/urandom
    myhostname = localhost
    home_mailbox = Maildir/
    mailbox_command =


    virtual_mailbox_domains = mysql:$config_directory/
    virtual_mailbox_base = /var/vmail
    virtual_mailbox_maps = mysql:$config_directory/
    virtual_alias_maps = mysql:$config_directory/
    virtual_mailbox_limit_maps = mysql:$config_directory/
    virtual_minimum_uid = 150
    virtual_uid_maps = static:150
    virtual_gid_maps = static:12

  4. $spacer_open
  5. #4
    Just Joined!
    Join Date
    Jan 2009
    North Shields, UK
    Postfix docs say:
    NEVER put a virtual MAILBOX wild-card in the virtual ALIAS file
    So basically, you should move your wild-card from the alias table into the mailbox table...

    Hope this helps


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts