Virtual Users And Domains With Postfix, Courier, MySQL And SquirrelMail (CentOS 6.0 x

Discussion in 'HOWTO-Related Questions' started by regcom, Jan 9, 2012.

  1. regcom

    regcom New Member

    Hi,

    I try to install "Virtual Users And Domains With Postfix, Courier, MySQL And SquirrelMail (CentOS 6.0 x86_64)"

    All is OK.
    But when I try:

    Code:
    yum install amavisd-new spamassassin clamav clamd unzip bzip2 unrar perl-DBD-mysql
    I have this error:

    Code:
    No package amavisd-new available
    How I can find and install amavisd-new package?

    Regards.

    Antonio.
     
  2. falko

    falko Super Moderator Howtoforge Staff Moderator HowtoForge Supporter ISPConfig Developer

    Did you configure all repositories as shown in the tutorial?
     
  3. regcom

    regcom New Member

    Yes. I Do.
     
  4. falko

    falko Super Moderator Howtoforge Staff Moderator HowtoForge Supporter ISPConfig Developer

    amavisd-new is available in the EPEL repository, so make sure it is configured correctly.
     
  5. regcom

    regcom New Member

    Thanks, Falco.
    I have solved.
    Now I have another problem.

    In the step 13 "Install Razor, Pyzor and DCC..."
    whene I run:

    Code:
    su -m amavis -c 'razor-admin -home=/var/spool/amavisd -create'
    I have this message:
    Code:
    nextserver: Bootstrap discovery failed. Giving up.
    Can You help me?

    Regards.

    Antonio.
     
  6. falko

    falko Super Moderator Howtoforge Staff Moderator HowtoForge Supporter ISPConfig Developer

    Please try again.
     
  7. regcom

    regcom New Member

    Hi Falko,

    I tried again, but I always get the same message.
     
  8. falko

    falko Super Moderator Howtoforge Staff Moderator HowtoForge Supporter ISPConfig Developer

  9. regcom

    regcom New Member

    I solved.
    Thanks.

    Now I have another problem with forwarding.

    I have created two mailboxes:

    Code:
    xxxx@miodominio.it 
    yyyy@miodominio.it
    I have insert into forwardings table a record with

    Code:
    field source = xxxx@miodominio.it 
    fiedl destination = yyyy@miodominio.it 
    If I send a mail to xxxx@miodominio.it the mail arrive corretcly olso if I send a mail to yyyy@miodominio.it.

    But the mail I have sended to xxxx@miodominio.it don't arrive to yyyy@miodominio.it.

    This is part of the postfix config file:

    Code:
    readme_directory = /usr/share/doc/postfix-2.6.6/README_FILES
    myhostname = uniserv.uniplan.it
    mynetworks = 127.0.0.0/8
    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 = /home/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 reject_unauth_destination permit_inet_interfaces
    smtpd_use_tls = yes
    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
    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
    receive_override_options = no_address_mappings
    
    
    and this is the content of the file / etc / postfix / mysql-virtual_forwardings.cf

    Code:
    
    user = mail_admin
    password = mail_admin_password
    dbname = mail
    query = SELECT destination FROM forwardings WHERE source='%s'
    hosts = 127.0.0.1
    
    
    Thanks.

    Regards.

    Antonio.
     

Share This Page