View Single Post
  #9  
Old 19th January 2012, 17:58
regcom regcom is offline
Junior Member
 
Join Date: Sep 2011
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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.
Reply With Quote