virtual domain & postfix
Is somebody true to use MySQL, postfix on virtual domains?
I try to do it but I've got one problem (maybe two): 1. My postfix receive message only for local users. When I add new user per postfixadmin and try to send him message I receive message that this user doesn't exists! 2. When postfix receive message he drop them to Maildirs on local users dirs not in vitrual Maildirs Please help That is my main.cf alias_database=hash:/usr/local/etc/postfix/aliases alias_maps =hash:/usr/local/etc/postfix/aliases command_directory = /usr/local/sbin config_directory=/usr/local/etc/postfix daemon_directory = /usr/local/libexec/postfix #debugger_command = # PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin # xxgdb $daemon_directory/$process_name $process_id & sleep 5 debug_peer_level = 2 default_destination_concurrency_limit = 10 disable_vrfy_command = yes header_checks = regexp:/usr/local/etc/postfix/header_checks home_mailbox=Maildir/ inet_interfaces = all local_destination_concurrency_limit = 2 mail_name=Postfix mail_owner = postfix mail_spool_directory = /var/mail mailbox_size_limit = 102400000 mailq_path = /usr/local/bin/mailq manpage_directory = /usr/local/man maximal_queue_lifetime=3d message_size_limit = 25600000 mydestination = $myhostname, localhost, $mydomain mydomain=abc.kom.pl myhostname = 78-tor-7.acn.waw.pl myorigin = $myhostname mynetworks = 192.168.1.0/24, 127.0.0.1 newaliases_path = /usr/local/bin/newaliases queue_directory = /var/spool/postfix queue_run_delay=30m readme_directory = no relay_domains = 127.0.0.0/8 sample_directory = /usr/local/etc/postfix sendmail_path = /usr/local/sbin/sendmail setgid_group = maildrop smtpd_banner = Fuck you yellow Taiwanese spammer! broken_sasl_auth_clients = yes smtpd_client_restrictions = reject_unknown_sender_domain permit_sasl_authenticated, # permit_mynetworks, # reject_rbl_client or.orbl.org, # reject_rbl_client bl.spamcop.net, # reject_rbl_client sbl.spamhaus.org reject_rbl_client rbl.rafi.pl.eu.org, reject_unknown_client smtpd_error_sleep_time = 3 smtpd_hard_error_limit = 5 smtpd_recipient_limit=10 smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination smtpd_sasl_auth_enable = yes smtpd_sasl_local_domain = smtpd_sasl_security_options = noanonymous #smtpd_sender_login_maps = hash:/usr/local/etc/postfix/login smtpd_sender_restrictions = reject_sender_login_mismatch, permit_sasl_authenticated, # check_sender_access hash:/usr/local/etc/postfix/access, reject_unknown_sender_domain, reject_non_fqdn_hostname smtpd_soft_error_limit = 3 unknown_local_recipient_reject_code = 450 virtual_mailbox_base=/usr/local/virtual virtual_alias_maps=mysql:/usr/local/etc/postfix/mysql_virtual_alias_maps.cf virtual_mailbox_domains=mysql:/usr/local/etc/postfix/mysql_virtual_domains_maps.cf virtual_mailbox_maps=mysql:/usr/local/etc/postfix/mysql_virtual_mailbox_maps.cf virtual_mailbox_limit=51200000 virtual_gid_maps=static:125 virtual_uid_maps=static:125 virtual_transport=virtual local_recipient=$virtual_mailbox_maps |
Maybe this will help: http://genco.gen.tc/postfix_virtual.php :-)
|
All times are GMT -5. The time now is 12:09 PM. |