On Sun, Jan 4, 2009 at 6:11 AM, mouss <mo...@ml.netoyen.net> wrote: > Asif Iqbal a écrit : >> Hi All >> >> All my email gets relayed thru gmail as it should. But how do I tell >> it to send all localemails to local spool and not send it to gmail?
I see qmgr sends the mail to smtp and local like in this flowchart http://www.postfix.org/OVERVIEW.html#delivering How do I tell qmgr which one should be delivered to local and which one to smtp? >> > > what kind of "localemails"? if these use a local domain, add the domain > to mydestination. if they use an external domain, use > virtual_alias_maps. for example: > > vad...@gmail.com iq...@localhost > > >> My laptop does not have any valid domain >> > > You could get a free one at dyndns. > >> My postfix configured like this >> >> iqb...@ghar-iqbala:~$ postconf -n >> alias_database = hash:/etc/aliases >> alias_maps = hash:/etc/aliases >> append_dot_mydomain = no >> biff = no >> config_directory = /etc/postfix >> inet_interfaces = all >> mailbox_size_limit = 0 >> mydestination = ghar, ghar-iqbala, localhost.localdomain, localhost >> myhostname = ghar-iqbala > > myhostname should be fqdn. > >> mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128 >> readme_directory = no >> recipient_delimiter = + >> relayhost = [smtp.gmail.com]:submission >> smtp_sasl_auth_enable = yes >> smtp_sasl_password_maps = hash:/etc/postfix/sasl/passwd >> smtp_sasl_security_options = noanonymous >> smtp_sasl_type = cyrus >> smtp_tls_security_level = encrypt >> smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache >> smtp_use_tls = yes >> smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu) >> smtpd_tls_cert_file = /etc/ssl/certs/ssl-cert-snakeoil.pem >> smtpd_tls_key_file = /etc/ssl/private/ssl-cert-snakeoil.key >> smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache >> smtpd_use_tls = yes >> >> >> > > -- Asif Iqbal PGP Key: 0xE62693C5 KeyServer: pgp.mit.edu