PostFix Issue receiving emails

Discussion in 'Server Operation' started by andyace, Oct 23, 2010.

  1. andyace

    andyace New Member

    Hi All
    hope someone can help? :eek:

    I have spent 2 days reading the posts to try and resolve this.

    i have IPSconfig 3.03 centos 5.5 64, using the perfect server guide.

    I have upgraded php to 5.2

    I get several errors trying to recieve emails

    the server is all setup to be ww1.domain1.com

    i have 20 clients 3 websites and 1 client has asked for email with an address of [email protected] (domain names changed for security)

    Firstly any email sent to [email protected] gets returmed with a
    #< #5.4.6 X-Postfix; mail for domain2.co.uk loops back to myself> #SMTP#

    and i also get a warning: do not list domain @domain2.co.uk in BOTH virtual_mailbox_domains and relay_domains

    here is my main.cf

    readme_directory = /usr/share/doc/postfix-2.3.3/README_FILES
    myhostname = ww1.domain1.com
    mynetworks = 127.0.0.0/8 [::1]/128
    virtual_alias_domains =
    virtual_alias_maps = proxy:mysql:/etc/postfix/mysql-virtual_forwardings.cf, mysql:/etc/postfix/mysql-virtual_email2email.cf
    virtual_mailbox_domains = proxy:mysql:/etc/postfix/mysql-virtual_domains.cf
    virtual_mailbox_maps = proxy:mysql:/etc/postfix/mysql-virtual_mailboxes.cf
    virtual_mailbox_base = /var/vmail
    virtual_uid_maps = static:5000
    virtual_gid_maps = static:5000
    smtpd_sasl_auth_enable = yes
    broken_sasl_auth_clients = yes
    smtpd_sasl_authenticated_header = yes
    smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, check_recipient_access mysql:/etc/postfix/mysql-virtual_recipient.cf, reject_unauth_destination
    smtpd_use_tls = yes
    smtpd_tls_security_level = may
    smtpd_tls_cert_file = /etc/postfix/smtpd.cert
    smtpd_tls_key_file = /etc/postfix/smtpd.key
    transport_maps = proxy:mysql:/etc/postfix/mysql-virtual_transports.cf
    relay_domains = mysql:/etc/postfix/mysql-virtual_relaydomains.cf
    relay_recipient_maps = mysql:/etc/postfix/mysql-virtual_relayrecipientmaps.cf
    virtual_create_maildirsize = yes
    virtual_maildir_extended = yes
    virtual_mailbox_limit_maps = proxy:mysql:/etc/postfix/mysql-virtual_mailbox_limit_maps.cf
    virtual_mailbox_limit_override = yes
    virtual_maildir_limit_message = "The user you are trying to reach is over quota."
    virtual_overquota_bounce = yes
    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
    smtpd_sender_restrictions = check_sender_access mysql:/etc/postfix/mysql-virtual_sender.cf
    smtpd_client_restrictions = check_client_access mysql:/etc/postfix/mysql-virtual_client.cf
    maildrop_destination_concurrency_limit = 1
    maildrop_destination_recipient_limit = 1
    virtual_transport = dovecot
    header_checks = regexp:/etc/postfix/header_checks
    mime_header_checks = regexp:/etc/postfix/mime_header_checks
    nested_header_checks = regexp:/etc/postfix/nested_header_checks
    body_checks = regexp:/etc/postfix/body_checks
    dovecot_destination_recipient_limit = 1
    smtpd_sasl_type = dovecot
    smtpd_sasl_path = private/auth
    receive_override_options = no_address_mappings
    content_filter = amavis:[127.0.0.1]:10024
    relayhost =
    mailbox_size_limit = 0
    message_size_limit = 0
    mydomain = $myhostname


    Hope you can help

    Andy
     
  2. falko

    falko Super Moderator ISPConfig Developer

    Make sure that domain2.co.uk isn't listed in /etc/postfix/mysql-virtual_domains.cf and /etc/postfix/mysql-virtual_relaydomains.cf at the same time.
     
  3. andyace

    andyace New Member

    erm... i took the 2 entires out of the sql table and setup the email accounts again, and it works now, Thanks nice to have the rest of Sunday off :*)

    Dont know how that happened and will need to see it working with other domains reliabily before i lest it loose on the customers but thanks a lot for your reply.

    Andy
     

Share This Page