strange email issue..

Discussion in 'Installation/Configuration' started by derboxen, Jul 16, 2007.

  1. derboxen

    derboxen New Member

    ive got the email setup so people send through the server.. but all mail received at the server is forwarded to the users gmail account.. heres the config files..

    main.cf (the last few lines)
    Code:
    readme_directory = /usr/share/doc/postfix-2.2.10/README_FILES
    smtpd_sasl_local_domain =
    smtpd_sasl_auth_enable = yes
    smtpd_sasl_security_options = noanonymous
    broken_sasl_auth_clients = yes
    smtpd_recipient_restrictions = permit_sasl_authenticated,permit_mynetworks,reject_unauth_destination
    mynetworks = 127.0.0.0/8
    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
    home_mailbox = Maildir/
    mailbox_command =
    
    virtual_alias_maps = hash:/etc/postfix/virtusertable
    myhostname = mail.starfluxsolutions.com
    mydestination = $myorigin
    virtual_mailbox_domains = /etc/postfix/local-host-names
    
    local-host-names

    Code:
    ###################################
    #
    # ISPConfig local-host-names Configuration File
    #         Version 1.0
    #
    ###################################
    www.claceyplumbing.com
    claceyplumbing.com
    starfluxsolutions.com
    #### MAKE MANUAL ENTRIES BELOW THIS LINE! ####
    virtusertable

    Code:
    ###################################
    #
    # ISPConfig virtusertable Configuration File
    #         Version 1.0
    #
    ###################################
    [email protected]    kevin
    [email protected]    kevin
    [email protected]    charles
    [email protected]    charles
    [email protected]    clacey
    @www.claceyplumbing.com    clacey
    [email protected]    clacey
    @claceyplumbing.com    clacey

    i dont know where ispconfig puts the forwarding information at.. but..

    clacey is a catchall forwarded to [email protected]
    kevin is forwarded to his gmail
    charles is forwarded to his gmail.

    when i send an email from my gmail account (not any of the ones used for forwarding) i get this message..

    <[email protected]> (expanded from <[email protected]>):
    mail for mail.starfluxsolutions.com loops back to myself

    the actual mail server is mail.starfluxsolutions.com..

    thanks in advance!
     
  2. falko

    falko Super Moderator ISPConfig Developer

    Please add mail.starfluxsolutions.com to /etc/postfix/local-host-names (at the end of the file) and restart Postfix.
     

Share This Page