(no subject)

  • ditproz

    Ave Maria!

    I am having an issue with my Postfix setup - for some reason it routes my emails to the wrong virtual domain...

    Logs show:

    Apr 12 15:50:17 companycoServer1 postfix/smtpd[22362]: connect from mail-qc0-f181.google.com[]
    Apr 12 15:50:17 companycoServer1 postfix/smtpd[22362]: A6A2D14EE1AE: client=mail-qc0-f181.google.com[]
    Apr 12 15:50:17 companycoServer1 postfix/cleanup[22367]: A6A2D14EE1AE: message-id=CAObOquO+z0Cpt6hXQOMpVywVhDPboU2LiwNA=MV19QaiXWJBzA@mail.gmail.com
    Apr 12 15:50:17 companycoServer1 postfix/qmgr[22328]: A6A2D14EE1AE: from=dan.clovis1@gmail.com, size=1705, nrcpt=1 (queue active)
    Apr 12 15:50:17 companycoServer1 postfix/local[22368]: A6A2D14EE1AE: to=dan@companycouk.com, orig_to=dan@ccpop.itco.co, relay=local, delay=0.3, delays=0.29/0/0/0.01, dsn=2.0.0, status=sent (delivered to command: procmail -a "$EXTENSION")
    Apr 12 15:50:17 companycoServer1 postfix/qmgr[22328]: A6A2D14EE1AE: removed
    Apr 12 15:50:17 companycoServer1 postfix/smtpd[22362]: disconnect from mail-qc0-f181.google.com[]

    for some reason it moves from dan@ccpop.itco.co to dan@companycouk.com...

    "postconf -n" is as follows...

    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
    html_directory = /usr/share/doc/postfix/html
    inet_interfaces = all
    mailbox_command = procmail -a "$EXTENSION"
    mailbox_size_limit = 0
    message_size_limit = 30720000
    mydestination = companycouk.com, ccpop.itco.co, localhost, localhost.localdomain, companycoServer1, companycoServer1.companycoServer1
    myhostname = pop3.companycouk.com
    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
    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
    virtual_alias_domains =
    virtual_alias_maps = proxy:mysql:/etc/postfix/mysql-virtual_forwardings.cf, mysql:/etc/postfix/mysql-virtual_email2email.cf
    virtual_gid_maps = static:5000
    virtual_mailbox_base = /home/vmail
    virtual_mailbox_domains = proxy:mysql:/etc/postfix/mysql-virtual_domains.cf
    virtual_mailbox_maps = proxy:mysql:/etc/postfix/mysql-virtual_mailboxes.cf
    virtual_transport = dovecot
    virtual_uid_maps = static:5000

  • Simon Hobson
    Simon Hobson

    What I see there suggests that this isn't a Postfix Admin installation - or if it is, then it's not been setup correctly (see the installation instructions supplied with the package). This forum is for support of the Postfix Admin project, not a general Postfix support forum - which you can find over at postfix.org - and so is not the best place to ask general Postfix questions.