Le 3 nov. 08 à 12:02, Nicolas Letellier a écrit :
Hello.
I would like to have this possibility in postfix :
I have [EMAIL PROTECTED] It's a mailbox (pop or imap), and it's TOO
an alias (to [EMAIL PROTECTED])
When a mail is sent for [EMAIL PROTECTED], the mail must arrive in
user mailbox, AND be redirected to [EMAIL PROTECTED]
I have a postfix server (with virtual domains in mysql), and this
possibility does not work. When I set a mailbox AND an alias, only
the alias works.
you need both redirect (to other alias and to mailbox) in
virtual_alias_maps, reading your postconf i would suggest the
following lines :
[EMAIL PROTECTED] [EMAIL PROTECTED]
[EMAIL PROTECTED] [EMAIL PROTECTED]
you could also achieve the with with a single line in
virtual_alias_maps :
[EMAIL PROTECTED] [EMAIL PROTECTED],[EMAIL PROTECTED]
Do you have an idea for this option? Is it possible?
I have a client who wants to have a mailbox for him, and have all
copies in a redirection.
Thanks for you help.
Regards,
See my postconf -n :
alias_database = hash:/etc/mail/aliases
alias_maps = hash:/etc/mail/aliases
broken_sasl_auth_clients = yes
command_directory = /usr/local/sbin
config_directory = /usr/local/etc/postfix
daemon_directory = /usr/local/libexec/postfix
debug_peer_level = 2
html_directory = no
mail_owner = postfix
mail_spool_directory = /var/mail
mailq_path = /usr/local/bin/mailq
manpage_directory = /usr/local/man
message_size_limit = 20480000
mydomain = xxxxxxxxxxxxxxxxxxx
myhostname = xxxxxxxxxxxxxxxx
mynetworks = xxxxxxxxxxxxxxxxxxxxxxxxxxxx
newaliases_path = /usr/local/bin/newaliases
queue_directory = /var/mail/spool
readme_directory = no
relay_domains = hash:/usr/local/etc/postfix/relay_domains
relay_recipient_maps = hash:/usr/local/etc/postfix/relay_recipients
sample_directory = /usr/local/etc/postfix
sendmail_path = /usr/local/sbin/sendmail
setgid_group = maildrop
smtp_tls_note_starttls_offer = yes
smtp_use_tls = yes
smtpd_recipient_restrictions = permit_mynetworks,
permit_sasl_authenticated, reject_non_fqdn_hostname,
reject_non_fqdn_sender, reject_non_fqdn_recipient,
reject_unauth_destination, reject_unauth_pipelining,
reject_invalid_hostname reject_rbl_client list.dsbl.org,
reject_rbl_client bl.spamcop.net, reject_rbl_client sbl-
xbl.spamhaus.org
smtpd_sasl_auth_enable = yes
smtpd_sasl_authenticated_header = yes
smtpd_sasl_local_domain = $myhostname
smtpd_sasl_path = private/auth
smtpd_sasl_security_options = noanonymous
smtpd_sasl_type = dovecot
smtpd_sender_restrictions = permit_sasl_authenticated,
permit_mynetworks
smtpd_tls_cert_file = /etc/ssl/mail/xxxxxxxxxxxx.cert
smtpd_tls_key_file = /etc/ssl/mail/xxxxxxxxxxxxxxxx.key
smtpd_tls_loglevel = 1
smtpd_tls_received_header = yes
smtpd_tls_security_level = may
smtpd_tls_session_cache_timeout = 3600s
soft_bounce = no
tls_random_source = dev:/dev/urandom
unknown_local_recipient_reject_code = 550
virtual_alias_maps = proxy:mysql:/usr/local/etc/postfix/mysql/
virtual_alias_maps.cf
virtual_gid_maps = static:143
virtual_mailbox_base = /var/mail/vmails/
virtual_mailbox_domains = proxy:mysql:/usr/local/etc/postfix/mysql/
virtual_domains_maps.cf
virtual_mailbox_maps = proxy:mysql:/usr/local/etc/postfix/mysql/
virtual_mailbox_maps.cf
virtual_minimum_uid = 143
virtual_transport = dovecot
virtual_uid_maps = static:143
--
Nicolas Letellier <[EMAIL PROTECTED]>